/* GoPower Web PC · 桌面布局与通用组件样式。 */

:root{
  --pc-nav-w:208px;
  --pc-aside-w:304px;
  --pc-gutter:28px;
  --pc-content-max:1240px;
  --pc-bg:#f7f7fb;
  --pc-bg-2:#f2f3f8;
  --pc-surface:#ffffff;
  --pc-surface-soft:#fafaff;
  --pc-text:#201a35;
  --pc-muted:#777188;
  --pc-border:#e7e6ef;
  --pc-purple:#7258ee;
  --pc-purple-deep:#5a42d3;
  --pc-purple-soft:#f0edff;
  --pc-nav:#ffffff;
  --pc-nav-soft:#f2efff;
  --pc-radius:16px;
  --pc-radius-sm:12px;
  --pc-shadow:0 8px 26px rgba(39,31,72,.055);
  --pc-shadow-hover:0 14px 34px rgba(39,31,72,.10);
}

html,body{height:100%;}
body{
  min-width:1080px;
  background:var(--pc-bg);
  color:var(--pc-text);
  font-size:14px;
}
.web-shell{height:100vh;background:var(--pc-bg);overflow:hidden}

/* ---------- top bar ---------- */
.topbar{
  height:66px;padding:0 22px 0 20px;gap:14px;
  background:rgba(255,255,255,.98);
  border-bottom:1px solid var(--pc-border);box-shadow:none;z-index:40;
}
.brand{width:calc(var(--pc-nav-w) - 20px);min-width:calc(var(--pc-nav-w) - 20px);gap:10px}
.brand-logo{
  width:36px;height:36px;border-radius:11px;font-size:18px;
  background:linear-gradient(145deg,#8064ff,#684de7);
  box-shadow:0 8px 18px rgba(114,88,238,.22);
}
.brand-name{font-size:16px;font-weight:850;letter-spacing:.1px}
.brand-tag{font-size:10px;padding:3px 7px;background:var(--pc-purple-soft);color:var(--pc-purple)}
.topbar-user{display:flex;align-items:center;margin-left:auto}
.user-chip{
  min-height:38px;padding:4px 12px 4px 5px;background:#f5f5f9;border:1px solid transparent;
  transition:background .15s,border-color .15s;
}
.user-chip:hover{background:#f0edff;border-color:#dfd8ff}
.avatar-fallback{background:linear-gradient(145deg,#8a6cff,#b497ff)}

/* ---------- desktop shell ---------- */
.web-view{
  display:grid;grid-template-areas:"nav main";grid-template-columns:var(--pc-nav-w) minmax(0,1fr);
  align-items:stretch;overflow-y:auto;background:var(--pc-bg);
}
.side-nav{
  grid-area:nav;position:sticky;top:0;height:calc(100vh - 66px);max-height:none;
  padding:20px 12px;gap:7px;background:#fff;border-right:1px solid var(--pc-border);z-index:8;
}
.side-nav::before{
  content:"学习 · 对弈 · 成长";display:block;padding:0 14px 12px;color:#aaa5b6;
  font-size:10px;font-weight:800;letter-spacing:.08em;
}
.side-nav-btn{
  min-height:46px;padding:11px 13px;gap:12px;border-radius:13px;
  color:#6f6980;font-size:14px;font-weight:800;transition:.16s;
}
.side-nav-btn .ui-icon{width:19px;height:19px;color:#8c86a0}
.side-nav-btn:hover{background:#f7f5ff;color:var(--pc-purple)}
.side-nav-btn:hover .ui-icon{color:var(--pc-purple)}
.side-nav-btn.active{
  color:var(--pc-purple);background:var(--pc-purple-soft);
  box-shadow:none;
}
.side-nav-btn.active .ui-icon{color:var(--pc-purple)}

.main-col{grid-area:main;min-width:0;padding:24px var(--pc-gutter) 56px}
.view-page{padding:0;min-width:0}
.view-page.active{display:block}

/* only Home gets the utility rail. Other pages get the full desktop canvas. */
.right-panel{display:none}
#view:has(.view-page[data-view="home"].active){
  grid-template-areas:"nav main panel";
  grid-template-columns:var(--pc-nav-w) minmax(0,1fr) var(--pc-aside-w);
}
#view:has(.view-page[data-view="home"].active) .right-panel{
  display:flex;grid-area:panel;position:sticky;top:0;align-self:start;height:calc(100vh - 66px);max-height:none;
  padding:24px 16px 30px;gap:12px;overflow:auto;background:#f9f9fc;border-left:1px solid var(--pc-border);
}

/* ---------- shared visual language ---------- */
.card{
  background:var(--pc-surface);border:1px solid var(--pc-border);border-radius:var(--pc-radius);
  box-shadow:var(--pc-shadow);
}
.btn-primary{
  border-radius:11px;background:linear-gradient(135deg,var(--pc-purple),#866eff);
  box-shadow:0 6px 14px rgba(114,88,238,.20);font-weight:800;
}
.btn-primary:hover{box-shadow:0 9px 20px rgba(114,88,238,.28);transform:translateY(-1px)}
.btn-ghost{background:#f5f5f8;color:#625c72}
.btn-ghost:hover{background:#efedf6}

/* ---------- HOME ---------- */
.home-grid{display:block}
.home-main{width:min(100%,960px);margin:0 auto;gap:14px}
.home-hero{
  min-height:74px;padding:12px 16px;border-radius:15px;background:#fff;box-shadow:none;
  border-color:var(--pc-border);
}
.home-hero::after{
  content:"";display:none;
}
.avatar-button .avatar-fallback{width:46px;height:46px;font-size:18px}
.home-user b{font-size:16px}.home-user span{font-size:12px;color:var(--pc-muted)}
.home-hero .btn-login{margin-left:0;padding:9px 18px}

.stage-banner{
  position:sticky;top:0;z-index:20;min-height:94px;padding:15px 18px;border-radius:16px;
  border:1px solid #ded8ff;background:linear-gradient(118deg,#f5f2ff 0%,#fff 62%);
  box-shadow:0 10px 28px rgba(74,57,145,.07);backdrop-filter:blur(8px);
}
.stage-banner::before{opacity:.24}
.stage-nav{width:38px;height:38px;background:#fff;border:1px solid #e7e3f6;box-shadow:0 3px 10px rgba(50,40,90,.05)}
.stage-info{text-align:left;padding-left:8px}
.stage-meta{font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.stage-title-row{justify-content:flex-start;margin:4px 0 2px}
.stage-title-row b{font-size:20px;letter-spacing:.1px}
.stage-hint{font-size:10px;padding:3px 8px}
.section-title{font-size:12px}.stage-subtitle{font-size:11px}

.road-section{gap:14px}
.duo-section{
  border:1px solid var(--pc-border);border-radius:18px;box-shadow:none;background:#fff;overflow:visible;
}
.duo-section-label{padding:22px 28px 8px}
.duo-section-label b{font-size:14px}.duo-section-label small{font-size:11px}
.duo-road{max-width:720px}
.duo-node{box-shadow:0 5px 0 var(--section-dark),0 9px 18px rgba(42,31,90,.12)}
.duo-slot .node-label b{font-size:12px}
.duo-stage-finish{border-radius:0 0 18px 18px}

/* home utility rail: three calm modules, no duplicate task-summary card */
#view:has(.view-page[data-view="home"].active) .right-panel .side-card{
  padding:15px;background:#fff;border:1px solid var(--pc-border);border-radius:14px;box-shadow:none;
}
#view:has(.view-page[data-view="home"].active) #sideDaily{display:none}
#view:has(.view-page[data-view="home"].active) #homeTasks::before{
  content:"今日任务";display:block;margin:0 0 10px;font-size:14px;font-weight:850;color:var(--pc-text);
}
.right-panel .section-subtitle{margin-bottom:10px}.right-panel .section-subtitle b{font-size:14px}
.right-panel .streak-week{gap:4px;margin-bottom:10px}.right-panel .streak-week i{height:24px;font-size:10px;background:#f5f5f8}
.right-panel .side-assets span{background:#f6f6fa;border:1px solid #eeeeF4;padding:7px 5px;font-size:13px}
.right-panel .league-rank{font-size:20px}
.right-panel .league-go{background:#f1eeff;border-radius:9px}
.home-tasks .task-mini{margin-bottom:7px;padding:9px 10px;border:1px solid #efedf4;background:#fafafd;box-shadow:none}
.home-tasks .task-mini:last-child{margin-bottom:0}

/* ---------- PAGE HEADERS: less card-like, more desktop-like ---------- */
.league-page, .mine-page, .library-page{width:min(100%,var(--pc-content-max));max-width:none;margin:0 auto}
.league-header, .library-header{
  min-height:76px;padding:10px 2px 18px;background:transparent!important;border:0!important;border-bottom:1px solid var(--pc-border)!important;
  border-radius:0!important;box-shadow:none!important;
}
.league-header-icon, .library-header-icon{
  width:42px;height:42px;border-radius:12px;box-shadow:none!important;background:var(--pc-purple-soft)!important;color:var(--pc-purple)!important;
}
.league-header-icon .ui-icon, .library-header-icon .ui-icon{width:22px;height:22px}
.league-header-copy h2, .library-header-copy h2{font-size:21px!important;letter-spacing:.1px;color:var(--pc-text)!important}
.league-header-copy p, .library-header-copy p{font-size:12px!important;color:var(--pc-muted)!important}

/* ---------- STUDY ---------- */













.mode-card{
  min-height:100px;padding:14px;border-radius:13px;gap:5px;background:#fff;border:1px solid var(--pc-border);box-shadow:none;
}
.mode-card:hover{transform:none;border-color:#d9d3f8;box-shadow:0 6px 18px rgba(60,47,110,.06)}
.mode-card.selected{background:#f8f6ff;border-color:#8d78f4;box-shadow:inset 3px 0 0 var(--pc-purple)}
.mode-icon{width:34px;height:34px;border-radius:10px;background:#f2f1f6}.mode-icon .ui-icon{width:19px;height:19px}
.mode-card.selected .mode-icon{background:#e9e4ff;color:var(--pc-purple)}
.mode-card b{font-size:14px}.mode-card small{font-size:11px}.mode-check{top:10px;right:10px;width:20px;height:20px;box-shadow:none}
.cfg-panel{padding:18px;border-radius:15px;gap:14px;box-shadow:none}
.cfg-panel-head h3{font-size:15px}.cfg-options{gap:10px}.opt-chip{padding:7px 13px;font-size:12px;background:#f4f4f8}
.opt-chip.selected{background:var(--pc-purple);box-shadow:none}
.cfg-preview{grid-template-columns:repeat(3,minmax(0,1fr));padding:11px 13px;background:#f7f7fa;border-radius:11px}





.guide-card{padding:14px 15px;border-radius:14px;box-shadow:none}.guide-card-head{margin-bottom:5px}.guide-icon{width:32px;height:32px;border-radius:9px}
.guide-card-title h3{font-size:14px}.guide-list{gap:6px}.reco-item,.confuse-item{padding:8px 9px;border-radius:10px;background:#f7f7fa}
.reco-icon,.confuse-icon{width:30px;height:30px;border-radius:8px;box-shadow:none}.reco-copy b,.confuse-copy b{font-size:12px}.reco-copy small,.confuse-copy small{font-size:10px}

/* ---------- LIBRARY: return to the product design language; wood stays on the board only ---------- */
.library-page{
  --lib-paper-900:#f4f4f8;--lib-paper-850:#ffffff;--lib-paper-800:#ffffff;
  --lib-line:#e6e5ed;--lib-line-soft:#eeedf3;--lib-ink:var(--pc-text);--lib-ink-2:#6d6879;--lib-ink-3:#9892a3;
  --lib-gold:var(--pc-purple);--lib-seal:#d55e6e;--lib-shadow-card:none;
  gap:16px;
}
.library-page .card{background:#fff;border-color:var(--pc-border);border-radius:15px;box-shadow:none}
.library-header{padding-bottom:18px}
.library-search .field{background:#fff;border-color:var(--pc-border)}
.feed-zone{padding:0;border:0!important;background:transparent!important;box-shadow:none!important;gap:12px}
.feed-zone-head{padding:0 2px;min-height:42px}
.feed-zone-icon{width:34px;height:34px;border-radius:10px;background:#f0edff!important;color:var(--pc-purple)!important;box-shadow:none}
.feed-zone-icon .ui-icon{width:18px;height:18px}.feed-zone-title h3{font-size:15px;color:var(--pc-text)}.feed-zone-title small{font-size:11px;color:var(--pc-muted)}
.feed-refresh{padding:7px 11px;border-radius:10px;background:#fff;border-color:var(--pc-border);color:var(--pc-muted)}
.feed-category-bar{gap:6px}.feed-category-bar button{padding:7px 13px;border-radius:9px;background:#fff;border-color:var(--pc-border);font-size:12px;color:#6f697e}
.feed-category-bar button.active{background:var(--pc-purple);color:#fff;border-color:var(--pc-purple);box-shadow:none}
.feed-deck{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-height:none;min-height:0;overflow:visible;padding:0}
.feed-card{border:1px solid var(--pc-border);border-radius:13px;box-shadow:none;background:#fff}
.feed-card:hover{transform:translateY(-2px);box-shadow:var(--pc-shadow-hover);border-color:#dad7e8}
.feed-board-frame{padding:8px;background:linear-gradient(145deg,#b98245,#95642f)}
.feed-focus{top:12px;left:12px}.feed-live-pill,.feed-replay-pill{top:12px;right:12px}
.feed-info{gap:5px;padding:10px 11px 11px;border-top:0}
.feed-info h2{font-size:13px;color:var(--pc-text)}.feed-players{font-size:11px}.feed-event{font-size:10px;color:var(--pc-purple)}.feed-fact{font-size:11px;-webkit-line-clamp:1}
.feed-badge,.feed-secondary-badge{font-size:9px;padding:3px 7px}.feed-social button{padding:4px 7px;font-size:10px}
.feed-cta{margin-top:2px;padding:8px 10px;border-radius:9px;background:#f1eeff;color:var(--pc-purple);box-shadow:none;font-size:11.5px}
.feed-cta:hover{transform:none;background:#e8e2ff;box-shadow:none}
.library-body{grid-template-columns:178px minmax(0,1fr);gap:14px}.library-side{top:12px;padding:8px;max-height:calc(100vh - 110px);border-radius:13px}.lib-tab{padding:9px 10px;font-size:12px;border-radius:9px}
.lib-tab-group.active .lib-tab,.lib-subtab.active{background:#f0edff;color:var(--pc-purple);border-color:#e0d9ff}.library-panel{padding:14px;gap:10px}.library-panel-head b{font-size:15px;color:var(--pc-text)}
.library-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.lib-item-card{border-color:var(--pc-border)!important;background:#fff!important;border-radius:12px!important;box-shadow:none!important}.lib-item-card:hover{border-color:#d9d5e6!important;box-shadow:0 8px 24px rgba(45,35,82,.08)!important}

/* ---------- LEAGUE ---------- */
.league-page{
  display:grid;grid-template-columns:minmax(0,1.75fr) minmax(300px,.72fr);
  grid-template-areas:"league-head league-head" "league-progress league-progress" "league-week league-rank";
  gap:16px 20px;align-items:start;
}
.league-page>.league-header{grid-area:league-head}.league-page>.league-progress{grid-area:league-progress}.league-page>.league-week{grid-area:league-week}.league-page>.league-lower{grid-area:league-rank}
.league-progress{padding:16px 18px;border-radius:15px;box-shadow:none;background:linear-gradient(110deg,#f5f2ff,#fff);border-color:#ded8ff}
.league-week,.league-battle{padding:16px;border-radius:15px;box-shadow:none}.league-lower{position:sticky;top:12px}
.league-opponents{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.weekly-battle-rank-row-v8{padding:9px 10px;border-radius:10px}

/* ---------- MINE ---------- */
.mine-page{
  display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px 16px;align-items:start;
}
.mine-page>.mine-card:nth-child(1){grid-column:1/span 8;grid-row:1}
.mine-page>.mine-card:nth-child(2){grid-column:9/-1;grid-row:1}
.mine-page>.mine-card:nth-child(3){grid-column:1/span 5;grid-row:2}
.mine-page>.mine-card:nth-child(4){grid-column:6/-1;grid-row:2}
.mine-page>.mine-card:nth-child(5){grid-column:1/-1;grid-row:3}
.mine-card{padding:16px;border-radius:15px;box-shadow:none}
.mine-user-card{min-height:112px;padding:18px;background:linear-gradient(110deg,#f7f5ff,#fff);border-color:#e2ddfb}
.mine-avatar{width:58px;height:58px}.mine-user-copy b{font-size:18px}.mine-user-copy small{font-size:11px}
.mine-assets{height:100%;gap:8px}.mine-asset{padding:10px 11px;border-radius:11px;background:#f7f7fa}
.mine-section-head{margin-bottom:10px}.mine-section-title{font-size:14px}.mine-svc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mine-svc-grid button{min-height:74px;padding:11px;border-radius:11px;background:#f8f8fb}
.mine-task-item{padding:10px 11px;border-radius:10px}.mine-ach-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}

/* ---------- TRAIN / BOARD: immersive two-column horizontal workspace ---------- */
#view:has(.view-page[data-view="train"].active){display:block;background:#f2f3f8}
#view:has(.view-page[data-view="train"].active) .side-nav,
#view:has(.view-page[data-view="train"].active) .right-panel{display:none!important}
#view:has(.view-page[data-view="train"].active) .main-col{padding:18px 30px 30px}
.train-stage{width:min(100%,1260px);max-width:none;margin:0 auto}
.train-confirm{max-width:760px;margin:36px auto;padding:28px 30px;border-radius:18px;box-shadow:0 14px 38px rgba(43,34,78,.08)}
.train-play{
  width:100%;display:grid;grid-template-columns:minmax(560px,1fr) 356px;
  grid-template-areas:"train-head train-head" "train-board train-controls" "train-board train-status" "train-board train-panel";
  gap:12px 22px;align-items:start;justify-content:center;
}
.train-play-head{grid-area:train-head;width:100%;max-width:none;min-height:48px;padding:0 2px 10px;border-bottom:1px solid #dddde8}
.train-board-wrap{
  grid-area:train-board;width:min(100%,calc(100vh - 148px));max-width:730px;justify-self:center;align-self:start;
  padding:12px;border-radius:18px;background:#fff;border:1px solid #dedde7;box-shadow:0 16px 42px rgba(41,34,70,.09);
}
.train-controls{
  grid-area:train-controls;width:100%;max-width:none;padding:14px;gap:8px;justify-content:flex-start;
  background:#fff;border:1px solid var(--pc-border);border-radius:15px;box-shadow:none;
}
.train-controls .train-stat{flex:1 1 calc(50% - 5px);padding:9px;background:#f4f4f8;border-radius:9px;text-align:center;font-size:12px}
.train-controls button{flex:1 1 calc(50% - 5px);padding:10px 11px;border-radius:9px;background:#f6f6f9;border:1px solid #ecebf1;font-size:12px}
.train-controls button:hover{background:#efedf8}.train-controls .train-danger{color:#bd4d57;background:#fff5f5;border-color:#f3d7d9}
.train-status{grid-area:train-status;width:100%;max-width:none;min-height:46px;padding:12px 13px;text-align:left;background:#fff;border:1px solid var(--pc-border);border-radius:12px;color:#625c72}
.course-panel,.memory-panel,.minigame-panel,.bonus-panel{grid-area:train-panel;width:100%;max-width:none;margin:0;padding:15px;background:#fff;border:1px solid var(--pc-border);border-radius:15px;box-shadow:none}
.minigame-panel,.bonus-panel{padding:20px 16px}

/* ---------- overlays / secondary PC utilities ---------- */
.panel-card{max-width:min(92vw,960px);border-radius:18px;padding:22px 24px}
.panel-task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.practice-main{max-width:1220px;width:100%;margin:0 auto;gap:28px}.practice-tools{width:250px}

/* ---------- 1280-1439: compact navigation, keep content clear ---------- */
@media (max-width:1439px){
  :root{--pc-nav-w:184px;--pc-aside-w:280px;--pc-gutter:22px}
  .brand{width:calc(var(--pc-nav-w) - 18px);min-width:calc(var(--pc-nav-w) - 18px)}
  .home-main{width:min(100%,900px)}
  
  
  .feed-deck{grid-template-columns:repeat(4,minmax(0,1fr))}
  .library-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mine-ach-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
}

/* ---------- compact desktop ---------- */
@media (max-width:1279px){
  :root{--pc-nav-w:76px;--pc-aside-w:270px;--pc-gutter:18px}
  .brand{width:auto;min-width:0}.brand-name{font-size:15px}.brand-tag{display:none}
  .side-nav{padding:20px 10px}.side-nav::before{display:none}.side-nav-btn{justify-content:center;padding:11px 8px}.side-nav-btn span{display:none}
  #view:has(.view-page[data-view="home"].active){grid-template-columns:var(--pc-nav-w) minmax(0,1fr) var(--pc-aside-w)}
  .home-main{width:min(100%,860px)}
  
  .feed-deck{grid-template-columns:repeat(3,minmax(0,1fr))}
  .library-body{grid-template-columns:160px minmax(0,1fr)}.library-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .league-page{grid-template-columns:minmax(0,1.45fr) 300px}.league-opponents{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mine-ach-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .train-play{grid-template-columns:minmax(520px,1fr) 330px}
}

/* ---------- safe fallback ---------- */
@media (max-width:1099px){
  body{min-width:0}
  .web-view,#view:has(.view-page[data-view="home"].active){grid-template-areas:"nav" "main";grid-template-columns:minmax(0,1fr)}
  .side-nav{position:static;height:auto;flex-direction:row;overflow-x:auto;border-bottom:1px solid var(--pc-border);background:#fff;padding:8px 12px}
  .side-nav-btn{width:auto;flex:0 0 auto}.side-nav-btn span{display:inline}
  .right-panel{display:none!important}
  .main-col{padding:18px 16px 40px}
  .league-page, .mine-page{display:flex;flex-direction:column;max-width:960px}
  
  .feed-deck{grid-template-columns:repeat(2,minmax(0,1fr))}
  .library-body{grid-template-columns:150px minmax(0,1fr)}
  .mine-page>.mine-card{grid-column:auto!important;grid-row:auto!important}
  .train-play{grid-template-columns:minmax(0,1fr);grid-template-areas:"train-head" "train-board" "train-controls" "train-status" "train-panel"}.train-board-wrap{width:min(76vh,680px)}
}

.library-page{
  --lib-paper-900:#f7f6fb;
  --lib-paper-850:#ffffff;
  --lib-paper-800:#ffffff;
  --lib-line:#e8e5f1;
  --lib-line-soft:#f0eef6;
  --lib-ink:#261f3b;
  --lib-ink-2:#6d667d;
  --lib-ink-3:#9b95a9;
  --lib-gold:#7459ef;
  --lib-seal:#e05c5c;
  --lib-seal-soft:#ef8585;
  max-width:1280px;gap:14px;
}
.library-page .card{background:#fff;border:1px solid var(--lib-line);box-shadow:0 4px 16px rgba(56,43,93,.045)}
.library-header{padding:18px 20px;background:#fff;border-radius:18px}
.library-header-icon{width:46px;height:46px;border-radius:14px;background:#efeaff;color:#7459ef;box-shadow:none}
.library-header-icon .ui-icon{width:24px;height:24px}
.library-header-copy h2{font-size:22px;color:#261f3b}.library-header-copy p{color:#777083}
.library-search .field{background:#faf9fd;border-color:#e7e3ef}.library-search .field:focus{border-color:#9b88f6;background:#fff}

/* Recommend feed is the APP discovery surface. Other library modes focus only on their work list. */
.feed-zone[hidden]{display:none!important}
.feed-zone{border-radius:18px!important;background:#fff!important;padding:16px!important}
.feed-zone-head{padding:0 2px 10px}.feed-zone-title h3{font-size:16px}.feed-zone-title small{color:#8a8397}
.feed-zone-icon{background:#efeaff!important;color:#7459ef!important}
.feed-category-bar{display:flex;gap:7px;overflow-x:auto;padding-bottom:2px}
.feed-category-bar button{border:1px solid #e8e5f1!important;background:#fff!important;color:#6e677c!important;border-radius:999px!important;padding:7px 14px!important}
.feed-category-bar button.active{background:#7459ef!important;border-color:#7459ef!important;color:#fff!important}
.feed-refresh{border:1px solid #e8e5f1!important;background:#fff!important;color:#6e677c!important}

/* Primary library navigation becomes a horizontal product nav, not a second left sidebar. */
.library-body{display:flex;flex-direction:column;gap:12px;min-width:0}
.library-side{position:static;max-height:none;overflow:visible;padding:8px;background:#fff;border-radius:16px}
.library-tabs{display:flex;align-items:flex-start;gap:6px;overflow-x:auto;min-width:0;padding:0}
.lib-tab-group{display:flex;flex-direction:row;align-items:center;gap:5px;flex:0 0 auto}
.lib-tab{width:auto;min-height:40px;padding:9px 13px;border-radius:12px;color:#6f687e;background:transparent;font-size:13px}
.lib-tab:hover{background:#f7f5ff;color:#7459ef}
.lib-tab-group.active .lib-tab{background:#efeaff;color:#6548dd;border-color:transparent}
.lib-subtabs{display:none!important;position:static;padding:0;flex-direction:row;gap:4px}
.lib-tab-group.active.has-sub .lib-subtabs{display:flex!important}
.lib-subtab{padding:8px 11px;border-radius:10px;background:#faf9fd;color:#8a8398;font-size:12px}
.lib-subtab:hover{background:#f4f1ff;color:#7459ef}.lib-subtab.active{background:#7459ef;color:#fff}
.library-panel{padding:16px 18px 18px;border-radius:18px}
.library-panel-head{padding:1px 1px 7px}.library-panel-head b{font-size:17px;color:#2b2440}.library-panel-head small{color:#8e879b}
.lib-gtype-row{padding:0 0 10px;gap:7px}.lib-gtype-row button{background:#f8f7fb;border-color:#ebe8f2;color:#746d82}.lib-gtype-row button.active{background:#7459ef;border-color:#7459ef;color:#fff}

/* Cards prioritize real SGF previews and readable metadata instead of decorative fake covers. */
.lib-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.library-list{display:block}
.lib-item-card{display:grid;grid-template-columns:154px minmax(0,1fr);min-height:128px;border:1px solid #e9e6f0!important;border-radius:16px!important;background:#fff!important;overflow:hidden;box-shadow:none!important;transform:none!important}
.lib-item-card:hover{border-color:#cfc7f6!important;background:#fdfcff!important;box-shadow:0 8px 24px rgba(74,57,122,.075)!important}
.lib-item-card.selected{border-color:#8f7af2!important;background:#faf8ff!important;box-shadow:0 0 0 2px rgba(116,89,239,.10)!important}
.lib-item-card.selected::before{display:none}
.lib-item-thumb{position:relative;min-height:126px;margin:0;background:#f3ddb7;overflow:hidden;border-right:1px solid #e5d5b8;display:grid;place-items:center}
.lib-item-thumb::before{content:"";position:absolute;inset:10px;background:repeating-linear-gradient(90deg,rgba(70,50,20,.16) 0 1px,transparent 1px 18px),repeating-linear-gradient(0deg,rgba(70,50,20,.16) 0 1px,transparent 1px 18px);border:1px solid rgba(70,50,20,.10);border-radius:7px}
.lib-item-thumb.has-board::before,.lib-item-thumb.has-board .lib-thumb-stone{display:none}
.lib-item-thumb canvas{display:block;width:100%!important;height:100%!important;max-height:128px;object-fit:cover}
.lib-thumb-stone{position:absolute;width:20px;height:20px;border-radius:50%;z-index:1}.lib-thumb-stone.b{margin:-17px 0 0 -20px;background:#26242a}.lib-thumb-stone.w{margin:18px 0 0 24px;background:#fff;border:1px solid rgba(0,0,0,.12);box-shadow:0 2px 4px rgba(0,0,0,.15)}
.lib-item-thumb em{position:absolute;left:8px;bottom:7px;z-index:2;padding:3px 7px;border-radius:7px;background:rgba(38,31,59,.72);color:#fff;font-size:10px;font-style:normal;font-weight:800}
.lib-item-info{padding:13px 14px;gap:8px;justify-content:center}.lib-item-header{align-items:flex-start}.lib-item-match{font-size:14px;line-height:1.4;color:#2d2642}.lib-item-status{border-radius:999px;padding:3px 8px;background:#f3f1f8;color:#7d768b}.lib-item-status.ended.gold{background:#efeaff;color:#7459ef}.lib-item-status.live{background:#fff0ef;color:#d75656}
.lib-item-players{font-size:12px}.lib-item-footer{font-size:11px}.lib-item-result{font-weight:800;color:#5f5870}
.lib-item-del{right:8px;top:8px;bottom:auto;padding:5px 8px;border-radius:8px;background:rgba(255,255,255,.94);color:#c55d5d;border:1px solid #f0dcdc;font-size:10px;opacity:0;transition:.15s}.lib-item-card:hover .lib-item-del{opacity:1}
.lib-more{display:block;margin:16px auto 0;padding:10px 24px;border-radius:12px;background:#f1edff;color:#6548dd;font-weight:800}

/* Member/catalog tiles stay light and readable. */
.lib-member-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.lib-member-card{border-color:#e9e6f0;background:#fff}.lib-member-card:hover{border-color:#cfc7f6;background:#faf8ff}

/* Preview becomes a stable desktop workspace with the board as the primary object. */
.lib-preview-mask{background:rgba(35,29,55,.28);backdrop-filter:blur(5px)}
.lib-preview-card{width:min(1180px,94vw);max-width:1180px;max-height:92vh;border-radius:20px;background:#fff;border:1px solid #e7e3ef;box-shadow:0 24px 70px rgba(43,32,70,.18)}
.lib-preview-head{padding-right:42px}.lib-preview-head b{font-size:18px}.lib-preview-head small{color:#80798c}
.lib-preview-body{gap:14px}.lib-preview-board-wrap{background:#faf9fd;border:1px solid #ece9f3;border-radius:16px;padding:12px}.lib-preview-controls{border-radius:14px;background:#f8f7fb;border:1px solid #ece9f3}
.lib-preview-actions button{border-radius:11px;background:#fff}.lib-preview-actions button:hover{background:#f5f2ff}
.pc-report-dock{border-color:#e8e5f1!important;box-shadow:none!important}

@media(max-width:1350px){.lib-card-grid{grid-template-columns:1fr}.lib-member-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1120px){.library-tabs{flex-wrap:wrap}.lib-tab-group.active.has-sub{flex-wrap:wrap}.lib-item-card{grid-template-columns:136px minmax(0,1fr)}.lib-item-thumb{min-height:118px}}
.library-header-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.library-header-actions button{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid #e8e5f1;border-radius:11px;background:#fff;color:#6e677c;font-size:12px;font-weight:800}
.library-header-actions button:hover{background:#f7f5ff;border-color:#d7cff8;color:#7459ef}
.library-header-actions .ui-icon{width:16px;height:16px}
@media(max-width:1180px){.library-header-actions{order:3;width:100%;margin-left:0}.library-search{order:4;width:100%}.library-search .field{width:min(420px,70vw)}}

.side-nav{background:#fff!important;border-right:1px solid #ece9f3!important;box-shadow:none!important}
.side-nav::before{color:#9189a1!important;letter-spacing:.08em!important}
.side-nav-btn{color:#70697e!important}
.side-nav-btn:hover{background:#f7f5ff!important;color:#6548dd!important}
.side-nav-btn.active{background:#efeaff!important;color:#6548dd!important;box-shadow:inset 0 0 0 1px #dfd8ff!important}
.side-nav-btn.active::before{background:#7459ef!important}
.side-nav .ui-icon{color:currentColor!important}
@media(max-width:1279px) and (min-width:1100px){
  :root{--pc-nav-w:168px!important}
  .side-nav{width:168px!important;padding:18px 10px!important}
  .side-nav::before{display:block!important;font-size:10px!important;margin:0 10px 14px!important}
  .side-nav-btn{justify-content:flex-start!important;padding:11px 12px!important;gap:10px!important}
  .side-nav-btn span{display:inline!important}
}

.library-page{
  --lib-violet:#7257ee;
  --lib-violet-strong:#6546e6;
  --lib-violet-soft:#f0ecff;
  --lib-text:#29233b;
  --lib-muted:#817a90;
  --lib-line:#e8e5ef;
  --lib-bg:#f7f7fb;
  width:min(100%,1360px)!important;
  max-width:1360px!important;
  gap:14px!important;
}
.library-page .card{border:1px solid var(--lib-line)!important;background:#fff!important;box-shadow:none!important}
.library-header{min-height:72px!important;padding:8px 2px 16px!important}
.library-header-actions button{height:36px;padding:0 12px;border-radius:11px;background:#fff;color:#6f687c}
.library-header-actions button:hover{background:#f7f5ff;color:var(--lib-violet);border-color:#d8d0fb}

/* =====================================================================
 * 精彩瞬间：单棋盘焦点区 + 轻量队列。禁止多棋盘并发渲染。
 * ===================================================================== */
.feed-zone{
  display:flex!important;flex-direction:column;gap:10px!important;
  padding:16px!important;border:1px solid var(--lib-line)!important;
  border-radius:18px!important;background:#fff!important;
}
.feed-zone[hidden]{display:none!important}
.feed-zone-head{padding:0!important;min-height:38px!important}
.feed-zone-icon{width:36px!important;height:36px!important;border-radius:11px!important;background:var(--lib-violet-soft)!important;color:var(--lib-violet)!important}
.feed-zone-title h3{font-size:16px!important;color:var(--lib-text)!important}.feed-zone-title small{font-size:11px!important;color:var(--lib-muted)!important}
.feed-refresh{height:34px!important;padding:0 11px!important;border-radius:10px!important;background:#fff!important;border:1px solid var(--lib-line)!important;color:#746d80!important;box-shadow:none!important}
.feed-refresh:hover{transform:none!important;background:#f8f6ff!important;color:var(--lib-violet)!important}
.feed-category-bar{gap:6px!important;padding:0 0 2px!important;overflow:visible!important}
.feed-category-bar button{height:32px;padding:0 13px!important;border-radius:10px!important;background:#fff!important;border:1px solid var(--lib-line)!important;color:#716a7d!important;font-size:12px!important;box-shadow:none!important}
.feed-category-bar button:hover{background:#f8f6ff!important;color:var(--lib-violet)!important;border-color:#d9d1fb!important}
.feed-category-bar button.active{background:var(--lib-violet)!important;color:#fff!important;border-color:var(--lib-violet)!important}
.feed-deck{display:block!important;max-height:none!important;min-height:0!important;overflow:visible!important;padding:0!important}
.feed-focus-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px;align-items:stretch}
.feed-card-featured{border:1px solid var(--lib-line)!important;border-radius:16px!important;background:#fff!important;overflow:hidden;box-shadow:none!important;transform:none!important}
.feed-card-featured:hover{transform:none!important;box-shadow:none!important;border-color:#ddd8ed!important}
.feed-card-featured .feed-content{display:grid!important;grid-template-columns:minmax(290px,360px) minmax(0,1fr);height:100%;min-height:330px}
.feed-card-featured .feed-board-frame{
  width:100%!important;aspect-ratio:1/1!important;align-self:center;
  padding:10px!important;background:linear-gradient(145deg,#c69350,#a66f35)!important;
  border-right:1px solid rgba(100,68,35,.14);
}
.feed-card-featured .feed-board{width:100%!important;height:100%!important;aspect-ratio:1/1!important}
.feed-card-featured .feed-info{padding:24px 24px 20px!important;border:0!important;gap:9px!important;min-height:0}
.feed-feature-kicker{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.feed-feature-kicker .feed-badge,.feed-feature-kicker .feed-secondary-badge{font-size:10px;padding:4px 8px}
.feed-card-featured .feed-info h2{font-size:20px!important;line-height:1.45!important;color:var(--lib-text)!important;-webkit-line-clamp:3!important}
.feed-card-featured .feed-players{font-size:13px!important;color:#4f485d!important}.feed-card-featured .feed-event{font-size:12px!important;color:var(--lib-violet)!important}.feed-card-featured .feed-fact{font-size:12px!important;line-height:1.7!important;color:#746d80!important;-webkit-line-clamp:3!important}
.feed-feature-spacer{flex:1 1 auto;min-height:4px}.feed-card-featured .feed-meta-row{margin-top:auto}.feed-card-featured .feed-social{margin-left:0!important}.feed-card-featured .feed-social button{height:32px;padding:0 10px!important;border-radius:9px!important;background:#fff!important}
.feed-card-featured .feed-cta{align-self:flex-start;width:auto;min-width:180px;height:40px;margin-top:2px!important;padding:0 16px!important;border-radius:11px!important;background:var(--lib-violet)!important;color:#fff!important;box-shadow:none!important;font-size:12px!important}
.feed-card-featured .feed-cta:hover{background:var(--lib-violet-strong)!important}
.feed-focus{top:14px!important;left:14px!important}.feed-live-pill,.feed-replay-pill{top:14px!important;right:14px!important}

.feed-queue{display:flex;flex-direction:column;min-width:0;padding:12px;border:1px solid var(--lib-line);border-radius:16px;background:#faf9fd}
.feed-queue-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:1px 2px 10px}.feed-queue-head b{display:block;font-size:13px;color:var(--lib-text)}.feed-queue-head small{display:block;margin-top:2px;font-size:10px;color:#9a94a5}
.feed-nav-buttons{display:flex;gap:5px}.feed-nav-buttons button{width:30px;height:30px;border-radius:9px;border:1px solid #e5e1ee;background:#fff;color:#6f687c;font-size:19px;line-height:1}.feed-nav-buttons button:hover{color:var(--lib-violet);border-color:#cec5f8}
.feed-queue-list{display:flex;flex-direction:column;gap:6px}.feed-queue-item{display:grid;grid-template-columns:27px minmax(0,1fr) 16px;gap:8px;align-items:center;width:100%;min-height:52px;padding:8px 9px;border:1px solid transparent;border-radius:11px;background:transparent;text-align:left;color:inherit}.feed-queue-item:hover{background:#fff;border-color:#e8e4f1}.feed-queue-item>span{font-size:10px;font-weight:900;color:#aaa4b4}.feed-queue-item div{min-width:0}.feed-queue-item b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;color:#494255}.feed-queue-item small{display:block;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9.5px;color:#9791a1}.feed-queue-item>.ui-icon{width:14px;height:14px;color:#b1aabb}
.feed-rail{padding:0 2px!important;font-size:10.5px!important;color:#9b95a7!important}

/* =====================================================================
 * 棋谱主工作区：二级导航 + 文本列表 + 单盘检查器。
 * ===================================================================== */
.library-body{
  display:grid!important;
  grid-template-columns:172px minmax(360px,1fr) minmax(340px,430px)!important;
  gap:14px!important;align-items:start;min-width:0;
}
.library-side{position:sticky!important;top:14px!important;display:block!important;padding:10px!important;border-radius:16px!important;max-height:calc(100vh - 120px)!important;overflow:auto!important}
.library-tabs{display:flex!important;flex-direction:column!important;gap:5px!important;overflow:visible!important;padding:0!important}
.lib-tab-group{display:block!important;width:100%!important}.lib-tab{display:flex!important;width:100%!important;min-height:40px!important;padding:0 11px!important;border-radius:11px!important;font-size:12px!important;color:#70697e!important;background:transparent!important}
.lib-tab:hover{background:#f7f5ff!important;color:var(--lib-violet)!important}.lib-tab-group.active>.lib-tab{background:var(--lib-violet-soft)!important;color:var(--lib-violet-strong)!important}
.lib-subtabs{display:none!important;flex-direction:column!important;gap:2px!important;padding:4px 0 5px 12px!important}.lib-tab-group.active.has-sub .lib-subtabs{display:flex!important}.lib-subtab{width:100%;height:32px;padding:0 10px!important;text-align:left;border-radius:9px!important;background:transparent!important;color:#8a8396!important;font-size:11px!important}.lib-subtab:hover{background:#f8f6ff!important;color:var(--lib-violet)!important}.lib-subtab.active{background:#f0ecff!important;color:var(--lib-violet)!important;font-weight:800}

.library-panel{padding:15px!important;border-radius:16px!important;min-width:0}.library-panel-head{padding:0 2px 10px!important;border-bottom:1px solid #f0eef4}.library-panel-head b{font-size:16px!important;color:var(--lib-text)!important}.library-panel-head small{font-size:10.5px!important;color:#9892a2!important}
.library-list{display:block!important;min-width:0!important}.lib-gtype-row{display:flex;gap:6px;padding:10px 0 4px;overflow-x:auto}.lib-gtype-row button{height:31px;padding:0 10px;border:1px solid #e8e5ee;border-radius:9px;background:#faf9fc;color:#746d80;font-size:10.5px;font-weight:800;white-space:nowrap}.lib-gtype-row button.active{background:var(--lib-violet);border-color:var(--lib-violet);color:#fff}
.lib-card-grid{display:flex!important;flex-direction:column!important;gap:6px!important;padding-top:8px!important}
.lib-item-card{
  position:relative!important;display:grid!important;grid-template-columns:34px minmax(0,1fr) 18px!important;
  align-items:center!important;width:100%!important;min-height:82px!important;padding:8px 12px 8px 9px!important;
  border:1px solid transparent!important;border-radius:12px!important;background:#fff!important;
  text-align:left!important;overflow:visible!important;box-shadow:none!important;transform:none!important;
}
.lib-item-card:hover{background:#faf9fd!important;border-color:#ece8f3!important;box-shadow:none!important;transform:none!important}.lib-item-card.selected{background:#f4f1ff!important;border-color:#d8d0fb!important;box-shadow:inset 3px 0 0 var(--lib-violet)!important}.lib-item-card.selected::before{display:none!important}
.lib-row-no{align-self:start;padding-top:5px;font-size:10px;font-weight:900;color:#aaa4b4;font-variant-numeric:tabular-nums}.lib-row-chevron{display:grid;place-items:center;color:#b0a9ba}.lib-row-chevron .ui-icon{width:14px;height:14px}
.lib-item-info{padding:0!important;gap:6px!important;min-width:0!important}.lib-item-header{align-items:center!important}.lib-item-match{font-size:13px!important;line-height:1.35!important;color:#342e42!important;font-weight:850!important;white-space:nowrap!important}.lib-item-status{font-size:9.5px!important;padding:3px 7px!important;border-radius:999px!important;background:#f2f0f6!important;color:#7d7687!important}.lib-item-status.ended.gold{background:#ece8ff!important;color:#6b50df!important}.lib-item-status.live{background:#fff0ef!important;color:#d75656!important}.lib-item-players{font-size:11px!important;color:#6d6679!important}.lib-item-footer{font-size:10px!important;color:#9c96a6!important}.lib-item-result{font-size:10px!important;color:#5e5769!important}
.lib-item-del{top:7px!important;right:28px!important;bottom:auto!important;display:none!important;padding:4px 7px!important;border-radius:7px!important;background:#fff!important;border:1px solid #f0dede!important;color:#bd5c5c!important;font-size:9px!important;box-shadow:none!important}.lib-item-card:hover .lib-item-del{display:inline-flex!important;opacity:1!important}
.lib-more{margin:12px auto 0!important;height:34px;padding:0 18px!important;border-radius:10px!important;background:#f0ecff!important;border:0!important;color:#684bdd!important;font-size:11px!important}

.library-inspector{position:sticky;top:14px;padding:15px!important;border-radius:16px!important;min-width:0;overflow:hidden}
.lib-inspector-empty{min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;padding:26px;color:#8d8797}.lib-inspector-empty>span{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:var(--lib-violet-soft);color:var(--lib-violet)}.lib-inspector-empty .ui-icon{width:24px;height:24px}.lib-inspector-empty b{font-size:14px;color:var(--lib-text)}.lib-inspector-empty small{max-width:250px;font-size:11px;line-height:1.65}
.lib-inspector-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}.lib-inspector-head>div{min-width:0}.lib-inspector-head small{display:block;font-size:10px;font-weight:800;color:var(--lib-violet);letter-spacing:.04em}.lib-inspector-head b{display:block;margin-top:4px;font-size:14px;line-height:1.4;color:var(--lib-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lib-inspector-head>span{flex:none;padding:4px 7px;border-radius:8px;background:#f4f2f8;color:#7f7889;font-size:9.5px;font-weight:800}
.lib-inspector-board-shell{width:100%;max-width:400px;aspect-ratio:1/1;margin:0 auto;padding:9px;border-radius:15px;background:linear-gradient(145deg,#c59452,#a66e34);box-shadow:inset 0 0 0 1px rgba(92,58,25,.18)}
.lib-inspector-board{position:relative;width:100%!important;height:100%!important;aspect-ratio:1/1!important;overflow:hidden}
.lib-inspector-loading{position:absolute;inset:0;display:grid;place-items:center;padding:24px;text-align:center;color:rgba(255,255,255,.9);font-size:11px;font-weight:800;background:rgba(89,57,27,.20)}
.lib-inspector-players{display:grid;grid-template-columns:1fr 30px 1fr;align-items:center;gap:5px;margin-top:12px;padding:10px 10px;border-radius:11px;background:#faf9fc}.lib-inspector-players span{display:flex;align-items:center;gap:5px;min-width:0}.lib-inspector-players span:last-child{justify-content:flex-end}.lib-inspector-players b{font-size:11.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lib-inspector-players em{text-align:center;font-style:normal;font-size:9px;font-weight:900;color:#aaa4b4}.lib-inspector-players .stone{width:9px;height:9px;border-radius:50%;flex:none}.lib-inspector-players .stone.b{background:#222}.lib-inspector-players .stone.w{background:#fff;border:1px solid #cfcbd3}
.lib-inspector-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:8px}.lib-inspector-meta span{padding:8px;border-radius:10px;background:#f7f6fa;text-align:center}.lib-inspector-meta small{display:block;font-size:8.5px;color:#9a94a4}.lib-inspector-meta b{display:block;margin-top:2px;font-size:10.5px;color:#4d4658;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lib-inspector-note{margin-top:9px;padding:8px 9px;border-radius:9px;background:#f6f3ff;color:#756b92;font-size:9.5px;line-height:1.55}
.lib-inspector-open{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;height:40px;margin-top:10px;border:0;border-radius:11px;background:var(--lib-violet);color:#fff;font-size:11.5px;font-weight:850}.lib-inspector-open:hover{background:var(--lib-violet-strong)}.lib-inspector-open:disabled{background:#dedbe6;color:#aaa5b2;cursor:not-allowed}.lib-inspector-open .ui-icon{width:15px;height:15px}

/* 完整打谱仍是大工作区；棋盘尺寸永远为正方形。 */
.lib-preview-board-wrap{width:min(62vh,560px)!important;max-width:100%!important;aspect-ratio:1/1!important;padding:10px!important;background:linear-gradient(145deg,#c59452,#a66e34)!important}
#libPreviewBoard{width:100%!important;height:100%!important;aspect-ratio:1/1!important}

@media (max-width:1320px){
  .feed-focus-layout{grid-template-columns:minmax(0,1fr) 270px}
  .feed-card-featured .feed-content{grid-template-columns:minmax(270px,330px) minmax(0,1fr)}
  .library-body{grid-template-columns:158px minmax(330px,1fr) minmax(310px,370px)!important}
}
@media (max-width:1120px){
  .feed-focus-layout{grid-template-columns:1fr}.feed-queue{display:none}
  .library-body{grid-template-columns:1fr minmax(320px,390px)!important}.library-side{grid-column:1/-1;position:static!important;max-height:none!important}.library-tabs{flex-direction:row!important;overflow-x:auto!important}.lib-tab-group{width:auto!important;flex:0 0 auto!important}.lib-tab{width:auto!important}.lib-tab-group.active.has-sub .lib-subtabs{display:none!important}
}

/* 桌面工作台保持在一屏内：长列表在中栏滚动，不让整页被几十条棋谱拉成长网页。 */
@media (min-width:1121px){
  .library-body{min-height:620px}
  .library-side,.library-panel,.library-inspector{height:min(72vh,760px);max-height:min(72vh,760px)!important}
  .library-panel{display:flex!important;flex-direction:column!important;overflow:hidden!important}
  .library-panel-head{flex:none}
  .library-list{flex:1 1 auto;min-height:0;overflow:auto!important;padding-right:3px;scrollbar-gutter:stable}
  .library-list::-webkit-scrollbar{width:8px}
  .library-list::-webkit-scrollbar-thumb{background:#ddd8e8;border:2px solid #fff;border-radius:999px}
  .library-list::-webkit-scrollbar-track{background:transparent}
  .library-inspector{overflow:auto!important}
}

/* 旧版“仿棋盘封面/缩略图”不再用于棋谱列表，避免假棋盘和非正方形棋盘重新出现。 */
.library-page .lib-item-cover,
.library-page .lib-item-thumb{display:none!important;aspect-ratio:1/1!important}

:root{
  --pc-bg:#f6f7fb;
  --pc-surface:#fff;
  --pc-border:#e7e5ef;
  --pc-purple:#7257ee;
  --pc-purple-soft:#f0ecff;
  --pc-radius:18px;
  --pc-card-shadow:0 8px 24px rgba(55,43,96,.045);
}

body{background:var(--pc-bg)}
.main-col{scrollbar-gutter:stable}
.card{border-radius:var(--pc-radius);box-shadow:var(--pc-card-shadow)}

/* 页头重新回到“产品卡片”，不再像管理后台的横线标题。 */
.league-header, .library-header{
  min-height:68px!important;
  padding:11px 14px!important;
  background:#fff!important;
  border:1px solid var(--pc-border)!important;
  border-radius:16px!important;
  box-shadow:none!important;
}
.league-header-icon, .library-header-icon{
  width:40px!important;height:40px!important;border-radius:12px!important;
  background:var(--pc-purple-soft)!important;color:var(--pc-purple)!important;
}
.league-header-copy h2, .library-header-copy h2{font-size:19px!important}
.league-header-copy p, .library-header-copy p{font-size:11px!important}

/* 1100~1320 包括多数 iPad Pro / 小型笔记本横屏：保留文字导航，不退化为难识别的纯图标。 */
@media (min-width:1100px) and (max-width:1320px){
  :root{--pc-nav-w:144px;--pc-gutter:16px}
  .side-nav{padding:14px 9px;gap:5px}
  .side-nav::before{display:block;padding:0 9px 8px;font-size:9px;letter-spacing:.04em}
  .side-nav-btn{justify-content:flex-start;min-height:42px;padding:9px 10px;gap:9px;font-size:12px}
  .side-nav-btn span{display:inline!important;white-space:nowrap}
  .side-nav-btn .ui-icon{width:18px;height:18px}
  #view:has(.view-page[data-view="home"].active){grid-template-columns:var(--pc-nav-w) minmax(0,1fr) 250px}
}

/* =====================================================================
 * 棋谱库：精彩瞬间优先 + 工作台。页面只保留少量纵向区块；长内容在卡片内部滚动。
 * ===================================================================== */
#view:has(.view-page[data-view="library"].active) .main-col{padding-bottom:22px}
.library-page{gap:12px!important}
.library-header{flex:none!important}
.library-header-actions{gap:7px!important}
.library-header-actions button{height:34px!important;border:1px solid var(--pc-border)!important}

/* 第一视觉入口。只存在一个真实棋盘；队列是纯文本，因此性能稳定。 */
.library-page .feed-zone{
  order:2;
  height:clamp(232px,30vh,306px);
  min-height:232px;
  padding:13px 14px!important;
  border:1px solid var(--pc-border)!important;
  border-radius:18px!important;
  background:#fff!important;
  overflow:hidden;
}
.feed-zone-head{min-height:34px!important}
.feed-zone-title{gap:10px!important}
.feed-zone-icon{width:34px!important;height:34px!important}
.feed-zone-title h3{font-size:15px!important}
.feed-zone-title small{font-size:10.5px!important}
.feed-category-bar{flex:none;white-space:nowrap;overflow-x:auto!important;scrollbar-width:none}
.feed-category-bar::-webkit-scrollbar{display:none}
.feed-category-bar button{height:30px!important;padding:0 12px!important;font-size:11px!important}
.feed-deck{flex:1 1 auto!important;min-height:0!important;overflow:hidden!important}
.feed-focus-layout{height:100%;grid-template-columns:minmax(0,1fr) 250px!important;gap:11px!important}
.feed-card-featured{height:100%!important;min-height:0!important}
.feed-card-featured .feed-content{
  height:100%!important;min-height:0!important;
  grid-template-columns:auto minmax(0,1fr)!important;
}
.feed-card-featured .feed-board-frame{
  width:auto!important;height:100%!important;max-height:100%!important;aspect-ratio:1/1!important;
  padding:8px!important;border-right:1px solid rgba(100,68,35,.12)
}
.feed-card-featured .feed-board{width:100%!important;height:100%!important;aspect-ratio:1/1!important}
.feed-card-featured .feed-info{padding:14px 16px 13px!important;gap:5px!important;overflow:hidden}
.feed-card-featured .feed-info h2{font-size:16px!important;line-height:1.35!important;-webkit-line-clamp:2!important}
.feed-card-featured .feed-players{font-size:11.5px!important}
.feed-card-featured .feed-event,.feed-card-featured .feed-fact{font-size:10.5px!important;line-height:1.45!important;-webkit-line-clamp:2!important}
.feed-card-featured .feed-cta{min-width:150px!important;height:34px!important;padding:0 13px!important;font-size:11px!important}
.feed-card-featured .feed-social button{height:28px!important;padding:0 8px!important}
.feed-queue{height:100%;padding:9px!important;border-radius:14px!important;overflow:hidden}
.feed-queue-head{padding-bottom:6px!important}.feed-queue-head small{display:none!important}
.feed-queue-list{min-height:0;overflow:auto;gap:3px!important}
.feed-queue-item{min-height:42px!important;padding:5px 7px!important;border-radius:9px!important}
.feed-queue-item b{font-size:10.5px!important}.feed-queue-item small{font-size:9px!important}
.feed-rail{display:none!important}

/* 工作台成为第二张主卡。三栏本身不再把整页拉长。 */
.library-body{
  order:3;
  height:clamp(430px,55vh,620px);
  min-height:430px!important;
  grid-template-columns:152px minmax(330px,1fr) minmax(300px,390px)!important;
  gap:10px!important;
  align-items:stretch!important;
}
.library-side,.library-panel,.library-inspector{
  position:relative!important;top:auto!important;
  height:100%!important;max-height:none!important;
  border-radius:16px!important;
  overflow:hidden!important;
}
.library-side{padding:9px!important;overflow:auto!important}
.library-panel{display:flex!important;flex-direction:column!important;padding:12px!important}
.library-panel-head{flex:none;padding:0 2px 8px!important}
.library-list{flex:1 1 auto;min-height:0;overflow:auto!important;padding-right:2px;scrollbar-width:thin}
.library-list::-webkit-scrollbar{width:7px}
.library-list::-webkit-scrollbar-thumb{background:#ddd8e8;border:2px solid #fff;border-radius:999px}
.library-card-grid,.lib-card-grid{gap:5px!important;padding-top:6px!important}
.lib-item-card{min-height:70px!important;padding:7px 9px!important;border:1px solid transparent!important;border-radius:12px!important}
.lib-item-card:hover{background:#faf9ff!important}
.lib-item-match{font-size:12px!important}
.lib-item-players{font-size:10.5px!important}.lib-item-footer{font-size:9.5px!important}
.library-inspector{padding:12px!important;overflow:auto!important}
.lib-inspector-board-shell{
  width:min(100%,330px)!important;max-width:330px!important;
  aspect-ratio:1/1!important;padding:8px!important;border-radius:14px!important;
}
.lib-inspector-board{width:100%!important;height:100%!important;aspect-ratio:1/1!important}
.lib-inspector-head{margin-bottom:8px!important}.lib-inspector-players{margin-top:8px!important;padding:8px!important}
.lib-inspector-meta{margin-top:6px!important}.lib-inspector-meta span{padding:6px!important}
.lib-inspector-note{margin-top:6px!important;padding:6px 8px!important}
.lib-inspector-open{height:36px!important;margin-top:7px!important}

/* 非推荐分类不显示精彩瞬间，工作台自动获得更高可用区域。 */
.library-page[data-library-mode]:not([data-library-mode="recommend"]) .library-body{height:clamp(520px,72vh,760px)}

/* =====================================================================
 * iPad / 1024 横屏：导航横向卡片；棋谱两栏工作区，分类变为横向 chip。
 * ===================================================================== */
@media (max-width:1099px){
  body{min-width:0!important}
  .web-view{overflow:auto!important}
  .side-nav{
    position:sticky!important;top:0!important;z-index:15!important;
    height:54px!important;min-height:54px!important;
    padding:6px 12px!important;gap:5px!important;
    background:rgba(255,255,255,.96)!important;backdrop-filter:blur(14px);
  }
  .side-nav-btn{height:40px!important;min-height:40px!important;padding:0 12px!important;border-radius:12px!important;font-size:12px!important;gap:7px!important}
  .side-nav-btn span{display:inline!important}.side-nav-btn .ui-icon{width:17px;height:17px}
  .main-col{padding:14px 14px 26px!important}
  .league-header, .library-header{min-height:62px!important;padding:9px 11px!important}

  .library-page{gap:10px!important}
  .library-page .feed-zone{height:226px;min-height:226px;padding:10px!important}
  .feed-focus-layout{grid-template-columns:1fr!important}.feed-queue{display:none!important}
  .feed-card-featured .feed-content{grid-template-columns:210px minmax(0,1fr)!important}
  .feed-card-featured .feed-info{padding:11px 13px!important}
  .feed-card-featured .feed-info h2{font-size:15px!important}
  .feed-feature-kicker{gap:4px!important}.feed-feature-kicker .feed-badge,.feed-feature-kicker .feed-secondary-badge{font-size:8.5px!important;padding:3px 6px!important}
  .feed-card-featured .feed-fact{display:none!important}

  .library-body{
    height:430px!important;min-height:430px!important;
    grid-template-columns:minmax(0,1fr) 300px!important;
    grid-template-rows:46px minmax(0,1fr)!important;
    gap:8px!important;
  }
  .library-side{grid-column:1/-1!important;grid-row:1!important;padding:5px 6px!important;overflow-x:auto!important;overflow-y:hidden!important}
  .library-tabs{height:100%;display:flex!important;flex-direction:row!important;align-items:center;gap:4px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none}
  .library-tabs::-webkit-scrollbar{display:none}
  .lib-tab-group{width:auto!important;flex:0 0 auto!important}.lib-tab{width:auto!important;min-height:34px!important;padding:0 10px!important;font-size:10.5px!important}
  .lib-tab-group.active.has-sub .lib-subtabs{display:none!important}
  .library-panel{grid-column:1!important;grid-row:2!important}
  .library-inspector{grid-column:2!important;grid-row:2!important}
  .lib-inspector-board-shell{width:min(100%,240px)!important;max-width:240px!important}
  .lib-inspector-note{display:none!important}

  /* 学习页：仍是卡片工作台，不退回一列长网页。 */
  
  
  .mode-card{min-height:88px!important;padding:11px!important}
  

  /* 联赛和成长页保持两栏卡片密度。 */
  .league-page{display:grid!important;grid-template-columns:minmax(0,1.25fr) 300px!important;grid-template-areas:"league-head league-head" "league-progress league-progress" "league-week league-rank"!important;gap:10px!important}
  .league-page>.league-header{grid-area:league-head!important}.league-page>.league-progress{grid-area:league-progress!important}.league-page>.league-week{grid-area:league-week!important}.league-page>.league-lower{grid-area:league-rank!important;position:static!important}
  .mine-page{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .mine-page>.mine-card{grid-column:auto!important;grid-row:auto!important}.mine-page>.mine-card:first-child{grid-column:1/-1!important}

  /* iPad 横屏下棋仍使用棋盘 + 控制区，而不是退成纵向长页。 */
  #view:has(.view-page[data-view="train"].active) .main-col{padding:12px 14px 20px!important}
  .train-play{
    grid-template-columns:minmax(0,1fr) 280px!important;
    grid-template-areas:"train-head train-head" "train-board train-controls" "train-board train-status" "train-board train-panel"!important;
    gap:9px 12px!important;
  }
  .train-board-wrap{
    width:min(calc(100vh - 145px),calc(100vw - 330px))!important;
    max-width:620px!important;aspect-ratio:1/1!important;padding:9px!important;
  }
  .train-board{aspect-ratio:1/1!important}
}

/* 768~900 的小横屏才真正退成一列，但所有内容仍是卡片。 */
@media (max-width:899px){
  .library-page .feed-zone{height:auto;min-height:0}
  .feed-card-featured .feed-content{grid-template-columns:180px minmax(0,1fr)!important;min-height:190px!important}
  .library-body{height:auto!important;min-height:0!important;grid-template-columns:1fr!important;grid-template-rows:auto auto auto!important}
  .library-side,.library-panel,.library-inspector{grid-column:1!important;grid-row:auto!important;height:auto!important;max-height:none!important}
  .library-list{max-height:330px!important}
  .lib-inspector-board-shell{width:min(72vw,330px)!important;max-width:330px!important}
  .league-page, .mine-page{display:flex!important;flex-direction:column!important}
  .train-play{grid-template-columns:1fr!important;grid-template-areas:"train-head" "train-board" "train-controls" "train-status" "train-panel"!important}
  .train-board-wrap{width:min(74vh,86vw)!important}
}

/* 棋盘强约束：所有棋谱 / 对局主棋盘都不得被 flex/grid 拉伸成矩形。 */
.feed-board-frame,.feed-board,.lib-inspector-board-shell,.lib-inspector-board,.lib-preview-board-wrap,#libPreviewBoard,.train-board-wrap,.train-board{
  aspect-ratio:1/1!important;
}

/* ---------- 棋谱：一级模式切换 ---------- */
.library-page-v12{
  --v12-purple:#7557ed;--v12-purple-2:#6245df;--v12-soft:#f1edff;
  --v12-ink:#29243a;--v12-muted:#837d91;--v12-line:#e9e6f0;--v12-panel:#fff;
  width:min(100%,1320px)!important;max-width:1320px!important;margin:0 auto!important;
  display:flex!important;flex-direction:column!important;gap:10px!important;min-height:0;
}
.library-page-v12 .card{border:1px solid var(--v12-line)!important;background:#fff!important;box-shadow:0 4px 18px rgba(55,45,95,.035)!important}
.library-header-v12{min-height:68px;display:grid;grid-template-columns:minmax(220px,1fr) auto auto;align-items:center;gap:14px;padding:9px 14px!important;border-radius:18px!important}
.library-header-main-v12{display:flex;align-items:center;gap:11px;min-width:0}.library-header-icon-v12{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;color:var(--v12-purple);background:var(--v12-soft)}.library-header-icon-v12 .ui-icon{width:21px;height:21px}.library-header-main-v12 h2{margin:0;color:var(--v12-ink);font-size:20px;line-height:1.1}.library-header-main-v12 p{margin:4px 0 0;color:var(--v12-muted);font-size:10.5px}
.library-surface-switch{display:flex;align-items:center;gap:4px;padding:4px;border:1px solid #e8e3fa;border-radius:14px;background:#f8f6ff}.library-surface-switch button{height:34px;display:flex;align-items:center;gap:6px;padding:0 13px;border:0;border-radius:10px;background:transparent;color:#756e82;font-size:11px;font-weight:850}.library-surface-switch button.active{background:#fff;color:var(--v12-purple-2);box-shadow:0 2px 8px rgba(78,59,145,.09)}.library-surface-switch .ui-icon{width:15px;height:15px}
.library-header-actions-v12{display:flex;gap:6px}.library-header-actions-v12 button{height:36px;display:flex;align-items:center;gap:5px;padding:0 10px;border:1px solid #e8e5ef;border-radius:11px;background:#fff;color:#70697d;font-size:10.5px;font-weight:750}.library-header-actions-v12 button:hover{background:#f8f6ff;color:var(--v12-purple)}.library-header-actions-v12 .ui-icon{width:14px;height:14px}
.library-header-v12>.library-search{grid-column:1/-1;margin-top:-2px;display:flex;gap:7px}.library-header-v12>.library-search[hidden]{display:none!important}.library-header-v12>.library-search .field{height:36px}.library-header-v12>.library-search .btn-primary{height:36px}
.library-surface-pane[hidden]{display:none!important}

/* ---------- 精彩瞬间：只看一盘，作为发现入口 ---------- */
.library-discovery{min-height:0}
.library-page-v12 .feed-zone{height:min(690px,calc(100dvh - 178px))!important;min-height:510px!important;display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto!important;gap:9px!important;padding:14px!important;border-radius:20px!important;overflow:hidden!important}
.feed-zone-head-v12{display:flex;align-items:center;justify-content:space-between;gap:12px}.feed-zone-head-v12>div>small{display:block;color:#887de1;font-size:8px;font-weight:900;letter-spacing:.14em}.feed-zone-head-v12 h3{margin:2px 0 0;color:var(--v12-ink);font-size:17px}.feed-zone-head-v12 p{margin:3px 0 0;color:var(--v12-muted);font-size:10px}.feed-zone-head-v12 .feed-refresh{height:33px;padding:0 11px;border:1px solid var(--v12-line);border-radius:10px;background:#fff;color:#70697c;font-size:10px}
.library-page-v12 .feed-category-bar{display:flex!important;gap:6px!important;padding:0!important;background:transparent!important;border:0!important;overflow-x:auto!important}.library-page-v12 .feed-category-bar button{height:32px!important;padding:0 13px!important;border:1px solid #e9e6f0!important;border-radius:999px!important;background:#fff!important;color:#746d80!important;font-size:10.5px!important;font-weight:800!important;white-space:nowrap}.library-page-v12 .feed-category-bar button.active{border-color:#d9d0ff!important;background:var(--v12-soft)!important;color:var(--v12-purple-2)!important}
.library-page-v12 .feed-deck{height:100%!important;min-height:0!important;overflow:hidden!important;padding:0!important}
.library-page-v12 .feed-focus-layout{height:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr) 280px!important;gap:10px!important;min-height:0!important}
.library-page-v12 .feed-card-featured{height:100%!important;min-height:0!important;border:1px solid #ebe8f0!important;border-radius:18px!important;background:#fff!important;overflow:hidden!important;box-shadow:none!important}
.library-page-v12 .feed-card-featured .feed-content{height:100%!important;display:grid!important;grid-template-columns:minmax(310px,430px) minmax(260px,1fr)!important;align-items:stretch!important;min-height:0!important}
.library-page-v12 .feed-card-featured .feed-board-frame{width:auto!important;height:auto!important;max-height:none!important;aspect-ratio:1/1!important;align-self:center!important;margin:12px!important;padding:8px!important;border:0!important;border-radius:17px!important;overflow:hidden!important}
.library-page-v12 .feed-card-featured .feed-board{width:100%!important;height:100%!important;aspect-ratio:1/1!important;border-radius:11px!important;overflow:hidden!important}
.library-page-v12 .feed-card-featured .feed-info{min-width:0!important;padding:22px 22px 18px 10px!important;display:flex!important;flex-direction:column!important;gap:8px!important;overflow:hidden!important}.library-page-v12 .feed-card-featured .feed-info h2{font-size:20px!important;line-height:1.35!important;max-width:620px!important}.library-page-v12 .feed-card-featured .feed-players{font-size:12.5px!important}.library-page-v12 .feed-card-featured .feed-event,.library-page-v12 .feed-card-featured .feed-fact{font-size:11px!important;line-height:1.55!important}.library-page-v12 .feed-card-featured .feed-feature-spacer{flex:1}.library-page-v12 .feed-card-featured .feed-cta{width:fit-content!important;min-width:170px!important;height:40px!important;border-radius:12px!important}
.library-page-v12 .feed-queue{height:100%!important;display:flex!important;flex-direction:column!important;min-height:0!important;padding:11px!important;border:1px solid #ebe8f0!important;border-radius:18px!important;background:#fbfafe!important;overflow:hidden!important}.library-page-v12 .feed-queue-head{flex:none}.library-page-v12 .feed-queue-list{flex:1;min-height:0;overflow:auto!important;padding-right:2px}.library-page-v12 .feed-queue-item{min-height:54px!important;border-radius:11px!important}.library-page-v12 .feed-rail{display:flex!important;min-height:20px!important}

/* ---------- 棋谱库：二级用途 + 三级分类 + 选中一盘 ---------- */
.library-workspace{height:min(720px,calc(100dvh - 178px));min-height:530px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;overflow:hidden}
.library-nav{padding:11px 12px!important;border-radius:18px!important;overflow:hidden}.library-nav-copy{display:none}.library-tabs-v12{display:grid;gap:8px}.lib-main-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.lib-main-tab{min-width:0;min-height:58px;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:8px;padding:7px 9px;border:1px solid #ece9f2;border-radius:14px;background:#fff;text-align:left;color:#5f596a}.lib-main-tab:hover{background:#faf9ff;border-color:#ded7fb}.lib-main-tab.active{background:#f3f0ff;border-color:#d8ceff;box-shadow:inset 0 -2px 0 rgba(108,78,224,.10)}.lib-main-tab>span:last-child{min-width:0}.lib-main-tab b{display:block;color:#393342;font-size:11.5px;white-space:nowrap}.lib-main-tab small{display:block;margin-top:2px;color:#9993a3;font-size:8.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lib-main-tab-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;color:#6f55e4;background:#efebff}.lib-main-tab-icon.blue{color:#4c78d9;background:#edf3ff}.lib-main-tab-icon.amber{color:#c98630;background:#fff2df}.lib-main-tab-icon.green{color:#3da66a;background:#eaf8ef}.lib-main-tab-icon.gold{color:#b98524;background:#fff5d9}.lib-main-tab-icon .ui-icon{width:17px;height:17px}
.lib-subtabs-v12{min-height:34px;display:flex;align-items:center;gap:6px;overflow-x:auto;padding-top:1px}.lib-subtabs-v12>span{flex:none;margin-right:2px;color:#aaa4b1;font-size:8.5px;font-weight:900;letter-spacing:.08em}.lib-subtab-v12{height:30px;flex:none;padding:0 11px;border:1px solid #ece9f1;border-radius:999px;background:#fff;color:#7d7686;font-size:10px;font-weight:800}.lib-subtab-v12.active{border-color:#d7ceff;background:#f0ecff;color:#6749df}
.library-work-grid{min-height:0;display:grid!important;grid-template-columns:minmax(430px,1.15fr) minmax(330px,.85fr)!important;gap:10px!important;height:auto!important}.library-work-grid>.library-panel,.library-work-grid>.library-inspector{position:static!important;height:100%!important;max-height:none!important;min-height:0!important;border-radius:18px!important;overflow:hidden!important}.library-work-grid>.library-panel{display:flex!important;flex-direction:column!important;padding:12px!important}.library-panel-head{flex:none;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important;padding:0 2px 9px!important;border-bottom:1px solid #f0eef4!important}.library-panel-head>div{display:grid;gap:2px}.library-panel-head b{font-size:15px!important}.library-panel-head small{font-size:9.5px!important}.library-list-hint{padding:4px 8px;border-radius:8px;background:#f5f2ff;color:#7869cf;font-size:8.5px;font-weight:800;white-space:nowrap}.library-list{flex:1!important;min-height:0!important;overflow:auto!important;padding-right:3px!important;scrollbar-width:thin}.library-list::-webkit-scrollbar{width:7px}.library-list::-webkit-scrollbar-thumb{background:#ded9e9;border:2px solid #fff;border-radius:99px}.lib-card-grid{gap:4px!important;padding-top:6px!important}.lib-item-card{min-height:67px!important;padding:6px 9px!important;border-radius:11px!important}.lib-item-match{font-size:11.5px!important}.lib-item-players{font-size:10px!important}.lib-item-footer{font-size:9px!important}.lib-gtype-row{position:sticky;top:0;z-index:2;padding:7px 0 5px!important;background:#fff}.lib-gtype-row button{height:29px!important;font-size:9.5px!important}
.library-work-grid>.library-inspector{padding:12px!important;display:flex!important;flex-direction:column!important;overflow:auto!important}.lib-inspector-head{flex:none;margin-bottom:7px!important}.lib-inspector-board-shell{flex:none;width:min(100%,360px)!important;max-width:360px!important;aspect-ratio:1/1!important;padding:8px!important}.lib-inspector-board{width:100%!important;height:100%!important;aspect-ratio:1/1!important}.lib-inspector-players{margin-top:7px!important;padding:7px!important}.lib-inspector-meta{margin-top:5px!important}.lib-inspector-meta span{padding:6px!important}.lib-inspector-note{margin-top:6px!important;padding:6px 8px!important}.lib-inspector-open{height:36px!important;margin-top:7px!important}.lib-inspector-empty{min-height:100%!important}

/* ---------- 学习：完全沿用 APP 今日训练语义，桌面只改布局 ---------- */

.stp-bags{display:flex;align-items:center;gap:1px}.stp-bag{width:27px;height:27px;border-radius:50%;overflow:hidden}.stp-bag img{width:100%;height:100%;object-fit:contain}.stp-bag.close{opacity:.48;filter:grayscale(.45)}


.plan-adjust{height:31px;display:flex;align-items:center;gap:3px;padding:0 8px;border:0;border-radius:10px;background:#f6f3ff;color:#6653da;font-size:8.5px;font-weight:850}.plan-adjust .ui-icon{width:12px;height:12px}.target-done-mark{display:none;width:24px;height:24px;place-items:center;border-radius:50%;background:#52c774;color:#fff}.target-done-mark.show{display:grid}.target-done-mark .ui-icon{width:13px;height:13px}.study-start-button{position:relative;z-index:1;width:100%;min-height:54px;margin-top:auto;display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;align-items:center;justify-content:center;column-gap:7px;padding:7px 14px;border:0;border-radius:18px;background:linear-gradient(105deg,#a458f0,#6549e8);color:#fff;box-shadow:0 6px 0 rgba(82,59,180,.14)}.study-start-button>span{grid-row:1/3;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#fff;color:#6c4fe1}.study-start-button .ui-icon{width:15px;height:15px}.study-start-button b{align-self:end;font-size:14px}.study-start-button small{align-self:start;font-size:7.5px;color:rgba(255,255,255,.8)}
.smart-training-card{display:flex;flex-direction:column;gap:11px}

/* APP 调整面板业务，桌面使用有限高度弹层。 */
.study-mode-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.study-mode-choice{min-width:0;min-height:110px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:10px;border:1px solid #ebe8f0;border-radius:15px;background:#fff;text-align:left}.study-mode-choice.active{border-color:#d4c9ff;background:#f2eeff}.study-mode-choice>span{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:#f0edff;color:#6d56df}.study-mode-choice>span .ui-icon{width:17px;height:17px}.study-mode-choice b{display:block;font-size:10.5px;color:#3c3546}.study-mode-choice small{display:block;margin-top:2px;font-size:8px;line-height:1.4;color:#928b9b}.study-mode-choice>em{margin-top:auto;color:#4ebb74}.study-mode-choice>em .ui-icon{width:15px;height:15px}.study-inline-options{display:flex;align-items:center;gap:6px;margin-top:10px;padding:9px;border-radius:13px;background:#faf9fc}.study-inline-options[hidden]{display:none!important}.study-inline-options button{height:32px;padding:0 13px;border:1px solid #e6e2eb;border-radius:10px;background:#fff;color:#756e80;font-size:9.5px;font-weight:800}.study-inline-options button.active{border-color:#d2c8ff;background:#ede8ff;color:#6248dc}

/* ---------- iPad 横屏 ---------- */
@media (max-width:1180px){
  .library-header-v12{grid-template-columns:minmax(190px,1fr) auto}.library-header-actions-v12{display:none}.library-page-v12 .feed-focus-layout{grid-template-columns:1fr!important}.library-page-v12 .feed-queue{display:none!important}.library-page-v12 .feed-card-featured .feed-content{grid-template-columns:minmax(260px,340px) minmax(0,1fr)!important}.library-page-v12 .feed-zone{height:min(620px,calc(100dvh - 170px))!important;min-height:480px!important}
  .lib-main-tabs{grid-template-columns:repeat(5,150px);overflow-x:auto;scrollbar-width:none}.lib-main-tabs::-webkit-scrollbar{display:none}.library-work-grid{grid-template-columns:minmax(350px,1fr) 300px!important}.lib-inspector-board-shell{width:min(100%,250px)!important;max-width:250px!important}.lib-inspector-note{display:none!important}.library-workspace{height:min(650px,calc(100dvh - 170px));min-height:500px}
  .smart-training-card{grid-area:smart}
}
@media (max-width:930px){
  .library-header-v12{grid-template-columns:1fr}.library-surface-switch{justify-self:start}.library-page-v12 .feed-card-featured .feed-content{grid-template-columns:240px minmax(0,1fr)!important}.library-workspace{height:auto;min-height:0;overflow:visible}.library-work-grid{grid-template-columns:1fr!important}.library-work-grid>.library-panel{height:360px!important}.library-work-grid>.library-inspector{height:auto!important}.lib-inspector-board-shell{width:min(70vw,330px)!important;max-width:330px!important}
  .study-mode-options{grid-template-columns:repeat(2,minmax(0,1fr))}.study-mode-choice{min-height:90px}
}

/* 所有棋谱/对局棋盘都必须保持正方形。 */
.library-page-v12 .feed-board-frame,.library-page-v12 .feed-board,.library-page-v12 .lib-inspector-board-shell,.library-page-v12 .lib-inspector-board,.lib-preview-board-wrap,#libPreviewBoard,.train-board-wrap,.train-board{aspect-ratio:1/1!important}

.library-page-v13{
  --lib-brand:#7557ed;--lib-brand-strong:#6245df;--lib-soft:#f2efff;
  --lib-bg:#f7f7fb;--lib-card:#fff;--lib-ink:#29243a;--lib-muted:#878092;--lib-line:#e8e5ee;
  width:min(100%,1360px)!important;max-width:1360px!important;margin:0 auto!important;
  min-height:0!important;display:block!important;
}
.library-page-v13 .card{background:#fff!important;border:1px solid var(--lib-line)!important;box-shadow:0 5px 20px rgba(61,48,104,.035)!important}
.library-screen[hidden]{display:none!important}
.library-screen{min-height:0}

/* ---------- 第一层：Feed 首页 ---------- */
.library-feed-screen{height:min(760px,calc(100dvh - 112px));min-height:560px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px}
.library-feed-head{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:18px;padding:10px 13px!important;border-radius:18px!important}
.library-feed-brand{display:flex;align-items:center;gap:10px;min-width:184px}.library-feed-brand>span{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:var(--lib-soft);color:var(--lib-brand)}.library-feed-brand>span .ui-icon{width:20px;height:20px}.library-feed-brand h2{margin:0;color:var(--lib-ink);font-size:20px}.library-feed-brand p{margin:3px 0 0;color:var(--lib-muted);font-size:10px;white-space:nowrap}
.feed-category-bar-v13{min-width:0;display:grid!important;grid-template-columns:auto minmax(420px,1fr) 38px 38px 38px!important;align-items:center!important;gap:6px!important;padding:0!important;border:0!important;background:transparent!important}
.feed-library-entry{height:38px;display:flex;align-items:center;gap:7px;padding:0 12px;border:1px solid #ddd7fa;border-radius:12px;background:var(--lib-soft);color:var(--lib-brand-strong);font-size:11px;font-weight:850;white-space:nowrap}.feed-library-entry .ui-icon{width:16px;height:16px}
.library-page-v13 .feed-category-tabs{height:38px!important;display:grid!important;grid-template-columns:repeat(5,minmax(62px,1fr))!important;gap:4px!important;padding:4px!important;border:1px solid #ebe7f4!important;border-radius:13px!important;background:#f8f7fb!important;overflow:visible!important}
.library-page-v13 .feed-category-tabs button{min-height:30px!important;height:30px!important;padding:0 8px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#777080!important;font-size:11px!important;font-weight:800!important}.library-page-v13 .feed-category-tabs button.active{background:#fff!important;color:var(--lib-brand-strong)!important;box-shadow:0 2px 8px rgba(78,60,139,.08)!important}
.feed-edge{width:38px;height:38px;display:grid;place-items:center;border:1px solid #e8e5ee;border-radius:11px;background:#fff;color:#777080}.feed-edge:hover{background:#f8f6ff;color:var(--lib-brand)}.feed-edge .ui-icon{width:16px;height:16px}
.feed-zone-v13{min-height:0!important;height:auto!important;display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;gap:7px!important;padding:12px!important;border-radius:20px!important;overflow:hidden!important}
.library-page-v13 .feed-deck{height:100%!important;min-height:0!important;overflow:hidden!important;padding:0!important}.library-page-v13 .feed-focus-layout{height:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(240px,290px)!important;gap:10px!important;min-height:0!important}
.library-page-v13 .feed-card-featured{height:100%!important;min-height:0!important;border:1px solid #ebe8f0!important;border-radius:18px!important;overflow:hidden!important;box-shadow:none!important}
.library-page-v13 .feed-card-featured .feed-content{height:100%!important;display:grid!important;grid-template-columns:minmax(300px,440px) minmax(250px,1fr)!important;align-items:stretch!important;min-height:0!important}.library-page-v13 .feed-card-featured .feed-board-frame{width:auto!important;height:auto!important;aspect-ratio:1/1!important;align-self:center!important;margin:12px!important;padding:8px!important;border:0!important;border-radius:17px!important;overflow:hidden!important}.library-page-v13 .feed-card-featured .feed-board{width:100%!important;height:100%!important;aspect-ratio:1/1!important;border-radius:11px!important;overflow:hidden!important}.library-page-v13 .feed-card-featured .feed-info{padding:20px 21px 17px 8px!important;display:flex!important;flex-direction:column!important;gap:7px!important;overflow:hidden!important}.library-page-v13 .feed-card-featured .feed-info h2{font-size:20px!important;line-height:1.34!important}.library-page-v13 .feed-card-featured .feed-feature-spacer{flex:1}.library-page-v13 .feed-queue{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;padding:10px!important;border:1px solid #ebe8f0!important;border-radius:18px!important;background:#fbfafe!important;overflow:hidden!important}.library-page-v13 .feed-queue-list{flex:1;min-height:0;overflow:auto!important}.library-page-v13 .feed-queue-item{min-height:56px!important;border-radius:11px!important}.library-page-v13 .feed-rail{min-height:20px!important}

/* ---------- 第二层：棋谱库过渡 Hub ---------- */
.library-hub{height:min(760px,calc(100dvh - 112px));min-height:560px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;overflow:hidden}
.library-inner-head{min-height:68px;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 12px!important;border-radius:18px!important}.library-inner-head>div>small{display:block;color:#8c7de2;font-size:8px;font-weight:900;letter-spacing:.14em}.library-inner-head h2{margin:1px 0 0;color:var(--lib-ink);font-size:19px}.library-inner-head p{margin:2px 0 0;color:var(--lib-muted);font-size:10px}.library-back{width:38px;height:38px;display:grid;place-items:center;border:1px solid #e7e4ed;border-radius:11px;background:#fff;color:#6f687b}.library-back .ui-icon{width:16px;height:16px}.library-refresh{height:36px;display:flex;align-items:center;gap:6px;padding:0 11px;border:1px solid #e7e4ed;border-radius:11px;background:#fff;color:#6f687b;font-size:10px;font-weight:800}.library-refresh .ui-icon{width:14px;height:14px}
.library-hub-content{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;overflow:hidden}
.library-hub-menu{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;padding:10px!important;border-radius:18px!important}.library-hub-menu button{min-width:0;height:74px;display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:8px;padding:9px;border:1px solid #eeebf3;border-radius:13px;background:#fff;text-align:left}.library-hub-menu button:hover{background:#f9f8ff;border-color:#ded8f8;transform:translateY(-1px)}.library-hub-menu img{width:34px;height:34px;object-fit:contain}.library-hub-menu span{min-width:0}.library-hub-menu b{display:block;color:#3a3445;font-size:11.5px;white-space:nowrap}.library-hub-menu small{display:block;margin-top:2px;color:#9a94a2;font-size:8.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.library-hub-common{min-height:0;display:grid;grid-template-columns:1fr 1fr 1.12fr;gap:10px;overflow:hidden}.library-hub-section{min-width:0;min-height:0;display:flex;flex-direction:column;padding:12px!important;border-radius:18px!important;overflow:hidden}.library-hub-section>header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:9px;border-bottom:1px solid #f0eef4}.library-hub-section>header small{display:block;color:#9b94aa;font-size:7.5px;font-weight:900;letter-spacing:.11em}.library-hub-section>header b{display:block;margin-top:1px;color:#34303e;font-size:14px}.library-hub-section.live>header b{color:#3c805e}.library-hub-section>header button{border:0;background:transparent;color:var(--lib-brand);font-size:9.5px;font-weight:800}.library-hub-list,.library-hub-match{flex:1;min-height:0;overflow:auto;padding-top:5px;scrollbar-width:thin}
.hub-preview-row{width:100%;min-height:62px;display:grid;grid-template-columns:34px minmax(0,1fr) auto 14px;align-items:center;gap:8px;padding:8px 4px;border:0;border-bottom:1px solid #f1eff5;background:transparent;text-align:left}.hub-preview-row:last-child{border-bottom:0}.hub-preview-row:hover{background:#faf9ff}.hub-preview-stones{position:relative;width:30px;height:30px}.hub-preview-stones .stone{position:absolute;width:18px;height:18px}.hub-preview-stones .stone.b{left:1px;top:2px}.hub-preview-stones .stone.w{right:0;bottom:1px}.hub-preview-row>span:nth-child(2){min-width:0}.hub-preview-row b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#3c3747;font-size:10.5px}.hub-preview-row small{display:block;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#96909e;font-size:8.5px}.hub-preview-row small em{font-style:normal;color:#bbb5c2}.hub-preview-row strong{max-width:66px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#776d87;font-size:8.5px}.hub-preview-row>.ui-icon{width:12px;height:12px;color:#aaa3b3}.hub-empty{height:100%;min-height:90px;display:grid;place-items:center;color:#aaa3b3;font-size:10px;text-align:center}

/* ---------- 第三层：独立模块 ---------- */
.library-browser{height:min(760px,calc(100dvh - 112px));min-height:560px;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:9px;overflow:hidden}.library-browser>.library-inner-head{grid-template-columns:40px minmax(0,1fr) auto}.library-search-v13{grid-column:1/-1;display:flex;gap:7px;padding:7px 0 0 50px}.library-search-v13[hidden]{display:none!important}.library-search-v13 .field{height:36px}.library-search-v13 .btn-primary{height:36px;min-width:76px}
.library-context-nav{min-height:36px;display:flex;align-items:center;gap:8px;padding:5px 9px;border:1px solid #e9e6ef;border-radius:12px;background:#fff;color:#8b8494;font-size:9.5px}.library-context-nav[hidden]{display:none!important}.library-context-nav button{height:28px;display:flex;align-items:center;gap:5px;padding:0 9px;border:0;border-radius:8px;background:#f2efff;color:#6b50df;font-size:9.5px;font-weight:800}.library-context-nav button .ui-icon{width:13px;height:13px}
.library-browser-body{min-height:0;display:grid;grid-template-columns:minmax(430px,1.1fr) minmax(340px,.9fr);gap:10px;overflow:hidden}.library-browser-body>.library-panel,.library-browser-body>.library-inspector{position:static!important;height:100%!important;max-height:none!important;min-height:0!important;border-radius:18px!important;overflow:hidden!important}.library-browser-body>.library-panel{display:flex!important;flex-direction:column!important;padding:12px!important}.library-browser-body .library-panel-head{flex:none}.library-browser-body .library-list{flex:1!important;min-height:0!important;overflow:auto!important;padding-right:3px!important;scrollbar-width:thin}.library-browser-body .lib-card-grid{display:grid!important;grid-template-columns:1fr!important;gap:5px!important}.library-browser-body .lib-item-card{min-height:76px!important;border-radius:12px!important}.library-browser-body .library-inspector{padding:12px!important;display:flex!important;flex-direction:column!important}.library-browser-body .lib-inspector-board-shell{width:min(100%,420px)!important;margin:8px auto!important;aspect-ratio:1/1!important}.library-browser-body .lib-inspector-board{width:100%!important;height:100%!important;aspect-ratio:1/1!important}
.library-browser-body.member-root{grid-template-columns:1fr}.library-browser-body.member-root>.library-inspector{display:none!important}.library-browser-body.member-root>.library-panel{padding:13px!important}.library-browser-body.member-root .library-list{overflow:auto!important}.library-browser-body.member-root .lib-member-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}.library-browser-body.member-root .lib-member-card{min-height:78px;display:grid;grid-template-columns:38px minmax(0,1fr) auto 14px;align-items:center;gap:8px;padding:10px;border:1px solid #ebe8f0;border-radius:13px;background:#fff;text-align:left}.library-browser-body.member-root .lib-member-card img{width:34px;height:34px}.library-browser-body.member-root .lib-member-card span{min-width:0}.library-browser-body.member-root .lib-member-card b{display:block;color:#373241;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-browser-body.member-root .lib-member-card small{display:block;margin-top:2px;color:#9a94a3;font-size:8.5px}.library-browser-body.member-root .lib-member-card em{font-style:normal;color:#7569d8;font-size:10px;font-weight:900}.library-browser-body.member-root .lib-member-card .ui-icon{width:12px;height:12px;color:#aaa3b3}
.library-browser-body .lib-gtype-row{flex:none;margin-bottom:5px;padding:2px 2px 7px!important;border-bottom:1px solid #f1eff5}.library-browser-body .lib-gtype-row button{height:30px!important;padding:0 9px!important;border-radius:9px!important}.library-browser-body .lib-gtype-row button.active{background:#f1edff!important;color:#684ee1!important}

/* iPad landscape: preserve cards and hierarchy; no long-page fallback. */
@media(max-width:1180px){
  .library-page-v13{max-width:100%!important}.library-feed-screen,.library-hub,.library-browser{height:calc(100dvh - 148px);min-height:510px}
  .library-feed-head{grid-template-columns:150px minmax(0,1fr);gap:10px}.library-feed-brand{min-width:0}.library-feed-brand p{display:none}.feed-category-bar-v13{grid-template-columns:38px minmax(330px,1fr) 34px 34px 34px!important;gap:4px!important}.feed-library-entry{width:38px;padding:0;justify-content:center}.feed-library-entry span{display:none}.feed-edge{width:34px;height:34px}.library-page-v13 .feed-category-tabs{height:34px!important}.library-page-v13 .feed-category-tabs button{height:26px!important;min-height:26px!important;font-size:10px!important}
  .library-page-v13 .feed-focus-layout{grid-template-columns:minmax(0,1fr) 235px!important}.library-page-v13 .feed-card-featured .feed-content{grid-template-columns:minmax(280px,52%) minmax(220px,1fr)!important}.library-page-v13 .feed-card-featured .feed-board-frame{margin:9px!important}.library-page-v13 .feed-card-featured .feed-info{padding:15px 14px 13px 5px!important}.library-page-v13 .feed-card-featured .feed-info h2{font-size:17px!important}
  .library-hub-menu{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.library-hub-menu button{height:58px;grid-template-columns:30px minmax(0,1fr);padding:6px 8px}.library-hub-menu img{width:27px;height:27px}.library-hub-common{grid-template-columns:1fr 1fr 1fr;gap:7px}.library-hub-section{padding:9px!important}.hub-preview-row{grid-template-columns:25px minmax(0,1fr) 12px}.hub-preview-stones{width:24px;height:24px}.hub-preview-stones .stone{width:15px;height:15px}.hub-preview-row strong{display:none}
  .library-browser-body{grid-template-columns:minmax(390px,1.08fr) minmax(300px,.92fr);gap:8px}.library-browser-body .lib-inspector-board-shell{width:min(100%,330px)!important}.library-browser-body.member-root .lib-member-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:980px){
  .library-feed-screen,.library-hub,.library-browser{height:auto;min-height:calc(100dvh - 150px)}
  .library-page-v13 .feed-focus-layout{grid-template-columns:minmax(0,1fr)!important}.library-page-v13 .feed-queue{display:none!important}
  .library-hub-common{grid-template-columns:1fr 1fr}.library-hub-section.match{grid-column:1/-1}.library-browser-body{grid-template-columns:minmax(0,1fr)}.library-browser-body>.library-inspector{display:none!important}
}

.library-feed-screen > .feed-category-bar-v13{
  min-height:64px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  padding:9px 12px;
}
.feed-category-actions{display:flex;align-items:center;gap:7px;justify-content:flex-end}
.library-feed-screen .feed-zone-v13{min-height:0;flex:1}
@media (max-width:1180px){
  .library-feed-screen > .feed-category-bar-v13{min-height:58px;gap:9px;padding:7px 9px}
  .feed-category-actions{gap:5px}
}

/* The study view should use the actual desktop canvas instead of a mobile-
   sized island centered inside it. */
#view:has(.view-page[data-view="study"].active) .main-col{
  padding:18px clamp(18px,2vw,34px) 24px;
}


/* Top utility bar: still compact, but visually matches the larger workspace. */










/* Desktop workspace: three purposeful cards, with today's plan as the visual
   center. Height follows the viewport so 900–1080p screens do not leave half
   of the page blank. */






/* Daily mentor team: larger portraits are useful content, not decorative
   whitespace. The team stays centered in its card. */









/* Today's training is the primary action card. */







.plan-adjust{height:34px!important;padding-inline:10px!important;font-size:9.5px!important}






.study-start-button{
  min-height:64px!important;
  margin-top:26px!important;
  border-radius:18px!important;
  column-gap:9px!important;
}
.study-start-button>span{width:36px!important;height:36px!important}
.study-start-button .ui-icon{width:18px!important;height:18px!important}
.study-start-button b{font-size:16px!important}
.study-start-button small{font-size:8.5px!important}


/* Smart training: give the mentor, recommendation, and two existing shortcuts
   enough visual weight to balance the page. No new functions are introduced. */
.smart-training-card{gap:16px!important}














/* Typical laptop / iPad Pro landscape: use a balanced 2×2 dashboard.
   The primary plan spans the first row, mentors and smart training share the
   second. This preserves card behavior and avoids long-page scrolling. */
@media (max-width:1499px){
  #view:has(.view-page[data-view="study"].active) .main-col{padding:14px 16px 20px!important}
  
  
  
  
  
  
  .smart-training-card{grid-area:smart!important;padding:14px!important}
  
  
  .study-start-button{min-height:54px!important;margin-top:auto!important}
  
  
  
  
  
  
  
}

/* 1024-ish landscape: keep the same 2×2 card logic and allow only the study
   canvas to scroll if the OS/browser chrome leaves less vertical space. */
@media (max-width:1099px){
  
  
}

@media (max-width:899px){
  
  
  .smart-training-card{order:3}
}

.library-page-v13{
  --lib-v15-max:1560px;
  --lib-v15-gap:14px;
  width:100%!important;
  max-width:var(--lib-v15-max)!important;
  margin:0 auto!important;
}

/* ========== Layer 1 · Feed discovery ========== */
.library-feed-screen{
  height:calc(100dvh - 114px)!important;
  min-height:620px!important;
  display:grid!important;
  grid-template-rows:72px minmax(0,1fr)!important;
  gap:var(--lib-v15-gap)!important;
  overflow:hidden!important;
}

.library-feed-screen>.feed-category-bar-v13{
  min-height:72px!important;
  display:grid!important;
  grid-template-columns:220px minmax(420px,560px) auto minmax(120px,1fr)!important;
  align-items:center!important;
  justify-content:stretch!important;
  gap:12px!important;
  padding:10px 12px!important;
  border-radius:20px!important;
  background:rgba(255,255,255,.97)!important;
}
.library-feed-identity{display:flex;align-items:center;gap:10px;min-width:0;padding-left:2px}
.library-feed-mark{width:42px;height:42px;display:grid;place-items:center;flex:none;border-radius:13px;background:#f0ecff;color:#7155eb}
.library-feed-mark .ui-icon{width:21px;height:21px}
.library-feed-identity>span:last-child{min-width:0}
.library-feed-identity b{display:block;color:#2b2440;font-size:17px;line-height:1.15;letter-spacing:.01em}
.library-feed-identity small{display:block;margin-top:4px;color:#9b95a8;font-size:10px;font-weight:700;letter-spacing:.035em}

.library-page-v13 .feed-category-tabs{
  width:100%!important;height:44px!important;
  display:grid!important;grid-template-columns:repeat(5,minmax(70px,1fr))!important;
  gap:4px!important;padding:4px!important;
  border:1px solid #e9e6f1!important;border-radius:14px!important;background:#f7f6fa!important;
}
.library-page-v13 .feed-category-tabs button{
  min-height:34px!important;height:34px!important;padding:0 11px!important;
  border-radius:10px!important;font-size:12px!important;font-weight:850!important;color:#736c7f!important;
}
.library-page-v13 .feed-category-tabs button.active{
  color:#684bdc!important;background:#fff!important;
  box-shadow:0 3px 10px rgba(73,57,123,.09)!important;
}
.feed-library-entry{
  height:42px!important;min-width:104px!important;padding:0 14px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  border:1px solid #ded8f7!important;border-radius:13px!important;background:#f2efff!important;
  color:#684bdc!important;font-size:11.5px!important;font-weight:850!important;
}
.feed-library-entry:hover{background:#eae5ff!important;border-color:#cfc5fa!important}
.feed-library-entry .ui-icon{width:16px!important;height:16px!important}
.feed-category-actions{display:flex!important;align-items:center!important;gap:6px!important;justify-content:flex-end!important}
.feed-edge{width:40px!important;height:40px!important;border-radius:12px!important;border:1px solid #ebe8f0!important;background:#fff!important;color:#827a91!important}
.feed-edge:hover{background:#f7f4ff!important;border-color:#d8d0f7!important;color:#684bdc!important}

/* Remove the unnecessary card-inside-card shell. The current game and the queue
   themselves are the two desktop cards. */
.feed-zone-v13{
  min-height:0!important;height:100%!important;
  display:grid!important;grid-template-rows:minmax(0,1fr) 24px!important;gap:7px!important;
  padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;
  overflow:hidden!important;
}
.library-page-v13 .feed-deck{height:100%!important;min-height:0!important;overflow:hidden!important;padding:0!important}
.library-page-v13 .feed-focus-layout{
  height:100%!important;min-height:0!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) 330px!important;
  gap:var(--lib-v15-gap)!important;align-items:stretch!important;
}

.library-page-v13 .feed-card-featured{
  height:100%!important;min-height:0!important;
  border:1px solid #e7e3ef!important;border-radius:22px!important;
  background:linear-gradient(135deg,#fff 0%,#fff 66%,#faf8ff 100%)!important;
  overflow:hidden!important;box-shadow:0 12px 32px rgba(52,41,85,.055)!important;
}
.library-page-v13 .feed-card-featured .feed-content{
  height:100%!important;min-height:0!important;
  display:grid!important;grid-template-columns:minmax(430px,54%) minmax(300px,1fr)!important;
  align-items:stretch!important;
}
.library-page-v13 .feed-card-featured .feed-board-frame{
  width:min(calc(100% - 34px),calc(100dvh - 250px),620px)!important;
  height:auto!important;aspect-ratio:1/1!important;
  align-self:center!important;justify-self:center!important;
  margin:17px!important;padding:10px!important;
  border-radius:20px!important;overflow:hidden!important;
  box-shadow:0 10px 28px rgba(93,61,29,.14)!important;
}
.library-page-v13 .feed-card-featured .feed-board{width:100%!important;height:100%!important;aspect-ratio:1/1!important;border-radius:12px!important;overflow:hidden!important}
.library-page-v13 .feed-card-featured .feed-info{
  min-width:0!important;min-height:0!important;display:flex!important;flex-direction:column!important;
  gap:10px!important;padding:34px 34px 28px 12px!important;overflow:hidden!important;
}
.library-page-v13 .feed-card-featured .feed-feature-kicker{gap:7px!important;flex-wrap:wrap!important}
.library-page-v13 .feed-card-featured .feed-badge,.library-page-v13 .feed-card-featured .feed-secondary-badge{font-size:10px!important;padding:5px 9px!important;border-radius:999px!important}
.library-page-v13 .feed-card-featured .feed-info h2{
  margin-top:3px!important;font-size:clamp(22px,1.55vw,29px)!important;line-height:1.32!important;
  color:#251e39!important;letter-spacing:-.015em!important;-webkit-line-clamp:3!important;
}
.library-page-v13 .feed-card-featured .feed-players{font-size:14px!important;color:#4e475b!important;font-weight:750!important}
.library-page-v13 .feed-card-featured .feed-event{font-size:12.5px!important;color:#7155e7!important;font-weight:750!important}
.library-page-v13 .feed-card-featured .feed-fact{max-width:520px;font-size:12.5px!important;line-height:1.75!important;color:#777080!important;-webkit-line-clamp:4!important}
.library-page-v13 .feed-card-featured .feed-feature-spacer{flex:1 1 auto!important;min-height:8px!important}
.library-page-v13 .feed-card-featured .feed-social{gap:7px!important}
.library-page-v13 .feed-card-featured .feed-social button{height:36px!important;padding:0 12px!important;border-radius:11px!important;background:#fff!important;border-color:#e9e5f0!important}
.library-page-v13 .feed-card-featured .feed-cta{
  width:100%!important;max-width:300px!important;min-width:0!important;height:46px!important;margin-top:2px!important;
  border-radius:13px!important;font-size:13px!important;font-weight:900!important;
  box-shadow:0 7px 18px rgba(105,78,222,.19)!important;
}

.library-page-v13 .feed-queue{
  height:100%!important;min-height:0!important;padding:14px!important;
  border:1px solid #e7e3ef!important;border-radius:22px!important;background:#fff!important;
  box-shadow:0 10px 28px rgba(52,41,85,.04)!important;overflow:hidden!important;
}
.library-page-v13 .feed-queue-head{padding:2px 3px 12px!important;border-bottom:1px solid #f0edf5!important}
.library-page-v13 .feed-queue-head b{font-size:15px!important}.library-page-v13 .feed-queue-head small{margin-top:3px!important;font-size:10px!important}
.library-page-v13 .feed-nav-buttons button{width:31px!important;height:31px!important;border-radius:9px!important;background:#f7f5fb!important}
.library-page-v13 .feed-queue-list{flex:1!important;min-height:0!important;overflow:auto!important;padding-top:6px!important;scrollbar-width:thin!important}
.library-page-v13 .feed-queue-item{
  min-height:66px!important;padding:9px 8px!important;border-radius:12px!important;
  grid-template-columns:28px minmax(0,1fr) 14px!important;
}
.library-page-v13 .feed-queue-item:hover{background:#f8f6ff!important;border-color:#e5e0f4!important}
.library-page-v13 .feed-queue-item b{font-size:11.5px!important;line-height:1.35!important}.library-page-v13 .feed-queue-item small{font-size:9.5px!important}
.library-page-v13 .feed-rail{padding:0 5px!important;color:#9992a4!important;font-size:9.5px!important}

/* ========== Layer 2 · Library hub / transition dashboard ========== */
.library-hub{
  height:calc(100dvh - 114px)!important;min-height:620px!important;
  display:grid!important;grid-template-rows:72px minmax(0,1fr)!important;gap:var(--lib-v15-gap)!important;overflow:hidden!important;
}
.library-inner-head{
  min-height:72px!important;padding:10px 14px!important;border-radius:20px!important;
  grid-template-columns:42px minmax(0,1fr) auto!important;
}
.library-inner-head h2{font-size:18px!important}.library-inner-head p{font-size:10px!important}.library-inner-head small{font-size:8.5px!important}
.library-back{width:40px!important;height:40px!important;border-radius:12px!important}.library-refresh{height:38px!important;padding:0 12px!important;border-radius:11px!important}
.library-hub-content{min-height:0!important;display:grid!important;grid-template-rows:108px minmax(0,1fr)!important;gap:var(--lib-v15-gap)!important;overflow:hidden!important}
.library-hub-menu{
  display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:9px!important;
  padding:10px!important;border-radius:20px!important;
}
.library-hub-menu button{
  height:88px!important;min-width:0!important;display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;
  align-items:center!important;gap:10px!important;padding:10px 11px!important;
  border:1px solid #ede9f2!important;border-radius:15px!important;background:#fff!important;
  transition:transform .16s ease,border-color .16s ease,background .16s ease!important;
}
.library-hub-menu button:hover{transform:translateY(-2px)!important;background:#fbfaff!important;border-color:#d8cff7!important}
.library-hub-menu img{width:44px!important;height:44px!important;object-fit:contain!important}
.library-hub-menu b{font-size:12.5px!important;color:#352e47!important}.library-hub-menu small{margin-top:4px!important;font-size:9.5px!important;color:#9b94a4!important}
.library-hub-common{min-height:0!important;display:grid!important;grid-template-columns:1fr 1fr 1.12fr!important;gap:var(--lib-v15-gap)!important;overflow:hidden!important}
.library-hub-section{padding:16px!important;border-radius:20px!important}
.library-hub-section>header{padding-bottom:11px!important}.library-hub-section>header b{font-size:15px!important}.library-hub-section>header small{font-size:8px!important}
.hub-preview-row{min-height:72px!important;padding:9px 5px!important;grid-template-columns:36px minmax(0,1fr) auto 15px!important;gap:9px!important}
.hub-preview-stones{width:32px!important;height:32px!important}.hub-preview-row b{font-size:11px!important}.hub-preview-row small,.hub-preview-row strong{font-size:9px!important}

/* ========== Layer 3 · Category-specific browser ========== */
.library-browser{
  height:calc(100dvh - 114px)!important;min-height:620px!important;
  display:grid!important;grid-template-rows:auto auto minmax(0,1fr)!important;gap:10px!important;overflow:hidden!important;
}
.library-browser>.library-inner-head{min-height:72px!important;grid-template-columns:42px minmax(0,1fr) auto auto!important}
.library-search-v13{grid-column:auto!important;display:flex!important;align-items:center!important;gap:6px!important;padding:0!important;margin-left:4px!important}
.library-search-v13[hidden]{display:none!important}.library-search-v13 .field{width:220px!important;height:38px!important}.library-search-v13 .btn-primary{height:38px!important;min-width:70px!important}
.library-context-nav{min-height:40px!important;padding:5px 8px!important;border-radius:13px!important;background:#fff!important;overflow-x:auto!important;white-space:nowrap!important}
.library-context-nav button{height:30px!important;border-radius:9px!important}
.library-browser-body{
  min-height:0!important;display:grid!important;grid-template-columns:minmax(430px,.88fr) minmax(520px,1.12fr)!important;
  gap:var(--lib-v15-gap)!important;overflow:hidden!important;
}
.library-browser-body>.library-panel,.library-browser-body>.library-inspector{border-radius:20px!important}
.library-browser-body>.library-panel{padding:15px!important}
.library-browser-body .library-panel-head{padding-bottom:11px!important}.library-browser-body .library-panel-head b{font-size:16px!important}
.library-browser-body .library-list{padding-right:5px!important;scrollbar-gutter:stable!important}
.library-browser-body .lib-card-grid{gap:6px!important}
.library-browser-body .lib-item-card{min-height:80px!important;padding:9px 12px 9px 10px!important;border-radius:13px!important}

/* Wide inspector: board is the visual anchor, metadata is a dedicated side rail.
   This uses existing markup only; no business content is added or removed. */
@media (min-width:1480px){
  .library-browser-body #libraryInspector:has(.lib-inspector-board-shell){
    display:grid!important;
    grid-template-columns:minmax(360px,1fr) 250px!important;
    grid-template-areas:"head head" "board players" "board meta" "board note" "board open"!important;
    grid-template-rows:auto auto auto 1fr auto!important;
    align-content:center!important;column-gap:16px!important;row-gap:9px!important;
    padding:16px!important;overflow:hidden!important;
  }
  #libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-head{grid-area:head!important;margin:0 0 2px!important}
  #libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-board-shell{grid-area:board!important;width:min(100%,500px)!important;max-width:500px!important;margin:auto!important;align-self:center!important}
  #libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-players{grid-area:players!important;margin:0!important}
  #libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-meta{grid-area:meta!important;margin:0!important;grid-template-columns:1fr!important}
  #libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-meta span{display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;align-items:center!important;text-align:left!important;padding:8px 10px!important}
  #libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-meta small,#libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-meta b{margin:0!important}
  #libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-note{grid-area:note!important;margin:0!important;align-self:start!important}
  #libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-open{grid-area:open!important;margin:0!important;height:42px!important}
}

.library-browser-body.member-root{grid-template-columns:1fr!important}
.library-browser-body.member-root .lib-member-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important}
.library-browser-body.member-root .lib-member-card{min-height:88px!important;border-radius:14px!important}

/* ========== 1366 / small desktop ========== */
@media (max-width:1479px){
  .library-page-v13{max-width:1320px!important}
  .library-feed-screen>.feed-category-bar-v13{grid-template-columns:170px minmax(380px,1fr) auto auto!important}
  .library-feed-identity small{display:none!important}
  .library-page-v13 .feed-focus-layout{grid-template-columns:minmax(0,1fr) 280px!important}
  .library-page-v13 .feed-card-featured .feed-content{grid-template-columns:minmax(340px,50%) minmax(260px,1fr)!important}
  .library-page-v13 .feed-card-featured .feed-info{padding:24px 22px 20px 6px!important}
  .library-page-v13 .feed-card-featured .feed-board-frame{width:min(calc(100% - 24px),calc(100dvh - 240px),480px)!important;margin:12px!important}
  .library-browser-body{grid-template-columns:minmax(430px,1.04fr) minmax(390px,.96fr)!important}
  .library-browser-body .lib-inspector-board-shell{width:min(100%,390px)!important;max-width:390px!important}
  .library-browser-body.member-root .lib-member-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

/* ========== iPad landscape / 1024–1180 ========== */
@media (max-width:1180px){
  .library-page-v13{max-width:100%!important}
  .library-feed-screen,.library-hub,.library-browser{height:calc(100dvh - 136px)!important;min-height:520px!important}
  .library-feed-screen{grid-template-rows:58px minmax(0,1fr)!important;gap:9px!important}
  .library-feed-screen>.feed-category-bar-v13{
    min-height:58px!important;grid-template-columns:38px minmax(0,1fr) 38px auto!important;gap:6px!important;padding:7px 8px!important;border-radius:16px!important;
  }
  .library-feed-identity{width:38px!important;padding:0!important}.library-feed-mark{width:36px!important;height:36px!important;border-radius:11px!important}.library-feed-identity>span:last-child{display:none!important}
  .library-page-v13 .feed-category-tabs{height:38px!important;grid-template-columns:repeat(5,minmax(56px,1fr))!important;padding:3px!important}.library-page-v13 .feed-category-tabs button{height:30px!important;min-height:30px!important;font-size:10.5px!important;padding:0 6px!important}
  .feed-library-entry{min-width:38px!important;width:38px!important;height:38px!important;padding:0!important}.feed-library-entry span{display:none!important}
  .feed-edge{width:36px!important;height:36px!important}.feed-category-actions{gap:4px!important}.feed-category-actions .feed-edge:first-child{display:none!important}

  .feed-zone-v13{grid-template-rows:minmax(0,1fr) 20px!important}
  .library-page-v13 .feed-focus-layout{grid-template-columns:minmax(0,1fr) 220px!important;gap:9px!important}
  .library-page-v13 .feed-card-featured{border-radius:16px!important}
  .library-page-v13 .feed-card-featured .feed-content{grid-template-columns:minmax(250px,48%) minmax(220px,1fr)!important}
  .library-page-v13 .feed-card-featured .feed-board-frame{width:min(calc(100% - 18px),calc(100dvh - 220px),380px)!important;margin:9px!important;padding:7px!important;border-radius:15px!important}
  .library-page-v13 .feed-card-featured .feed-info{padding:15px 13px 13px 4px!important;gap:6px!important}
  .library-page-v13 .feed-card-featured .feed-info h2{font-size:17px!important;line-height:1.3!important;-webkit-line-clamp:2!important}.library-page-v13 .feed-card-featured .feed-players{font-size:11px!important}.library-page-v13 .feed-card-featured .feed-event,.library-page-v13 .feed-card-featured .feed-fact{font-size:10px!important;line-height:1.45!important;-webkit-line-clamp:2!important}
  .library-page-v13 .feed-card-featured .feed-social button{height:29px!important}.library-page-v13 .feed-card-featured .feed-cta{height:36px!important;font-size:11px!important}
  .library-page-v13 .feed-queue{padding:9px!important;border-radius:16px!important}.library-page-v13 .feed-queue-head{padding-bottom:6px!important}.library-page-v13 .feed-queue-head small{display:none!important}.library-page-v13 .feed-queue-item{min-height:48px!important;padding:5px 6px!important}.library-page-v13 .feed-queue-item b{font-size:10px!important}.library-page-v13 .feed-queue-item small{font-size:8.5px!important}

  .library-hub{grid-template-rows:58px minmax(0,1fr)!important;gap:9px!important}.library-inner-head{min-height:58px!important;padding:7px 9px!important;border-radius:16px!important}.library-hub-content{grid-template-rows:132px minmax(0,1fr)!important;gap:9px!important}.library-hub-menu{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(2,1fr)!important;gap:6px!important;padding:7px!important;border-radius:16px!important}.library-hub-menu button{height:auto!important;min-height:56px!important;grid-template-columns:32px minmax(0,1fr)!important;padding:6px 8px!important;border-radius:12px!important}.library-hub-menu img{width:29px!important;height:29px!important}.library-hub-menu b{font-size:10.5px!important}.library-hub-menu small{font-size:8px!important}.library-hub-common{gap:7px!important}.library-hub-section{padding:9px!important;border-radius:15px!important}.hub-preview-row{min-height:54px!important;grid-template-columns:26px minmax(0,1fr) 12px!important;padding:6px 3px!important}.hub-preview-stones{width:24px!important;height:24px!important}.hub-preview-row strong{display:none!important}

  .library-browser{grid-template-rows:auto auto minmax(0,1fr)!important;gap:7px!important}.library-browser>.library-inner-head{grid-template-columns:36px minmax(0,1fr) auto!important}.library-search-v13{grid-column:1/-1!important;margin:0!important;padding:5px 0 0 42px!important}.library-search-v13 .field{width:auto!important;flex:1!important}.library-browser-body{grid-template-columns:minmax(380px,1.08fr) minmax(300px,.92fr)!important;gap:8px!important}.library-browser-body>.library-panel{padding:10px!important}.library-browser-body .lib-inspector-board-shell{width:min(100%,300px)!important;max-width:300px!important}.library-browser-body .lib-inspector-note{display:none!important}.library-browser-body.member-root .lib-member-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* Small landscape only: protect usability instead of forcing a wide desktop layout. */
@media (max-width:900px){
  .library-feed-screen,.library-hub,.library-browser{height:auto!important;min-height:calc(100dvh - 136px)!important;overflow:visible!important}
  .library-feed-screen>.feed-category-bar-v13{grid-template-columns:38px minmax(0,1fr) 38px!important}.feed-category-actions{display:none!important}
  .library-page-v13 .feed-focus-layout{grid-template-columns:1fr!important}.library-page-v13 .feed-queue{display:none!important}
  .library-page-v13 .feed-card-featured .feed-content{grid-template-columns:minmax(220px,42%) minmax(0,1fr)!important}
  .library-hub-common{grid-template-columns:1fr 1fr!important}.library-hub-section.match{grid-column:1/-1!important}
  .library-browser-body{grid-template-columns:1fr!important}.library-browser-body>.library-inspector{display:none!important}
}

/* Non-negotiable board geometry. */
.library-page-v13 .feed-board-frame,
.library-page-v13 .feed-board,
.library-page-v13 .lib-inspector-board-shell,
.library-page-v13 .lib-inspector-board,
.lib-preview-board-wrap,#libPreviewBoard{aspect-ratio:1/1!important}

/* Study canvas: use the full desktop workspace, but keep a calm reading width. */
#view:has(.view-page[data-view="study"].active) .main-col{
  padding:18px clamp(18px,2.1vw,36px) 24px!important;
}


/* Utility row is intentionally quiet; it should not compete with the stage. */



/* ---------------------------------------------------------------------
 * The stage
 * --------------------------------------------------------------------- */


/* Main stage visually behaves as one product surface instead of two cards. */




/* Team becomes a composed character stage. Existing JS still renders exactly
   the real role list and still limits it to 3 roles. */
























/* Plan occupies the lower half of the same card. */















/* ---------------------------------------------------------------------
 * Companion card: visually secondary but complete. Stacked-paper cue adds
 * depth without turning the UI into a skeuomorphic mockup.
 * --------------------------------------------------------------------- */













/* ---------------------------------------------------------------------
 * 1366 / iPad Pro landscape: preserve the stage, only scale the theater.
 * --------------------------------------------------------------------- */
@media (max-width:1499px){
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}

/* iPad-class landscape: still a two-column stage, not a long vertical page. */
@media (max-width:1180px){
  #view:has(.view-page[data-view="study"].active) .main-col{padding:12px 12px 16px!important}
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}

/* Narrower than the target landscape devices: graceful fallback. */
@media (max-width:899px){
  
  
  
}





.library-page-v13{
  --lib17-gap:14px;
  --lib17-line:#e8e5ef;
  --lib17-soft:#f7f6fa;
  --lib17-violet:#7254ee;
  --lib17-text:#2e2940;
  --lib17-muted:#8d8798;
  max-width:1680px!important;
}

/* ---------- Feed: toolbar ---------- */
.library-feed-screen{
  height:calc(100dvh - 108px)!important;
  min-height:620px!important;
  grid-template-rows:68px minmax(0,1fr)!important;
  gap:12px!important;
}
.library-feed-screen>.feed-category-bar-v13{
  min-height:68px!important;
  grid-template-columns:190px minmax(460px,610px) auto 1fr!important;
  gap:12px!important;
  padding:9px 12px!important;
  border-radius:18px!important;
  border:1px solid var(--lib17-line)!important;
  box-shadow:0 5px 18px rgba(54,44,89,.035)!important;
}
.library-feed-identity b{font-size:16px!important}
.library-feed-identity small{font-size:9.5px!important}
.library-page-v13 .feed-category-tabs{height:42px!important;border-radius:13px!important;background:#f8f7fb!important}
.library-page-v13 .feed-category-tabs button{height:32px!important;min-height:32px!important;border-radius:9px!important}
.feed-library-entry{height:40px!important;border-radius:12px!important;background:#f7f5ff!important}
.feed-category-actions{justify-self:end!important}

/* ---------- Feed: genuine 3-column research stage ----------
   Left = next queue; center = board; right = current-game information.
   Existing DOM is reused: article spans center+right; its content splits those two.
*/
.feed-zone-v13{grid-template-rows:minmax(0,1fr) 22px!important;gap:5px!important}
.library-page-v13 .feed-deck{height:100%!important;min-height:0!important}
.library-page-v13 .feed-focus-layout{
  height:100%!important;min-height:0!important;
  display:grid!important;
  grid-template-columns:270px minmax(500px,1fr) 330px!important;
  grid-template-rows:minmax(0,1fr)!important;
  gap:var(--lib17-gap)!important;
  align-items:stretch!important;
}
.library-page-v13 .feed-queue{
  grid-column:1!important;grid-row:1!important;
  min-width:0!important;height:100%!important;min-height:0!important;
  padding:16px 12px!important;
  border:1px solid var(--lib17-line)!important;border-radius:22px!important;
  background:#fff!important;box-shadow:0 8px 24px rgba(51,42,83,.045)!important;
  overflow:hidden!important;
}
.library-page-v13 .feed-queue-head{padding:0 3px 12px!important;border-bottom:1px solid #efedf3!important}
.library-page-v13 .feed-queue-head b{font-size:16px!important;color:var(--lib17-text)!important}
.library-page-v13 .feed-queue-head small{font-size:9.5px!important;color:var(--lib17-muted)!important}
.library-page-v13 .feed-queue-list{display:grid!important;gap:5px!important;padding-top:8px!important;overflow:auto!important;min-height:0!important;max-height:calc(100% - 54px)!important;scrollbar-width:thin!important}
.library-page-v13 .feed-queue-item{
  min-height:64px!important;grid-template-columns:28px minmax(0,1fr) 15px!important;gap:8px!important;
  padding:8px 6px!important;border-radius:12px!important;border:1px solid transparent!important;background:transparent!important;
}
.library-page-v13 .feed-queue-item:hover{background:#f8f6ff!important;border-color:#e7e1ff!important}
.library-page-v13 .feed-queue-item>span:first-child{font-size:10px!important;font-weight:900!important;color:#a19aaf!important}
.library-page-v13 .feed-queue-item b{font-size:11px!important;line-height:1.35!important;-webkit-line-clamp:2!important}
.library-page-v13 .feed-queue-item small{font-size:9px!important;line-height:1.35!important;-webkit-line-clamp:1!important}

.library-page-v13 .feed-card-featured{
  grid-column:2 / 4!important;grid-row:1!important;
  min-width:0!important;height:100%!important;min-height:0!important;
  border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;
}
.library-page-v13 .feed-card-featured .feed-content{
  height:100%!important;min-height:0!important;
  display:grid!important;grid-template-columns:minmax(500px,1fr) 330px!important;
  gap:var(--lib17-gap)!important;align-items:stretch!important;
}
.library-page-v13 .feed-card-featured .feed-board-frame{
  align-self:center!important;justify-self:center!important;
  width:min(100%,calc(100dvh - 225px),720px)!important;
  height:auto!important;aspect-ratio:1/1!important;
  margin:0!important;padding:12px!important;
  border:1px solid #e7dfcf!important;border-radius:24px!important;
  background:linear-gradient(180deg,#fffdf8,#fffaf0)!important;
  box-shadow:0 14px 34px rgba(70,49,24,.09)!important;
  overflow:hidden!important;
}
.library-page-v13 .feed-card-featured .feed-board{width:100%!important;height:100%!important;aspect-ratio:1/1!important;border-radius:14px!important}
.library-page-v13 .feed-card-featured .feed-info{
  height:100%!important;min-height:0!important;
  display:flex!important;flex-direction:column!important;gap:10px!important;
  padding:22px 20px!important;
  border:1px solid var(--lib17-line)!important;border-radius:22px!important;
  background:#fff!important;box-shadow:0 8px 24px rgba(51,42,83,.045)!important;
  overflow:auto!important;scrollbar-width:thin!important;
}
.library-page-v13 .feed-card-featured .feed-feature-kicker{padding-bottom:2px!important}
.library-page-v13 .feed-card-featured .feed-badge,.library-page-v13 .feed-card-featured .feed-secondary-badge{padding:5px 9px!important;font-size:9.5px!important}
.library-page-v13 .feed-card-featured .feed-info h2{font-size:23px!important;line-height:1.35!important;letter-spacing:-.02em!important;color:#262136!important;-webkit-line-clamp:4!important}
.library-page-v13 .feed-card-featured .feed-players{font-size:13px!important;padding:9px 0!important;border-top:1px solid #f0eef4!important;border-bottom:1px solid #f0eef4!important}
.library-page-v13 .feed-card-featured .feed-event{font-size:12px!important;color:#6654bb!important;font-weight:800!important}
.library-page-v13 .feed-card-featured .feed-fact{font-size:11px!important;line-height:1.75!important;color:#777080!important;-webkit-line-clamp:5!important}
.library-page-v13 .feed-card-featured .feed-meta-row{margin-top:auto!important;padding-top:10px!important;border-top:1px solid #f0eef4!important}
.library-page-v13 .feed-card-featured .feed-social{display:flex!important;gap:7px!important}
.library-page-v13 .feed-card-featured .feed-social button{height:34px!important;border-radius:10px!important;background:#f8f7fb!important;border-color:#ece9f2!important}
.library-page-v13 .feed-card-featured .feed-cta{width:100%!important;min-width:0!important;height:44px!important;margin-top:0!important;border-radius:12px!important;font-size:12px!important}
.library-page-v13 .feed-focus{top:17px!important;left:17px!important}
.library-page-v13 .feed-live-pill,.library-page-v13 .feed-replay-pill{top:17px!important;right:17px!important}
.library-page-v13 .feed-rail{padding:0 4px!important;color:#a19baa!important;font-size:9px!important}

/* ---------- Library hub: six entrances are navigation, common sections are content ---------- */
.library-hub{height:calc(100dvh - 108px)!important;min-height:620px!important;grid-template-rows:66px minmax(0,1fr)!important;gap:12px!important}
.library-hub>.library-inner-head{min-height:66px!important;border-radius:18px!important;padding:8px 12px!important}
.library-hub-content{
  min-height:0!important;display:grid!important;
  grid-template-columns:360px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;
  gap:var(--lib17-gap)!important;overflow:hidden!important;
}
.library-hub-menu{
  height:100%!important;min-height:0!important;
  display:grid!important;grid-template-columns:1fr 1fr!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;padding:12px!important;border-radius:22px!important;overflow:hidden!important;
}
.library-hub-menu button{height:auto!important;min-height:0!important;grid-template-columns:46px minmax(0,1fr)!important;padding:10px!important;border-radius:14px!important}
.library-hub-menu img{width:42px!important;height:42px!important}
.library-hub-menu b{font-size:12px!important}.library-hub-menu small{font-size:9px!important}
.library-hub-common{
  height:100%!important;min-height:0!important;
  display:grid!important;grid-template-columns:1fr 1fr 1.08fr!important;grid-template-rows:minmax(0,1fr)!important;
  gap:var(--lib17-gap)!important;overflow:hidden!important;
}
.library-hub-section{height:100%!important;min-height:0!important;padding:15px!important;border-radius:22px!important;overflow:hidden!important}
.library-hub-list,.library-hub-match{max-height:calc(100% - 46px)!important;overflow:auto!important;scrollbar-width:thin!important}

/* ---------- Category browser: list + board + research rail ---------- */
.library-browser{height:calc(100dvh - 108px)!important;min-height:620px!important;grid-template-rows:auto auto minmax(0,1fr)!important;gap:9px!important}
.library-browser>.library-inner-head{min-height:64px!important;border-radius:18px!important;padding:8px 11px!important}
.library-browser-body{
  min-height:0!important;display:grid!important;
  grid-template-columns:300px minmax(0,1fr)!important;gap:var(--lib17-gap)!important;overflow:hidden!important;
}
.library-browser-body>.library-panel{height:100%!important;min-height:0!important;padding:12px!important;border-radius:22px!important;overflow:hidden!important}
.library-browser-body .library-list{height:calc(100% - 44px)!important;overflow:auto!important;padding-right:4px!important;scrollbar-width:thin!important}
.library-browser-body .lib-card-grid{gap:5px!important}
.library-browser-body .lib-item-card{min-height:70px!important;padding:8px 8px!important;border-radius:11px!important}
.library-browser-body .lib-item-header{gap:5px!important}.library-browser-body .lib-item-match{font-size:10.5px!important;-webkit-line-clamp:2!important}.library-browser-body .lib-item-players{font-size:9.5px!important}.library-browser-body .lib-item-footer{font-size:8.5px!important}
.library-browser-body>.library-inspector{height:100%!important;min-height:0!important;border-radius:22px!important;overflow:hidden!important}

@media (min-width:1280px){
  .library-browser-body #libraryInspector:has(.lib-inspector-board-shell){
    display:grid!important;
    grid-template-columns:minmax(420px,1fr) 290px!important;
    grid-template-areas:"board head" "board players" "board meta" "board note" "board open"!important;
    grid-template-rows:auto auto auto 1fr auto!important;
    column-gap:16px!important;row-gap:9px!important;align-content:stretch!important;
    padding:14px!important;
  }
  #libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-board-shell{
    grid-area:board!important;align-self:center!important;justify-self:center!important;
    width:min(100%,calc(100dvh - 230px),660px)!important;max-width:660px!important;aspect-ratio:1/1!important;margin:0!important;
  }
  #libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-head{grid-area:head!important;margin:0!important;padding-bottom:10px!important;border-bottom:1px solid #f0eef4!important}
  #libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-head b{font-size:16px!important;line-height:1.35!important}
  #libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-players{grid-area:players!important;margin:0!important;padding:9px 0!important}
  #libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-meta{grid-area:meta!important;margin:0!important;grid-template-columns:1fr!important;gap:6px!important}
  #libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-meta span{display:grid!important;grid-template-columns:56px minmax(0,1fr)!important;text-align:left!important;align-items:center!important;padding:8px 10px!important;border-radius:10px!important;background:#f8f7fb!important}
  #libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-meta small,#libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-meta b{margin:0!important}
  #libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-note{grid-area:note!important;margin:0!important;align-self:start!important;font-size:10px!important;line-height:1.6!important}
  #libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-open{grid-area:open!important;margin:0!important;height:42px!important;border-radius:12px!important}
}
.library-browser-body.member-root{grid-template-columns:1fr!important}
.library-browser-body.member-root .lib-member-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}

/* ---------- 1366 / compact desktop ---------- */
@media (max-width:1479px){
  .library-page-v13{max-width:1340px!important}
  .library-feed-screen>.feed-category-bar-v13{grid-template-columns:150px minmax(360px,1fr) auto auto!important}
  .library-feed-identity small{display:none!important}
  .library-page-v13 .feed-focus-layout{grid-template-columns:220px minmax(410px,1fr) 270px!important;gap:10px!important}
  .library-page-v13 .feed-card-featured .feed-content{grid-template-columns:minmax(410px,1fr) 270px!important;gap:10px!important}
  .library-page-v13 .feed-card-featured .feed-board-frame{width:min(100%,calc(100dvh - 220px),570px)!important;padding:10px!important;border-radius:20px!important}
  .library-page-v13 .feed-card-featured .feed-info{padding:17px 15px!important;border-radius:18px!important}.library-page-v13 .feed-card-featured .feed-info h2{font-size:19px!important}
  .library-page-v13 .feed-queue{padding:13px 10px!important;border-radius:18px!important}.library-page-v13 .feed-queue-item{min-height:58px!important}
  .library-hub-content{grid-template-columns:310px minmax(0,1fr)!important;gap:10px!important}.library-hub-common{gap:10px!important}
  .library-browser-body{grid-template-columns:260px minmax(0,1fr)!important;gap:10px!important}
  .library-browser-body #libraryInspector:has(.lib-inspector-board-shell){grid-template-columns:minmax(370px,1fr) 250px!important;column-gap:12px!important;padding:11px!important}
  #libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-board-shell{width:min(100%,calc(100dvh - 225px),530px)!important;max-width:530px!important}
  .library-browser-body.member-root .lib-member-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

/* ---------- iPad landscape / 1024–1180 ---------- */
@media (max-width:1180px){
  .library-feed-screen,.library-hub,.library-browser{height:calc(100dvh - 128px)!important;min-height:520px!important}
  .library-feed-screen{grid-template-rows:56px minmax(0,1fr)!important;gap:8px!important}
  .library-feed-screen>.feed-category-bar-v13{min-height:56px!important;grid-template-columns:36px minmax(0,1fr) 36px auto!important;gap:5px!important;padding:6px!important;border-radius:15px!important}
  .library-feed-identity{width:36px!important}.library-feed-mark{width:34px!important;height:34px!important}.library-feed-identity>span:last-child{display:none!important}
  .library-page-v13 .feed-category-tabs{height:36px!important}.library-page-v13 .feed-category-tabs button{height:28px!important;min-height:28px!important;font-size:10px!important;padding:0 4px!important}
  .feed-library-entry{width:36px!important;min-width:36px!important;height:36px!important;padding:0!important}.feed-library-entry span{display:none!important}
  .feed-category-actions{gap:3px!important}.feed-edge{width:34px!important;height:34px!important}.feed-category-actions .feed-edge:first-child{display:none!important}

  .library-page-v13 .feed-focus-layout{grid-template-columns:150px minmax(300px,1fr) 205px!important;gap:7px!important}
  .library-page-v13 .feed-card-featured .feed-content{grid-template-columns:minmax(300px,1fr) 205px!important;gap:7px!important}
  .library-page-v13 .feed-queue{padding:9px 7px!important;border-radius:14px!important}.library-page-v13 .feed-queue-head{padding-bottom:7px!important}.library-page-v13 .feed-queue-head small{display:none!important}.library-page-v13 .feed-queue-head b{font-size:12px!important}.library-page-v13 .feed-nav-buttons button{width:25px!important;height:25px!important}
  .library-page-v13 .feed-queue-item{min-height:48px!important;grid-template-columns:22px minmax(0,1fr) 10px!important;padding:5px 4px!important;gap:4px!important}.library-page-v13 .feed-queue-item b{font-size:9px!important}.library-page-v13 .feed-queue-item small{display:none!important}
  .library-page-v13 .feed-card-featured .feed-board-frame{width:min(100%,calc(100dvh - 205px),455px)!important;padding:7px!important;border-radius:16px!important}
  .library-page-v13 .feed-card-featured .feed-info{padding:12px 10px!important;gap:6px!important;border-radius:14px!important}.library-page-v13 .feed-card-featured .feed-feature-kicker{gap:4px!important}.library-page-v13 .feed-card-featured .feed-badge,.library-page-v13 .feed-card-featured .feed-secondary-badge{font-size:8px!important;padding:4px 6px!important}.library-page-v13 .feed-card-featured .feed-info h2{font-size:15px!important;line-height:1.28!important;-webkit-line-clamp:3!important}.library-page-v13 .feed-card-featured .feed-players{font-size:9.5px!important;padding:6px 0!important}.library-page-v13 .feed-card-featured .feed-event{font-size:9.5px!important}.library-page-v13 .feed-card-featured .feed-fact{font-size:8.5px!important;line-height:1.45!important;-webkit-line-clamp:3!important}.library-page-v13 .feed-card-featured .feed-social button{height:27px!important;padding:0 7px!important}.library-page-v13 .feed-card-featured .feed-cta{height:33px!important;font-size:9.5px!important}.library-page-v13 .feed-rail{font-size:8px!important}

  .library-hub{grid-template-rows:54px minmax(0,1fr)!important;gap:7px!important}.library-hub-content{grid-template-columns:260px minmax(0,1fr)!important;gap:7px!important}.library-hub-menu{gap:5px!important;padding:7px!important;border-radius:15px!important}.library-hub-menu button{grid-template-columns:31px minmax(0,1fr)!important;padding:6px!important;border-radius:10px!important}.library-hub-menu img{width:29px!important;height:29px!important}.library-hub-menu b{font-size:9.5px!important}.library-hub-menu small{display:none!important}.library-hub-common{grid-template-columns:1fr 1fr!important;grid-template-rows:1fr 1fr!important;gap:6px!important}.library-hub-section{padding:8px!important;border-radius:13px!important}.library-hub-section.match{grid-column:1/-1!important}.library-hub-section>header{padding-bottom:5px!important}.library-hub-section>header small{display:none!important}

  .library-browser{grid-template-rows:auto auto minmax(0,1fr)!important;gap:6px!important}.library-browser-body{grid-template-columns:210px minmax(0,1fr)!important;gap:7px!important}.library-browser-body>.library-panel{padding:8px!important;border-radius:14px!important}.library-browser-body .library-panel-head small,.library-browser-body .library-list-hint{display:none!important}.library-browser-body .lib-item-card{min-height:58px!important;padding:6px!important}.library-browser-body .lib-row-no{display:none!important}.library-browser-body .lib-item-match{font-size:9px!important}.library-browser-body .lib-item-footer{display:none!important}
  .library-browser-body #libraryInspector:has(.lib-inspector-board-shell){grid-template-columns:minmax(300px,1fr) 190px!important;column-gap:7px!important;row-gap:5px!important;padding:7px!important}
  #libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-board-shell{width:min(100%,calc(100dvh - 210px),430px)!important;max-width:430px!important}.library-browser-body .lib-inspector-note{display:none!important}#libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-head b{font-size:12px!important}#libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-players{font-size:9px!important}#libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-meta span{padding:5px 6px!important;grid-template-columns:42px 1fr!important;font-size:8px!important}#libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-open{height:32px!important;font-size:9px!important}
  .library-browser-body.member-root .lib-member-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* Small fallback: protect functionality without forcing the desktop stage. */
@media (max-width:900px){
  .library-feed-screen,.library-hub,.library-browser{height:auto!important;min-height:calc(100dvh - 130px)!important;overflow:visible!important}
  .library-page-v13 .feed-focus-layout{grid-template-columns:1fr!important;grid-template-rows:auto auto!important}.library-page-v13 .feed-card-featured{grid-column:1!important;grid-row:1!important}.library-page-v13 .feed-card-featured .feed-content{grid-template-columns:minmax(260px,46%) minmax(0,1fr)!important}.library-page-v13 .feed-queue{grid-column:1!important;grid-row:2!important;max-height:150px!important}.library-page-v13 .feed-queue-list{grid-template-columns:repeat(3,minmax(0,1fr))!important;overflow:auto!important}.library-page-v13 .feed-queue-item:nth-child(n/**/+4){display:none!important}
  .library-hub-content{grid-template-columns:1fr!important;grid-template-rows:auto auto!important;overflow:visible!important}.library-hub-menu{height:auto!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(2,70px)!important}.library-hub-common{height:auto!important;grid-template-columns:1fr 1fr!important}.library-hub-section.match{grid-column:1/-1!important}
  .library-browser-body{grid-template-columns:1fr!important;overflow:visible!important}.library-browser-body>.library-inspector{display:none!important}
}

/* Board geometry remains non-negotiable. */
.library-page-v13 .feed-board-frame,.library-page-v13 .feed-board,.library-page-v13 .lib-inspector-board-shell,.library-page-v13 .lib-inspector-board,#libPreviewBoard{aspect-ratio:1/1!important}

/* ---------- Feed: queue | board | selected-record research ---------- */
@media (min-width: 1181px) {
  [data-view="library"] .library-feed-screen {
    width: min(100%, 1660px);
    margin-inline: auto;
  }
  [data-view="library"] .feed-zone-v13 {
    min-height: min(790px, calc(100dvh - 158px));
    height: min(790px, calc(100dvh - 158px));
    padding: 12px;
  }
  [data-view="library"] .feed-deck {
    height: 100%;
  }
  [data-view="library"] .feed-card-featured,
  [data-view="library"] .feed-card-featured .feed-content {
    height: 100%;
    min-height: 0;
  }
  [data-view="library"] .feed-card-featured .feed-content {
    display: grid;
    grid-template-columns: minmax(520px, 1.35fr) minmax(350px, .72fr);
    gap: 18px;
    align-items: stretch;
  }
  [data-view="library"] .feed-board-frame {
    align-self: center;
    justify-self: center;
    width: min(100%, 720px, calc(100dvh - 224px));
    max-width: 720px;
    aspect-ratio: 1 / 1;
  }
  [data-view="library"] .feed-info {
    min-height: 0;
    height: 100%;
    padding: 18px 18px 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--pc-line, #e7e5ee);
    border-radius: 22px;
    background: #fff;
  }
}

.feed-research-snapshot {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #ebe8f3;
  border-radius: 16px;
  background: #faf9fd;
  min-height: 98px;
}
.feed-research-snapshot.loading,
.feed-research-snapshot.error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #817a90;
}
.feed-research-snapshot.ready {
  display: grid;
  gap: 10px;
}
.feed-research-snapshot .feed-research-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 7px;
}
.feed-research-snapshot .feed-research-facts > span {
  min-width: 0;
  padding: 8px 9px;
  border-radius: 11px;
  background: #fff;
}
.feed-research-snapshot .feed-research-facts small {
  display: block;
  margin-bottom: 2px;
  color: #9690a1;
  font-size: 10px;
}
.feed-research-snapshot .feed-research-facts b {
  display: block;
  overflow: hidden;
  color: #302a3e;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-research-snapshot .feed-research-report {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 10px;
}
.feed-research-snapshot .feed-research-report > span {
  display: flex;
  gap: 5px;
}
.feed-research-snapshot .feed-research-report > span b {
  padding: 5px 7px;
  border-radius: 8px;
  color: #5b47bf;
  background: #f0edff;
  font-size: 10px;
}
.feed-research-snapshot .feed-research-chart {
  min-width: 0;
  height: 72px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}
.feed-research-snapshot .feed-research-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}
.feed-research-snapshot .feed-research-note {
  margin: 0;
  color: #716b7e;
  font-size: 11px;
  line-height: 1.45;
}
.feed-original-intent {
  color: #9a94a5 !important;
  font-size: 10px !important;
}

/* ---------- Full process is a secondary workspace, not a modal ---------- */
.library-detail-layer {
  position: fixed;
  z-index: 46;
  top: var(--pc-topbar-h, 66px);
  left: var(--pc-nav-w, 208px);
  right: 0;
  bottom: 0;
  padding: 14px var(--pc-gutter, 24px) 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 2%, rgba(113, 82, 239, .055), transparent 28rem),
    var(--pc-bg, #f6f6fa);
}
.library-detail-layer[hidden] { display: none !important; }
.library-detail-layer.show { display: block; }
.library-detail-surface {
  width: min(100%, 1660px);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-rows: 62px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #e6e3ed;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(47, 35, 83, .10);
}
.library-detail-toolbar {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 8px 13px;
  border-bottom: 1px solid #ece9f1;
  background: rgba(255,255,255,.96);
}
.library-detail-back,
.library-print-report {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid #dfdbea;
  border-radius: 13px;
  color: #51496b;
  background: #fff;
  font-weight: 760;
}
.library-detail-back:hover,
.library-print-report:hover {
  border-color: #cfc7f4;
  color: #5438ce;
  background: #f8f6ff;
}
.library-print-report:not([hidden]) { display: inline-flex; }
.library-print-report .ui-icon,
.library-detail-back .ui-icon { width: 16px; height: 16px; }
.lib-preview-head {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  grid-template-rows: auto auto;
  align-items: baseline;
  gap: 1px 9px;
}
.lib-preview-head > small {
  grid-row: 1 / 3;
  align-self: center;
  padding: 5px 7px;
  border-radius: 8px;
  color: #684de0;
  background: #f0edff;
  font-size: 9px;
  font-weight: 840;
  letter-spacing: .08em;
}
.lib-preview-head > b {
  min-width: 0;
  overflow: hidden;
  color: #211d2c;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lib-preview-head > span {
  min-width: 0;
  overflow: hidden;
  color: #898393;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.library-detail-tools { display: flex; align-items: center; gap: 8px; }
.library-detail-body {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(500px, 1.18fr) minmax(350px, .82fr);
  gap: 14px;
  padding: 14px;
  overflow: hidden;
  background: #fafafd;
}
.library-detail-board-column,
.library-detail-research-column {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #ebe8f0;
  border-radius: 20px;
  background: #fff;
}
.library-detail-board-column {
  display: grid;
  grid-template-rows: minmax(0,1fr) auto auto;
  align-items: center;
  justify-items: center;
  gap: 8px;
  padding: 12px;
}
.library-detail-board-column .lib-preview-board,
.library-detail-board-column .go-board,
.library-detail-board-column #libPreviewBoard {
  width: min(100%, 720px, calc(100dvh - 220px));
  max-width: 720px;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  align-self: center;
  justify-self: center;
}
.library-detail-research-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.library-detail-research-column::-webkit-scrollbar { width: 6px; }
.library-detail-research-column::-webkit-scrollbar-thumb { border-radius: 8px; background: #dad5e5; }
.library-detail-research-facts {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
  padding: 11px;
  border: 1px solid #ebe8f2;
  border-radius: 16px;
  background: #fbfaff;
}
.library-detail-research-facts > header {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
  padding-bottom: 7px;
  border-bottom: 1px solid #ece9f2;
}
.library-detail-research-facts > header > div { min-width: 0; }
.library-detail-research-facts > header small { color: #7056db; font-size: 9px; font-weight: 820; }
.library-detail-research-facts > header b { display:block; margin-top:2px; font-size:14px; }
.library-detail-research-facts > header span { color:#8c8596; font-size:10px; white-space:nowrap; }
.library-detail-research-facts > span {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 10px;
  background: #fff;
}
.library-detail-research-facts > span small { display:block; color:#9a94a3; font-size:9px; }
.library-detail-research-facts > span b { display:block; margin-top:2px; overflow:hidden; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.library-detail-board-column .lib-preview-controls,
.library-detail-board-column .lib-preview-actions {
  width: min(100%, 720px);
}
.library-detail-board-column .lib-preview-controls {
  display: grid;
  grid-template-columns: 42px 42px minmax(120px,1fr) 42px 42px 44px;
  align-items: center;
  gap: 6px;
}
.library-detail-board-column .lib-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.library-detail-board-column button { min-height: 38px; }
.library-detail-board-column input[type="range"] { min-width: 0; width: 100%; }
.library-detail-research-column .pc-report-dock {
  flex: 1 0 auto;
  min-height: 0;
  margin: 0;
  box-shadow: none;
}
.library-detail-research-column .pc-report-dock.ready {
  display: grid;
  grid-template-rows: auto auto minmax(220px, 1fr);
}
.library-detail-research-column .pc-report-work {
  min-height: 220px;
  max-height: none;
  overflow: visible;
}
.library-detail-empty-stage {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr);
  gap: 14px;
  align-items: stretch;
}
.library-detail-empty-stage > div {
  display:grid;
  place-items:center;
  min-height:0;
  border:1px dashed #dcd6e9;
  border-radius:20px;
  background:#fff;
  color:#777083;
  text-align:center;
}

/* ---------- Print / export PDF · commercial report layout ---------- */
.pc-print-report{display:none}
.pc-print-report .go-board{position:relative;overflow:hidden;--board-pad:3.2}
.pc-print-report .go-grid-canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.pc-print-report .board-marker.print-recommended,
.pc-print-report .board-marker.print-played{
  position:absolute;z-index:30;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;background:transparent!important
}
.pc-print-report .board-marker.print-recommended{width:calc(126% / var(--n));height:calc(126% / var(--n));border:2.4px solid #6455ed;box-shadow:0 0 0 1.5px rgba(255,255,255,.94)}
.pc-print-report .board-marker.print-played{width:calc(112% / var(--n));height:calc(112% / var(--n));border:2px solid #ef5f67;box-shadow:0 0 0 1px rgba(255,255,255,.92)}

@page{size:A4 portrait;margin:0}
@media print{
  html,body{width:210mm!important;height:auto!important;margin:0!important;padding:0!important;overflow:visible!important;background:#f7f6fb!important}
  body{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body>*:not(.pc-print-report){display:none!important}
  .pc-print-report{
    display:block!important;width:210mm!important;margin:0!important;color:#211d31!important;background:#f7f6fb!important;
    font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif!important;font-size:10pt!important
  }
  .pc-print-report *{box-sizing:border-box!important;animation:none!important;transition:none!important}
  .pc-print-cover,.pc-print-page{
    position:relative;width:210mm;min-height:297mm;margin:0;padding:16mm 14mm 14mm;overflow:hidden;background:#f8f7fc;break-after:page;page-break-after:always
  }
  .pc-print-page:last-child{break-after:auto;page-break-after:auto}
  .pc-print-cover::before,.pc-print-page::before{
    content:"";position:absolute;right:-31mm;top:-31mm;width:78mm;height:78mm;border-radius:50%;background:#665bf0;z-index:0
  }
  .pc-print-cover::after,.pc-print-page::after{
    content:"";position:absolute;left:-31mm;bottom:-42mm;width:70mm;height:70mm;border-radius:50%;background:#f5aa18;z-index:0
  }
  .pc-print-cover>*,.pc-print-page>*{position:relative;z-index:1}

  .pc-print-cover-top{display:flex;align-items:center;justify-content:space-between;gap:10mm}
  .pc-print-brand-lockup{display:flex;align-items:center;gap:3mm;color:#5f53e8}
  .pc-print-brand-lockup>i{width:5mm;height:5mm;border-radius:1.6mm;background:linear-gradient(135deg,#7567fa,#5549de);box-shadow:0 2mm 5mm rgba(92,76,225,.20)}
  .pc-print-brand-lockup span{display:grid;gap:.5mm}.pc-print-brand-lockup b{font-size:10pt;letter-spacing:.04em}.pc-print-brand-lockup small{color:#8f89a1;font-size:6.8pt;letter-spacing:.08em}
  .pc-print-cover-top>em{padding:2.3mm 4mm;border-radius:999px;color:#5e54d5;background:#eeecff;font-size:7.2pt;font-style:normal;font-weight:850;letter-spacing:.05em}
  .pc-print-cover-title{margin-top:12mm}
  .pc-print-cover-title>small{display:block;color:#6c5af0;font-size:7pt;font-weight:850;letter-spacing:.14em}
  .pc-print-cover-title h1{margin:2.5mm 0 2mm;color:#211d31;font-size:29pt;line-height:1.08;letter-spacing:.01em}
  .pc-print-cover-title p{margin:0;max-width:150mm;color:#817a8f;font-size:10pt;line-height:1.55}
  .pc-print-cover-match{display:grid;grid-template-columns:minmax(0,1fr) 31mm minmax(0,1fr);align-items:stretch;margin-top:14mm;padding:7mm 8mm;border:1px solid #e2deee;border-radius:7mm;background:#fff;box-shadow:0 2mm 0 rgba(66,51,115,.07)}
  .pc-print-cover-match article{display:grid;align-content:center;gap:1.5mm;min-width:0}.pc-print-cover-match article.white{text-align:right}
  .pc-print-cover-match article small{color:#6a58e9;font-size:6.7pt;font-weight:850;letter-spacing:.08em}.pc-print-cover-match article b{font-size:17pt;line-height:1.2}.pc-print-cover-match article span{color:#8b8494;font-size:8.2pt}
  .pc-print-cover-match>div{display:grid;place-items:center;align-content:center;gap:1.5mm;border-inline:1px solid #ece8f2}.pc-print-cover-match>div strong{color:#2f2940;font-size:9pt}.pc-print-cover-match>div span{width:10mm;height:10mm;display:grid;place-items:center;border-radius:50%;color:#6356df;background:#f0eeff;font-size:7pt;font-weight:950}
  .pc-print-cover-score{display:grid;grid-template-columns:1fr 1px 1fr;gap:0;margin-top:8mm;padding:5mm 6mm;border:1px solid #e8e4f0;border-radius:5mm;background:#fff}
  .pc-print-cover-score>article{display:grid;grid-template-columns:1fr auto;align-items:end;gap:3mm;padding:0 5mm}.pc-print-cover-score>article small{color:#8b8494;font-size:7.2pt}.pc-print-cover-score>article strong{color:#5d51e6;font-size:21pt;line-height:1}
  .pc-print-cover-score>i{width:1px;background:#ece8f2}
  .pc-print-cover-score>div{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:3mm;margin-top:4mm;padding-top:4mm;border-top:1px solid #efecf4}
  .pc-print-cover-score>div span{padding:3.5mm 4mm;border-radius:3mm;background:#f7f5fb}.pc-print-cover-score>div small{display:block;color:#8b8494;font-size:6.7pt}.pc-print-cover-score>div b{display:block;margin-top:1mm;color:#282337;font-size:12pt}
  .pc-print-cover-takeaway{margin-top:6mm;padding:5mm 6mm;border-left:1.5mm solid #6759ec;border-radius:0 4mm 4mm 0;background:#f1efff}.pc-print-cover-takeaway small{color:#6b5ce9;font-size:7pt;font-weight:850}.pc-print-cover-takeaway b{display:block;margin-top:1.5mm;color:#292439;font-size:11pt;line-height:1.45}.pc-print-cover-takeaway p{margin:1.5mm 0 0;color:#756e80;font-size:8pt;line-height:1.55}
  .pc-print-cover-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:4mm;margin-top:auto;padding-top:10mm;border-top:1px solid #e0dce9}.pc-print-cover-meta small{display:block;color:#928b9c;font-size:6.5pt}.pc-print-cover-meta b{display:block;margin-top:1mm;color:#302a3e;font-size:8pt}
  .pc-print-cover footer{margin-top:5mm;color:#9992a3;font-size:6.3pt}

  .pc-print-page-kicker,.pc-print-section-head{display:flex;align-items:center;gap:4mm;margin-bottom:7mm;padding-bottom:4mm;border-bottom:1px solid #ddd9e8}
  .pc-print-page-kicker>span,.pc-print-section-head>span{width:7mm;height:7mm;display:grid;place-items:center;border-radius:50%;color:#fff;background:#6659ef;font-size:6.5pt;font-weight:900}
  .pc-print-page-kicker>div,.pc-print-section-head>div{display:grid;gap:.5mm;min-width:0}.pc-print-page-kicker small,.pc-print-section-head small{color:#8f8899;font-size:6.2pt;font-weight:800;letter-spacing:.12em}.pc-print-page-kicker h2,.pc-print-section-head h2{margin:0;color:#282238;font-size:18pt;line-height:1.2}
  .pc-print-page-kicker>em,.pc-print-section-head>em{margin-left:auto;color:#6c60df;font-size:8pt;font-style:normal;font-weight:850}
  .pc-print-section{margin:0 0 7mm;break-inside:avoid-page}.pc-print-section.allow-break{break-inside:auto}

  .pc-print-summary{display:grid;gap:3.5mm;margin-bottom:5mm}
  .pc-print-match{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:5mm;padding:4mm 5mm;border:1px solid #e4e0ec;border-radius:4mm;background:#fff}
  .pc-print-match>span{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.8mm 2.5mm;align-items:center}.pc-print-match>span:last-child{text-align:right}.pc-print-match small,.pc-print-match em{color:#8d8696;font-size:6.8pt;font-style:normal}.pc-print-match b{font-size:10pt}.pc-print-match .stone{position:static!important;width:6.2mm!important;height:6.2mm!important;transform:none!important;grid-row:1/3}
  .pc-print-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:3mm}.pc-print-metrics span{padding:3mm 3.5mm;border-radius:3mm;background:#f3f1f8}.pc-print-metrics small{display:block;color:#8e8797;font-size:6.5pt}.pc-print-metrics b{display:block;margin-top:1mm;color:#2c263a;font-size:10pt}

  .pc-print-final-board{display:flex;justify-content:center;margin:3mm auto 0}
  .pc-print-board-host.go-board{position:relative;width:154mm!important;height:154mm!important;min-width:154mm!important;min-height:154mm!important;max-width:154mm!important;max-height:154mm!important;aspect-ratio:1/1!important;border-radius:4mm!important;overflow:hidden!important;box-shadow:0 2mm 6mm rgba(96,68,30,.14)!important}
  .pc-print-board-host.go-board>.go-grid-canvas{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}
  .pc-print-board-host.go-board .board-marker.last{width:calc(55% / var(--n))!important;height:calc(55% / var(--n))!important;max-width:none!important;max-height:none!important;border-width:1.5px!important}
  .pc-print-caption{margin:3mm 0 0;color:#8a8393;font-size:7pt;text-align:center;line-height:1.45}

  .pc-print-chart{padding:4mm 4.5mm;border:1px solid #e4e0ed;border-radius:4mm;background:#fff}.pc-print-chart svg{display:block;width:100%!important;height:58mm!important}
  .pc-print-stage-table{width:100%;overflow:hidden;border:1px solid #e4e0ed;border-radius:4mm;border-collapse:separate;border-spacing:0;background:#fff;font-size:8pt}.pc-print-stage-table th,.pc-print-stage-table td{padding:3mm 3.5mm;border-bottom:1px solid #ece8f1;text-align:left}.pc-print-stage-table tbody tr:last-child th,.pc-print-stage-table tbody tr:last-child td{border-bottom:0}.pc-print-stage-table thead th{color:#817a8b;background:#f5f3f9;font-size:6.8pt}
  .pc-print-problems>article{display:grid;grid-template-columns:10mm minmax(0,1fr);gap:3mm;align-items:start;margin:0 0 2.6mm;padding:3mm 4mm;border:1px solid #e6e2ed;border-radius:3.2mm;background:#fff;break-inside:avoid}.pc-print-problems>article>em{width:7mm;height:7mm;display:grid;place-items:center;border-radius:50%;color:#fff;background:#6759ec;font-size:6.6pt;font-style:normal;font-weight:900}.pc-print-problems>article small{color:#8a8393;font-size:6.5pt}.pc-print-problems>article b{display:block;margin-top:.8mm;color:#2d273b;font-size:9pt}.pc-print-problems>article p{margin:.8mm 0 0;color:#716a7b;font-size:7pt;line-height:1.48}.pc-print-empty{color:#817a8c;font-size:8pt}

  .pc-print-mentor-card{display:grid;grid-template-columns:13mm minmax(0,1fr);gap:3.5mm;padding:5mm;border:1px solid #ddd7f8;border-radius:4mm;background:#f2efff}.pc-print-mentor-badge{width:12mm;height:12mm;display:grid!important;place-items:center;margin:0!important;border-radius:50%;color:#fff!important;background:#6758ec!important;font-size:7pt!important;font-weight:900!important}.pc-print-mentor-card>div:nth-child(2) small{color:#6759e6;font-size:6.8pt;font-weight:850}.pc-print-mentor-card h3{margin:1mm 0 1.5mm;font-size:12pt}.pc-print-mentor-card p{margin:0;color:#5f5869;font-size:8pt;line-height:1.55}.pc-print-mentor-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:3mm!important;margin-top:1mm!important}.pc-print-mentor-actions span{padding:3mm;border-radius:3mm;background:#fff;font-size:7pt;line-height:1.45}.pc-print-mentor-actions b{display:block;margin-bottom:.8mm;color:#6658e8}

  .pc-print-teaching-grid{display:grid;gap:4mm}.pc-print-teaching-grid article{break-inside:avoid;margin:0;padding:4mm;border:1px solid #e1ddec;border-radius:4mm;background:#fff}.pc-print-teaching-grid article>header{display:flex;align-items:flex-start;justify-content:space-between;gap:4mm;margin-bottom:3mm}.pc-print-teaching-grid article>header small{color:#8d8696;font-size:6.2pt}.pc-print-teaching-grid article>header b{display:block;margin-top:.8mm;font-size:10pt}.pc-print-teaching-grid article>header>span{padding:1.5mm 2.5mm;border-radius:999px;font-size:6.7pt;font-weight:850;background:#f0edff;color:#6658e7}
  .pc-print-teaching-grid article.tone-bad{border-color:#f1d3d6}.pc-print-teaching-grid article.tone-bad>header>span{color:#b43f47;background:#ffeaeb}.pc-print-teaching-grid article.tone-warn>header>span{color:#a66b17;background:#fff1d8}.pc-print-teaching-grid article.tone-good>header>span{color:#2a7d50;background:#e9f7ef}
  .pc-print-teaching-layout{display:grid;grid-template-columns:58mm minmax(0,1fr);gap:5mm;align-items:start}.pc-print-mini-board.go-board{position:relative;width:58mm!important;height:58mm!important;min-width:58mm!important;min-height:58mm!important;max-width:58mm!important;max-height:58mm!important;aspect-ratio:1/1!important;border-radius:3mm!important;overflow:hidden!important;box-shadow:none!important}.pc-print-mini-board.go-board>.go-grid-canvas{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}.pc-print-teaching-layout h3{margin:0 0 1.2mm;color:#292338;font-size:11pt}.pc-print-teaching-layout p{margin:1mm 0;color:#665f70;font-size:7.5pt;line-height:1.5}.pc-print-teaching-layout p.lead{color:#5146ca;font-weight:800}.pc-print-teaching-layout small{color:#928b9b;font-size:6.4pt}
  .pc-print-cover{display:flex;flex-direction:column}
  .pc-print-page{display:flex;flex-direction:column}
  .pc-print-page-footer{display:flex;align-items:center;justify-content:space-between;gap:8mm;margin-top:auto;padding-top:4mm;border-top:1px solid #ded9e8;color:#948d9d;font-size:6.5pt;letter-spacing:.02em}
  .pc-print-page-footer b{color:#6659df;font-size:6.8pt}
  .pc-print-summary-page .pc-print-mentor{margin-top:1mm}
  .pc-print-summary-focus{margin-top:9mm!important}
  .pc-print-summary-focus>div:last-child{display:grid;gap:2.5mm}
  .pc-print-summary-focus article{display:grid;grid-template-columns:8mm minmax(0,1fr) auto;align-items:center;gap:3mm;padding:3.4mm 4mm;border:1px solid #e5e1ec;border-radius:3.3mm;background:#fff}
  .pc-print-summary-focus article>em{width:7mm;height:7mm;display:grid;place-items:center;border-radius:50%;color:#fff;background:#685aed;font-size:6.5pt;font-style:normal;font-weight:900}
  .pc-print-summary-focus article small{display:block;color:#8f8898;font-size:6.4pt}.pc-print-summary-focus article b{display:block;margin-top:.7mm;color:#2d273b;font-size:8.6pt}.pc-print-summary-focus article>span{color:#6357da;font-size:7.2pt;font-weight:850;white-space:nowrap}
  .pc-print-teaching-detail-page::after{background:#f4ab20}
  .pc-print-teaching-detail-page.tone-bad::before{background:#ce4b55}.pc-print-teaching-detail-page.tone-warn::before{background:#e4a83b}.pc-print-teaching-detail-page.tone-good::before{background:#4f9a70}
  .pc-print-teaching-hero{display:grid;gap:6mm;margin-top:2mm;padding:7mm;border:1px solid #e0dbea;border-radius:6mm;background:#fff;box-shadow:0 2mm 0 rgba(67,52,116,.055)}
  .pc-print-teaching-hero>header{display:flex;align-items:flex-start;justify-content:space-between;gap:5mm;padding-bottom:4mm;border-bottom:1px solid #ece8f2}
  .pc-print-teaching-hero>header small{display:block;color:#6a5bea;font-size:7pt;font-weight:850;letter-spacing:.04em}.pc-print-teaching-hero>header h3{margin:1.3mm 0 0;color:#292338;font-size:17pt;line-height:1.25}
  .pc-print-teaching-hero>header>span{padding:2mm 3.5mm;border-radius:999px;color:#6658e8;background:#efedff;font-size:7.5pt;font-weight:900}
  .pc-print-teaching-detail-page.tone-bad .pc-print-teaching-hero>header>span{color:#b8414b;background:#ffeaec}.pc-print-teaching-detail-page.tone-warn .pc-print-teaching-hero>header>span{color:#a06a16;background:#fff0d8}.pc-print-teaching-detail-page.tone-good .pc-print-teaching-hero>header>span{color:#28784c;background:#e9f7ef}
  .pc-print-teaching-main{display:grid;grid-template-columns:116mm minmax(0,1fr);gap:7mm;align-items:start}
  .pc-print-teaching-board-large.go-board{position:relative;width:116mm!important;height:116mm!important;min-width:116mm!important;min-height:116mm!important;max-width:116mm!important;max-height:116mm!important;aspect-ratio:1/1!important;border-radius:4mm!important;overflow:hidden!important;box-shadow:0 2mm 6mm rgba(96,68,30,.13)!important}
  .pc-print-teaching-board-large.go-board>.go-grid-canvas{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}
  .pc-print-teaching-copy{display:grid;align-content:start;gap:5mm;padding-top:2mm}
  .pc-print-teaching-move{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:2mm}.pc-print-teaching-move>span{padding:4mm 3mm;border-radius:3.5mm;background:#f6f4f9}.pc-print-teaching-move>span.recommended{background:#efedff}.pc-print-teaching-move small{display:block;color:#8b8494;font-size:6.5pt}.pc-print-teaching-move b{display:block;margin-top:1mm;color:#292337;font-size:13pt}.pc-print-teaching-move>i{color:#8d8598;font-style:normal;font-weight:900}
  .pc-print-teaching-copy>p.lead{margin:0;padding:4mm;border-left:1.3mm solid #685aed;border-radius:0 3mm 3mm 0;color:#554c65;background:#f7f5fc;font-size:8.2pt;line-height:1.6}
  .pc-print-impact{display:flex;align-items:end;justify-content:space-between;gap:3mm;padding:3.5mm 4mm;border:1px solid #f0d6d9;border-radius:3.5mm;background:#fff7f7}.pc-print-impact small{color:#9a6a70;font-size:6.4pt}.pc-print-impact b{color:#bd4650;font-size:13pt}
  .pc-print-teaching-rule{padding:4mm;border:1px solid #e4dff2;border-radius:3.5mm;background:#fff}.pc-print-teaching-rule b{color:#6558dc;font-size:7.2pt}.pc-print-teaching-rule p{margin:1.2mm 0 0;color:#736c7c;font-size:7pt;line-height:1.55}
  .pc-print-teaching-legend{display:flex;align-items:center;gap:2mm;color:#8e8797;font-size:6.4pt}.pc-print-teaching-legend i{width:3.2mm;height:3.2mm;border-radius:50%;background:transparent}.pc-print-teaching-legend i.recommended{border:1.5px solid #6455ed}.pc-print-teaching-legend i.played{border:1.5px solid #ef5f67;margin-left:2mm}
  .pc-print-report button{display:none!important}
}

/* ---------- Large desktop ---------- */
@media (min-width: 1480px) {
  .library-detail-body { grid-template-columns: minmax(620px, 1.28fr) minmax(410px, .72fr); }
  .library-detail-board-column .lib-preview-board,
  .library-detail-board-column .go-board,
  .library-detail-board-column #libPreviewBoard { width:min(100%,760px,calc(100dvh - 220px)); max-width:760px; }
  .library-detail-board-column .lib-preview-controls,
  .library-detail-board-column .lib-preview-actions { width:min(100%,760px); }
}

/* ---------- 1366 / iPad Pro landscape ---------- */
@media (min-width: 1100px) and (max-width: 1479px) {
  .library-detail-layer { padding: 10px 14px 14px; }
  .library-detail-surface { border-radius:20px; }
  .library-detail-body { grid-template-columns:minmax(470px,1fr) 350px; gap:10px; padding:10px; }
  .library-detail-board-column { padding:9px; }
  .library-detail-board-column .lib-preview-board,
  .library-detail-board-column .go-board,
  .library-detail-board-column #libPreviewBoard { width:min(100%,620px,calc(100dvh - 205px)); max-width:620px; }
  .library-detail-board-column .lib-preview-controls,
  .library-detail-board-column .lib-preview-actions { width:min(100%,620px); }
  .library-detail-research-column { padding:9px; }
  .library-detail-research-facts { padding:8px; }
  .library-detail-research-column .pc-report-work { min-height:180px; }
}

/* ---------- iPad landscape where side-nav becomes top navigation ---------- */
@media (max-width: 1099px) {
  .library-detail-layer {
    top: 120px;
    left: 0;
    padding: 8px 10px 10px;
  }
  .library-detail-surface { grid-template-rows:54px minmax(0,1fr); border-radius:18px; }
  .library-detail-toolbar { padding:6px 8px; gap:8px; }
  .library-detail-back,.library-print-report { min-height:36px; padding:0 9px; }
  .library-detail-body { grid-template-columns:minmax(430px,1fr) 310px; gap:8px; padding:8px; }
  .library-detail-board-column { padding:8px; border-radius:16px; }
  .library-detail-board-column .lib-preview-board,
  .library-detail-board-column .go-board,
  .library-detail-board-column #libPreviewBoard { width:min(100%,520px,calc(100dvh - 258px)); max-width:520px; }
  .library-detail-board-column .lib-preview-controls,
  .library-detail-board-column .lib-preview-actions { width:min(100%,520px); }
  .library-detail-research-column { padding:8px; border-radius:16px; }
  .library-detail-research-facts { grid-template-columns:1fr; gap:5px; }
  .library-detail-research-facts > header { grid-column:1; }
  .library-detail-research-facts > span { padding:5px 7px; }
  .library-detail-research-column .pc-report-title p,
  .library-detail-research-column .pc-report-coach p,
  .library-detail-research-column .pc-report-issue-intro p { display:none; }
  .library-detail-research-column .pc-report-tabs button { padding-inline:5px; }
}

@media (max-width: 900px) {
  /* Last-resort safety for narrow landscape; business stays intact and only the inner research area scrolls. */
  .library-detail-layer { top: 112px; }
  .library-detail-body { grid-template-columns:minmax(400px,1fr) 280px; overflow-x:auto; }
}

.feed-research-snapshot .feed-research-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.feed-research-snapshot .feed-research-head > div { min-width:0; }
.feed-research-snapshot .feed-research-head small { display:block; color:#8e8799; font-size:9px; }
.feed-research-snapshot .feed-research-head b { display:block; margin-top:2px; overflow:hidden; color:#2d2739; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.feed-research-snapshot .feed-research-head > span { flex:none; padding:4px 7px; border-radius:8px; color:#684ed6; background:#f0edff; font-size:9px; font-weight:780; }
.feed-research-snapshot .feed-research-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.feed-research-snapshot .feed-research-metrics > span { padding:7px 8px; border-radius:10px; background:#fff; }
.feed-research-snapshot .feed-research-metrics small { display:block; color:#9891a1; font-size:9px; }
.feed-research-snapshot .feed-research-metrics b { display:block; margin-top:1px; color:#332d40; font-size:12px; }
.feed-research-snapshot > p { margin:0; color:#6f687b; font-size:10px; line-height:1.48; }
.feed-research-snapshot > svg.feed-research-chart { width:100%; height:72px; display:block; overflow:visible; }
.feed-research-snapshot > svg.feed-research-chart line { stroke:#e6e1ef; stroke-width:1; stroke-dasharray:4 4; }
.feed-research-snapshot > svg.feed-research-chart polyline { fill:none; stroke:#6b4bf7; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }

.library-detail-facts {
  flex:0 0 auto;
  display:grid;
  gap:10px;
  padding:13px;
  border:1px solid #eae6f0;
  border-radius:17px;
  background:linear-gradient(180deg,#fff,#fbfaff);
}
.library-detail-kickers { display:flex; align-items:center; gap:6px; }
.library-detail-kickers span,
.library-detail-kickers em { padding:4px 7px; border-radius:8px; font-size:9px; font-style:normal; font-weight:800; }
.library-detail-kickers span { color:#684ed7; background:#f0edff; }
.library-detail-kickers em { color:#9a6412; background:#fff3d9; }
.library-detail-facts h2 { margin:0; color:#211d2d; font-size:18px; line-height:1.28; }
.library-detail-player-line { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:7px; padding:9px 0; border-block:1px solid #eeeaf2; }
.library-detail-player-line > span { min-width:0; display:flex; align-items:center; gap:6px; }
.library-detail-player-line > span:last-child { justify-content:flex-end; text-align:right; }
.library-detail-player-line > span b { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.library-detail-player-line > span small { color:#8e8798; font-size:9px; }
.library-detail-player-line > strong { color:#a49dad; font-size:9px; }
.library-detail-player-line .stone { position:static!important; width:17px!important; height:17px!important; flex:none; transform:none!important; }
.library-detail-fact-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.library-detail-fact-grid > span { min-width:0; padding:7px 7px; border-radius:10px; background:#f7f5fb; }
.library-detail-fact-grid small { display:block; color:#9992a2; font-size:8px; }
.library-detail-fact-grid b { display:block; margin-top:2px; overflow:hidden; color:#3d364a; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.library-detail-event { margin:0; color:#716a7c; font-size:10px; line-height:1.45; }
.library-detail-loading-stage { min-height:100%; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr); gap:14px; align-items:stretch; }
.library-detail-loading-stage > .lib-preview-empty { display:grid; place-items:center; align-content:center; min-height:0; border:1px dashed #ddd7e9; border-radius:20px; background:#fff; text-align:center; }
.library-detail-loading-stage > .library-detail-facts { align-self:center; }
.library-detail-error { min-height:100%; display:grid!important; place-items:center; align-content:center; border:1px dashed #e7d5da; border-radius:20px; background:#fffafa; }
.library-detail-playback .lib-preview-progress { min-width:0; overflow:hidden; color:#5e576b; font-size:11px; font-weight:760; text-align:center; white-space:nowrap; }

@media (max-width:1099px) {
  .library-detail-fact-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .library-detail-facts h2 { font-size:15px; }
  .library-detail-player-line > span small { display:none; }
  .library-detail-loading-stage { grid-template-columns:minmax(400px,1fr) 300px; gap:8px; }
}
.feed-research-detail-line { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.feed-research-detail-line > span { min-width:0; padding:6px 8px; border-radius:9px; background:#fff; }
.feed-research-detail-line small { display:block; color:#9992a2; font-size:8px; }
.feed-research-detail-line b { display:block; margin-top:1px; overflow:hidden; color:#4c4559; font-size:9.5px; text-overflow:ellipsis; white-space:nowrap; }

@media print {
  .pc-print-stage-table { width:100%; border-collapse:collapse; font-size:9pt; }
  .pc-print-stage-table th,.pc-print-stage-table td { padding:2.5mm 3mm; border-bottom:1px solid #e6e2ec; text-align:left; }
  .pc-print-stage-table thead th { color:#6e6679; background:#f7f5fb; font-size:8pt; }
  .pc-print-mentor-card { padding:5mm; border:1px solid #ddd6fa; border-radius:3mm; background:#fbfaff; }
  .pc-print-mentor-card > small { color:#6547f5; font-size:8pt; font-weight:800; }
  .pc-print-mentor-card h3 { margin:1.5mm 0 2mm; font-size:13pt; }
  .pc-print-mentor-card p { margin:0; color:#565060; font-size:9pt; line-height:1.55; }
  .pc-print-mentor-card > div { display:grid; grid-template-columns:repeat(3,1fr); gap:3mm; margin-top:4mm; }
  .pc-print-mentor-card > div span { padding:3mm; border-radius:2.5mm; background:#f2efff; font-size:8pt; line-height:1.45; }
  .pc-print-mentor-card > div b { display:block; margin-bottom:1mm; color:#6547f5; }
}

/* Keep the stage physically stable while the selected record changes. */
.library-page-v13 .feed-focus-layout-v19 {
  contain: layout paint;
}
.library-page-v13 #feedFeaturedHost,
.library-page-v13 #feedQueueHost {
  min-height: 0;
}
.library-page-v13 #feedFeaturedHost.feed-selection-updating .feed-board-stage-v19,
.library-page-v13 #feedFeaturedHost.feed-selection-updating .feed-info {
  opacity: .72;
}
.library-page-v13 #feedFeaturedHost .feed-board-stage-v19,
.library-page-v13 #feedFeaturedHost .feed-info {
  transition: opacity .16s ease;
}

/* Left rail behaves like a stable playlist: current record remains visible and highlighted. */
.library-page-v13 .feed-queue-item.active,
.library-page-v13 .feed-queue-item[aria-current="true"] {
  border-color: #cfc4ff !important;
  background: linear-gradient(135deg,#f2efff,#faf9ff) !important;
  box-shadow: inset 3px 0 0 #7155ed;
}
.library-page-v13 .feed-queue-item.active > span:first-child,
.library-page-v13 .feed-queue-item[aria-current="true"] > span:first-child {
  color: #684bdc !important;
}
.library-page-v13 .feed-queue-item.active b,
.library-page-v13 .feed-queue-item[aria-current="true"] b {
  color: #31244f !important;
}

/* Central board is the visual anchor; primary action belongs to the board stage. */
.library-page-v13 .feed-board-stage-v19 {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 10px;
  padding: 0;
}
.library-page-v13 .feed-board-stage-v19 .feed-board-frame {
  align-self: center !important;
}
.library-page-v13 .feed-board-actions {
  width: min(100%, 720px, calc(100dvh - 224px));
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(220px,1fr);
  align-items: center;
  gap: 10px;
}
.library-page-v13 .feed-board-actions .feed-social {
  display: flex !important;
  gap: 7px !important;
}
.library-page-v13 .feed-board-actions .feed-social button {
  min-width: 62px;
  height: 40px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #e7e3ed !important;
  border-radius: 12px !important;
  background: #fff !important;
}
.library-page-v13 .feed-board-actions .feed-social button.active {
  color: #6245dc !important;
  border-color: #d8ceff !important;
  background: #f4f1ff !important;
}
.library-page-v13 .feed-board-actions .feed-cta {
  width: 100% !important;
  height: 44px !important;
  margin: 0 !important;
  border-radius: 13px !important;
  box-shadow: 0 8px 20px rgba(99,69,221,.15) !important;
}

/* Right panel is a research inspector, not a second hero card. */
.library-page-v13 #feedFeaturedHost .feed-info {
  position: relative;
  padding: 20px 19px 16px !important;
  overflow: auto !important;
  scrollbar-width: thin;
}
.library-page-v13 #feedFeaturedHost .feed-info::before {
  content: "研究信息";
  display: block;
  margin-bottom: 2px;
  color: #9a93a3;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .13em;
}
.library-page-v13 #feedFeaturedHost .feed-info h2 {
  margin-top: 2px !important;
}
.library-page-v13 #feedFeaturedHost .feed-research-snapshot {
  margin-top: 4px;
  border-color: #e7e3f0;
  background: linear-gradient(180deg,#faf9ff,#f7f6fb);
}
.library-page-v13 #feedFeaturedHost .feed-original-intent {
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid #efedf3;
}

@media (min-width: 1480px) {
  .library-page-v13 .feed-focus-layout-v19 {
    grid-template-columns: 286px minmax(590px,1.36fr) minmax(390px,.82fr) !important;
    gap: 14px !important;
  }
  .library-page-v13 #feedFeaturedHost .feed-content {
    grid-template-columns: minmax(590px,1.36fr) minmax(390px,.82fr) !important;
    gap: 14px !important;
  }
  .library-page-v13 #feedFeaturedHost .feed-board-frame {
    width: min(100%, 700px, calc(100dvh - 250px)) !important;
    max-width: 700px !important;
  }
  .library-page-v13 .feed-board-actions {
    width: min(100%, 700px, calc(100dvh - 250px));
  }
  .library-page-v13 #feedFeaturedHost .feed-info h2 {
    font-size: 24px !important;
    line-height: 1.34 !important;
  }
  .library-page-v13 .feed-queue-item { min-height: 68px !important; }
}

@media (min-width: 1181px) and (max-width: 1479px) {
  .library-page-v13 .feed-focus-layout-v19 {
    grid-template-columns: 220px minmax(420px,1fr) 300px !important;
    gap: 10px !important;
  }
  .library-page-v13 #feedFeaturedHost .feed-content {
    grid-template-columns: minmax(420px,1fr) 300px !important;
    gap: 10px !important;
  }
  .library-page-v13 #feedFeaturedHost .feed-board-frame {
    width: min(100%, 570px, calc(100dvh - 242px)) !important;
    max-width: 570px !important;
  }
  .library-page-v13 .feed-board-actions {
    width: min(100%, 570px, calc(100dvh - 242px));
    grid-template-columns: auto minmax(170px,1fr);
  }
  .library-page-v13 #feedFeaturedHost .feed-info { padding: 16px 14px 13px !important; }
}

/* iPad landscape: retain the same mental model and compress density instead of stacking. */
@media (min-width: 901px) and (max-width: 1180px) {
  .library-page-v13 .feed-focus-layout-v19 {
    grid-template-columns: 150px minmax(300px,1fr) 215px !important;
    gap: 7px !important;
  }
  .library-page-v13 #feedFeaturedHost .feed-content {
    grid-template-columns: minmax(300px,1fr) 215px !important;
    gap: 7px !important;
  }
  .library-page-v13 #feedFeaturedHost .feed-board-frame {
    width: min(100%, 440px, calc(100dvh - 222px)) !important;
    max-width: 440px !important;
  }
  .library-page-v13 .feed-board-actions {
    width: min(100%, 440px, calc(100dvh - 222px));
    grid-template-columns: auto minmax(118px,1fr);
    gap: 5px;
  }
  .library-page-v13 .feed-board-actions .feed-social button {
    min-width: 42px;
    height: 32px !important;
    padding-inline: 5px !important;
  }
  .library-page-v13 .feed-board-actions .feed-social small { display:none; }
  .library-page-v13 .feed-board-actions .feed-cta { height: 34px !important; font-size: 9.5px !important; }
  .library-page-v13 #feedFeaturedHost .feed-info { padding: 11px 9px !important; }
  .library-page-v13 #feedFeaturedHost .feed-info::before { font-size: 7.5px; }
  .library-page-v13 #feedFeaturedHost .feed-research-snapshot { padding: 7px !important; }
  .library-page-v13 #feedFeaturedHost .feed-research-metrics { gap:3px; }
  .library-page-v13 #feedFeaturedHost .feed-research-metrics > span { padding:5px 4px; }
  .library-page-v13 #feedFeaturedHost .feed-research-detail-line { grid-template-columns:1fr; }
  .library-page-v13 #feedFeaturedHost .feed-research-chart { height:52px !important; }
}

/* Actual narrow-landscape safety; no document-level refresh/reflow is introduced. */
@media (max-width: 900px) {
  .library-page-v13 .feed-board-stage-v19 { grid-template-rows:auto auto; }
  .library-page-v13 .feed-board-actions { width:100%; }
}

/* ---------- Feed research stage: square board first ---------- */
.library-page-v13 .feed-board-stage-v20{
  min-width:0!important;
  min-height:0!important;
  height:100%!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  padding:0!important;
}
.library-page-v13 .feed-board-stage-v20 .feed-board-frame{
  box-sizing:border-box!important;
  inline-size:min(100%,760px,calc(100dvh - 190px))!important;
  block-size:auto!important;
  max-inline-size:760px!important;
  max-block-size:none!important;
  aspect-ratio:1 / 1!important;
  align-self:center!important;
  justify-self:center!important;
  flex:none!important;
  margin:0!important;
  overflow:hidden!important;
}
.library-page-v13 .feed-board-stage-v20 .feed-board,
.library-page-v13 .feed-board-stage-v20 .feed-board.go-board{
  box-sizing:border-box!important;
  inline-size:100%!important;
  block-size:auto!important;
  aspect-ratio:1 / 1!important;
  min-block-size:0!important;
  max-block-size:none!important;
  overflow:hidden!important;
}

/* All interactions move to the research column, like a control console. */
.library-page-v13 .feed-info-v20{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
}
.library-page-v13 .feed-side-actions{
  flex:none;
  display:grid;
  grid-template-columns:auto minmax(150px,1fr);
  align-items:center;
  gap:8px;
  margin-top:10px;
  padding-top:11px;
  border-top:1px solid #efedf3;
}
.library-page-v13 .feed-side-actions .feed-social{
  display:flex!important;
  position:static!important;
  gap:6px!important;
}
.library-page-v13 .feed-side-actions .feed-social button{
  min-width:46px!important;
  height:40px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  padding:0 9px!important;
  border:1px solid #e5e1ec!important;
  border-radius:12px!important;
  color:#696274!important;
  background:#fff!important;
  box-shadow:none!important;
}
.library-page-v13 .feed-side-actions .feed-social button.active{
  color:#6447db!important;
  border-color:#d7cdff!important;
  background:#f4f1ff!important;
}
.library-page-v13 .feed-side-actions .feed-cta{
  width:100%!important;
  min-width:0!important;
  height:42px!important;
  margin:0!important;
  border-radius:12px!important;
}
.library-page-v13 .feed-info-v20 .feed-original-intent{
  margin-top:7px!important;
  padding-top:0!important;
  border-top:0!important;
}

@media (min-width:1480px){
  .library-page-v13 .feed-focus-layout-v19{
    grid-template-columns:270px minmax(610px,1fr) 410px!important;
    gap:14px!important;
  }
  .library-page-v13 #feedFeaturedHost .feed-content{
    grid-template-columns:minmax(610px,1fr) 410px!important;
    gap:14px!important;
  }
  .library-page-v13 .feed-board-stage-v20 .feed-board-frame{
    inline-size:min(100%,780px,calc(100dvh - 184px))!important;
    max-inline-size:780px!important;
  }
}
@media (min-width:1181px) and (max-width:1479px){
  .library-page-v13 .feed-focus-layout-v19{
    grid-template-columns:210px minmax(470px,1fr) 330px!important;
    gap:10px!important;
  }
  .library-page-v13 #feedFeaturedHost .feed-content{
    grid-template-columns:minmax(470px,1fr) 330px!important;
    gap:10px!important;
  }
  .library-page-v13 .feed-board-stage-v20 .feed-board-frame{
    inline-size:min(100%,620px,calc(100dvh - 190px))!important;
    max-inline-size:620px!important;
  }
}
@media (min-width:901px) and (max-width:1180px){
  .library-page-v13 .feed-focus-layout-v19{
    grid-template-columns:145px minmax(340px,1fr) 255px!important;
    gap:7px!important;
  }
  .library-page-v13 #feedFeaturedHost .feed-content{
    grid-template-columns:minmax(340px,1fr) 255px!important;
    gap:7px!important;
  }
  .library-page-v13 .feed-board-stage-v20 .feed-board-frame{
    inline-size:min(100%,500px,calc(100dvh - 182px))!important;
    max-inline-size:500px!important;
    padding:7px!important;
    border-radius:16px!important;
  }
  .library-page-v13 .feed-side-actions{
    grid-template-columns:auto minmax(108px,1fr);
    gap:5px;
  }
  .library-page-v13 .feed-side-actions .feed-social button{
    min-width:34px!important;
    width:34px!important;
    height:34px!important;
    padding:0!important;
  }
  .library-page-v13 .feed-side-actions .feed-social small{display:none!important}
  .library-page-v13 .feed-side-actions .feed-cta{height:36px!important;font-size:10px!important}
}

/* ---------- Full process: port the APP landscape structure ---------- */
.library-detail-body{
  min-height:0!important;
  height:100%!important;
  display:grid!important;
  grid-template-columns:minmax(560px,1.14fr) minmax(390px,.86fr)!important;
  gap:12px!important;
  padding:12px!important;
  overflow:hidden!important;
  background:#f8f7fc!important;
}
.library-detail-board-column-v20,
.library-detail-research-column-v20{
  min-width:0!important;
  min-height:0!important;
  height:100%!important;
  border:1px solid #e9e5ee!important;
  border-radius:22px!important;
  background:#fff!important;
  box-shadow:0 12px 34px rgba(58,45,101,.06)!important;
  overflow:hidden!important;
}
.library-detail-board-column-v20{
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  align-items:stretch!important;
  justify-items:stretch!important;
  gap:0!important;
  padding:0!important;
}
.library-detail-game-strip-v20{
  min-height:54px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:8px;
  padding:8px 13px;
  border-bottom:1px solid #ece9f1;
  background:#fff;
}
.library-detail-game-strip-v20>span{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
}
.library-detail-game-strip-v20>span.white{justify-content:flex-end;text-align:right}
.library-detail-game-strip-v20 .stone{width:20px;height:20px;flex:none}
.library-detail-game-strip-v20 span div{min-width:0;display:grid;gap:1px}
.library-detail-game-strip-v20 b{
  min-width:0;
  overflow:hidden;
  color:#302a3d;
  font-size:12px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.library-detail-game-strip-v20 small{color:#918b99;font-size:9px;white-space:nowrap}
.library-detail-game-strip-v20>em{
  padding:4px 9px;
  border:1px solid #ded8f7;
  border-radius:999px;
  color:#6e60c8;
  background:#f3f0ff;
  font-size:9px;
  font-style:normal;
  font-weight:850;
}
.library-detail-board-wrap-v20{
  box-sizing:border-box!important;
  align-self:center!important;
  justify-self:center!important;
  inline-size:min(calc(100% - 20px),780px,calc(100dvh - 188px))!important;
  block-size:auto!important;
  max-inline-size:780px!important;
  max-block-size:none!important;
  aspect-ratio:1 / 1!important;
  margin:10px!important;
  padding:0!important;
  border:0!important;
  border-radius:16px!important;
  overflow:hidden!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(91,62,24,.10)!important;
}
.library-detail-board-wrap-v20 #libPreviewBoard,
.library-detail-board-wrap-v20 .go-board{
  box-sizing:border-box!important;
  inline-size:100%!important;
  block-size:auto!important;
  min-block-size:0!important;
  max-block-size:none!important;
  aspect-ratio:1 / 1!important;
  border-radius:16px!important;
  overflow:hidden!important;
}

.library-detail-research-column-v20{
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  padding:10px!important;
  overflow:auto!important;
  scrollbar-width:thin;
}
.library-detail-research-column-v20::-webkit-scrollbar{width:6px}
.library-detail-research-column-v20::-webkit-scrollbar-thumb{border-radius:8px;background:#d9d4e6}
.library-detail-control-card-v20{
  flex:none;
  display:grid;
  gap:8px;
  padding:11px;
  border:1px solid #e9e5ef;
  border-radius:17px;
  background:#fff;
}
.library-detail-control-card-v20>header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.library-detail-control-card-v20>header>div{min-width:0;display:grid;gap:1px}
.library-detail-control-card-v20>header small{color:#8e8798;font-size:9px}
.library-detail-control-card-v20>header b{color:#4d4660;font-size:11px;font-variant-numeric:tabular-nums}
.library-detail-control-card-v20>header>span{
  padding:4px 7px;
  border-radius:999px;
  color:#6357c2;
  background:#f1eeff;
  font-size:9px;
  font-weight:800;
}
.library-detail-scrubber{
  --move-progress:0%;
  width:100%;
  height:24px;
  margin:0;
  appearance:none;
  -webkit-appearance:none;
  background:transparent;
  cursor:pointer;
}
.library-detail-scrubber::-webkit-slider-runnable-track{
  height:7px;
  border-radius:99px;
  background:linear-gradient(90deg,#6d50e9 0 var(--move-progress),#e6e2ed var(--move-progress) 100%);
}
.library-detail-scrubber::-webkit-slider-thumb{
  width:18px;height:18px;margin-top:-5.5px;
  border:3px solid #fff;border-radius:50%;
  appearance:none;-webkit-appearance:none;
  background:#6d50e9;box-shadow:0 2px 7px rgba(78,55,177,.34);
}
.library-detail-scrubber::-moz-range-track{height:7px;border:0;border-radius:99px;background:#e6e2ed}
.library-detail-scrubber::-moz-range-progress{height:7px;border-radius:99px;background:#6d50e9}
.library-detail-scrubber::-moz-range-thumb{width:13px;height:13px;border:3px solid #fff;border-radius:50%;background:#6d50e9}
.library-detail-playback-v20{
  display:grid;
  grid-template-columns:42px 42px minmax(44px,1fr) 42px 42px;
  align-items:center;
  gap:6px;
}
.library-detail-playback-v20 button{
  min-width:0!important;
  width:42px!important;
  height:38px!important;
  min-height:38px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  border:1px solid #e3deef!important;
  border-radius:12px!important;
  color:#6559c6!important;
  background:#faf9ff!important;
  box-shadow:none!important;
  font-size:16px!important;
}
.library-detail-playback-v20 .lib-preview-play{
  justify-self:center;
  width:44px!important;
  height:44px!important;
  border:0!important;
  border-radius:50%!important;
  color:#fff!important;
  background:linear-gradient(145deg,#7660ed,#5942d4)!important;
  box-shadow:0 7px 17px rgba(84,62,197,.22)!important;
  font-size:14px!important;
}
.library-detail-control-card-v20 .lib-preview-actions{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:6px!important;
  margin:0!important;
  padding-top:8px!important;
  border-top:1px solid #efedf3!important;
}
.library-detail-control-card-v20 .lib-preview-actions button{
  min-width:0!important;
  min-height:36px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  padding:0 7px!important;
  border:1px solid #e6e2ed!important;
  border-radius:11px!important;
  background:#fff!important;
  color:#665f72!important;
  font-size:10px!important;
}
.library-detail-control-card-v20 .lib-preview-actions button.active{
  color:#6246d8!important;
  border-color:#d7ceff!important;
  background:#f3f0ff!important;
}
.library-report-host-v20{
  flex:1 1 auto;
  min-height:0;
}
.library-report-host-v20>.pc-report-dock{
  height:auto!important;
  min-height:100%;
  margin:0!important;
}
.library-report-host-v20>.pc-report-dock.ready{
  min-height:360px;
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr);
}
.library-report-host-v20 .pc-report-work{min-height:0!important;overflow:auto!important}

/* Large desktop: APP's 680-ish board column becomes more generous on PC. */
@media (min-width:1480px){
  .library-detail-body{
    grid-template-columns:minmax(650px,1.22fr) minmax(430px,.78fr)!important;
    gap:14px!important;
    padding:14px!important;
  }
  .library-detail-board-wrap-v20{
    inline-size:min(calc(100% - 24px),820px,calc(100dvh - 182px))!important;
    max-inline-size:820px!important;
    margin:12px!important;
  }
}

/* 1366 / laptop landscape */
@media (min-width:1181px) and (max-width:1479px){
  .library-detail-body{
    grid-template-columns:minmax(520px,1fr) 370px!important;
    gap:10px!important;
    padding:10px!important;
  }
  .library-detail-board-wrap-v20{
    inline-size:min(calc(100% - 16px),650px,calc(100dvh - 184px))!important;
    max-inline-size:650px!important;
    margin:8px!important;
  }
  .library-detail-research-column-v20{padding:8px!important;gap:8px!important}
}

/* iPad landscape: preserve the same APP mental model instead of stacking. */
@media (min-width:901px) and (max-width:1180px){
  .library-detail-layer{padding:8px!important}
  .library-detail-surface{grid-template-rows:54px minmax(0,1fr)!important;border-radius:18px!important}
  .library-detail-toolbar{gap:8px!important;padding:6px 8px!important}
  .library-detail-body{
    grid-template-columns:minmax(430px,1fr) 310px!important;
    gap:7px!important;
    padding:7px!important;
  }
  .library-detail-board-column-v20,.library-detail-research-column-v20{border-radius:16px!important}
  .library-detail-game-strip-v20{min-height:46px;padding:6px 8px}
  .library-detail-game-strip-v20 b{font-size:10px}.library-detail-game-strip-v20 small{font-size:8px}
  .library-detail-board-wrap-v20{
    inline-size:min(calc(100% - 12px),540px,calc(100dvh - 166px))!important;
    max-inline-size:540px!important;
    margin:6px!important;
    border-radius:12px!important;
  }
  .library-detail-board-wrap-v20 #libPreviewBoard{border-radius:12px!important}
  .library-detail-research-column-v20{padding:7px!important;gap:7px!important}
  .library-detail-control-card-v20{padding:8px!important;gap:6px!important;border-radius:13px!important}
  .library-detail-playback-v20{grid-template-columns:34px 34px minmax(38px,1fr) 34px 34px;gap:4px}
  .library-detail-playback-v20 button{width:34px!important;height:32px!important;min-height:32px!important;border-radius:9px!important}
  .library-detail-playback-v20 .lib-preview-play{width:38px!important;height:38px!important}
  .library-detail-control-card-v20 .lib-preview-actions button{min-height:32px!important;font-size:9px!important}
}

/* Strict square invariant for every board this flow can expose. */
.library-page-v13 .feed-board-frame,
.library-page-v13 .feed-board,
.library-detail-board-wrap-v20,
.library-detail-board-wrap-v20 #libPreviewBoard,
.library-detail-board-wrap-v20 .go-board{
  aspect-ratio:1 / 1!important;
}

/* Library browser inspector follows the same invariant. */
.library-page-v13 .lib-inspector-board-shell,
.library-page-v13 .lib-inspector-board,
.library-page-v13 .library-inspector .go-board{
  aspect-ratio:1 / 1!important;
}
.library-page-v13 .lib-inspector-board-shell{
  block-size:auto!important;
  overflow:hidden!important;
}
.library-page-v13 .lib-inspector-board,
.library-page-v13 .library-inspector .go-board{
  inline-size:100%!important;
  block-size:auto!important;
}

/* ---- Shared visual language: lighter shells, fewer nested cards ---- */
.library-page-v13 .feed-focus-layout-v19,
.library-detail-body{--v21-line:#e9e6f0;--v21-soft:#f7f6fb;--v21-ink:#211d2c;--v21-muted:#858091}

/* ---- Feed: reference-style three-column research stage ---- */
.library-page-v13 .feed-focus-layout-v19{
  height:100%!important;
  min-height:0!important;
  display:grid!important;
  grid-template-columns:250px minmax(560px,1fr) 390px!important;
  gap:12px!important;
  align-items:stretch!important;
}
.library-page-v13 #feedQueueHost.feed-queue{
  border:1px solid var(--v21-line)!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.library-page-v13 #feedFeaturedHost.feed-card-featured{
  min-width:0!important;
  min-height:0!important;
  height:100%!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 390px!important;
  gap:12px!important;
  overflow:visible!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.library-page-v13 #feedFeaturedHost .feed-content{
  display:contents!important;
}
.library-page-v13 .feed-board-stage-v20{
  min-width:0!important;
  min-height:0!important;
  height:100%!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid var(--v21-line)!important;
  border-radius:22px!important;
  background:#fff!important;
  box-shadow:0 12px 34px rgba(58,45,101,.055)!important;
}
.library-page-v13 .feed-board-stage-v20 .feed-board-frame{
  box-sizing:border-box!important;
  flex:none!important;
  aspect-ratio:1/1!important;
  min-width:0!important;
  min-height:0!important;
  max-width:calc(100% - 20px)!important;
  max-height:calc(100% - 20px)!important;
  margin:0!important;
  padding:10px!important;
  border-radius:20px!important;
}
.library-page-v13 .feed-board-stage-v20 .feed-board{
  width:100%!important;
  height:100%!important;
  aspect-ratio:1/1!important;
  border-radius:13px!important;
}
.library-page-v13 .feed-info-v20{
  min-width:0!important;
  min-height:0!important;
  height:100%!important;
  display:grid!important;
  grid-template-rows:auto auto auto auto minmax(0,1fr) auto auto!important;
  gap:9px!important;
  padding:17px!important;
  overflow:hidden!important;
  border:1px solid var(--v21-line)!important;
  border-radius:22px!important;
  background:#fff!important;
  box-shadow:0 12px 34px rgba(58,45,101,.055)!important;
}
.library-page-v13 .feed-info-v20 h2{
  margin:2px 0 0!important;
  color:var(--v21-ink)!important;
  font-size:22px!important;
  line-height:1.28!important;
}
.library-page-v13 .feed-research-snapshot.ready{
  min-height:0!important;
  align-self:stretch!important;
  overflow:auto!important;
  padding:12px!important;
  border:1px solid #ece8f1!important;
  border-radius:15px!important;
  background:#faf9fd!important;
  scrollbar-width:thin;
}
.library-page-v13 .feed-research-chart{height:118px!important;margin-top:10px!important}
.library-page-v13 .feed-side-actions{
  margin-top:0!important;
  padding-top:10px!important;
  border-top:1px solid #efedf3!important;
}
.library-page-v13 .feed-side-actions .feed-cta{
  height:46px!important;
  font-size:12px!important;
  font-weight:850!important;
}
.library-page-v13 .feed-original-intent{
  margin:0!important;
  text-align:center!important;
}

/* ---- Full process: port APP landscape proportions, not the mobile stack ---- */
.library-detail-layer{
  padding:10px 14px 14px!important;
  background:#f6f6fa!important;
}
.library-detail-surface{
  width:min(100%,1760px)!important;
  grid-template-rows:56px minmax(0,1fr)!important;
  border-radius:22px!important;
  box-shadow:0 16px 46px rgba(47,35,83,.075)!important;
}
.library-detail-toolbar{
  min-height:56px!important;
  padding:6px 10px!important;
  gap:10px!important;
}
.library-detail-back,.library-print-report{min-height:38px!important;border-radius:12px!important}
.library-detail-body{
  min-height:0!important;
  height:100%!important;
  display:grid!important;
  grid-template-columns:minmax(620px,1fr) 460px!important;
  gap:10px!important;
  padding:10px!important;
  overflow:hidden!important;
  background:#f7f6fa!important;
}
.library-detail-board-column-v20{
  min-width:0!important;
  min-height:0!important;
  height:100%!important;
  display:grid!important;
  grid-template-rows:50px minmax(0,1fr)!important;
  align-items:stretch!important;
  justify-items:stretch!important;
  gap:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.library-detail-game-strip-v20{
  width:min(100%,860px)!important;
  justify-self:center!important;
  min-height:50px!important;
  padding:6px 10px!important;
  border:0!important;
  border-bottom:1px solid #efedf3!important;
  background:transparent!important;
}
.library-detail-board-wrap-v20{
  box-sizing:border-box!important;
  align-self:center!important;
  justify-self:center!important;
  flex:none!important;
  aspect-ratio:1/1!important;
  min-width:0!important;
  min-height:0!important;
  max-width:calc(100% - 18px)!important;
  max-height:calc(100% - 18px)!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:18px!important;
  overflow:hidden!important;
  background:#fff!important;
  box-shadow:0 12px 30px rgba(87,57,22,.13)!important;
}
.library-detail-board-wrap-v20 #libPreviewBoard,
.library-detail-board-wrap-v20 .go-board{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  aspect-ratio:1/1!important;
  border-radius:18px!important;
}
.library-detail-research-column-v20{
  min-width:0!important;
  min-height:0!important;
  height:100%!important;
  display:grid!important;
  grid-template-rows:auto auto minmax(0,1fr)!important;
  gap:8px!important;
  padding:10px!important;
  overflow:hidden!important;
  border:1px solid var(--v21-line)!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.library-detail-facts{
  margin:0!important;
  padding:11px 12px!important;
  border:0!important;
  border-radius:14px!important;
  background:#faf9fd!important;
  box-shadow:none!important;
}
.library-detail-facts h2{font-size:17px!important;line-height:1.3!important;margin:5px 0 7px!important}
.library-detail-player-line{margin:5px 0 8px!important}
.library-detail-fact-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important}
.library-detail-fact-grid>span{padding:6px!important;border-radius:9px!important;background:#fff!important}
.library-detail-control-card-v20{
  margin:0!important;
  padding:10px!important;
  border:0!important;
  border-radius:14px!important;
  background:#faf9fd!important;
  box-shadow:none!important;
}
.library-detail-playback-v20{
  grid-template-columns:38px 38px minmax(44px,1fr) 38px 38px!important;
  gap:5px!important;
}
.library-detail-playback-v20 button{width:38px!important;height:35px!important;min-height:35px!important;border-radius:10px!important}
.library-detail-playback-v20 .lib-preview-play{width:42px!important;height:42px!important}
.library-detail-control-card-v20 .lib-preview-actions{padding-top:7px!important}
.library-report-host-v20{
  min-height:0!important;
  overflow:hidden!important;
}
.library-report-host-v20>.pc-report-dock{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.library-report-host-v20>.pc-report-dock.ready{
  display:grid!important;
  grid-template-rows:auto auto minmax(0,1fr)!important;
}
.library-report-host-v20 .pc-report-work{min-height:0!important;overflow:auto!important;scrollbar-width:thin}

/* ---- Large desktop ---- */
@media(min-width:1480px){
  .library-page-v13 .feed-focus-layout-v19{grid-template-columns:265px minmax(620px,1fr) 420px!important;gap:14px!important}
  .library-page-v13 #feedFeaturedHost.feed-card-featured{grid-template-columns:minmax(620px,1fr) 420px!important;gap:14px!important}
  .library-detail-body{grid-template-columns:minmax(690px,1fr) 500px!important;gap:12px!important;padding:12px!important}
}
/* ---- 1366 / laptop ---- */
@media(min-width:1181px) and (max-width:1479px){
  .library-page-v13 .feed-focus-layout-v19{grid-template-columns:205px minmax(500px,1fr) 345px!important;gap:9px!important}
  .library-page-v13 #feedFeaturedHost.feed-card-featured{grid-template-columns:minmax(500px,1fr) 345px!important;gap:9px!important}
  .library-page-v13 .feed-info-v20{padding:12px!important;gap:7px!important}.library-page-v13 .feed-info-v20 h2{font-size:18px!important}
  .library-detail-body{grid-template-columns:minmax(530px,1fr) 390px!important;gap:8px!important;padding:8px!important}
  .library-detail-research-column-v20{padding:8px!important;gap:7px!important}
  .library-detail-facts{padding:9px!important}.library-detail-facts h2{font-size:15px!important}
}
/* ---- iPad landscape ---- */
@media(min-width:901px) and (max-width:1180px){
  .library-page-v13 .feed-focus-layout-v19{grid-template-columns:150px minmax(430px,1fr) 270px!important;gap:7px!important}
  .library-page-v13 #feedFeaturedHost.feed-card-featured{grid-template-columns:minmax(430px,1fr) 270px!important;gap:7px!important}
  .library-page-v13 .feed-info-v20{padding:9px!important;gap:5px!important;border-radius:15px!important}.library-page-v13 .feed-info-v20 h2{font-size:15px!important}
  .library-page-v13 .feed-research-snapshot.ready{padding:8px!important}.library-page-v13 .feed-research-chart{height:82px!important}
  .library-detail-layer{padding:7px!important}.library-detail-surface{grid-template-rows:52px minmax(0,1fr)!important;border-radius:17px!important}
  .library-detail-body{grid-template-columns:minmax(440px,1fr) 300px!important;gap:6px!important;padding:6px!important}
  .library-detail-board-column-v20{border-radius:15px!important}.library-detail-game-strip-v20{min-height:44px!important;padding:5px 7px!important}
  .library-detail-research-column-v20{padding:6px!important;gap:5px!important;border-radius:15px!important}
  .library-detail-facts{padding:7px!important;border-radius:11px!important}.library-detail-facts h2{font-size:13px!important;margin:3px 0 5px!important}.library-detail-player-line{display:none!important}
  .library-detail-fact-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .library-detail-control-card-v20{padding:7px!important;gap:5px!important}.library-detail-control-card-v20 .lib-preview-actions button{font-size:8px!important;padding-inline:4px!important}
}

/* Absolute square invariant: no inherited height rule may deform a board. */
.library-page-v13 .feed-board-stage-v20 .feed-board-frame,
.library-page-v13 .feed-board-stage-v20 .feed-board,
.library-detail-board-wrap-v20,
.library-detail-board-wrap-v20 #libPreviewBoard,
.library-page-v13 .lib-inspector-board-shell,
.library-page-v13 .lib-inspector-board{
  box-sizing:border-box!important;
  aspect-ratio:1/1!important;
}

.library-detail-board-column-v20{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:50px minmax(0,1fr)!important;
  grid-template-areas:
    "players"
    "board"!important;
  align-items:stretch!important;
  justify-items:stretch!important;
  align-content:stretch!important;
  justify-content:stretch!important;
  overflow:hidden!important;
}

.library-detail-game-strip-v20{
  grid-area:players!important;
  align-self:stretch!important;
  justify-self:center!important;
}

.library-detail-board-wrap-v20.lib-preview-board-wrap,
.library-detail-board-wrap-v20{
  grid-area:board!important;
  position:relative!important;
  inset:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  place-self:center!important;
  box-sizing:border-box!important;
  inline-size:min(calc(100% - 24px), calc(100dvh - 180px), 760px)!important;
  block-size:auto!important;
  min-inline-size:0!important;
  min-block-size:0!important;
  max-inline-size:760px!important;
  max-block-size:calc(100dvh - 180px)!important;
  aspect-ratio:1 / 1!important;
  margin:0!important;
  padding:0!important;
}

.library-detail-board-wrap-v20 #libPreviewBoard,
.library-detail-board-wrap-v20 .go-board{
  box-sizing:border-box!important;
  inline-size:100%!important;
  block-size:100%!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  aspect-ratio:1 / 1!important;
}

/* Let the board own the visual weight; the left stage should never look like
   a blank canvas with a small board parked in one corner. */
.library-detail-board-column-v20::before,
.library-detail-board-column-v20::after{content:none!important}

@media (min-width:1480px){
  .library-detail-board-wrap-v20.lib-preview-board-wrap,
  .library-detail-board-wrap-v20{
    inline-size:min(calc(100% - 30px), calc(100dvh - 176px), 790px)!important;
    max-inline-size:790px!important;
    max-block-size:calc(100dvh - 176px)!important;
  }
}

@media (min-width:1181px) and (max-width:1479px){
  .library-detail-board-wrap-v20.lib-preview-board-wrap,
  .library-detail-board-wrap-v20{
    inline-size:min(calc(100% - 18px), calc(100dvh - 166px), 650px)!important;
    max-inline-size:650px!important;
    max-block-size:calc(100dvh - 166px)!important;
  }
}

@media (min-width:901px) and (max-width:1180px){
  .library-detail-board-column-v20{
    grid-template-rows:44px minmax(0,1fr)!important;
  }
  .library-detail-board-wrap-v20.lib-preview-board-wrap,
  .library-detail-board-wrap-v20{
    inline-size:min(calc(100% - 12px), calc(100dvh - 148px), 540px)!important;
    max-inline-size:540px!important;
    max-block-size:calc(100dvh - 148px)!important;
  }
}

/* ---------- Top bar brand ---------- */
.topbar .brand{
  gap:9px;
}
.topbar .brand-logo-asset{
  width:38px;
  height:38px;
  padding:0;
  overflow:hidden;
  border-radius:12px;
  background:#6e4ff1;
  box-shadow:0 6px 15px rgba(103,76,230,.18);
}
.topbar .brand-logo-asset img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.topbar .brand-wordmark{
  display:flex;
  align-items:center;
  min-width:0;
  height:34px;
  line-height:1;
}
.topbar .brand-wordmark img{
  display:block;
  width:126px;
  max-width:100%;
  height:auto;
  object-fit:contain;
}
.topbar .brand-tag{
  flex:0 0 auto;
  margin-left:1px;
}

/* ---------- Login brand lockup ---------- */
.login-card{
  max-width:400px;
}
.login-brand-lockup{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:0 36px 12px 0;
  min-height:52px;
}
.login-brand-icon{
  width:46px;
  height:46px;
  flex:0 0 46px;
  border-radius:14px;
  object-fit:cover;
  box-shadow:0 7px 18px rgba(103,76,230,.16);
}
.login-brand-wordmark{
  display:block;
  width:174px;
  max-width:calc(100% - 60px);
  height:auto;
  object-fit:contain;
}
.login-brand-lockup + .login-title{
  margin-top:2px;
}

/* Compact desktop: keep the official wordmark without crowding the user area. */
@media (max-width:1279px){
  .topbar .brand-wordmark img{width:112px}
  .topbar .brand-logo-asset{width:34px;height:34px;border-radius:11px}
}

@media (max-width:1099px){
  .topbar .brand-wordmark img{width:104px}
  .login-card{max-width:380px}
}

@media (min-width:900px){
  body.library-detail-open{overflow:hidden!important}

  .library-detail-layer{
    padding:8px 12px 12px!important;
    background:#f3f3f8!important;
  }
  .library-detail-surface{
    width:min(100%,1480px)!important;
    height:100%!important;
    margin:0 auto!important;
    grid-template-rows:46px minmax(0,1fr)!important;
    border:1px solid #e4e2eb!important;
    border-radius:24px!important;
    background:#f9f9fc!important;
    box-shadow:0 16px 42px rgba(47,38,78,.07)!important;
  }
  .library-detail-toolbar{
    min-height:46px!important;
    padding:4px 8px!important;
    gap:8px!important;
    border-bottom:1px solid #ebe9f0!important;
    background:rgba(255,255,255,.88)!important;
  }
  .library-detail-back,.library-print-report{
    min-height:34px!important;
    height:34px!important;
    padding:0 11px!important;
    border-color:#e0ddea!important;
    border-radius:11px!important;
    background:#fff!important;
    box-shadow:none!important;
    font-size:11px!important;
  }
  .lib-preview-head small{font-size:8px!important}
  .lib-preview-head b{font-size:13px!important}
  .lib-preview-head span{font-size:8px!important}

  /* Reference composition: a compact landscape desk, not two full-height cards. */
  .library-detail-body{
    --v24-stage-h:min(752px,calc(100dvh - 136px));
    width:100%!important;
    height:100%!important;
    display:grid!important;
    grid-template-columns:minmax(560px,680px) minmax(390px,480px)!important;
    grid-auto-rows:var(--v24-stage-h)!important;
    justify-content:center!important;
    align-content:start!important;
    align-items:start!important;
    gap:16px!important;
    padding:12px 22px!important;
    overflow:hidden!important;
    background:#f9f9fc!important;
  }

  .library-detail-board-column-v24,
  .library-detail-research-column-v24{
    width:100%!important;
    height:var(--v24-stage-h)!important;
    min-width:0!important;
    min-height:0!important;
    overflow:hidden!important;
    border:1px solid #e6e3ea!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 12px 30px rgba(51,42,83,.055)!important;
  }

  /* LEFT — Web APP landscape visual hierarchy. */
  .library-detail-board-column-v24{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:66px minmax(0,1fr)!important;
    grid-template-areas:"players" "board"!important;
    align-items:stretch!important;
    justify-items:stretch!important;
    padding:0!important;
    background:#fff!important;
  }
  .library-detail-game-strip-v24{
    --lib-black-rate:50%;
    grid-area:players!important;
    position:relative!important;
    width:100%!important;
    min-height:66px!important;
    display:grid!important;
    grid-template-columns:1fr auto 1fr!important;
    align-items:center!important;
    justify-self:stretch!important;
    gap:9px!important;
    padding:7px 14px 14px!important;
    border:0!important;
    border-bottom:1px solid #eee9df!important;
    background:#fcfaf4!important;
  }
  .library-detail-game-strip-v24>span{
    width:max-content!important;
    max-width:100%!important;
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    padding:4px 10px!important;
    border:1px solid #e7e1d8!important;
    border-radius:14px!important;
    background:#fffdf8!important;
    box-shadow:0 2px 7px rgba(61,48,28,.05)!important;
  }
  .library-detail-game-strip-v24>span.black{
    justify-self:end!important;
    color:#fff!important;
    border-color:#2c2934!important;
    background:#28252f!important;
    box-shadow:0 3px 9px rgba(35,31,44,.18)!important;
  }
  .library-detail-game-strip-v24>span.white{justify-self:start!important}
  .library-detail-game-strip-v24>span.white div{text-align:left!important}
  .library-detail-game-strip-v24>span div{display:grid!important;gap:0!important}
  .library-detail-game-strip-v24>span b{
    max-width:118px!important;
    overflow:hidden!important;
    color:inherit!important;
    font-size:11px!important;
    line-height:1.15!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .library-detail-game-strip-v24>span small{
    color:#8e8791!important;
    font-size:7.5px!important;
    font-weight:700!important;
    line-height:1.15!important;
  }
  .library-detail-game-strip-v24>span.black small{color:rgba(255,255,255,.68)!important}
  .library-detail-game-strip-v24 .stone{width:18px!important;height:18px!important}
  .library-detail-game-strip-v24>em{
    padding:4px 8px!important;
    border:1px solid #d9cff8!important;
    border-radius:999px!important;
    color:#6c5ec6!important;
    background:#f5f2ff!important;
    font-size:9px!important;
    font-weight:850!important;
  }
  .library-detail-winrate-track{
    position:absolute!important;
    left:14px!important;
    right:14px!important;
    bottom:7px!important;
    height:4px!important;
    overflow:hidden!important;
    border-radius:99px!important;
    background:linear-gradient(90deg,#27252c 0 var(--lib-black-rate),#d9d2ff var(--lib-black-rate) 100%)!important;
    box-shadow:inset 0 0 0 1px rgba(44,39,61,.04)!important;
  }

  .library-detail-board-wrap-v24.lib-preview-board-wrap,
  .library-detail-board-wrap-v24{
    grid-area:board!important;
    position:relative!important;
    place-self:center!important;
    box-sizing:border-box!important;
    width:min(calc(100% - 2px),calc(var(--v24-stage-h) - 66px))!important;
    height:auto!important;
    max-width:none!important;
    max-height:calc(var(--v24-stage-h) - 66px)!important;
    aspect-ratio:1/1!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0 0 16px 16px!important;
    overflow:hidden!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  .library-detail-board-wrap-v24 #libPreviewBoard,
  .library-detail-board-wrap-v24 .go-board{
    box-sizing:border-box!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    max-width:none!important;
    max-height:none!important;
    aspect-ratio:1/1!important;
    border-radius:0!important;
  }

  /* RIGHT — one research surface with tabs on top and playback fixed below. */
  .library-detail-research-column-v24{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto minmax(0,1fr) 66px!important;
    gap:0!important;
    padding:0!important;
    border-radius:18px!important;
    background:#fff!important;
  }
  .library-detail-research-column-v24.has-report{
    grid-template-rows:minmax(0,1fr) 66px!important;
  }
  .library-detail-facts-host:empty{display:none!important}
  .library-detail-research-column-v24.has-report>.library-detail-facts-host{display:none!important}
  .library-detail-facts-host .library-detail-facts{
    margin:10px 10px 0!important;
    padding:9px 10px!important;
    border:0!important;
    border-radius:13px!important;
    background:#faf9fd!important;
    box-shadow:none!important;
  }
  .library-detail-facts-host .library-detail-facts h2{font-size:14px!important;margin:4px 0 5px!important}
  .library-detail-facts-host .library-detail-player-line{display:none!important}
  .library-detail-facts-host .library-detail-fact-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}

  .library-report-host-v24{
    min-width:0!important;
    min-height:0!important;
    height:100%!important;
    overflow:hidden!important;
  }
  .library-report-host-v24>.pc-report-dock{
    height:100%!important;
    min-height:0!important;
    margin:0!important;
    padding:14px!important;
    overflow:auto!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  .library-report-host-v24>.pc-report-dock-v24{
    display:grid!important;
    grid-template-rows:62px minmax(0,1fr)!important;
    padding:0!important;
    overflow:hidden!important;
  }
  .pc-report-tabs-v24{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    align-items:stretch!important;
    gap:0!important;
    margin:0!important;
    padding:8px!important;
    border-bottom:1px solid #ebe8ef!important;
    border-radius:0!important;
    background:#fff!important;
  }
  .pc-report-tabs-v24 button{
    min-width:0!important;
    min-height:46px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    padding:0 8px!important;
    border:1px solid transparent!important;
    border-radius:13px!important;
    color:#716b7a!important;
    background:transparent!important;
    box-shadow:none!important;
    font-size:11px!important;
    font-weight:820!important;
  }
  .pc-report-tabs-v24 button.active{
    color:#5d45d7!important;
    border-color:#d6ccff!important;
    background:#efedff!important;
    box-shadow:none!important;
  }
  .pc-report-tabs-v24 em{
    min-width:16px!important;
    height:16px!important;
    margin:0!important;
    display:inline-grid!important;
    place-items:center!important;
    padding:0 4px!important;
    border-radius:99px!important;
    color:#777183!important;
    background:#f0eef4!important;
    font-size:7px!important;
    font-weight:850!important;
  }
  .pc-report-tabs-v24 button.active em{color:#fff!important;background:#6b55df!important}
  .pc-report-work{
    min-height:0!important;
    margin:0!important;
    padding:14px 16px 16px!important;
    overflow:auto!important;
    scrollbar-width:thin!important;
    background:#fff!important;
  }
  .pc-report-work::-webkit-scrollbar{width:5px}
  .pc-report-work::-webkit-scrollbar-thumb{border-radius:8px;background:#dcd8e5}

  /* Player analysis — match the compact reference card, not a dashboard stack. */
  .pc-report-review>header{
    min-height:68px!important;
    align-items:center!important;
    gap:10px!important;
    padding:0 2px 10px!important;
  }
  .pc-report-review>header small{
    color:#6f59dd!important;
    font-size:9px!important;
    font-weight:850!important;
  }
  .pc-report-review>header b{
    margin-top:5px!important;
    color:#292438!important;
    font-size:16px!important;
    line-height:1.25!important;
  }
  .pc-report-review>header b .pc-review-ai{
    display:inline-flex!important;
    align-items:center!important;
    border:0!important;
    min-height:22px!important;
    margin-left:6px!important;
    padding:0 7px!important;
    border-radius:8px!important;
    color:#fff!important;
    background:#6c56df!important;
    font-size:8px!important;
    font-style:normal!important;
    vertical-align:2px!important;
  }
  .pc-report-review>header>em{
    flex:none!important;
    padding:6px 10px!important;
    border-radius:999px!important;
    color:#fff!important;
    background:#d24558!important;
    font-size:9px!important;
    font-weight:900!important;
  }
  /* 点评等级色与 Web APP 同口径；神韵/至臻沿用八档金/蓝语义。 */
  .pc-report-review>header>em.grade-推荐{color:#257147!important;background:#e2f6e9!important}
  .pc-report-review>header>em.grade-神韵{color:#7a6500!important;background:#fff4b8!important}
  .pc-report-review>header>em.grade-至臻{color:#1f65a2!important;background:#e4f1ff!important}
  .pc-report-review>header>em.grade-合宜{color:#3179a5!important;background:#e3f4ff!important}
  .pc-report-review>header>em.grade-尚可{color:#7a6b20!important;background:#fff3bb!important}
  .pc-report-review>header>em.grade-不妥{color:#b26b1f!important;background:#ffead1!important}
  .pc-report-review>header>em.grade-不当{color:#bf493f!important;background:#ffe0dc!important}
  .pc-report-review>header>em.grade-大错{color:#fff!important;background:#c84055!important}
  .pc-report-candidates span.grade-推荐,.pc-practice-title>strong.grade-推荐{color:#257147!important;background:#e2f6e9!important}
  .pc-report-candidates span.grade-神韵,.pc-practice-title>strong.grade-神韵{color:#7a6500!important;background:#fff4b8!important}
  .pc-report-candidates span.grade-至臻,.pc-practice-title>strong.grade-至臻{color:#1f65a2!important;background:#e4f1ff!important}
  .pc-report-candidates span.grade-合宜,.pc-practice-title>strong.grade-合宜{color:#3179a5!important;background:#e3f4ff!important}
  .pc-report-candidates span.grade-尚可,.pc-practice-title>strong.grade-尚可{color:#7a6b20!important;background:#fff3bb!important}
  .pc-report-candidates span.grade-不妥,.pc-practice-title>strong.grade-不妥{color:#b26b1f!important;background:#ffead1!important}
  .pc-report-candidates span.grade-不当,.pc-practice-title>strong.grade-不当{color:#bf493f!important;background:#ffe0dc!important}
  .pc-report-candidates span.grade-大错,.pc-practice-title>strong.grade-大错{color:#fff!important;background:#c84055!important}
  .pc-report-candidates span[class*="grade-"]{justify-self:start!important;padding:3px 7px!important;border-radius:999px!important;font-weight:850!important}
  .pc-report-candidates{
    margin-top:0!important;
    border:1px solid #e7e4eb!important;
    border-radius:13px!important;
    overflow:hidden!important;
    background:#fff!important;
  }
  .pc-report-candidates>div{
    grid-template-columns:1.08fr .8fr .9fr .9fr .9fr!important;
    gap:5px!important;
    min-height:46px!important;
    padding:8px 10px!important;
    font-size:9px!important;
  }
  .pc-report-candidates .head{min-height:36px!important;color:#8b8695!important;background:#faf9fc!important;font-size:8px!important}
  .pc-report-candidates .recommended{color:#5b50d5!important;background:#f0edff!important}
  .pc-report-candidates strong{font-size:12px!important}
  .pc-report-coach{
    grid-template-columns:28px minmax(0,1fr) auto!important;
    gap:8px!important;
    margin-top:10px!important;
    padding:9px 10px!important;
    border:1px solid #ebe7fa!important;
    border-radius:12px!important;
    color:#4e4565!important;
    background:#faf8ff!important;
  }
  .pc-report-coach>span{width:28px!important;height:28px!important;border-radius:9px!important;color:#6652d9!important;background:#eeeaff!important}
  .pc-report-coach b{font-size:10px!important}.pc-report-coach p{margin-top:2px!important;color:#766f82!important;font-size:9px!important;line-height:1.4!important}
  .pc-report-coach button{padding:6px 8px!important;border-color:#d8d0ff!important;color:#5d49cf!important;background:#fff!important;font-size:9px!important}

  /* Teaching focus list — five clear targets, one reading line each. */
  .pc-report-issues-v24{display:grid!important;align-content:start!important;gap:8px!important}
  .pc-report-issues-v24 .pc-report-issue-intro{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:8px!important;
    padding:0 2px 7px!important;
    border-radius:0!important;
    background:transparent!important;
  }
  .pc-report-issues-v24 .pc-report-issue-intro small{color:#6f59dd!important;font-size:9px!important;font-weight:850!important}
  .pc-report-issues-v24 .pc-report-issue-intro b{margin-top:3px!important;color:#2e2939!important;font-size:16px!important}
  .pc-report-issues-v24 .pc-report-issue-intro>em{
    padding:4px 8px!important;
    border-radius:99px!important;
    color:#8a8493!important;
    background:#f2f0f5!important;
    font-size:7px!important;
    font-style:normal!important;
    font-weight:800!important;
  }
  .pc-report-issues-v24 article{
    min-height:72px!important;
    display:grid!important;
    grid-template-columns:30px minmax(0,1fr) auto 20px!important;
    align-items:center!important;
    gap:8px!important;
    padding:8px 10px!important;
    border:1px solid #e9e6ed!important;
    border-radius:14px!important;
    background:#fff!important;
  }
  .pc-report-issues-v24 article>em{
    width:26px!important;height:26px!important;
    border-radius:9px!important;
    color:#6552d6!important;
    background:#eeebff!important;
    font-size:10px!important;
  }
  .pc-report-issue-main{
    min-width:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    text-align:left!important;
    cursor:pointer!important;
  }
  .pc-report-issue-main small{display:block!important;color:#928c9a!important;font-size:8px!important}
  .pc-report-issue-main b{display:block!important;margin-top:3px!important;color:#363140!important;font-size:11px!important;line-height:1.25!important}
  .pc-report-issue-main p{
    margin:3px 0 0!important;
    overflow:hidden!important;
    color:#777180!important;
    font-size:8.5px!important;
    line-height:1.35!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .pc-report-issues-v24 article>strong{
    padding:5px 9px!important;
    border-radius:999px!important;
    color:#fff!important;
    background:#d24558!important;
    font-size:8px!important;
    white-space:nowrap!important;
  }
  .pc-report-issues-v24 article>strong.grade-推荐{color:#257147!important;background:#e2f6e9!important}
  .pc-report-issues-v24 article>strong.grade-神韵{color:#7a6500!important;background:#fff4b8!important}
  .pc-report-issues-v24 article>strong.grade-至臻{color:#1f65a2!important;background:#e4f1ff!important}
  .pc-report-issues-v24 article>strong.grade-合宜{color:#3179a5!important;background:#e3f4ff!important}
  .pc-report-issues-v24 article>strong.grade-尚可{color:#7a6b20!important;background:#fff3bb!important}
  .pc-report-issues-v24 article>strong.grade-不妥{color:#b26b1f!important;background:#ffead1!important}
  .pc-report-issues-v24 article>strong.grade-不当{color:#bf493f!important;background:#ffe0dc!important}
  .pc-report-issues-v24 article>strong.grade-大错{color:#fff!important;background:#c84055!important}
  .pc-report-issue-locate{
    width:20px!important;height:28px!important;min-height:28px!important;
    padding:0!important;border:0!important;background:transparent!important;
    color:#6b55db!important;font-size:17px!important;
  }

  /* Teaching focus detail uses its own bottom focus navigation. */
  .pc-report-practice-v24{
    height:100%!important;
    min-height:0!important;
    display:grid!important;
    grid-template-rows:34px minmax(0,1fr) 54px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
  }
  .pc-report-practice-v24>header{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    padding-bottom:7px!important;
    border-bottom:1px solid #eeeaf2!important;
  }
  .pc-report-practice-v24>header button{
    padding:0!important;border:0!important;background:transparent!important;
    color:#654fd4!important;font-size:9px!important;font-weight:850!important;
  }
  .pc-report-practice-v24>header span{color:#8f8998!important;font-size:8px!important}
  .pc-report-practice-v24>section{align-self:start!important;margin-top:10px!important;padding:11px!important;border:1px solid #e6e2ef!important;border-radius:14px!important;background:#fff!important}
  .pc-practice-title{display:grid!important;grid-template-columns:30px minmax(0,1fr) auto!important;align-items:start!important;gap:8px!important}
  .pc-practice-title>em{width:28px!important;height:28px!important;display:grid!important;place-items:center!important;border-radius:50%!important;color:#fff!important;background:#6b55df!important;font-size:10px!important;font-style:normal!important;font-weight:900!important}
  .pc-practice-title small{display:block!important;color:#6e57d7!important;font-size:8px!important;font-weight:850!important}
  .pc-practice-title b{display:block!important;margin-top:3px!important;color:#332e3f!important;font-size:13px!important}
  .pc-practice-title p{margin:3px 0 0!important;color:#8b8493!important;font-size:8px!important}
  .pc-practice-title>strong{padding:4px 7px!important;border-radius:99px!important;color:#fff!important;background:#2d2a35!important;font-size:8px!important;white-space:nowrap!important}
  .pc-practice-copy{margin:10px 0 0!important;padding:8px 9px!important;border-radius:10px!important;color:#5e576a!important;background:#f7f5fc!important;font-size:10px!important;line-height:1.5!important}
  .pc-report-practice-v24>footer{
    display:grid!important;
    grid-template-columns:1fr auto 1fr!important;
    align-items:center!important;
    gap:8px!important;
    margin:0 -16px -16px!important;
    padding:7px 10px!important;
    border-top:1px solid #ebe8ef!important;
    background:#fff!important;
  }
  .pc-report-practice-v24>footer button{min-height:38px!important;border:1px solid #ded8fa!important;border-radius:11px!important;color:#614bd0!important;background:#fff!important;font-size:9px!important;font-weight:850!important}
  .pc-report-practice-v24>footer button:disabled{opacity:.35!important}
  .pc-report-practice-v24>footer div{display:grid!important;justify-items:center!important;gap:1px!important;white-space:nowrap!important}
  .pc-report-practice-v24>footer b{color:#634dd3!important;font-size:9px!important}.pc-report-practice-v24>footer small{color:#8b8494!important;font-size:8px!important}
  .library-detail-research-column-v24:has(.pc-report-practice-v24) .library-detail-control-card-v24{display:none!important}
  .library-detail-research-column-v24:has(.pc-report-practice-v24){grid-template-rows:minmax(0,1fr)!important}

  /* Summary remains data-rich, but reads as one report pane instead of cards in cards. */
  .pc-report-summary{padding-top:2px!important}
  .pc-report-score-hero article{padding:10px!important;border-radius:12px!important}.pc-report-score-hero b{font-size:22px!important}
  .pc-report-summary-metrics{gap:6px!important;margin-top:8px!important}.pc-report-summary-metrics span{padding:8px!important;border-radius:10px!important}
  .pc-report-chart-card,.pc-report-stage-card{margin-top:9px!important;padding:10px!important;border-radius:12px!important}

  /* Bottom playback dock, deliberately compact like the APP landscape sample. */
  .library-detail-control-card-v24{
    grid-row:-1!important;
    min-width:0!important;
    min-height:66px!important;
    display:grid!important;
    grid-template-columns:38px minmax(0,1fr) 44px 38px!important;
    grid-template-rows:1fr!important;
    align-items:center!important;
    gap:7px!important;
    margin:0!important;
    padding:8px 10px!important;
    border:0!important;
    border-top:1px solid #e9e6ed!important;
    border-radius:0!important;
    background:#fff!important;
  }
  .library-detail-step{
    width:38px!important;height:38px!important;min-height:38px!important;
    display:grid!important;place-items:center!important;
    padding:0!important;border:1px solid #dfdaf1!important;border-radius:11px!important;
    color:#6651d6!important;background:#fff!important;font-size:18px!important;font-weight:500!important;
  }
  .library-detail-progress{min-width:0!important;display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;gap:7px!important}
  .library-detail-progress>b{color:#716a80!important;font-size:8px!important;white-space:nowrap!important;font-variant-numeric:tabular-nums!important}
  .library-detail-progress .library-detail-scrubber{height:30px!important;min-width:0!important}
  .library-detail-play{
    width:44px!important;height:44px!important;min-height:44px!important;
    display:grid!important;place-items:center!important;
    padding:0!important;border:0!important;border-radius:50%!important;
    color:#fff!important;background:#6750e5!important;
    box-shadow:0 5px 14px rgba(91,70,211,.23)!important;
    font-size:14px!important;
  }
  .library-detail-secondary-actions{display:none!important}

  /* Non-ready report states still fit the same right pane gracefully. */
  .library-detail-research-column-v24.no-report .library-report-host-v24>.pc-report-dock{padding:12px!important}
}

@media (min-width:1480px){
  .library-detail-body{
    --v24-stage-h:min(760px,calc(100dvh - 136px));
    grid-template-columns:680px 480px!important;
    gap:16px!important;
  }
}

@media (min-width:1181px) and (max-width:1479px){
  .library-detail-body{
    --v24-stage-h:min(700px,calc(100dvh - 130px));
    grid-template-columns:minmax(540px,620px) minmax(360px,420px)!important;
    gap:12px!important;
    padding:10px 14px!important;
  }
  .library-detail-game-strip-v24{min-height:62px!important;padding-inline:11px!important}
  .library-detail-board-column-v24{grid-template-rows:62px minmax(0,1fr)!important}
  .library-detail-board-wrap-v24.lib-preview-board-wrap,.library-detail-board-wrap-v24{width:min(calc(100% - 2px),calc(var(--v24-stage-h) - 62px))!important;max-height:calc(var(--v24-stage-h) - 62px)!important}
  .pc-report-tabs-v24{padding:7px!important}.pc-report-tabs-v24 button{min-height:43px!important;font-size:10px!important}
  .pc-report-work{padding:12px 13px 13px!important}
}

@media (min-width:900px) and (max-width:1180px){
  .library-detail-layer{padding:6px!important}
  .library-detail-surface{grid-template-rows:42px minmax(0,1fr)!important;border-radius:18px!important}
  .library-detail-toolbar{min-height:42px!important;padding:3px 6px!important}
  .library-detail-body{
    --v24-stage-h:min(620px,calc(100dvh - 112px));
    grid-template-columns:minmax(430px,520px) minmax(300px,350px)!important;
    gap:8px!important;
    padding:8px!important;
  }
  .library-detail-board-column-v24,.library-detail-research-column-v24{border-radius:14px!important}
  .library-detail-board-column-v24{grid-template-rows:56px minmax(0,1fr)!important}
  .library-detail-game-strip-v24{min-height:56px!important;padding:5px 8px 12px!important}
  .library-detail-game-strip-v24>span{padding:3px 7px!important;border-radius:11px!important}.library-detail-game-strip-v24>span b{font-size:9px!important}.library-detail-game-strip-v24>span small{font-size:7px!important}
  .library-detail-board-wrap-v24.lib-preview-board-wrap,.library-detail-board-wrap-v24{width:min(calc(100% - 2px),calc(var(--v24-stage-h) - 56px))!important;max-height:calc(var(--v24-stage-h) - 56px)!important}
  .library-detail-research-column-v24{grid-template-rows:auto minmax(0,1fr) 58px!important}.library-detail-research-column-v24.has-report{grid-template-rows:minmax(0,1fr) 58px!important}
  .library-report-host-v24>.pc-report-dock-v24{grid-template-rows:54px minmax(0,1fr)!important}
  .pc-report-tabs-v24{padding:5px!important}.pc-report-tabs-v24 button{min-height:39px!important;padding-inline:4px!important;font-size:9px!important}
  .pc-report-work{padding:9px!important}
  .pc-report-review>header b{font-size:13px!important}.pc-report-candidates>div{padding:7px 6px!important;font-size:8px!important}
  .pc-report-coach{display:none!important}
  .library-detail-control-card-v24{min-height:58px!important;grid-template-columns:34px minmax(0,1fr) 40px 34px!important;padding:6px 7px!important}
  .library-detail-step{width:34px!important;height:34px!important;min-height:34px!important}.library-detail-play{width:40px!important;height:40px!important;min-height:40px!important}
}

@media (min-width: 900px) {
  /* ---------- 教学重点：真正进入做题态 ---------- */
  .pc-report-practice-v25>section{
    display:grid!important;
    gap:12px!important;
    padding:13px!important;
  }
  .pc-report-practice-v25 .pc-practice-title{
    grid-template-columns:34px minmax(0,1fr) auto!important;
  }
  .pc-report-practice-v25 .pc-practice-title>em{
    width:32px!important;height:32px!important;
    font-size:11px!important;
  }
  .pc-report-practice-v25 .pc-practice-title b{
    margin-top:4px!important;
    font-size:15px!important;
    line-height:1.3!important;
  }
  .pc-report-practice-v25 .pc-practice-title p{
    margin-top:5px!important;
    color:#6f687a!important;
    font-size:9.5px!important;
    line-height:1.45!important;
  }
  .pc-practice-turn{
    width:max-content!important;
    min-height:32px!important;
    display:inline-flex!important;
    align-items:center!important;
    gap:7px!important;
    margin-top:8px!important;
    padding:5px 11px!important;
    border:1px solid #d9d4e9!important;
    border-radius:999px!important;
    color:#2d2937!important;
    background:#f7f6fb!important;
    font-size:11px!important;
    font-weight:900!important;
    line-height:1!important;
    box-shadow:0 3px 10px rgba(39,28,74,.06)!important;
  }
  .pc-practice-turn .stone{width:19px!important;height:19px!important;flex:none!important}
  .pc-practice-turn.black{color:#fff!important;border-color:#27262e!important;background:#2b2a31!important}
  .pc-practice-turn.white{color:#302c39!important;border-color:#d9d5df!important;background:#fff!important}
  .pc-report-ab-options{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:9px!important;
  }
  .pc-report-ab-options button{
    min-height:58px!important;
    display:grid!important;
    grid-template-columns:34px minmax(0,1fr)!important;
    align-items:center!important;
    gap:9px!important;
    padding:8px 11px!important;
    border:1px solid #ddd7fa!important;
    border-radius:13px!important;
    color:#393344!important;
    background:#faf9ff!important;
    text-align:left!important;
    transition:.15s ease!important;
  }
  .pc-report-ab-options button:hover{border-color:#9f8eff!important;background:#f2efff!important;transform:translateY(-1px)!important}
  .pc-report-ab-options button.selected{border-color:#6b55df!important;background:#eeebff!important;box-shadow:0 0 0 2px rgba(107,85,223,.09)!important}
  .pc-report-ab-options button:disabled{cursor:default!important;opacity:.7!important;transform:none!important}
  .pc-report-ab-options button>b{
    width:32px!important;height:32px!important;
    display:grid!important;place-items:center!important;
    border-radius:50%!important;
    color:#fff!important;background:#6752da!important;
    font-size:13px!important;
  }
  .pc-report-ab-options button>span{font-size:13px!important;font-weight:900!important}
  .pc-practice-feedback{
    display:grid!important;
    gap:3px!important;
    padding:10px 11px!important;
    border-radius:11px!important;
    border:1px solid #e4dfef!important;
    background:#f8f7fb!important;
  }
  .pc-practice-feedback b{font-size:11px!important}.pc-practice-feedback small{color:#746d7e!important;font-size:9px!important;line-height:1.4!important}
  .pc-practice-feedback.wrong{border-color:#f1c8cc!important;color:#c43b4a!important;background:#fff3f4!important}
  .pc-practice-feedback.correct{border-color:#bfe5cd!important;color:#278b4e!important;background:#f0fbf4!important}
  .pc-practice-feedback.revealed{border-color:#d4cbff!important;color:#5c45c9!important;background:#f4f1ff!important}

  /* 棋盘题与 A/B 选择题共用棋盘状态层。 */
  #libPreviewBoard .board-marker.practice-option{
    width:5.45%!important;height:auto!important;aspect-ratio:1!important;
    border:3px solid #fff!important;
    border-radius:50%!important;
    background:#6954df!important;
    box-shadow:0 0 0 2px #6954df,0 4px 12px rgba(62,42,141,.28)!important;
    transform:translate(-50%,-50%)!important;
  }
  #libPreviewBoard .board-marker.practice-option.option-b{background:#826ceb!important;box-shadow:0 0 0 2px #826ceb,0 4px 12px rgba(62,42,141,.25)!important}
  #libPreviewBoard .board-label.practice-option-label{
    z-index:20!important;color:#fff!important;background:transparent!important;
    font-size:12px!important;font-weight:950!important;pointer-events:none!important;
  }
  #libPreviewBoard .board-marker.practice-wrong{
    width:5.5%!important;aspect-ratio:1!important;border:3px solid #fff!important;border-radius:50%!important;
    background:#d84558!important;box-shadow:0 0 0 2px #d84558!important;
  }
  #libPreviewBoard .board-marker.practice-correct,
  #libPreviewBoard .board-marker.practice-answer{
    width:5.5%!important;aspect-ratio:1!important;border:3px solid #fff!important;border-radius:50%!important;
    background:#39a968!important;box-shadow:0 0 0 2px #39a968!important;
  }
  #libPreviewBoard .board-label.practice-answer-label{z-index:20!important;color:#fff!important;font-size:12px!important;font-weight:950!important;background:transparent!important}
  #libPreviewBoard .board-stone.practice-choice-correct,
  #libPreviewBoard .board-stone.practice-revealed{z-index:14!important;box-shadow:0 0 0 4px rgba(66,178,107,.75),0 3px 8px rgba(0,0,0,.22)!important}
  .library-detail-board-column-v24:has(+ .library-detail-research-column-v24 .pc-report-practice-v25) .library-detail-game-strip-v24::after{
    content:"教学做题 · 棋盘已回到题目前一手";
    position:absolute;left:50%;top:100%;z-index:8;
    transform:translate(-50%,6px);
    padding:5px 10px;border-radius:999px;
    color:#5c46c7;background:rgba(247,244,255,.95);border:1px solid #dad2ff;
    font-size:8.5px;font-weight:850;white-space:nowrap;
  }

  /* ---------- 本盘总结：两大组 × 每组三个子页面 = 2×3 ---------- */
  .pc-report-summary-v25{
    min-height:0!important;
    display:grid!important;
    grid-template-rows:auto minmax(0,1fr)!important;
    gap:10px!important;
    padding:0!important;
  }
  .pc-summary-six-map{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:9px!important;
  }
  .pc-summary-six-map>section{
    min-width:0!important;
    padding:8px!important;
    border:1px solid #ebe8f0!important;
    border-radius:13px!important;
    background:#fbfafe!important;
  }
  .pc-summary-six-map>section.active-group{border-color:#d9d0ff!important;background:#f8f6ff!important}
  .pc-summary-six-map>section>header{margin-bottom:6px!important}
  .pc-summary-six-map>section>header button{
    width:100%!important;padding:0!important;border:0!important;background:transparent!important;
    color:#5f55a0!important;font-size:9px!important;font-weight:900!important;text-align:left!important;
  }
  .pc-summary-six-map>section>div{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
  .pc-summary-six-map>section>div>button{
    min-width:0!important;min-height:47px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;align-content:center!important;
    padding:6px 7px!important;border:1px solid #e7e3ed!important;border-radius:9px!important;color:#4e4858!important;background:#fff!important;text-align:left!important;
  }
  .pc-summary-six-map>section>div>button small{grid-column:1!important;color:#9993a1!important;font-size:7px!important}
  .pc-summary-six-map>section>div>button b{grid-column:1!important;overflow:hidden!important;font-size:9px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .pc-summary-six-map>section>div>button span{grid-column:2!important;grid-row:1/3!important;align-self:center!important;color:#aaa3b4!important;font-size:14px!important}
  .pc-summary-six-map>section>div>button.active{border-color:#a797ff!important;color:#5c45ca!important;background:#eeeaff!important;box-shadow:inset 0 0 0 1px #d6ceff!important}
  .pc-summary-six-map>section>div>button.active small,.pc-summary-six-map>section>div>button.active span{color:#6a54d7!important}
  .pc-summary-content{min-height:0!important;overflow:auto!important;padding-right:2px!important;scrollbar-width:thin!important}
  .pc-summary-page{min-height:100%!important;border:1px solid #e8e4ef!important;border-radius:14px!important;background:#fff!important}
  .pc-summary-page>header{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:8px!important;padding:11px 12px 8px!important;border-bottom:1px solid #efecf3!important}
  .pc-summary-page>header small{color:#6c57d4!important;font-size:8px!important;font-weight:850!important}.pc-summary-page>header h3{margin:3px 0 0!important;font-size:14px!important}.pc-summary-page>header p{margin:4px 0 0!important;color:#7a7480!important;font-size:8.5px!important}
  .pc-summary-page>header>span{padding:4px 7px!important;border-radius:99px!important;color:#70697a!important;background:#f3f1f5!important;font-size:8px!important}
  .pc-summary-mentor{padding:12px!important;background:radial-gradient(circle at 100% 0,rgba(101,71,245,.09),transparent 12rem),#fff!important}
  .pc-summary-mentor-head{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:10px!important;align-items:start!important}
  .pc-summary-mentor-head>span{width:40px!important;height:40px!important;display:grid!important;place-items:center!important;border-radius:50%!important;color:#fff!important;background:linear-gradient(145deg,#7659fb,#5230df)!important;font-size:15px!important;font-weight:900!important}
  .pc-summary-mentor-head small{color:#6753d1!important;font-size:8.5px!important;font-weight:850!important}.pc-summary-mentor-head h3{margin:2px 0 4px!important;font-size:16px!important}.pc-summary-mentor-head p{margin:0!important;color:#625b6a!important;font-size:10px!important;line-height:1.55!important}
  .pc-summary-action-grid{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:7px!important;margin-top:12px!important}.pc-summary-action-grid span{min-width:0!important;padding:9px!important;border-radius:10px!important;color:#645e6c!important;background:#f7f5fb!important;font-size:8.5px!important;line-height:1.45!important}.pc-summary-action-grid b{display:block!important;margin-bottom:3px!important;color:#604bd0!important;font-size:8px!important}
  .pc-summary-stage-tabs{display:flex!important;gap:4px!important;padding:9px 11px 4px!important;overflow-x:auto!important}.pc-summary-stage-tabs button{flex:1 0 auto!important;min-height:27px!important;padding:0 7px!important;border:0!important;border-radius:8px!important;color:#777080!important;background:#f3f1f7!important;font-size:8px!important}.pc-summary-stage-tabs button.active{color:#fff!important;background:#6851dd!important}
  .pc-summary-data .pc-report-trend{width:100%!important;max-height:210px!important;padding:4px 9px 0!important}.pc-summary-note{margin:4px 10px 10px!important;color:#8b8492!important;font-size:8px!important}
  .pc-summary-player-facts{display:grid!important;grid-template-columns:1fr auto 1fr!important;align-items:center!important;gap:9px!important;padding:12px!important}.pc-summary-player-facts article{display:grid!important;grid-template-columns:26px 1fr!important;grid-template-rows:auto auto auto!important;gap:1px 7px!important;padding:9px!important;border-radius:11px!important;background:#f7f6fa!important}.pc-summary-player-facts article .stone{grid-row:1/4!important;width:24px!important;height:24px!important;align-self:center!important}.pc-summary-player-facts small{color:#8c8694!important;font-size:7px!important}.pc-summary-player-facts b{font-size:10px!important}.pc-summary-player-facts span{color:#817a89!important;font-size:8px!important}.pc-summary-player-facts>strong{font-size:10px!important;color:#5e55a0!important;white-space:nowrap!important}
  .pc-summary-fact-grid{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:6px!important;padding:0 12px 12px!important}.pc-summary-fact-grid span{padding:8px!important;border-radius:9px!important;background:#f6f4f9!important}.pc-summary-fact-grid small{display:block!important;color:#918a99!important;font-size:7px!important}.pc-summary-fact-grid b{display:block!important;margin-top:2px!important;font-size:9px!important}
  .pc-score-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:11px!important}.pc-score-player{padding:10px!important;border-radius:12px!important;background:#f7f5fb!important}.pc-score-player.black{color:#fff!important;background:#322f3c!important}.pc-score-player>header{display:flex!important;align-items:center!important;justify-content:space-between!important;margin-bottom:8px!important}.pc-score-player>header span{display:flex!important;align-items:center!important;gap:6px!important;font-size:9px!important;font-weight:850!important}.pc-score-player>header .stone{width:18px!important;height:18px!important}.pc-score-player>header strong{font-size:22px!important}.pc-score-player>div{margin-top:6px!important}.pc-score-player>div>span{display:flex!important;justify-content:space-between!important;font-size:7.5px!important}.pc-score-player>div>i{height:5px!important;display:block!important;margin-top:3px!important;overflow:hidden!important;border-radius:99px!important;background:rgba(150,143,165,.2)!important}.pc-score-player>div>i>em{height:100%!important;display:block!important;border-radius:inherit!important;background:#6c56df!important}.pc-score-player.black>div>i>em{background:#fff!important}
  .pc-score-stage-bars{display:grid!important;gap:6px!important;padding:6px 11px 12px!important}.pc-score-stage-bars>span{display:grid!important;grid-template-columns:55px minmax(0,1fr) minmax(0,1fr) 92px!important;align-items:center!important;gap:6px!important}.pc-score-stage-bars small,.pc-score-stage-bars b{font-size:7.5px!important}.pc-score-stage-bars>span>i{height:6px!important;display:block!important;overflow:hidden!important;border-radius:99px!important;background:#eeeaf4!important}.pc-score-stage-bars>span>i em{height:100%!important;display:block!important}.pc-score-stage-bars>span>i.black em{background:#393641!important}.pc-score-stage-bars>span>i.white em{background:#8a75eb!important}
  .pc-grade-table{padding:10px 12px!important}.pc-grade-table>header,.pc-grade-table>div{display:grid!important;grid-template-columns:minmax(0,1fr) 54px 54px!important;align-items:center!important;min-height:29px!important;border-bottom:1px solid #efecf3!important}.pc-grade-table>header{color:#8e8795!important;font-size:8px!important}.pc-grade-table>div b{display:flex!important;align-items:center!important;gap:7px!important;font-size:8.5px!important}.pc-grade-table>div b i{width:7px!important;height:7px!important;border-radius:50%!important}.pc-grade-table strong{text-align:center!important;font-size:9px!important}
  .pc-problem-stage-grid{height:130px!important;display:grid!important;grid-template-columns:repeat(5,1fr)!important;align-items:end!important;gap:8px!important;padding:12px 14px 8px!important}.pc-problem-stage-grid>span{height:100%!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;justify-items:center!important;gap:4px!important}.pc-problem-stage-grid small,.pc-problem-stage-grid b{font-size:7px!important}.pc-problem-stage-grid>span>i{width:18px!important;height:100%!important;display:flex!important;align-items:flex-end!important;overflow:hidden!important;border-radius:6px!important;background:#f0edf7!important}.pc-problem-stage-grid>span>i>em{width:100%!important;display:block!important;border-radius:6px!important;background:#7158e4!important}
  .pc-summary-priority{display:grid!important;gap:5px!important;padding:5px 11px 12px!important}.pc-summary-priority button{display:grid!important;grid-template-columns:24px minmax(0,1fr) auto!important;align-items:center!important;gap:7px!important;padding:7px!important;border:1px solid #ece8f1!important;border-radius:9px!important;background:#fff!important;text-align:left!important}.pc-summary-priority button>em{width:23px!important;height:23px!important;display:grid!important;place-items:center!important;border-radius:7px!important;color:#6551d2!important;background:#efebff!important;font-size:8px!important;font-style:normal!important;font-weight:900!important}.pc-summary-priority small{display:block!important;color:#938d99!important;font-size:7px!important}.pc-summary-priority b{font-size:8.5px!important}.pc-summary-priority button>span{color:#6752d5!important;font-size:8px!important}
}

@media (min-width:900px){
  .library-detail-board-wrap-v24{position:relative!important;overflow:visible!important}

  /* ---- live-2d-lite style trial floater ---- */
  .pc-review-trial-floater{
    position:absolute;left:50%;bottom:10px;z-index:42;transform:translateX(-50%);
    min-height:36px;display:flex;align-items:center;justify-content:center;gap:6px;
    padding:5px 7px;border:1px solid rgba(214,209,232,.96);border-radius:15px;
    background:rgba(255,255,255,.96);box-shadow:0 8px 22px rgba(43,35,83,.16);
    backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);white-space:nowrap;
  }
  .pc-review-trial-floater.idle{padding:4px 8px 4px 5px;opacity:.96}
  .pc-review-trial-floater.idle>button{
    min-height:29px;display:inline-flex;align-items:center;gap:5px;padding:0 10px;border:0;border-radius:10px;
    color:#fff;background:linear-gradient(135deg,#745cf0,#5d48d6);font-size:9px;font-weight:880;
    box-shadow:0 4px 10px rgba(91,72,210,.22)
  }
  .pc-review-trial-floater.idle>button b{font-size:14px;line-height:1}
  .pc-review-trial-floater.idle>span{color:#817a8c;font-size:8px}
  .pc-review-trial-floater.active{background:rgba(42,39,52,.94);border-color:rgba(255,255,255,.18);box-shadow:0 8px 22px rgba(28,24,49,.22)}
  .pc-review-trial-floater.active>strong{display:inline-flex;align-items:center;gap:5px;margin-right:2px;color:#fff;font-size:8.5px;font-weight:850}
  .pc-review-trial-floater.active .stone{width:17px!important;height:17px!important;flex:none!important}
  .pc-review-trial-floater.active>button{
    width:28px;height:28px;min-height:28px;display:grid;place-items:center;padding:0;border:1px solid rgba(255,255,255,.16);border-radius:9px;
    color:#fff;background:rgba(255,255,255,.08);font-size:13px;font-weight:800
  }
  .pc-review-trial-floater.active>button:hover{background:rgba(255,255,255,.15)}
  .pc-review-trial-floater.active>button.exit{background:#654fe0;border-color:#7663e9}
  .pc-review-trial-floater.active>button:disabled{opacity:.34;cursor:default}

  /* ---- exact-size candidate markers; avoid the old giant heat/territory bubbles ---- */
  #libPreviewBoard .board-marker.ai-candidate{
    z-index:16!important;width:calc(82% / var(--n))!important;height:calc(82% / var(--n))!important;max-width:34px!important;max-height:34px!important;
    aspect-ratio:1;border:2px solid rgba(255,255,255,.96)!important;border-radius:50%!important;
    box-shadow:0 2px 8px rgba(35,29,70,.24)!important;background:#3b82f6!important
  }
  #libPreviewBoard .board-marker.ai-candidate.rank-2{background:#22c55e!important}
  #libPreviewBoard .board-marker.ai-candidate.rank-3{background:#eab308!important}
  #libPreviewBoard .board-marker.ai-candidate.rank-4{background:#f97316!important}
  #libPreviewBoard .board-label.ai-candidate-label{
    z-index:18!important;width:calc(82% / var(--n))!important;height:calc(82% / var(--n))!important;max-width:34px!important;max-height:34px!important;
    aspect-ratio:1;display:grid!important;place-items:center!important;border-radius:50%!important;
    color:#fff!important;background:transparent!important;box-shadow:none!important;text-shadow:0 1px 2px rgba(26,19,58,.45)!important;
    font-size:clamp(7px,.56vw,9px)!important;font-weight:950!important;letter-spacing:-.03em
  }

  /* ---- trial stones: base position stays untouched; only trial stones receive numbered rings ---- */
  #libPreviewBoard .board-marker.trial-ring{
    z-index:12!important;width:calc(92% / var(--n))!important;height:calc(92% / var(--n))!important;max-width:38px!important;max-height:38px!important;
    aspect-ratio:1;border:1.5px solid rgba(102,79,224,.86)!important;border-radius:50%!important;background:transparent!important;
    box-shadow:0 0 0 2px rgba(255,255,255,.7)!important
  }
  #libPreviewBoard .board-marker.trial-ring.current{border-color:#e6a52b!important;box-shadow:0 0 0 2px rgba(255,255,255,.82),0 0 0 4px rgba(230,165,43,.18)!important}
  #libPreviewBoard .board-marker.trial-last{width:0!important;height:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  #libPreviewBoard .board-label.trial-number{
    z-index:15!important;width:calc(78% / var(--n))!important;height:calc(78% / var(--n))!important;max-width:31px!important;max-height:31px!important;aspect-ratio:1;
    display:grid!important;place-items:center!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;
    font-size:clamp(8px,.62vw,10px)!important;font-weight:950!important
  }
  #libPreviewBoard .board-label.trial-number.on-black{color:#fff!important;text-shadow:0 1px 2px #000!important}
  #libPreviewBoard .board-label.trial-number.on-white{color:#2d2937!important;text-shadow:0 1px 2px #fff!important}

  /* ---- PV variation: same visual semantics as live-2d-lite showVariationPV ---- */
  #libPreviewBoard .board-stone.ai-pv-anchor,
  #libPreviewBoard .board-stone.ai-pv-stone{z-index:20!important;box-shadow:0 0 0 1.5px rgba(101,80,224,.86),0 3px 7px rgba(26,20,58,.22)!important}
  #libPreviewBoard .board-stone.ai-pv-anchor{box-shadow:0 0 0 2px #6a53df,0 0 0 4px rgba(255,255,255,.84),0 3px 8px rgba(31,22,75,.25)!important}
  #libPreviewBoard .board-stone-number{position:absolute;inset:0;display:grid;place-items:center;font-size:30cqw;font-weight:950;line-height:1;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.7);font-style:normal}
  #libPreviewBoard .board-stone.white .board-stone-number{color:#2b2832;text-shadow:0 1px 2px rgba(255,255,255,.9)}

  /* ---- current-position live analysis card ---- */
  #pcReviewLiveEvalHost:empty{display:none}
  .pc-live-lite-card{
    margin-top:8px;padding:9px;border:1px solid #e2def0;border-radius:13px;background:#fff;box-shadow:0 5px 14px rgba(47,38,87,.06)
  }
  .pc-live-lite-card>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
  .pc-live-lite-card>header>div{min-width:0}.pc-live-lite-card>header small{display:block;color:#7162d8;font-size:7.5px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .pc-live-lite-card>header b{display:flex;align-items:center;gap:5px;margin-top:2px;color:#312d3b;font-size:10px}.pc-live-lite-card>header b .stone{width:17px!important;height:17px!important}
  .pc-live-lite-card>header>span{flex:none;color:#80798b;font-size:7.5px;font-variant-numeric:tabular-nums}
  .pc-live-lite-card.loading,.pc-live-lite-card.error{min-height:66px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px}
  .pc-live-lite-card.loading>div small,.pc-live-lite-card.error>div small{color:#705bd4;font-size:7px;font-weight:850}.pc-live-lite-card.loading>div b,.pc-live-lite-card.error>div b{display:block;margin-top:2px;font-size:9px}.pc-live-lite-card.loading>div p,.pc-live-lite-card.error>div p{margin:2px 0 0;color:#837d8b;font-size:7.3px;line-height:1.35}
  .pc-live-lite-card.error>button{min-height:28px;padding:0 9px;border:1px solid #ded9ef;border-radius:9px;color:#6751d4;background:#fff;font-size:8px;font-weight:850}
  .pc-live-lite-candidates{display:grid;grid-template-columns:1fr 1fr;gap:5px}
  .pc-live-lite-candidates>button{
    min-width:0;display:grid;grid-template-columns:22px 38px minmax(42px,1fr) auto;grid-template-rows:auto auto;align-items:center;column-gap:5px;row-gap:1px;
    padding:6px;border:1px solid #ece8f2;border-radius:10px;color:#4d4758;background:#fbfafc;text-align:left
  }
  .pc-live-lite-candidates>button:hover{border-color:#d5cdf9;background:#f8f6ff}.pc-live-lite-candidates>button.selected{border-color:#afa1f5;background:#f1edff;box-shadow:inset 0 0 0 1px #d7cffb}
  .pc-live-lite-candidates>button>em{grid-row:1/3;width:20px;height:20px;display:grid;place-items:center;border-radius:50%;color:#fff;background:#7260df;font-size:8px;font-style:normal;font-weight:900}
  .pc-live-lite-candidates>button:nth-child(2)>em{background:#36ae69}.pc-live-lite-candidates>button:nth-child(3)>em{background:#d89b2e}.pc-live-lite-candidates>button:nth-child(4)>em{background:#db6958}
  .pc-live-lite-candidates>button>b{font-size:9px}.pc-live-lite-candidates>button>strong{font-size:8px;text-align:right;font-variant-numeric:tabular-nums}.pc-live-lite-candidates>button>small{grid-column:2/5;color:#918a99;font-size:6.8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .pc-live-lite-candidates>button>i{height:5px;overflow:hidden;border-radius:99px;background:#e9e6ef}.pc-live-lite-candidates>button>i>u{height:100%;display:block;border-radius:inherit;background:#7560e2;text-decoration:none}
  .pc-live-lite-candidates>button:nth-child(2)>i>u{background:#3ab46e}.pc-live-lite-candidates>button:nth-child(3)>i>u{background:#daa02f}.pc-live-lite-candidates>button:nth-child(4)>i>u{background:#dd6c5b}
  .pc-live-lite-wait{margin:0;padding:9px;border-radius:9px;color:#817b89;background:#f8f7fb;font-size:7.5px;text-align:center}
  .pc-live-lite-card>footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px;padding-top:7px;border-top:1px solid #efecf3}
  .pc-live-lite-card>footer>span{min-width:0;color:#88818f;font-size:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc-live-lite-card>footer>div{display:flex;gap:4px;flex:none}
  .pc-live-lite-card>footer button{min-height:27px;padding:0 8px;border:1px solid #ddd7f3;border-radius:8px;color:#6450cf;background:#fff;font-size:7.5px;font-weight:850}.pc-live-lite-card.running>footer button:first-child{color:#fff;background:#6750df;border-color:#6750df}
  .pc-report-review>header b .pc-review-ai.active{color:#fff!important;background:#6750df!important;border-color:#6750df!important}

  /* While trial is active the bottom dock navigates the trial sequence, just like live-2d-lite. */
  .library-detail-research-column-v24:has(+*){}
}

@media (min-width:900px) and (max-width:1180px){
  .pc-review-trial-floater{bottom:7px;min-height:32px;padding:4px 6px}.pc-review-trial-floater.idle>span{display:none}.pc-review-trial-floater.active>strong{font-size:7.7px}
  .pc-live-lite-card{margin-top:6px;padding:7px}.pc-live-lite-candidates{gap:4px}.pc-live-lite-candidates>button{grid-template-columns:20px 32px minmax(34px,1fr) auto;padding:5px;column-gap:4px}
}

@media print{
  .pc-review-trial-floater,.pc-live-lite-card{display:none!important}
}

@media (min-width:900px){
  /* live-2d-lite r37：试下工具条悬浮在真实棋盘底边之后，不占布局高度。 */
  .library-detail-body{overflow:visible!important}
  .library-detail-board-column-v24{overflow:visible!important}
  .library-detail-board-wrap-v24{overflow:visible!important;position:relative!important}
  .library-detail-board-wrap-v24>.pc-review-trial-floater{
    position:absolute!important;left:50%!important;top:calc(100% + 10px)!important;bottom:auto!important;z-index:120!important;
    transform:translateX(-50%)!important;display:inline-flex!important;align-items:center!important;gap:7px!important;
    min-height:41px!important;padding:5px 6px 5px 11px!important;border:1px solid rgba(255,255,255,.22)!important;border-radius:999px!important;
    color:#fff!important;background:linear-gradient(135deg,#7068f2 0%,#424769 100%)!important;
    box-shadow:0 8px 22px rgba(37,31,91,.28)!important;white-space:nowrap!important;pointer-events:auto!important;
    animation:pcTrialFloatIn .2s ease-out!important
  }
  @keyframes pcTrialFloatIn{from{opacity:0;transform:translate(-50%,6px) scale(.96)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
  .pc-review-trial-floater .tf-dot{width:6px!important;height:6px!important;flex:none!important;border-radius:50%!important;background:#ffe09a!important;box-shadow:0 0 6px #ffe09a!important}
  .pc-review-trial-floater>strong{display:inline-flex!important;align-items:center!important;gap:5px!important;margin-right:1px!important;color:#fff!important;font-size:11px!important;font-weight:760!important}
  .pc-review-trial-floater>strong>b{padding:3px 7px!important;border-radius:999px!important;font-size:11px!important;font-weight:900!important}
  .pc-review-trial-floater>strong>b.turn-black{color:#fff!important;background:#1f1f25!important}
  .pc-review-trial-floater>strong>b.turn-white{color:#27242f!important;background:#f6f4ef!important}
  .pc-review-trial-floater>strong>small{color:rgba(255,255,255,.72)!important;font-size:9px!important;font-weight:760!important}
  .pc-review-trial-floater .tf-btn{width:31px!important;height:31px!important;min-height:31px!important;padding:0!important;border:0!important;border-radius:50%!important;display:grid!important;place-items:center!important;color:#fff!important;font-size:14px!important;font-weight:850!important;transition:.14s ease!important}
  .pc-review-trial-floater .tf-undo,.pc-review-trial-floater .tf-clear{background:rgba(255,255,255,.13)!important}
  .pc-review-trial-floater .tf-exit{background:#ffdb82!important;color:#302d48!important}
  .pc-review-trial-floater .tf-btn:hover:not(:disabled){filter:brightness(1.08)}
  .pc-review-trial-floater .tf-btn:active:not(:disabled){transform:scale(.9)}
  .pc-review-trial-floater .tf-btn:disabled{opacity:.36!important;cursor:default!important}

  /* 试下棋子本身就是黑/白棋，只加 live-lite 同义的虚线环和手数；不再叠一个大圆圈。 */
  #libPreviewBoard .board-stone.trial-stone{
    outline:1.3px dashed rgba(106,96,240,.78)!important;outline-offset:-3px!important;
    transition:none!important;animation:none!important
  }
  #libPreviewBoard .board-stone.trial-stone.trial-current{
    outline-color:#6a60f0!important;box-shadow:0 0 0 2px rgba(106,96,240,.24),0 2px 5px rgba(0,0,0,.34)!important
  }
  #libPreviewBoard .board-stone.trial-stone .board-stone-number{font-size:30cqw!important;font-weight:950!important}
  #libPreviewBoard .board-stone.black.trial-stone .board-stone-number{color:#fff!important;text-shadow:0 1px 2px #000!important}
  #libPreviewBoard .board-stone.white.trial-stone .board-stone-number{color:#282630!important;text-shadow:0 1px 2px #fff!important}

  /* Top4 圆点沿用 live-2d-lite / live-2d 的四阶配色；只更新叠层，不触碰棋盘棋子 DOM。 */
  #libPreviewBoard .board-marker.ai-candidate{width:calc(78% / var(--n))!important;height:calc(78% / var(--n))!important;max-width:31px!important;max-height:31px!important;border:2px solid #fff!important;box-shadow:0 2px 7px rgba(35,29,70,.25)!important}
  #libPreviewBoard .board-marker.ai-candidate.rank-1{background:#3b82f6!important}
  #libPreviewBoard .board-marker.ai-candidate.rank-2{background:#22c55e!important}
  #libPreviewBoard .board-marker.ai-candidate.rank-3{background:#eab308!important}
  #libPreviewBoard .board-marker.ai-candidate.rank-4{background:#f97316!important}
  #libPreviewBoard .board-label.ai-candidate-label{width:calc(78% / var(--n))!important;height:calc(78% / var(--n))!important;max-width:31px!important;max-height:31px!important;font-size:9px!important;font-weight:950!important;color:#fff!important;background:transparent!important;box-shadow:none!important;text-shadow:0 1px 2px rgba(0,0,0,.45)!important}
  #libPreviewBoard .board-label.ai-candidate-label.rank-3,#libPreviewBoard .board-label.ai-candidate-label.rank-4{color:#4a3600!important;text-shadow:none!important}
  #libPreviewBoard .board-stone.ai-pv-anchor,#libPreviewBoard .board-stone.ai-pv-stone{transition:none!important;animation:none!important}

  
  .pc-live-lite-card{margin-top:7px!important;padding:9px 9px 8px!important;border:1px solid #dfdeeb!important;border-radius:13px!important;background:#fff!important;box-shadow:0 5px 14px rgba(47,38,87,.06)!important}
  .pc-live-lite-card>header{margin-bottom:7px!important}
  .pc-live-lite-card.error{grid-template-columns:minmax(0,1fr) auto!important}
  .pc-live-lite-card>header small{display:flex!important;align-items:center!important;gap:5px!important;color:#736d82!important;font-size:8px!important}
  .pc-live-lite-card .live-dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:#9892a4;box-shadow:none}
  .pc-live-lite-card.running .live-dot{background:#4e79ff;box-shadow:0 0 0 4px rgba(78,121,255,.11);animation:pcLivePulse 1.1s ease-in-out infinite}
  @keyframes pcLivePulse{0%,100%{opacity:1}50%{opacity:.48}}
  .pc-live-lite-card>header b{font-size:11px!important}.pc-live-lite-card>header>span{font-size:8px!important;color:#8a8595!important}
  .pc-live-lite-table{overflow:hidden;border-top:1px solid #efedf3}
  .pc-live-lite-table>.head,.pc-live-lite-table>button{display:grid!important;grid-template-columns:minmax(104px,1.3fr) .64fr .72fr .72fr!important;align-items:center!important;column-gap:6px!important;min-width:0!important}
  .pc-live-lite-table>.head{min-height:27px;padding:0 7px;color:#9a95a2;font-size:8px;font-weight:780;border-bottom:1px solid #efedf3}
  .pc-live-lite-table>.head>b:not(:first-child){text-align:right}
  .pc-live-lite-table>button{width:100%;min-height:43px;padding:5px 7px;border:0;border-bottom:1px solid rgba(89,77,117,.09);border-radius:0;color:#3b3744;background:transparent;text-align:left}
  .pc-live-lite-table>button:last-child{border-bottom:0}
  .pc-live-lite-table>button:hover{background:#faf9fe}
  .pc-live-lite-table>button.best{background:#faf8ff;box-shadow:inset 2px 0 0 #6b5ae6}
  .pc-live-lite-table>button.selected{background:#fff4ef;box-shadow:inset 2px 0 0 #d56b4f}
  .pc-live-lite-table>button>span{min-width:0;display:grid;grid-template-columns:21px 43px minmax(0,1fr);align-items:center;gap:5px}
  .pc-live-lite-table>button>span>em{width:20px;height:20px;display:grid;place-items:center;border-radius:50%;color:#fff;background:#3b82f6;font-size:9px;font-style:normal;font-weight:900}
  .pc-live-lite-table>button>span>em.rank-2{background:#22c55e}.pc-live-lite-table>button>span>em.rank-3{background:#eab308;color:#fff}.pc-live-lite-table>button>span>em.rank-4{background:#f97316;color:#fff}
  .pc-live-lite-table>button>span>strong{min-width:39px;padding:3px 5px;border:1px solid rgba(0,0,0,.15);border-radius:999px;background:#f5f3ee;color:#1a1a1a;font-size:9px;text-align:center}
  .pc-live-lite-table>button>span>small{overflow:hidden;color:#9a94a1;font-size:6.8px;text-overflow:ellipsis;white-space:nowrap}
  .pc-live-lite-table>button>b{font-size:9px;font-variant-numeric:tabular-nums;text-align:right}.pc-live-lite-table>button>b:nth-child(3){font-weight:850;color:#25222d}.pc-live-lite-table>button>b:nth-child(4){color:#32a878}
  .pc-live-lite-card>footer{margin-top:6px!important;padding-top:6px!important}.pc-live-lite-card>footer>span{font-size:7.2px!important}
  .pc-live-lite-card>footer button{min-height:28px!important}.pc-live-lite-card.running>footer button:first-child{color:#fff!important;background:#6552df!important;border-color:#6552df!important}
  .pc-live-lite-card.paused>footer button:first-child{color:#5f4bd0!important;background:#fff!important}
  .pc-live-lite-card.loading>button,.pc-live-lite-card.error>button{min-height:29px;padding:0 9px;border:1px solid #ddd7f3;border-radius:9px;color:#6550d5;background:#fff;font-size:8px;font-weight:850}
  .pc-report-review>header b .pc-review-ai.active{color:#fff!important;background:#5f4dd4!important;border-color:#5f4dd4!important}

  /* 稳定渲染：切手/落子只增删有变化的棋子，AI progress 不重建棋盘。 */
  #libPreviewBoard>.board-stone.base-stone{will-change:auto!important;animation:none!important}

  /* 变化图（对齐移动 web 版 renderVariation）：锚点=行棋方真实棋子+朱砂虚线环+坐标气泡；
     PV 后续手=交替黑白半透明真实棋子+手数。虚线环围绕锚点自身旋转，transform 同时保留 translate 居中。 */
  #libPreviewBoard .board-marker.var-ring{
    width:calc(118% / var(--n))!important;height:calc(118% / var(--n))!important;max-width:none!important;max-height:none!important;
    border:2px dashed #c84a3a!important;border-radius:50%!important;background:transparent!important;
    box-shadow:0 0 10px rgba(200,74,58,.35)!important;z-index:19!important;animation:pcVarAnchorSpin 8s linear infinite!important;
  }
  @keyframes pcVarAnchorSpin{to{transform:translate(-50%,-50%) rotate(360deg)}}
  @media (prefers-reduced-motion:reduce){#libPreviewBoard .board-marker.var-ring{animation:none!important}}
  #libPreviewBoard .board-stone.var-stone{opacity:.78!important;z-index:20!important;transition:none!important;animation:none!important}
  #libPreviewBoard .board-stone.var-anchor{z-index:21!important;opacity:1!important;box-shadow:0 2px 5px rgba(31,22,75,.24)!important}
  #libPreviewBoard .board-stone.black.var-anchor .board-stone-number,#libPreviewBoard .board-stone.white.var-anchor .board-stone-number{display:none}
  #libPreviewBoard .board-label.var-coord{
    width:auto!important;height:auto!important;max-width:none!important;transform:translate(-50%,-150%)!important;
    padding:2px 7px!important;border-radius:5px!important;background:#c84a3a!important;color:#fff!important;
    font-size:clamp(9px,.62vw,12px)!important;font-weight:800!important;white-space:nowrap!important;
    box-shadow:0 2px 6px rgba(200,74,58,.4)!important;z-index:23!important;
  }
  #libPreviewBoard .board-label.var-coord::after{content:"";position:absolute;top:100%;left:50%;transform:translateX(-50%);border:4px solid transparent;border-top-color:#c84a3a}
}

@media (min-width:900px) and (max-width:1180px){
  .library-detail-board-wrap-v24>.pc-review-trial-floater{top:calc(100% + 7px)!important;gap:5px!important;padding-left:9px!important}
  .pc-review-trial-floater>strong{font-size:9.5px!important}.pc-review-trial-floater>strong>b{font-size:9.5px!important}.pc-review-trial-floater .tf-btn{width:29px!important;height:29px!important;min-height:29px!important}
  .pc-live-lite-table>.head,.pc-live-lite-table>button{grid-template-columns:minmax(90px,1.2fr) .58fr .7fr .7fr!important;column-gap:4px!important}
}

@media print{.pc-review-trial-floater,.pc-live-lite-card{display:none!important}}

@media (min-width:900px){
  
  .library-detail-board-column-v24{--v24-strip-h:66px;overflow:visible!important}
  .library-detail-board-wrap-v24.lib-preview-board-wrap{
    overflow:visible!important;
    width:min(calc(100% - 2px),calc(var(--v24-stage-h) - var(--v24-strip-h) - 52px))!important;
    max-height:calc(var(--v24-stage-h) - var(--v24-strip-h) - 52px)!important;
    place-self:start center!important
  }
  .library-detail-board-wrap-v24>.pc-review-trial-floater{
    top:calc(100% + 8px)!important;bottom:auto!important;left:50%!important;transform:translateX(-50%)!important
  }

  /* 分析卡：报告态下弹性填满右栏剩余空间（行高等分、无内部滚动条、无底部空白）。
     非报告态（研究区内嵌）保持自然高度。footer 不放操作按钮（启停统一由工具区按钮控制）。 */
  #pcReviewLiveEvalHost:empty{display:none}
  .pc-live-lite-wait{min-height:150px!important}

  /* 选手分析 tab：整条链路 flex 列，分析卡吃满余量，4 行推荐按比例伸缩填满 */
  .library-report-host-v24 .pc-report-work:has(>.pc-report-review){display:flex;flex-direction:column}
  .pc-report-work>.pc-report-review{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
  .pc-report-review>header,
  .pc-report-review>.pc-report-candidates,
  .pc-report-review>.pc-report-coach{flex:none}
  .pc-report-review>#pcReviewLiveEvalHost{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
  .pc-report-review>#pcReviewLiveEvalHost>.pc-live-lite-card{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
  .pc-report-review>#pcReviewLiveEvalHost>.pc-live-lite-card>header,
  .pc-report-review>#pcReviewLiveEvalHost>.pc-live-lite-card>footer{flex:none}
  .pc-report-review>#pcReviewLiveEvalHost .pc-live-lite-table{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
  .pc-report-review>#pcReviewLiveEvalHost .pc-live-lite-table>.head{flex:none}
  .pc-report-review>#pcReviewLiveEvalHost .pc-live-lite-table>button{flex:1 1 0;min-height:40px!important}
  .pc-report-review>#pcReviewLiveEvalHost .pc-live-lite-loading{flex:1 1 auto;min-height:0}
  .pc-report-review>#pcReviewLiveEvalHost .pc-live-lite-wait{flex:1 1 auto;min-height:0}

  /* 启动进度区：占据与 4 行推荐表几乎相同的高度（表头+4行），
     首批推荐点到达后原地替换为表格，布局不跳动。 */
  .pc-live-lite-loading{
    min-height:196px;display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;
    padding:14px 10px!important;border-top:1px solid #efedf3;
  }
  .pc-live-lite-loading>.spinner{width:30px!important;height:30px!important;border-width:3px!important;flex:none!important}
  .pc-live-lite-loading>div{min-width:0}
  .pc-live-lite-loading b{display:block;color:#37323f;font-size:12px;font-weight:850;line-height:1.45}
  .pc-live-lite-loading p{margin:5px 0 0;color:#8d86a0;font-size:11px;line-height:1.5}

  .pc-position-research{
    margin-top:12px;padding:12px;border:1px solid #e4e0ef;border-radius:15px;
    background:linear-gradient(145deg,#faf9ff 0%,#f6f8ff 100%);
    box-shadow:0 6px 18px rgba(55,45,99,.055)
  }
  .pc-position-research.trial-active{border-color:#cbc3f4;background:linear-gradient(145deg,#f8f5ff 0%,#fffaf0 100%)}
  .pc-position-research>header{display:flex;align-items:center;justify-content:space-between;gap:12px}
  .pc-position-research>header>div:first-child{min-width:0}
  .pc-position-research>header small{display:block;color:#7362d9;font-size:10px;font-weight:850;letter-spacing:.04em}
  .pc-position-research>header b{display:flex;align-items:baseline;gap:7px;margin-top:3px;color:#292633;font-size:14px}
  .pc-position-research>header b em{color:#7f788c;font-size:10px;font-style:normal;font-weight:750}
  .pc-position-research>header p{margin:4px 0 0;color:#817b8b;font-size:10px;line-height:1.45}
  .pc-position-research>header>div:last-child{display:flex;align-items:center;gap:7px;flex:none}
  .pc-position-research>header button{
    min-height:34px;padding:0 12px;border:1px solid #ddd7ef;border-radius:10px;
    color:#6252c9;background:#fff;font-size:10px;font-weight:850;white-space:nowrap
  }
  /* hover 必须保持文字可读：.analysis 是白字紫底，通用 hover 把背景刷成近白 → 白字白底看不见。
     用更高优先级为主按钮单独定义 hover（更深的紫），并保证次按钮 hover 仍是深字。 */
  .pc-position-research>header button.analysis{color:#fff;border-color:#6654d9;background:linear-gradient(135deg,#7663ea,#5c4acb)}
  .pc-position-research>header button.analysis.active{border-color:#d95948;background:linear-gradient(135deg,#ef7c55,#da4e43)}
  .pc-position-research>header button:hover:not(:disabled){border-color:#bdb2ee;background:#f8f6ff;color:#4a3aa8}
  .pc-position-research>header button.analysis:hover:not(:disabled){border-color:#4c39b8;background:linear-gradient(135deg,#6a58e0,#4c39b8);color:#fff}
  .pc-position-research>header button.analysis.active:hover:not(:disabled){border-color:#b93f30;background:linear-gradient(135deg,#e26a45,#c23f36);color:#fff}
  .pc-position-research>header button:disabled{opacity:.5;cursor:default}

  /* 右栏保持 PC 信息密度：四列候选表可读，但不会挤压底部棋谱控制条。 */
  .pc-position-research .pc-live-lite-card{margin-top:10px!important;padding:10px!important;border-radius:12px!important;box-shadow:none!important}
  .pc-position-research .pc-live-lite-card>header small{font-size:10px!important}
  .pc-position-research .pc-live-lite-card>header b{font-size:12px!important}
  .pc-position-research .pc-live-lite-card>header>span{font-size:9px!important}
  .pc-position-research .pc-live-lite-table>.head{font-size:9px!important}
  .pc-position-research .pc-live-lite-table>button{min-height:40px!important}
  .pc-position-research .pc-live-lite-table>button>span>strong,
  .pc-position-research .pc-live-lite-table>button>b{font-size:10px!important}
  .pc-position-research .pc-live-lite-card>footer>span{font-size:9px!important}
  .pc-position-research .pc-live-lite-card>footer button{min-height:30px!important;font-size:9px!important}
  .pc-position-research .pc-live-lite-card.loading>div small,
  .pc-position-research .pc-live-lite-card.error>div small{font-size:9px!important}
  .pc-position-research .pc-live-lite-card.loading>div b,
  .pc-position-research .pc-live-lite-card.error>div b{font-size:11px!important}
  .pc-position-research .pc-live-lite-card.loading>div p,
  .pc-position-research .pc-live-lite-card.error>div p{font-size:9px!important}

  
  .pc-report-work .pc-live-lite-card>header small{font-size:10px!important}
  .pc-report-work .pc-live-lite-card>header b{font-size:12px!important}
  .pc-report-work .pc-live-lite-card>header>span{font-size:10px!important}
  .pc-report-work .pc-live-lite-table>.head{font-size:10px!important;min-height:30px!important}
  .pc-report-work .pc-live-lite-table>button{min-height:42px!important}
  .pc-report-work .pc-live-lite-table>button>span>strong,
  .pc-report-work .pc-live-lite-table>button>b{font-size:11px!important}
  .pc-report-work .pc-live-lite-card>footer>span{font-size:10px!important}
  .pc-report-work .pc-live-lite-card>footer button{min-height:30px!important;font-size:10px!important}
  .pc-report-work .pc-live-lite-card.loading>div small,
  .pc-report-work .pc-live-lite-card.error>div small{font-size:10px!important}
  .pc-report-work .pc-live-lite-card.loading>div b,
  .pc-report-work .pc-live-lite-card.error>div b{font-size:12px!important}
  .pc-report-work .pc-live-lite-card.loading>div p,
  .pc-report-work .pc-live-lite-card.error>div p{font-size:10px!important}

  /* 占位提示（切手后结果作废、分析未开启） */
  .pc-live-lite-wait{
    margin:0;padding:18px 8px;border-radius:10px;background:#faf9fe;
    color:#8d86a0;font-size:11px;line-height:1.5;text-align:center
  }

  /* ---------- 右栏层次：去掉"卡片套卡片"，用分隔线区分区块 ---------- */
  /* dock 自身不再当作大卡片：去边框去底，靠内部分隔线组织 */
  .library-report-host-v24>.pc-report-dock:not(.ready){
    border:0!important;background:transparent!important;box-shadow:none!important;
    padding:0!important;margin:0!important
  }
  .library-report-host-v24>.pc-report-dock:not(.ready)>header{
    padding:0 2px 12px!important;margin:0 0 12px!important;
    border-bottom:1px solid #eceaf3!important
  }
  .library-report-host-v24>.pc-report-dock:not(.ready)>header b{font-size:15px!important}
  .library-report-host-v24>.pc-report-dock:not(.ready)>header p{font-size:11.5px!important;line-height:1.5!important}
  /* 研究工具区：唯一带边框的卡片，成为视觉主体 */
  .library-report-host-v24>.pc-report-dock:not(.ready)>.pc-position-research{margin-top:0!important}
  /* 整盘方式选择按钮与本机复盘按钮统一沉底一行 */
  .library-report-host-v24>.pc-report-dock:not(.ready)>.pc-local-ai-btn,
  .library-report-host-v24>.pc-report-dock:not(.ready)>.pc-report-choice{margin:0 0 12px!important}

  .pc-report-dock.local-analyzing .pc-local-progress{height:7px!important;margin-top:12px!important}
}

@media (min-width:900px) and (max-width:1180px){
  .pc-position-research{margin-top:8px;padding:9px}
  .pc-position-research>header{gap:8px}
  .pc-position-research>header b{font-size:12px}
  .pc-position-research>header button{min-height:31px;padding:0 9px;font-size:9px}
  
  .library-detail-board-column-v24{--v24-strip-h:56px}
}

@media (min-width:1181px) and (max-width:1479px){
  .library-detail-board-column-v24{--v24-strip-h:62px}
}

/* 1024 宽桌面会切成顶部导航，内容实际从 120px 开始；按真实可用高度收紧研究台。 */
@media (min-width:900px) and (max-width:1099px){
  .library-detail-body{--v24-stage-h:calc(100dvh - 190px)!important}
}

@media print{.pc-position-research{display:none!important}}

@media (min-width:900px){
  /* ---------- 预览顶栏 ---------- */
  .lib-preview-head small{font-size:11px!important}
  .lib-preview-head b{font-size:15px!important}
  .lib-preview-head span{font-size:11px!important}

  /* ---------- 对局信息条（黑白名 + 胜率） ---------- */
  .library-detail-game-strip-v24>span b{font-size:12.5px!important}
  .library-detail-game-strip-v24>span small{font-size:10px!important}
  .library-detail-game-strip-v24>em{font-size:11px!important}

  /* ---------- 底部播放控制 ---------- */
  .library-detail-progress>b{font-size:11px!important}
  .library-detail-step{font-size:20px!important}
  .lib-preview-actions button{font-size:12px!important}

  /* ---------- 无报告态信息卡 ---------- */
  .library-detail-facts-host .library-detail-facts h2{font-size:16px!important}
  .library-detail-kickers span,.library-detail-kickers em{font-size:11px!important}
  .library-detail-fact-grid small{font-size:10.5px!important}
  .library-detail-fact-grid b{font-size:12.5px!important}

  /* ---------- 报告坞：tab 头 ---------- */
  .pc-report-tabs-v24 button{font-size:13px!important}
  .pc-report-tabs-v24 em{font-size:9.5px!important;min-width:18px!important;height:18px!important}

  /* ---------- 选手分析卡 ---------- */
  .pc-report-review>header small{font-size:11.5px!important}
  .pc-report-review>header b{font-size:18px!important}
  .pc-report-review>header b .pc-review-ai{font-size:11px!important;min-height:26px!important}
  .pc-report-review>header>em{font-size:11.5px!important}
  .pc-report-candidates>div{font-size:11.5px!important}
  .pc-report-candidates .head{font-size:11px!important}
  .pc-report-candidates strong{font-size:14px!important}
  .pc-report-coach b{font-size:12.5px!important}
  .pc-report-coach p{font-size:11.5px!important;line-height:1.5!important}
  .pc-report-coach button{font-size:11.5px!important}

  /* ---------- 教学重点列表 ---------- */
  .pc-report-issues-v24 .pc-report-issue-intro small{font-size:11.5px!important}
  .pc-report-issues-v24 .pc-report-issue-intro b{font-size:18px!important}
  .pc-report-issues-v24 .pc-report-issue-intro>em{font-size:10px!important}
  .pc-report-issues-v24 article>em{font-size:12px!important}
  .pc-report-issue-main small{font-size:11px!important}
  .pc-report-issue-main b{font-size:13px!important}
  .pc-report-issue-main p{font-size:11px!important;white-space:normal!important;line-height:1.45!important}
  .pc-report-issues-v24 article>strong{font-size:11px!important}

  /* ---------- 教学做题 ---------- */
  .pc-report-practice-v24>header button{font-size:11.5px!important}
  .pc-report-practice-v24>header span{font-size:11px!important}
  .pc-practice-title small{font-size:11px!important}
  .pc-practice-title b{font-size:15px!important}
  .pc-practice-title p{font-size:11px!important;line-height:1.5!important}
  .pc-practice-title>strong{font-size:11px!important}
  .pc-practice-feedback b{font-size:13px!important}
  .pc-practice-feedback small{font-size:11.5px!important;line-height:1.5!important}
  .pc-report-practice-v24>footer button{font-size:11.5px!important}
  .pc-report-practice-v24>footer b{font-size:11.5px!important}
  .pc-report-practice-v24>footer small{font-size:10.5px!important}
  .library-detail-board-column-v24:has(+ .library-detail-research-column-v24 .pc-report-practice-v25) .library-detail-game-strip-v24::after{font-size:10.5px!important}

  /* ---------- 本盘总结：六宫格导航 ---------- */
  .pc-summary-six-map>section>header button{font-size:12px!important}
  .pc-summary-six-map>section>div>button small{font-size:10px!important}
  .pc-summary-six-map>section>div>button b{font-size:12px!important}

  /* ---------- 本盘总结：子页面 ---------- */
  .pc-summary-page>header small{font-size:11px!important}
  .pc-summary-page>header h3{font-size:16px!important}
  .pc-summary-page>header p{font-size:11.5px!important;line-height:1.5!important}
  .pc-summary-page>header>span{font-size:11px!important}
  .pc-summary-mentor-head small{font-size:11.5px!important}
  .pc-summary-mentor-head h3{font-size:18px!important}
  .pc-summary-mentor-head p{font-size:12.5px!important;line-height:1.6!important}
  .pc-summary-action-grid span{font-size:11.5px!important;line-height:1.5!important}
  .pc-summary-action-grid b{font-size:11px!important}
  .pc-summary-stage-tabs button{font-size:11.5px!important;min-height:30px!important}
  .pc-summary-note{font-size:11px!important}
  .pc-summary-player-facts small{font-size:10.5px!important}
  .pc-summary-player-facts b{font-size:13px!important}
  .pc-summary-player-facts span{font-size:11.5px!important}
  .pc-summary-player-facts>strong{font-size:13px!important}
  .pc-summary-fact-grid small{font-size:10.5px!important}
  .pc-summary-fact-grid b{font-size:12px!important}
  .pc-score-player>header span{font-size:12px!important}
  .pc-score-player>div>span{font-size:10.5px!important}
  .pc-score-stage-bars small,.pc-score-stage-bars b{font-size:10.5px!important}
  .pc-grade-table>header{font-size:11px!important}
  .pc-grade-table>div b{font-size:11.5px!important}
  .pc-grade-table strong{font-size:12px!important}
  .pc-problem-stage-grid small,.pc-problem-stage-grid b{font-size:10.5px!important}
  .pc-summary-priority button>em{font-size:11px!important}
  .pc-summary-priority small{font-size:10.5px!important}
  .pc-summary-priority b{font-size:11.5px!important}
  .pc-summary-priority button>span{font-size:11px!important}

  /* ---------- 报告坞非就绪态（等待/不支持/选择整盘方式） ---------- */
  .pc-report-dock header button,.pc-report-choice button,.pc-local-ai-btn{font-size:12px!important}

  /* ---------- 本地持续分析卡（右栏研究区 + 选手分析内嵌两处） ---------- */
  .pc-live-lite-card>header small{font-size:11.5px!important}
  .pc-live-lite-card>header b{font-size:13px!important}
  .pc-live-lite-card>header>span{font-size:11px!important}
  .pc-live-lite-table>.head{font-size:11px!important;min-height:30px!important}
  .pc-live-lite-table>button>span>strong{font-size:12px!important}
  .pc-live-lite-table>button>span>small{font-size:10px!important}
  .pc-live-lite-table>button>b{font-size:11.5px!important}
  .pc-live-lite-table>button>span>em{font-size:10.5px!important}
  .pc-live-lite-card>footer>span{font-size:10.5px!important;white-space:normal!important;line-height:1.45!important}
  .pc-live-lite-card>footer button{font-size:11.5px!important;min-height:32px!important}
  .pc-live-lite-card.loading>div small,.pc-live-lite-card.error>div small{font-size:11px!important}
  .pc-live-lite-card.loading>div b,.pc-live-lite-card.error>div b{font-size:13px!important}
  .pc-live-lite-card.loading>div p,.pc-live-lite-card.error>div p{font-size:11.5px!important;line-height:1.5!important}
  .pc-live-lite-card.loading>button,.pc-live-lite-card.error>button{font-size:11.5px!important;min-height:32px!important}
  .pc-live-lite-wait{font-size:11.5px!important}

  /* ---------- 局面研究工具区 ---------- */
  .pc-position-research>header small{font-size:11px!important}
  .pc-position-research>header b{font-size:14px!important}
  .pc-position-research>header b em{font-size:11px!important}
  .pc-position-research>header p{font-size:11px!important}
  .pc-position-research>header button{font-size:11.5px!important}
  .library-report-host-v24>.pc-report-dock:not(.ready)>.pc-position-research>#pcReviewLiveEvalHost:empty::after{font-size:12.5px!important}

  /* ---------- 试下浮条 ---------- */
  .pc-review-trial-floater>strong{font-size:12px!important}
  .pc-review-trial-floater>strong>b{font-size:11.5px!important}
  .pc-review-trial-floater>strong>small{font-size:10.5px!important}

  /* ---------- 列表页卡片 / 右侧预览 ---------- */
  .lib-item-match{font-size:14px!important}
  .lib-item-status{font-size:11px!important}
  .lib-item-players{font-size:12.5px!important}
  .lib-item-footer{font-size:11.5px!important}
  .lib-item-result{font-size:11.5px!important}
  .lib-item-del{font-size:11px!important}
  .lib-row-no{font-size:11px!important}
  .lib-more{font-size:12.5px!important}
  .lib-inspector-head small{font-size:11px!important}
  .lib-inspector-head b{font-size:15px!important}
  .lib-inspector-head>span{font-size:11.5px!important}
  .lib-inspector-players b{font-size:13px!important}
  .lib-inspector-players em{font-size:11px!important}
  .lib-inspector-meta small{font-size:11px!important}
  .lib-inspector-meta b{font-size:12.5px!important}
  .lib-inspector-note{font-size:11.5px!important;line-height:1.6!important}
  .lib-inspector-open{font-size:13px!important}
  .lib-inspector-empty small{font-size:12px!important}
}

@media (min-width:900px) and (max-width:1180px){
  .pc-live-lite-card>header small{font-size:10.5px!important}
  .pc-live-lite-card>header b{font-size:12px!important}
  .pc-live-lite-card>header>span{font-size:10px!important}
  .pc-live-lite-table>.head{font-size:10px!important}
  .pc-live-lite-table>button>span>strong{font-size:11px!important}
  .pc-live-lite-table>button>b{font-size:10.5px!important}
  .pc-live-lite-card>footer>span{font-size:10px!important}
  .pc-live-lite-card>footer button{font-size:10.5px!important}
  .pc-report-tabs-v24 button{font-size:11.5px!important}
  .pc-report-review>header b{font-size:15px!important}
  .pc-report-candidates>div{font-size:10.5px!important}
  .pc-report-candidates .head{font-size:10px!important}
  .pc-report-candidates strong{font-size:12.5px!important}
  .pc-report-issue-main b{font-size:12px!important}
  .pc-report-issue-main p{font-size:10px!important}
  .pc-position-research>header button{font-size:10.5px!important;min-height:32px!important}
  .pc-position-research>header p{display:block!important;font-size:10px!important}
  .pc-review-trial-floater>strong{font-size:10.5px!important}
  .pc-review-trial-floater>strong>b{font-size:10.5px!important}
  .library-detail-game-strip-v24>span b{font-size:11px!important}
  .library-detail-game-strip-v24>span small{font-size:9.5px!important}
  .library-detail-progress>b{font-size:10px!important}
}

@media print{.pc-live-lite-card,.pc-position-research{font-size:12px!important}}

@media (min-width:1181px){
  .library-detail-layer{
    padding:10px 16px 14px!important;
    background:
      radial-gradient(circle at 14% 8%,rgba(112,86,229,.055),transparent 25%),
      linear-gradient(180deg,#f4f5fa 0%,#f8f8fb 100%)!important;
  }

  .library-detail-surface{
    width:min(calc(100% - 2px),1840px)!important;
    grid-template-rows:58px minmax(0,1fr)!important;
    border:1px solid #e2e3eb!important;
    border-radius:25px!important;
    background:rgba(251,251,253,.96)!important;
    box-shadow:0 20px 55px rgba(42,36,70,.09)!important;
  }

  .library-detail-toolbar{
    min-height:58px!important;
    padding:7px 12px!important;
    border-bottom:1px solid #e9e9ef!important;
    background:rgba(255,255,255,.94)!important;
    backdrop-filter:blur(16px);
  }
  .library-detail-back,.library-print-report{
    min-height:40px!important;
    height:40px!important;
    padding:0 14px!important;
    border-color:#dfdfe8!important;
    border-radius:13px!important;
    color:#373340!important;
    font-size:12px!important;
    font-weight:800!important;
  }
  .library-detail-back:hover,.library-print-report:hover{
    border-color:#cfc7f4!important;
    color:#5f4bd0!important;
    background:#f8f6ff!important;
  }
  .lib-preview-head{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;column-gap:11px!important;align-items:center!important}
  .lib-preview-head small{
    grid-row:1 / span 2!important;
    align-self:center!important;
    padding:6px 9px!important;
    border-radius:9px!important;
    color:#6854d9!important;
    background:#f0edff!important;
    font-size:10px!important;
    letter-spacing:.08em!important;
  }
  .lib-preview-head b{font-size:16px!important;line-height:1.2!important}
  .lib-preview-head span{font-size:10.5px!important;line-height:1.2!important}

  .library-detail-body{
    --v24-stage-h:min(920px,calc(100dvh - 178px));
    width:100%!important;
    grid-template-columns:minmax(600px,calc(var(--v24-stage-h) - 50px)) minmax(450px,600px)!important;
    grid-auto-rows:var(--v24-stage-h)!important;
    gap:18px!important;
    padding:14px 22px 18px!important;
    background:transparent!important;
  }

  .library-detail-board-column-v24,
  .library-detail-research-column-v24{
    border-color:#e2e2e9!important;
    border-radius:20px!important;
    box-shadow:0 13px 32px rgba(49,42,79,.065)!important;
  }

  .library-detail-board-column-v24{
    --v24-strip-h:68px!important;
    grid-template-rows:68px minmax(0,1fr)!important;
    background:#fffdf8!important;
  }
  .library-detail-game-strip-v24{
    min-height:68px!important;
    padding:9px 17px 15px!important;
    border-bottom-color:#ece7db!important;
    background:linear-gradient(180deg,#fffef9 0%,#fbf9f2 100%)!important;
  }
  .library-detail-game-strip-v24>span{
    min-height:38px!important;
    padding:5px 13px!important;
    border-radius:14px!important;
  }
  .library-detail-game-strip-v24>span b{font-size:13px!important}
  .library-detail-game-strip-v24>span small{font-size:10px!important}
  .library-detail-game-strip-v24>em{padding:6px 10px!important;font-size:11px!important}
  .library-detail-winrate-track{left:17px!important;right:17px!important;bottom:7px!important;height:5px!important}

  /* 桌面大屏不再为了偶发的试下条永久牺牲棋盘尺寸；试下条改为棋盘内悬浮。 */
  .library-detail-board-wrap-v24.lib-preview-board-wrap,
  .library-detail-board-wrap-v24{
    width:min(calc(100% - 2px),calc(var(--v24-stage-h) - var(--v24-strip-h)))!important;
    max-height:calc(var(--v24-stage-h) - var(--v24-strip-h))!important;
    place-self:center!important;
    border-radius:0 0 18px 18px!important;
  }
  .library-detail-board-wrap-v24>.pc-review-trial-floater{
    top:auto!important;
    bottom:13px!important;
    left:50%!important;
    transform:translateX(-50%)!important;
  }

  .library-detail-research-column-v24{
    grid-template-rows:auto minmax(0,1fr) 72px!important;
    background:#fff!important;
  }
  .library-detail-research-column-v24.has-report{grid-template-rows:minmax(0,1fr) 72px!important}

  /* 无完整报告时也保留稳定的三段研究导航，避免右栏像临时设置面板。 */
  .library-detail-placeholder-tabs{
    min-height:64px;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:stretch;
    gap:6px;
    padding:8px;
    border-bottom:1px solid #ebe9f1;
    background:#fff;
  }
  .library-detail-placeholder-tabs>span{
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:0 8px;
    border:1px solid transparent;
    border-radius:13px;
    color:#898390;
    font-size:13px;
    font-weight:820;
    white-space:nowrap;
  }
  .library-detail-placeholder-tabs>span.active{
    border-color:#d7cff8;
    color:#604bd1;
    background:linear-gradient(135deg,#f1efff,#f8f6ff);
  }
  .library-detail-placeholder-tabs em{
    padding:3px 5px;
    border-radius:999px;
    color:#9a94a4;
    background:#f0eff3;
    font-size:9px;
    font-style:normal;
    font-weight:850;
  }
  .library-detail-placeholder-tabs .active em{color:#fff;background:#6b56df}

  .library-detail-facts-host .library-detail-facts{
    margin:12px 12px 0!important;
    padding:12px 13px!important;
    border:1px solid #efedf4!important;
    border-radius:15px!important;
    background:linear-gradient(145deg,#fbfaff 0%,#f8f7fc 100%)!important;
  }
  .library-detail-facts-host .library-detail-facts h2{font-size:17px!important;margin:5px 0 8px!important}
  .library-detail-kickers span,.library-detail-kickers em{font-size:10.5px!important}
  .library-detail-fact-grid{gap:7px!important}
  .library-detail-fact-grid>span{padding:8px 9px!important;border:1px solid #f0edf5!important;background:#fff!important}
  .library-detail-fact-grid small{font-size:10px!important}
  .library-detail-fact-grid b{font-size:12px!important}

  .library-report-host-v24>.pc-report-dock:not(.ready){
    height:100%!important;
    display:flex!important;
    flex-direction:column!important;
    padding:14px 16px 16px!important;
    overflow:auto!important;
  }
  .library-report-host-v24>.pc-report-dock:not(.ready)>header{
    flex:none!important;
    padding:2px 2px 14px!important;
    margin:0 0 14px!important;
  }
  .library-report-host-v24>.pc-report-dock:not(.ready)>header small{font-size:11px!important;letter-spacing:.04em!important}
  .library-report-host-v24>.pc-report-dock:not(.ready)>header b{font-size:18px!important;line-height:1.35!important}
  .library-report-host-v24>.pc-report-dock:not(.ready)>header p{max-width:44em!important;margin-top:6px!important;font-size:12px!important;line-height:1.55!important}
  .library-report-host-v24>.pc-report-dock:not(.ready)>.pc-position-research{
    flex:none!important;
    margin-top:0!important;
    padding:14px!important;
    border-color:#dcd6f5!important;
    border-radius:16px!important;
    background:linear-gradient(145deg,#f9f7ff 0%,#fbfcff 100%)!important;
    box-shadow:0 7px 20px rgba(79,61,155,.07)!important;
  }
  .pc-position-research>header small{color:#6954da!important;font-size:11px!important}
  .pc-position-research>header b{font-size:15px!important}
  .pc-position-research>header button{min-height:36px!important;padding:0 13px!important;font-size:11.5px!important}

  .library-detail-control-card-v24{
    min-height:72px!important;
    grid-template-columns:40px minmax(0,1fr) 48px 40px!important;
    gap:9px!important;
    padding:10px 12px!important;
    border-top-color:#e8e5ee!important;
  }
  .library-detail-step{width:40px!important;height:40px!important;min-height:40px!important;border-radius:12px!important}
  .library-detail-play{width:48px!important;height:48px!important;min-height:48px!important;background:linear-gradient(145deg,#7562ee,#5c47d8)!important;box-shadow:0 7px 18px rgba(91,70,211,.28)!important}
  .library-detail-progress{gap:9px!important}
  .library-detail-progress>b{font-size:11px!important}
}

@media (min-width:1181px) and (max-width:1479px){
  .library-detail-body{
    --v24-stage-h:min(780px,calc(100dvh - 178px));
    grid-template-columns:minmax(570px,calc(var(--v24-stage-h) - 48px)) minmax(420px,500px)!important;
    gap:14px!important;
    padding:12px 16px 16px!important;
  }
  .library-detail-board-column-v24{--v24-strip-h:64px!important;grid-template-rows:64px minmax(0,1fr)!important}
  .library-detail-game-strip-v24{min-height:64px!important}
  .library-detail-placeholder-tabs{min-height:60px;padding:7px}
  .library-detail-placeholder-tabs>span{font-size:12px}
  .library-detail-research-column-v24{grid-template-rows:auto minmax(0,1fr) 68px!important}
  .library-detail-research-column-v24.has-report{grid-template-rows:minmax(0,1fr) 68px!important}
  .library-detail-control-card-v24{min-height:68px!important;padding-block:8px!important}
  .library-report-host-v24>.pc-report-dock:not(.ready)>header b{font-size:16px!important}
  .library-detail-facts-host .library-detail-facts{padding:10px 11px!important}
}

@media print{.library-detail-placeholder-tabs{display:none!important}}

@media (min-width:901px){
  .library-feed-screen{
    gap:12px!important;
  }

  /* 页头从“工具条”改为真正的栏目导航。 */
  .library-feed-screen>.feed-category-bar-v13{
    border-color:#e4e3eb!important;
    background:rgba(255,255,255,.96)!important;
    box-shadow:0 8px 24px rgba(47,40,74,.045)!important;
  }
  .library-feed-identity{gap:11px!important}
  .library-feed-mark{
    width:42px!important;
    height:42px!important;
    border-radius:13px!important;
    color:#684fe2!important;
    background:linear-gradient(145deg,#eeeaff,#f7f5ff)!important;
    box-shadow:0 5px 13px rgba(99,73,220,.11)!important;
  }
  .library-feed-identity b{color:#292534!important;font-size:18px!important}
  .library-feed-identity small{margin-top:2px!important;color:#8d8797!important;font-size:10.5px!important}

  .library-page-v13 .feed-category-tabs{
    position:relative!important;
    height:48px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:inset 0 -1px #ebe9f0!important;
  }
  .library-page-v13 .feed-category-tabs button{
    position:relative!important;
    height:48px!important;
    min-height:48px!important;
    padding:0 18px!important;
    border:0!important;
    border-radius:0!important;
    color:#5e5868!important;
    background:transparent!important;
    box-shadow:none!important;
    font-size:13px!important;
    font-weight:760!important;
  }
  .library-page-v13 .feed-category-tabs button::after{
    content:"";
    position:absolute;
    left:28%;
    right:28%;
    bottom:0;
    height:3px;
    border-radius:99px 99px 0 0;
    background:transparent;
  }
  .library-page-v13 .feed-category-tabs button.active{color:#664bdc!important;background:transparent!important}
  .library-page-v13 .feed-category-tabs button.active::after{background:#7156e8}
  .library-page-v13 .feed-category-tabs button:hover{color:#5c47c8!important;background:#faf9ff!important}

  .feed-library-entry{
    min-width:86px!important;
    height:40px!important;
    border:1px solid #e1dcef!important;
    color:#5f54a1!important;
    background:#faf9ff!important;
    font-size:11.5px!important;
  }
  .feed-category-actions{gap:7px!important}
  .feed-edge{
    width:40px!important;
    height:40px!important;
    border-color:#e3e0e9!important;
    border-radius:12px!important;
    background:#fff!important;
  }

  /* 去掉三栏之外的第四层大卡片，三块内容直接构成研究台。 */
  .library-feed-screen>.feed-zone-v13{
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .library-page-v13 .feed-focus-layout-v19{contain:layout paint!important}

  /* 左侧列表。 */
  .library-page-v13 #feedQueueHost.feed-queue{
    padding:0!important;
    border-color:#e3e2e9!important;
    border-radius:19px!important;
    box-shadow:0 10px 28px rgba(48,40,76,.045)!important;
  }
  .library-page-v13 .feed-queue-head{
    min-height:66px!important;
    display:flex!important;
    align-items:center!important;
    padding:12px 13px!important;
    border-bottom-color:#eceaf0!important;
  }
  .library-page-v13 .feed-queue-head b{font-size:15px!important}
  .library-page-v13 .feed-queue-head small{margin-top:3px!important;font-size:9.5px!important}
  .library-page-v13 .feed-nav-buttons{gap:5px!important}
  .library-page-v13 .feed-nav-buttons button{
    width:29px!important;
    height:29px!important;
    border-color:#e2ddef!important;
    border-radius:9px!important;
    color:#6b59c7!important;
    background:#faf9ff!important;
  }
  .library-page-v13 .feed-queue-list{
    max-height:calc(100% - 66px)!important;
    gap:3px!important;
    padding:8px!important;
  }
  .library-page-v13 .feed-queue-item{
    min-height:70px!important;
    grid-template-columns:27px minmax(0,1fr) 13px!important;
    gap:7px!important;
    padding:8px 7px!important;
    border-radius:12px!important;
  }
  .library-page-v13 .feed-queue-item b{font-size:11.5px!important;line-height:1.4!important}
  .library-page-v13 .feed-queue-item small{font-size:9.5px!important}
  .library-page-v13 .feed-queue-item.active,
  .library-page-v13 .feed-queue-item[aria-current="true"]{
    border-color:#b8a8ff!important;
    background:linear-gradient(135deg,#f6f3ff,#fcfbff)!important;
    box-shadow:inset 3px 0 #7155ed,0 5px 14px rgba(83,61,170,.07)!important;
  }

  /* 中央只保留棋盘本身的视觉重量。 */
  .library-page-v13 .feed-board-stage-v20{
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .library-page-v13 .feed-board-stage-v20 .feed-board-frame{
    padding:9px!important;
    border-color:#dfd2ba!important;
    border-radius:18px!important;
    background:linear-gradient(155deg,#fffdf7 0%,#fbf4e5 100%)!important;
    box-shadow:0 15px 34px rgba(78,55,26,.13)!important;
  }
  .library-page-v13 .feed-board-stage-v20 .feed-board{border-radius:11px!important}
  .library-page-v13 .feed-focus{top:14px!important;left:14px!important}
  .library-page-v13 .feed-live-pill,.library-page-v13 .feed-replay-pill{top:14px!important;right:14px!important}

  /* 右侧借鉴入选稿的棋谱册，但沿用真实详情与 AI 报告数据。 */
  .library-page-v13 .feed-info-v20{
    position:relative!important;
    grid-template-rows:auto auto auto auto auto minmax(0,1fr) auto auto!important;
    padding:20px 18px 15px!important;
    border-color:#e8dfd1!important;
    border-radius:19px!important;
    background:
      linear-gradient(90deg,rgba(244,237,225,.5),transparent 20px),
      linear-gradient(155deg,#fffdf9 0%,#fffefa 56%,#fbf7ee 100%)!important;
    box-shadow:0 11px 30px rgba(78,58,35,.075)!important;
  }
  .library-page-v13 .feed-info-v20::before{
    content:"当前棋谱"!important;
    margin-bottom:1px!important;
    color:#8f806e!important;
    font-size:10px!important;
    letter-spacing:.08em!important;
  }
  .library-page-v13 .feed-info-v20::after{
    content:"";
    position:absolute;
    z-index:2;
    left:2px;
    top:102px;
    bottom:92px;
    width:12px;
    pointer-events:none;
    opacity:.7;
    background:radial-gradient(circle at 5px 6px,#c7bda9 0 2.5px,transparent 3px) 0 0/12px 34px repeat-y;
  }
  .library-page-v13 .feed-info-v20 h2{
    margin:2px 0 0!important;
    min-height:max-content!important;
    color:#26202d!important;
    font-size:21px!important;
    line-height:1.34!important;
  }
  .library-page-v13 .feed-feature-kicker{gap:6px!important}
  .library-page-v13 .feed-feature-kicker .feed-badge,
  .library-page-v13 .feed-feature-kicker .feed-secondary-badge{padding:5px 8px!important;font-size:10px!important}
  .library-page-v13 .feed-event{color:#6d55d6!important;font-size:12px!important}
  .library-page-v13 .feed-fact{color:#746d77!important;font-size:11px!important;line-height:1.6!important}
  .library-page-v13 .feed-research-snapshot.ready{
    padding:12px!important;
    border-color:#e8e0d6!important;
    border-radius:14px!important;
    background:rgba(255,252,247,.84)!important;
  }
  .feed-research-players{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    align-items:center;
    gap:8px;
    padding:10px 0;
    border-block:1px solid #eee6db;
  }
  .feed-research-players>span{
    min-width:0;
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    grid-template-rows:auto auto;
    align-items:center;
    column-gap:7px;
  }
  .feed-research-players .stone{grid-row:1 / span 2;position:static!important;width:19px!important;height:19px!important;transform:none!important}
  .feed-research-players small{color:#9b9185;font-size:9px;line-height:1.2}
  .feed-research-players b{overflow:hidden;color:#3b3331;font-size:11.5px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
  .feed-research-players em{display:none}
  .feed-research-players>strong{color:#a09588;font-size:9px}
  .library-page-v13 .feed-research-detail-line{gap:7px!important}
  .library-page-v13 .feed-research-detail-line>span{border:1px solid #f0e9df!important;background:#fff!important}
  .library-page-v13 .feed-research-metrics>span{border:1px solid #ede5db!important;background:#fff!important}
  .library-page-v13 .feed-research-chart{height:105px!important;margin-top:8px!important}
  .library-page-v13 .feed-side-actions{border-top-color:#ece4d9!important}
  .library-page-v13 .feed-side-actions .feed-cta{
    background:linear-gradient(135deg,#755ce8,#6547d8)!important;
    box-shadow:0 8px 19px rgba(96,67,211,.19)!important;
  }
  .library-page-v13 .feed-original-intent{color:#928a94!important;font-size:9.5px!important}

  .library-page-v13 .feed-rail{min-height:24px!important;padding:1px 4px!important;color:#8e8797!important;font-size:9.5px!important}
}

@media (min-width:1480px){
  .library-feed-screen>.feed-category-bar-v13{grid-template-columns:230px minmax(560px,720px) auto 1fr!important}
  .library-page-v13 .feed-focus-layout-v19{grid-template-columns:286px minmax(620px,1fr) 420px!important;gap:14px!important}
  .library-page-v13 #feedFeaturedHost.feed-card-featured{grid-template-columns:minmax(620px,1fr) 420px!important;gap:14px!important}
  .library-page-v13 .feed-board-stage-v20 .feed-board-frame{max-width:820px!important}
  .library-page-v13 .feed-queue-item{min-height:76px!important}
  .library-page-v13 .feed-info-v20 h2{font-size:23px!important}
}

@media (min-width:1321px) and (max-width:1479px){
  .library-feed-screen>.feed-category-bar-v13{grid-template-columns:165px minmax(430px,1fr) auto auto!important;gap:10px!important}
  .library-page-v13 .feed-focus-layout-v19{grid-template-columns:228px minmax(500px,1fr) 344px!important;gap:12px!important}
  .library-page-v13 #feedFeaturedHost.feed-card-featured{grid-template-columns:minmax(500px,1fr) 344px!important;gap:12px!important}
  .library-page-v13 .feed-info-v20{padding:17px 14px 13px!important}
}

@media (min-width:1181px) and (max-width:1320px){
  .library-feed-screen>.feed-category-bar-v13{grid-template-columns:150px minmax(390px,1fr) auto auto!important;gap:7px!important}
  .library-page-v13 .feed-category-tabs button{padding-inline:12px!important;font-size:11.5px!important}
  .library-page-v13 .feed-focus-layout-v19{grid-template-columns:210px minmax(470px,1fr) 320px!important;gap:10px!important}
  .library-page-v13 #feedFeaturedHost.feed-card-featured{grid-template-columns:minmax(470px,1fr) 320px!important;gap:10px!important}
  .library-page-v13 .feed-info-v20{padding:14px 12px 11px!important}
  .library-page-v13 .feed-info-v20 h2{font-size:18px!important}
  .library-page-v13 .feed-research-snapshot.ready{padding:10px!important}
  .feed-research-players{padding:6px 0!important}
  .library-page-v13 .feed-research-chart{height:62px!important;margin-top:6px!important}
  .library-page-v13 .feed-queue-item{min-height:64px!important}
  .library-page-v13 .feed-queue-item small{display:none!important}
}

@media (min-width:901px) and (max-width:1180px){
  .library-feed-identity b{font-size:0!important}
  .library-feed-identity b::after{content:"棋谱";font-size:12px}
  .library-feed-identity small{display:none!important}
  .library-page-v13 .feed-category-tabs button{font-size:10px!important;padding-inline:5px!important}
  .feed-library-entry{min-width:36px!important;width:36px!important}
  .feed-library-entry span{display:none!important}
  .feed-research-players{padding:6px 0}
  .feed-research-players .stone{width:15px!important;height:15px!important}
  .feed-research-players b{font-size:9px}
}

@media print{.feed-research-players{break-inside:avoid}}

@media (min-width:901px){
  .library-browser[data-library-kind="tournament"]{
    gap:11px!important;
  }

  /* 单行栏目头：返回、赛事标题、真实搜索和刷新。 */
  .library-browser[data-library-kind="tournament"]>.library-inner-head{
    min-height:68px!important;
    grid-template-columns:42px minmax(190px,1fr) minmax(270px,360px) auto!important;
    gap:11px!important;
    padding:8px 12px!important;
    border-color:#e5e3eb!important;
    border-radius:18px!important;
    background:rgba(255,255,255,.97)!important;
    box-shadow:0 8px 24px rgba(48,40,73,.045)!important;
  }
  .library-browser[data-library-kind="tournament"]>.library-inner-head>div:nth-child(2){min-width:0}
  .library-browser[data-library-kind="tournament"] .library-back{
    color:#6953d8!important;
    border-color:#e2ddf2!important;
    background:#faf9ff!important;
  }
  .library-browser[data-library-kind="tournament"] .library-inner-head h2{font-size:19px!important}
  .library-browser[data-library-kind="tournament"] .library-inner-head p{color:#918a99!important;font-size:10.5px!important}
  .library-browser[data-library-kind="tournament"] .library-search-v13{
    grid-column:3!important;
    grid-row:1!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
  }
  .library-browser[data-library-kind="tournament"] .library-search-v13 .field{
    width:auto!important;
    min-width:0!important;
    flex:1 1 auto!important;
    height:38px!important;
    padding-inline:13px!important;
    border-color:#e6e2eb!important;
    border-radius:11px!important;
    background:#fafafd!important;
    font-size:11.5px!important;
  }
  .library-browser[data-library-kind="tournament"] .library-search-v13 .btn-primary{
    flex:none!important;
    width:64px!important;
    min-width:64px!important;
    height:38px!important;
    border-radius:11px!important;
    font-size:11px!important;
  }
  .library-browser[data-library-kind="tournament"] .library-refresh{
    grid-column:4!important;
    grid-row:1!important;
    height:38px!important;
  }

  /* 三栏研究台：左赛事队列，中间棋盘，右赛事与研究信息。 */
  .library-browser[data-library-kind="tournament"] .library-browser-body{
    grid-template-columns:270px minmax(0,1fr)!important;
    gap:13px!important;
  }
  .library-browser[data-library-kind="tournament"] .library-panel{
    padding:0!important;
    border-color:#e2e1e8!important;
    border-radius:19px!important;
    background:#fff!important;
    box-shadow:0 10px 28px rgba(48,40,76,.045)!important;
  }
  .library-browser[data-library-kind="tournament"] .library-panel-head{
    min-height:66px!important;
    align-items:center!important;
    padding:11px 13px!important;
    border-bottom:1px solid #ebe9ef!important;
  }
  .library-browser[data-library-kind="tournament"] .library-panel-head>div{min-width:0}
  .library-browser[data-library-kind="tournament"] .library-panel-head b{font-size:15px!important}
  .library-browser[data-library-kind="tournament"] .library-panel-head small{
    max-width:155px!important;
    margin-top:3px!important;
    overflow:hidden!important;
    color:#97909d!important;
    font-size:9.5px!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .library-browser[data-library-kind="tournament"] .library-list-hint{display:none!important}
  .library-browser[data-library-kind="tournament"] .library-list{
    height:calc(100% - 66px)!important;
    padding:7px!important;
    scrollbar-gutter:auto!important;
  }
  .library-browser[data-library-kind="tournament"] .lib-card-grid{gap:3px!important;padding:0!important}
  .library-browser[data-library-kind="tournament"] .lib-item-card{
    min-height:74px!important;
    grid-template-columns:28px minmax(0,1fr) 12px!important;
    gap:7px!important;
    padding:8px 7px!important;
    border-color:transparent!important;
    border-radius:12px!important;
    background:#fff!important;
  }
  .library-browser[data-library-kind="tournament"] .lib-item-card:hover{
    border-color:#e0dbf4!important;
    background:#faf9ff!important;
    box-shadow:none!important;
  }
  .library-browser[data-library-kind="tournament"] .lib-item-card.selected{
    border-color:#b9aaff!important;
    background:linear-gradient(135deg,#f5f2ff,#fcfbff)!important;
    box-shadow:inset 3px 0 #7155ed,0 5px 14px rgba(83,61,170,.07)!important;
  }
  .library-browser[data-library-kind="tournament"] .lib-row-no{color:#8c7ce3!important;font-size:10.5px!important}
  .library-browser[data-library-kind="tournament"] .lib-item-info{gap:4px!important}
  .library-browser[data-library-kind="tournament"] .lib-item-match{
    font-size:11px!important;
    line-height:1.4!important;
    white-space:nowrap!important;
  }
  .library-browser[data-library-kind="tournament"] .lib-item-status{font-size:9px!important;padding:3px 6px!important}
  .library-browser[data-library-kind="tournament"] .lib-item-players{font-size:9.5px!important}
  .library-browser[data-library-kind="tournament"] .lib-item-footer{font-size:8.5px!important}

  /* Inspector 本身不再是一张“大白卡”，内部棋盘与研究栏形成两块内容。 */
  .library-browser[data-library-kind="tournament"] #libraryInspector:has(.lib-inspector-board-shell){
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 320px!important;
    grid-template-areas:
      "board head"
      "board players"
      "board meta"
      "board study"
      "board note"
      "board open"!important;
    grid-template-rows:auto auto auto minmax(0,1fr) auto auto!important;
    column-gap:18px!important;
    row-gap:10px!important;
    align-items:stretch!important;
    padding:15px!important;
    border-color:#e3e2e8!important;
    border-radius:19px!important;
    background:linear-gradient(90deg,#fff 0%,#fff 68%,#fdfbf7 100%)!important;
    box-shadow:0 11px 30px rgba(53,45,78,.05)!important;
  }
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-board-shell{
    position:relative!important;
    grid-area:board!important;
    align-self:center!important;
    justify-self:center!important;
    width:min(100%,calc(100dvh - 218px),720px)!important;
    max-width:720px!important;
    height:auto!important;
    aspect-ratio:1/1!important;
    margin:0!important;
    padding:10px!important;
    border:1px solid #ddc28f!important;
    border-radius:18px!important;
    background:linear-gradient(155deg,#fffaf0,#c99047)!important;
    box-shadow:0 16px 34px rgba(82,57,26,.15)!important;
  }
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-board{
    width:100%!important;
    height:100%!important;
    border-radius:10px!important;
  }
  .lib-board-caption{
    position:absolute;
    z-index:4;
    right:18px;
    bottom:17px;
    padding:6px 10px;
    border-radius:999px;
    color:#fff;
    background:rgba(87,61,29,.72);
    box-shadow:0 4px 10px rgba(56,37,15,.14);
    font-size:9.5px;
    font-weight:800;
    backdrop-filter:blur(5px);
  }

  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-head{
    grid-area:head!important;
    min-width:0!important;
    margin:0!important;
    padding:3px 0 11px!important;
    border-bottom:1px solid #e9e2d8!important;
  }
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-head>div{min-width:0!important}
  .lib-inspector-tags{display:flex!important;align-items:center!important;gap:6px!important;margin-bottom:8px!important}
  .lib-inspector-tags span{
    display:inline-flex!important;
    width:auto!important;
    padding:5px 8px!important;
    border-radius:999px!important;
    color:#776f7d!important;
    background:#f2f0f5!important;
    font-size:9px!important;
    font-weight:800!important;
  }
  .lib-inspector-tags span:first-child{color:#845421!important;background:#f7dcae!important}
  .lib-inspector-tags span.ready{color:#5c49bf!important;background:#ece8ff!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-head b{
    margin:0!important;
    overflow:hidden!important;
    color:#26212d!important;
    font-size:17px!important;
    line-height:1.42!important;
    white-space:normal!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:3!important;
  }
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-head>span{
    flex:none!important;
    margin-left:8px!important;
    padding:5px 8px!important;
    color:#6f55db!important;
    background:#f1eeff!important;
    font-size:9.5px!important;
  }

  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-players{
    grid-area:players!important;
    margin:0!important;
    padding:10px 0!important;
    border-bottom:1px solid #ece5dc!important;
    border-radius:0!important;
    background:transparent!important;
  }
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-players>span{gap:8px!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-players b{
    display:block!important;
    color:#322c35!important;
    font-size:12.5px!important;
    line-height:1.3!important;
  }
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-players b small{
    display:block!important;
    margin-bottom:2px!important;
    color:#9b9289!important;
    font-size:8.5px!important;
    font-weight:600!important;
  }
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-players .stone{width:15px!important;height:15px!important}

  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-meta{
    grid-area:meta!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:7px!important;
    margin:0!important;
  }
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-meta span{
    display:block!important;
    padding:9px 10px!important;
    border:1px solid #eee7de!important;
    border-radius:10px!important;
    background:#fff!important;
    text-align:left!important;
  }
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-meta span:first-child{grid-column:1/-1!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-meta small{font-size:9px!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-meta b{margin-top:3px!important;font-size:12px!important}

  .lib-inspector-study{
    grid-area:study;
    min-height:0;
    align-self:start;
    padding:12px;
    border:1px solid #e9e4f1;
    border-radius:12px;
    background:linear-gradient(145deg,#faf8ff,#fff);
  }
  .lib-inspector-study small{display:block;color:#83769b;font-size:9px;font-weight:800;letter-spacing:.06em}
  .lib-inspector-study b{display:block;margin-top:6px;color:#443951;font-size:12.5px;line-height:1.4}
  .lib-inspector-study span{display:block;margin-top:6px;color:#8b8390;font-size:10px;line-height:1.6}
  .lib-study-features{display:grid;gap:5px;margin-top:10px}
  .lib-study-features i{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px;border-radius:8px;background:rgba(255,255,255,.82);font-style:normal}
  .lib-study-features b{margin:0!important;color:#665d6e!important;font-size:9.5px!important;font-weight:750!important}
  .lib-study-features em{margin:0!important;color:#7560d2!important;font-size:8.5px!important;font-style:normal!important;text-align:right!important}
  .lib-study-progress{height:5px;margin-top:12px;overflow:hidden;border-radius:99px;background:#e9e6ee}
  .lib-study-progress i{display:block;width:100%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7357e8,#9a83f2)}
  .lib-inspector-study>em{display:block;margin-top:6px;color:#9a919f;font-size:9px;font-style:normal;text-align:right}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-note{
    grid-area:note!important;
    margin:0!important;
    padding:8px 10px!important;
    color:#807984!important;
    background:#f7f3eb!important;
    font-size:9.5px!important;
    line-height:1.55!important;
  }
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-open{
    grid-area:open!important;
    height:46px!important;
    margin:0!important;
    border-radius:12px!important;
    background:linear-gradient(135deg,#755ce8,#6547d8)!important;
    box-shadow:0 8px 19px rgba(96,67,211,.18)!important;
    font-size:12px!important;
  }
}

@media (min-width:1480px){
  .library-browser[data-library-kind="tournament"] .library-browser-body{grid-template-columns:300px minmax(0,1fr)!important;gap:14px!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector:has(.lib-inspector-board-shell){grid-template-columns:minmax(620px,1fr) 400px!important;column-gap:22px!important;padding:18px!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-board-shell{width:min(100%,calc(100dvh - 220px),820px)!important;max-width:820px!important}
  .library-browser[data-library-kind="tournament"] .lib-item-card{min-height:78px!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-head b{font-size:20px!important}
}

@media (min-width:1321px) and (max-width:1479px){
  .library-browser[data-library-kind="tournament"] .library-browser-body{grid-template-columns:244px minmax(0,1fr)!important;gap:12px!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector:has(.lib-inspector-board-shell){grid-template-columns:minmax(500px,1fr) 286px!important;column-gap:15px!important;padding:13px!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-board-shell{width:min(100%,calc(100dvh - 218px),600px)!important;max-width:600px!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-head b{font-size:16px!important}
}

@media (min-width:1181px) and (max-width:1320px){
  .library-browser[data-library-kind="tournament"]>.library-inner-head{grid-template-columns:38px minmax(150px,1fr) minmax(230px,300px) auto!important;padding-inline:9px!important}
  .library-browser[data-library-kind="tournament"] .library-search-v13 .btn-primary{width:58px!important;min-width:58px!important}
  .library-browser[data-library-kind="tournament"] .library-browser-body{grid-template-columns:232px minmax(0,1fr)!important;gap:10px!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector:has(.lib-inspector-board-shell){grid-template-columns:minmax(440px,1fr) 244px!important;column-gap:11px!important;row-gap:7px!important;padding:10px!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-board-shell{width:min(100%,calc(100dvh - 212px),580px)!important;max-width:580px!important;padding:8px!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-head{padding-bottom:7px!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-head b{font-size:13px!important;-webkit-line-clamp:2!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-head>span{padding:4px 6px!important;font-size:8.5px!important}
  .lib-inspector-tags{margin-bottom:5px!important}.lib-inspector-tags span{padding:4px 6px!important;font-size:8px!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-players{padding:6px 0!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-players b{font-size:10.5px!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-meta{gap:5px!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-meta span{padding:6px 7px!important}
  .lib-inspector-study{padding:8px!important}.lib-inspector-study b{margin-top:4px;font-size:10.5px}.lib-inspector-study span{margin-top:4px;font-size:9px;line-height:1.45}.lib-study-features{display:none!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-note{display:none!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-open{height:39px!important;font-size:10.5px!important}
  .library-browser[data-library-kind="tournament"] .lib-item-status{display:none!important}
}

@media (min-width:901px) and (max-width:1180px){
  .library-browser[data-library-kind="tournament"]>.library-inner-head{grid-template-columns:36px minmax(130px,1fr) minmax(190px,260px) 36px!important;gap:6px!important}
  .library-browser[data-library-kind="tournament"] .library-search-v13 .btn-primary{display:none!important}
  .library-browser[data-library-kind="tournament"] .library-refresh{width:36px!important;padding:0!important;justify-content:center!important}
  .library-browser[data-library-kind="tournament"] .library-refresh span{display:none!important}
  .library-browser[data-library-kind="tournament"] .library-browser-body{grid-template-columns:210px minmax(0,1fr)!important;gap:7px!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector:has(.lib-inspector-board-shell){grid-template-columns:minmax(330px,1fr) 205px!important;column-gap:7px!important;row-gap:5px!important;padding:7px!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-board-shell{width:min(100%,calc(100dvh - 210px),440px)!important;max-width:440px!important;padding:7px!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-head b{font-size:11px!important;-webkit-line-clamp:2!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-head>span,.library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-note{display:none!important}
  .lib-inspector-tags span{padding:3px 5px!important;font-size:7.5px!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-players{padding:5px 0!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-players b{font-size:9px!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-meta span{padding:5px!important}
  .lib-inspector-study{padding:6px!important}.lib-inspector-study b{font-size:9px}.lib-inspector-study span,.lib-study-features{display:none!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector .lib-inspector-open{height:34px!important;font-size:9px!important}
}

@media print{.lib-inspector-study,.lib-board-caption{break-inside:avoid}}

@media (min-width:901px){
  #view:has(.view-page[data-view="home"].active) .main-col{padding-top:20px!important;padding-bottom:28px!important}
  .view-page[data-view="home"] .home-main{width:min(100%,1020px)!important;gap:12px!important}

  /* 欢迎区：真实用户资料留在左侧，品牌导师作为轻量视觉锚点。 */
  .view-page[data-view="home"] .home-hero{
    position:relative!important;
    min-height:86px!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr) 188px auto!important;
    align-items:center!important;
    gap:13px!important;
    padding:11px 17px!important;
    overflow:hidden!important;
    border-color:#e5e2ee!important;
    border-radius:18px!important;
    background:
      radial-gradient(circle at 72% 15%,rgba(128,100,244,.13),transparent 28%),
      linear-gradient(112deg,#fff 0%,#fff 56%,#f5f1ff 100%)!important;
    box-shadow:0 8px 25px rgba(54,44,92,.045)!important;
  }
  .view-page[data-view="home"] .home-hero .avatar-button{position:relative;z-index:2}
  .view-page[data-view="home"] .home-hero .avatar-fallback{width:48px!important;height:48px!important}
  .view-page[data-view="home"] .home-user{position:relative;z-index:2;min-width:0}
  .home-welcome-kicker{display:block;margin-bottom:3px;color:#866fe6;font-size:8.5px;font-weight:900;letter-spacing:.14em}
  .view-page[data-view="home"] .home-user b{display:block;color:#272231;font-size:20px!important;line-height:1.25}
  .view-page[data-view="home"] .home-user span{display:block;margin-top:3px;color:#797281!important;font-size:11px!important}
  .home-hero-art{position:relative;align-self:stretch;overflow:visible;pointer-events:none}
  .home-hero-art::before,.home-hero-art::after{content:"";position:absolute;border-radius:50%;background:#dcd2ff;opacity:.72}
  .home-hero-art::before{width:9px;height:9px;left:24px;top:15px}
  .home-hero-art::after{width:5px;height:5px;right:20px;bottom:14px}
  .home-hero-art i{position:absolute;left:17px;right:10px;bottom:-35px;height:85px;border-radius:50%;background:radial-gradient(ellipse,rgba(112,82,229,.16),transparent 68%)}
  .home-hero-art img{position:absolute;z-index:2;width:104px;height:104px;left:42px;bottom:-28px;object-fit:contain;filter:drop-shadow(0 7px 12px rgba(87,58,174,.17))}
  .view-page[data-view="home"] .home-hero .btn-login{position:relative;z-index:2;min-width:76px;height:38px;margin:0!important}
  .view-page[data-view="home"] .home-hero .btn-login[hidden]{display:none!important}

  /* 当前阶段 + 继续学习。 */
  .view-page[data-view="home"] .stage-banner{
    position:sticky!important;
    top:0!important;
    min-height:178px!important;
    display:grid!important;
    grid-template-columns:40px 238px minmax(0,1fr) 40px!important;
    align-items:center!important;
    gap:13px!important;
    padding:16px 17px!important;
    overflow:hidden!important;
    border-color:#d8d0ff!important;
    border-radius:19px!important;
    background:
      radial-gradient(circle at 30% 50%,rgba(116,86,234,.11),transparent 22%),
      linear-gradient(118deg,#f7f4ff 0%,#fff 50%,#f9f7ff 100%)!important;
    box-shadow:0 10px 28px rgba(74,57,145,.065)!important;
  }
  .view-page[data-view="home"] .stage-banner::before{content:""!important;position:absolute!important;inset:0!important;opacity:.35!important;pointer-events:none!important;background:radial-gradient(circle at 35% 24%,#fff 0 3px,transparent 4px) 0 0/58px 48px!important}
  .view-page[data-view="home"] .stage-nav{position:relative;z-index:3;width:38px!important;height:38px!important;color:#735ce0!important}
  .view-page[data-view="home"] .stage-info{position:relative;z-index:2;align-self:center;padding:8px 10px!important}
  .view-page[data-view="home"] .stage-info::after{
    content:"";
    position:absolute;
    z-index:-1;
    right:1px;
    top:50%;
    width:92px;
    height:92px;
    border-radius:50%;
    transform:translateY(-50%);
    background:radial-gradient(circle at 38% 34%,#fff 0 8%,#d9cffd 9% 36%,#b6a3f4 37% 55%,rgba(178,163,244,.1) 56%);
    opacity:.72;
  }
  .view-page[data-view="home"] .stage-meta{display:inline-flex!important;padding:5px 8px!important;border-radius:999px!important;color:#fff!important;background:#7559e5!important;font-size:8.5px!important;letter-spacing:.04em!important}
  .view-page[data-view="home"] .stage-title-row{margin-top:8px!important}
  .view-page[data-view="home"] .stage-title-row b{max-width:165px;font-size:22px!important;line-height:1.2!important}
  .view-page[data-view="home"] .stage-hint{color:#7259db!important;background:#ede8ff!important}
  .view-page[data-view="home"] .section-title{margin-top:6px;color:#5d526a!important;font-size:12px!important;font-weight:750!important}
  .view-page[data-view="home"] .stage-subtitle{max-width:175px;margin-top:4px;color:#8f8796!important;font-size:10px!important}

  .home-course{
    position:relative;
    z-index:2;
    min-width:0;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"kicker button" "title button" "bar button" "meta button";
    align-items:center;
    column-gap:20px;
    row-gap:7px;
    padding:14px 16px 14px 22px;
    border-left:1px solid rgba(120,95,214,.18);
  }
  .home-course>small{grid-area:kicker;display:flex;align-items:center;gap:6px;color:#765cdd;font-size:11px;font-weight:850}
  .home-course>small .ui-icon{width:15px;height:15px}
  .home-course>b{grid-area:title;overflow:hidden;color:#2d2736;font-size:17px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
  .home-course-progress{grid-area:bar;width:100%;height:7px;overflow:hidden;border-radius:99px;background:#e9e5f7}
  .home-course-progress i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7155e8,#9e87f3);transition:width .25s ease}
  .home-course>span{grid-area:meta;color:#8a8291;font-size:10px}
  .home-course>button{
    grid-area:button;
    min-width:132px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:0 17px;
    border:0;
    border-radius:999px;
    color:#fff;
    background:linear-gradient(135deg,#7659e9,#6547d9);
    box-shadow:0 9px 20px rgba(97,67,211,.22);
    font-size:13px;
    font-weight:850;
  }
  .home-course>button:hover{transform:translateY(-1px);box-shadow:0 12px 24px rgba(97,67,211,.27)}
  .home-course>button:disabled{color:#a8a2b3;background:#e5e2eb;box-shadow:none;cursor:not-allowed}
  .home-course>button .ui-icon{width:15px;height:15px}

  /* 学习路线保留原有纵向结构，由页面滚轮逐关浏览。 */
  .view-page[data-view="home"] .road-section{display:block!important;min-height:0!important}
  .home-road-overview{
    display:none!important;
    overflow:hidden;
    border:1px solid #e5e2ec;
    border-radius:19px;
    background:#fff;
    box-shadow:0 10px 30px rgba(51,43,76,.045);
  }
  .home-road-overview>header{height:55px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 18px;border-bottom:1px solid #edeaf1}
  .home-road-overview>header>div{min-width:0;display:flex;align-items:baseline;gap:13px}
  .home-road-overview>header b{color:#2e2935;font-size:15px}
  .home-road-overview>header small{overflow:hidden;color:#8d8594;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
  .home-road-overview>header button{flex:none;display:flex;align-items:center;gap:4px;border:0;color:#7158dc;background:transparent;font-size:10px;font-weight:800}
  .home-road-overview>header button .ui-icon{width:13px;height:13px}
  .home-route-map{position:relative;height:205px;margin:0 16px}
  .home-route-map::before{content:"";position:absolute;inset:16px 3% 8px;border-radius:50%;background:radial-gradient(circle,#d9d2f7 0 2px,transparent 3px) 0 0/70px 48px;opacity:.32}
  .home-route-map>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
  .home-route-depth,.home-route-line{fill:none;vector-effect:non-scaling-stroke;stroke-linecap:round}
  .home-route-depth{stroke:#d7cff3;stroke-width:14}
  .home-route-line{stroke:var(--route-accent);stroke-width:8}
  .home-route-line.locked{stroke:#dfdce6}.home-route-depth.locked{stroke:#eeecf2}
  .home-route-line.current{stroke:#967cf2}
  .home-route-slot{position:absolute;z-index:3;width:132px;display:flex;flex-direction:column;align-items:center;gap:7px;transform:translate(-50%,-50%);text-align:center}
  .home-route-node{
    position:relative;
    width:58px;
    height:58px;
    display:grid;
    place-items:center;
    padding:0;
    border:5px solid #e7e1ff;
    border-radius:50%;
    color:#fff;
    background:linear-gradient(145deg,var(--route-accent),var(--route-dark));
    box-shadow:0 5px 0 var(--route-dark),0 9px 17px rgba(75,54,157,.18);
  }
  .home-route-node:not(.locked):hover{transform:translateY(-2px)}
  .home-route-node>span{width:29px;height:29px;display:grid;place-items:center;color:#fff}
  .home-route-node .learning-node-icon{width:100%;height:100%}
  .home-route-node>i{position:absolute;right:-7px;bottom:-7px;width:22px;height:22px;display:grid;place-items:center;border:2px solid #fff;border-radius:50%;color:#fff;background:#5fbe75;box-shadow:0 2px 6px rgba(51,40,91,.14)}
  .home-route-node>i .ui-icon{width:12px;height:12px}
  .home-route-node.current{width:66px;height:66px;border-color:#d9cfff;box-shadow:0 6px 0 var(--route-dark),0 0 0 7px rgba(119,89,229,.12),0 10px 20px rgba(75,54,157,.21)}
  .home-route-node.current>i{background:#7c61e6}
  .home-route-node.locked{color:#aaa5b4;border-color:#eeecf1;background:#dedbe3;box-shadow:0 4px 0 #c9c5d0,0 7px 12px rgba(47,40,67,.08);cursor:not-allowed}
  .home-route-node.locked>i{background:#c7c3cf}
  .home-route-slot>div{width:132px}
  .home-route-slot>div b{display:block;overflow:hidden;color:#3b3542;font-size:10.5px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
  .home-route-slot>div small{display:block;margin-top:2px;overflow:hidden;color:#9a929f;font-size:8.5px;text-overflow:ellipsis;white-space:nowrap}
  .home-route-slot.locked>div b{color:#96919c}
  .home-route-finish{min-height:38px;display:flex;align-items:center;justify-content:center;gap:8px;color:#7158da;background:linear-gradient(90deg,#faf8ff,#fff,#faf8ff);font-size:10.5px;font-weight:800}
  .home-route-finish>.ui-icon{width:16px;height:16px;color:#f2ad2f}

  .home-growth-v33{min-height:72px;display:grid;grid-template-columns:1.25fr repeat(3,1fr);align-items:center;border-top:1px solid #eeebf2;background:#fbfaff}
  .home-growth-v33>strong,.home-growth-v33>span{min-width:0;height:44px;display:flex;align-items:center;gap:9px;padding:0 14px;border-right:1px solid #ebe8f0}
  .home-growth-v33>span:last-child{border-right:0}
  .home-growth-v33 .ui-icon{flex:none;width:22px;height:22px;color:#7459e6}
  .home-growth-v33>strong>span,.home-growth-v33>span{font-weight:inherit}
  .home-growth-v33 b{display:block;overflow:hidden;color:#40394a;font-size:10.5px;text-overflow:ellipsis;white-space:nowrap}
  .home-growth-v33 small{display:block;margin-top:2px;overflow:hidden;color:#99919f;font-size:8.5px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
  .home-full-road{display:flex!important;flex-direction:column;gap:14px}

  /* 右侧目标 / 联赛 / 任务沿用真实数据，统一成入选稿的轻卡片。 */
  #view:has(.view-page[data-view="home"].active) .right-panel{padding:20px 15px 24px!important;gap:12px!important;background:#fafafd!important}
  #view:has(.view-page[data-view="home"].active) .right-panel .side-card{padding:15px!important;border-color:#e5e2ea!important;border-radius:17px!important;box-shadow:0 7px 22px rgba(49,42,72,.035)!important}
  #view:has(.view-page[data-view="home"].active) #sideStats{min-height:130px}
  #view:has(.view-page[data-view="home"].active) #sideLeague{min-height:140px}
  #view:has(.view-page[data-view="home"].active) #homeTasks{min-height:205px}
  #view:has(.view-page[data-view="home"].active) .right-panel .section-subtitle b{font-size:14px!important}
  #view:has(.view-page[data-view="home"].active) .right-panel .section-subtitle small{font-size:10px!important}
  #view:has(.view-page[data-view="home"].active) .streak-week{gap:5px!important;margin-bottom:11px!important}
  #view:has(.view-page[data-view="home"].active) .streak-week i{height:26px!important;border-radius:999px!important}
  #view:has(.view-page[data-view="home"].active) .side-assets{gap:7px!important}
  #view:has(.view-page[data-view="home"].active) .side-assets span{padding:8px 5px!important;border-radius:10px!important}
  #view:has(.view-page[data-view="home"].active) .league-go{min-height:32px!important;display:flex!important;align-items:center!important;justify-content:center!important;color:#7057d8!important;background:#f0ecff!important}
  #view:has(.view-page[data-view="home"].active) #homeTasks::before{font-size:14px!important}
  #view:has(.view-page[data-view="home"].active) .home-tasks .task-mini{padding:9px 10px!important;border-radius:10px!important}
  #view:has(.view-page[data-view="home"].active) .home-tasks .task-mini b{font-size:11px!important}
  #view:has(.view-page[data-view="home"].active) .home-tasks .task-mini small{font-size:9px!important}
}

@media (min-width:1181px) and (max-width:1479px){
  .view-page[data-view="home"] .stage-banner{grid-template-columns:38px 214px minmax(0,1fr) 38px!important;gap:9px!important;padding-inline:13px!important}
  .view-page[data-view="home"] .stage-title-row b{font-size:19px!important}
  .home-course{padding-left:16px!important;column-gap:12px!important}
  .home-course>button{min-width:112px!important;height:44px!important;padding-inline:13px!important}
  .home-route-map{height:198px!important;margin-inline:9px!important}
  .home-growth-v33>strong,.home-growth-v33>span{padding-inline:9px!important;gap:6px!important}
  .home-growth-v33 .ui-icon{width:18px!important;height:18px!important}
}

@media (min-width:901px) and (max-width:1180px){
  .view-page[data-view="home"] .home-hero{grid-template-columns:auto minmax(0,1fr) 120px auto!important}
  .home-hero-art img{left:12px!important}
  .view-page[data-view="home"] .stage-banner{grid-template-columns:34px 185px minmax(0,1fr) 34px!important;gap:6px!important;padding-inline:9px!important}
  .view-page[data-view="home"] .stage-info::after{display:none!important}
  .view-page[data-view="home"] .stage-title-row b{font-size:16px!important}
  .home-course{padding:10px!important;column-gap:8px!important}
  .home-course>b{font-size:13px!important}
  .home-course>button{min-width:92px!important;height:40px!important;padding-inline:9px!important;font-size:10.5px!important}
  .home-route-map{height:186px!important;margin-inline:4px!important}
  .home-route-slot{width:104px!important}.home-route-slot>div{width:104px!important}
  .home-route-node{width:52px!important;height:52px!important}.home-route-node.current{width:60px!important;height:60px!important}
  .home-growth-v33{grid-template-columns:1.1fr repeat(3,1fr)!important}.home-growth-v33>strong,.home-growth-v33>span{padding-inline:7px!important;gap:5px!important}.home-growth-v33 small{display:none!important}
}

@media (max-width:900px){
  .home-welcome-kicker,.home-hero-art,.home-course,.home-road-overview{display:none!important}
  .home-full-road{display:flex!important;flex-direction:column;gap:14px}
}

@media print{.home-road-overview{display:none!important}.home-full-road{display:flex!important;flex-direction:column;gap:14px}}

:root{
  --pc-nav-w:198px;
  --pc-aside-w:320px;
  --pc-topbar-h:68px;
  --pc-gutter:24px;
  --pc-content-max:1480px;
  --pc-bg:#f8f8fc;
  --pc-bg-2:#f4f4fa;
  --pc-surface:#fff;
  --pc-surface-soft:#fbfaff;
  --pc-text:#262238;
  --pc-muted:#80798e;
  --pc-border:#e8e6ef;
  --pc-purple:#6d50e8;
  --pc-purple-deep:#5a3fd0;
  --pc-purple-soft:#f1edff;
  --pc-shadow:0 10px 28px rgba(54,45,89,.055);
  --pc-shadow-hover:0 15px 34px rgba(54,45,89,.09);
}

@media (min-width:901px){
  html,body{background:var(--pc-bg)!important}
  body{min-width:1080px!important;color:var(--pc-text)!important}
  .web-shell{background:var(--pc-bg)!important}
  .topbar{
    height:var(--pc-topbar-h)!important;
    min-height:var(--pc-topbar-h)!important;
    padding:0 24px 0 20px!important;
    border-bottom:1px solid #e9e7ef!important;
    background:rgba(255,255,255,.97)!important;
    box-shadow:0 2px 12px rgba(41,34,66,.025)!important;
  }
  .topbar .brand{width:calc(var(--pc-nav-w) - 12px)!important;min-width:calc(var(--pc-nav-w) - 12px)!important;gap:8px!important}
  .topbar .brand-logo-asset{width:38px!important;height:38px!important;border-radius:12px!important;box-shadow:0 7px 17px rgba(95,66,210,.18)!important}
  .topbar .brand-wordmark img{width:115px!important;max-width:115px!important}
  .topbar .brand-tag{padding:3px 7px!important;border-radius:999px!important;color:#6046d5!important;background:#f0ecff!important;font-size:9px!important}
  .topbar-user{gap:4px!important}
  .user-chip{min-height:40px!important;padding:4px 9px 4px 5px!important;border-radius:12px!important;background:transparent!important}
  .user-chip:hover{background:#f6f3ff!important}
  .user-chip .avatar-fallback{width:31px!important;height:31px!important;border-radius:10px!important}
  .topbar-settings{width:38px!important;height:38px!important;border-radius:11px!important;margin:0 3px!important}
  .topbar-logout{min-height:38px!important;padding:0 14px!important;border:1px solid #dfdce8!important;border-radius:999px!important;background:#fff!important;color:#5e5769!important;font-size:11px!important;font-weight:800!important}

  .web-view{
    grid-template-columns:var(--pc-nav-w) minmax(0,1fr)!important;
    background:linear-gradient(180deg,#fafafe 0%,#f7f7fb 100%)!important;
  }
  .side-nav{
    height:calc(100vh - var(--pc-topbar-h))!important;
    padding:24px 14px 18px!important;
    gap:8px!important;
    border-right:1px solid #ebe9f0!important;
    background:#fff!important;
  }
  .side-nav::before{
    content:"学习 · 对弈 · 成长"!important;
    display:block!important;
    margin:0 10px 13px!important;
    padding:0!important;
    color:#8b8498!important;
    font-size:10px!important;
    font-weight:760!important;
    letter-spacing:.04em!important;
  }
  .side-nav-btn{
    min-height:48px!important;
    padding:0 14px!important;
    gap:11px!important;
    border-radius:13px!important;
    color:#5d586b!important;
    font-size:13px!important;
    font-weight:820!important;
  }
  .side-nav-btn .ui-icon{width:18px!important;height:18px!important;color:#6f697d!important}
  .side-nav-btn.active{
    color:#5f42d7!important;
    background:linear-gradient(100deg,#eeeaff,#e8e0ff)!important;
    box-shadow:inset 0 0 0 1px rgba(111,81,224,.10)!important;
  }
  .side-nav-btn.active::before{display:none!important}
  .side-nav-btn.active .ui-icon{color:#6648df!important}
  .side-nav-btn:hover{color:#6045d4!important;background:#f7f5ff!important}
  .main-col{padding:20px var(--pc-gutter) 32px!important;min-width:0!important}
  .view-page>.league-page, .view-page>.mine-page, .view-page>.library-page{max-width:var(--pc-content-max)!important;width:min(100%,var(--pc-content-max))!important;margin-inline:auto!important}
  .card{border-color:var(--pc-border)!important;box-shadow:var(--pc-shadow)!important}

  /* ============================ HOME ============================ */
  #view:has(.view-page[data-view="home"].active){
    grid-template-columns:var(--pc-nav-w) minmax(0,1fr) var(--pc-aside-w)!important;
  }
  #view:has(.view-page[data-view="home"].active) .main-col{padding:16px 20px 26px!important}
  #view:has(.view-page[data-view="home"].active) .right-panel{
    height:calc(100vh - var(--pc-topbar-h))!important;
    padding:18px 14px 24px!important;
    gap:12px!important;
    border-left:0!important;
    background:#fbfbfe!important;
  }
  .view-page[data-view="home"] .home-main{width:min(100%,1030px)!important;gap:12px!important}
  .view-page[data-view="home"] .home-hero{
    min-height:92px!important;
    grid-template-columns:minmax(0,1fr) 220px auto!important;
    gap:12px!important;
    padding:10px 16px 7px 18px!important;
    overflow:hidden!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .view-page[data-view="home"] .home-hero .avatar-button{display:none!important}
  .view-page[data-view="home"] .home-user{align-self:center!important;z-index:3!important}
  .home-welcome-kicker{margin-bottom:4px!important;color:#876fe6!important;font-size:8.5px!important;letter-spacing:.14em!important}
  .view-page[data-view="home"] .home-user b{font-size:25px!important;line-height:1.22!important;color:#252136!important}
  .view-page[data-view="home"] .home-user span{margin-top:5px!important;color:#777082!important;font-size:11px!important}
  .home-hero-art{height:92px!important;align-self:end!important;overflow:visible!important}
  .home-hero-art::before{content:"";position:absolute;inset:18px 3px 0;border-radius:60% 38% 42% 58%;background:radial-gradient(circle at 52% 60%,rgba(125,96,236,.18),transparent 64%);filter:blur(3px)}
  .home-hero-art i{display:none!important}
  .home-hero-art img{position:absolute!important;left:50%!important;bottom:-18px!important;width:154px!important;max-width:none!important;transform:translateX(-50%)!important;object-fit:contain!important;filter:drop-shadow(0 8px 10px rgba(58,46,90,.12))!important}
  .view-page[data-view="home"] .home-hero .btn-login{align-self:center!important;min-height:38px!important;border-radius:999px!important}

  .view-page[data-view="home"] .stage-banner{
    position:relative!important;
    top:auto!important;
    min-height:142px!important;
    display:grid!important;
    grid-template-columns:36px 270px minmax(0,1fr) 36px!important;
    align-items:center!important;
    gap:11px!important;
    padding:15px 15px!important;
    overflow:hidden!important;
    border:1px solid #cfc5fb!important;
    border-radius:20px!important;
    background:
      radial-gradient(circle at 26% 30%,rgba(119,84,229,.11),transparent 30%),
      linear-gradient(108deg,#fbfaff 0%,#fff 56%,#fbf9ff 100%)!important;
    box-shadow:0 10px 28px rgba(73,55,142,.055)!important;
  }
  .view-page[data-view="home"] .stage-banner::before{content:""!important;position:absolute!important;left:268px!important;top:-45px!important;width:190px!important;height:220px!important;border-radius:50%!important;background:linear-gradient(145deg,rgba(134,104,238,.09),rgba(255,255,255,.18))!important;opacity:1!important;transform:rotate(12deg)!important;pointer-events:none!important}
  .view-page[data-view="home"] .stage-nav{width:34px!important;height:34px!important;min-height:34px!important;border:1px solid #e4def8!important;border-radius:50%!important;background:#fff!important;color:#6f55dd!important;box-shadow:0 4px 12px rgba(77,59,137,.06)!important}
  .view-page[data-view="home"] .stage-info{position:relative!important;z-index:2!important;min-width:0!important;padding:5px 18px 5px 5px!important;text-align:left!important}
  .view-page[data-view="home"] .stage-meta{display:inline-flex!important;margin-bottom:6px!important;padding:4px 8px!important;border-radius:999px!important;color:#fff!important;background:#7658e2!important;font-size:8.5px!important;letter-spacing:.02em!important}
  .view-page[data-view="home"] .stage-title-row{justify-content:flex-start!important;margin:0 0 6px!important}
  .view-page[data-view="home"] .stage-title-row b{font-size:22px!important;color:#2d2837!important}
  .view-page[data-view="home"] .stage-hint{display:none!important}
  .view-page[data-view="home"] .section-title{font-size:11px!important;color:#554b65!important}
  .view-page[data-view="home"] .stage-subtitle{margin-top:5px!important;color:#8d8594!important;font-size:9.5px!important}
  .home-course{
    position:relative!important;
    z-index:2!important;
    min-height:102px!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"kicker button" "title button" "bar button" "meta button"!important;
    column-gap:18px!important;
    padding:12px 10px 12px 24px!important;
    border-left:1px solid #eee9f6!important;
  }
  .home-course>small{font-size:11px!important}
  .home-course>b{font-size:17px!important}
  .home-course-progress{height:6px!important;background:#e8e3f7!important}
  .home-course>span{font-size:9.5px!important}
  .home-course>button{min-width:132px!important;height:48px!important;border-radius:999px!important;font-size:12px!important}

  .view-page[data-view="home"] .road-section{display:block!important;min-height:0!important}
  .home-road{display:flex!important;flex-direction:column!important;gap:12px!important}
  .road-section-v34{
    position:relative!important;
    display:grid!important;
    grid-template-rows:auto minmax(172px,auto) auto!important;
    min-height:258px!important;
    overflow:hidden!important;
    border:1px solid #e7e4ed!important;
    border-radius:19px!important;
    background:#fff!important;
    box-shadow:0 8px 26px rgba(51,43,76,.035)!important;
  }
  .road-section-v34::after{content:"";position:absolute;right:-60px;bottom:-90px;width:260px;height:180px;border-radius:50%;background:radial-gradient(circle,rgba(121,91,231,.07),transparent 66%);pointer-events:none}
  .road-section-head{min-height:55px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:0 17px!important;border-bottom:1px solid #eeebf2!important;background:#fff!important}
  .road-section-head>div{min-width:0!important;display:flex!important;align-items:center!important;gap:10px!important}
  .road-section-head>div>i{width:4px!important;height:22px!important;border-radius:99px!important;background:var(--section-accent)!important;flex:none!important}
  .road-section-head span{min-width:0!important}
  .road-section-head b{display:block!important;color:#302b38!important;font-size:14px!important}
  .road-section-head small{display:block!important;margin-top:2px!important;overflow:hidden!important;color:#918a98!important;font-size:9px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .road-section-head>em{flex:none!important;padding:5px 9px!important;border-radius:999px!important;color:var(--section-dark)!important;background:var(--section-soft)!important;font-size:9px!important;font-style:normal!important;font-weight:820!important}
  .road-section-v34.section-locked .road-section-head>em{color:#8e8995!important;background:#f1f0f3!important}
  .road-track{
    position:relative!important;
    min-height:176px!important;
    display:grid!important;
    grid-template-columns:repeat(var(--road-count),minmax(96px,1fr))!important;
    align-items:center!important;
    gap:4px!important;
    padding:23px 24px 17px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:thin!important;
    scrollbar-color:#dcd5f3 transparent!important;
  }
  .road-track-base,.road-track-progress{position:absolute!important;left:7%!important;top:70px!important;height:11px!important;border-radius:99px!important;pointer-events:none!important}
  .road-track-base{right:7%!important;background:#ebe8f1!important}
  .road-track-progress{max-width:86%!important;background:linear-gradient(90deg,var(--section-accent),#9d89ef)!important;box-shadow:0 3px 9px rgba(105,78,202,.14)!important}
  .road-node-wrap{position:relative!important;z-index:2!important;min-width:92px!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:8px!important;text-align:center!important}
  .road-node.duo-node{
    position:relative!important;
    inset:auto!important;
    width:66px!important;
    height:66px!important;
    min-height:66px!important;
    display:grid!important;
    place-items:center!important;
    padding:0!important;
    border:5px solid #e4ddff!important;
    border-radius:50%!important;
    color:#fff!important;
    background:linear-gradient(145deg,var(--section-accent),var(--section-dark))!important;
    box-shadow:0 5px 0 var(--section-dark),0 10px 18px rgba(71,51,139,.17)!important;
    transform:none!important;
    overflow:visible!important;
  }
  .road-node.duo-node.current{width:74px!important;height:74px!important;min-height:74px!important;box-shadow:0 5px 0 var(--section-dark),0 0 0 7px rgba(111,82,225,.11),0 11px 21px rgba(71,51,139,.19)!important}
  .road-node.duo-node.locked{border-color:#ededf0!important;color:#aaa6b0!important;background:#dddbe1!important;box-shadow:0 4px 0 #c9c6ce,0 8px 14px rgba(55,49,70,.07)!important}
  .road-node .node-halo,.road-node .node-platform{display:none!important}
  .road-node .node-icon{width:30px!important;height:30px!important;display:grid!important;place-items:center!important}
  .road-node.current .node-icon{width:34px!important;height:34px!important}
  .road-node .learning-node-icon{width:100%!important;height:100%!important;color:currentColor!important}
  .road-node .node-status{position:absolute!important;right:-5px!important;bottom:-5px!important;width:22px!important;height:22px!important;display:grid!important;place-items:center!important;border:2px solid #fff!important;border-radius:50%!important;color:#fff!important;background:#58b86d!important;box-shadow:0 2px 7px rgba(51,42,83,.16)!important}
  .road-node.current .node-status{background:#765be2!important}.road-node.locked .node-status{background:#bdb9c3!important}
  .road-node .node-status .ui-icon{width:11px!important;height:11px!important}
  .road-node-copy{width:100%!important;min-width:0!important}
  .road-node-copy b{display:block!important;overflow:hidden!important;color:#3d3746!important;font-size:10.5px!important;line-height:1.35!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .road-node-copy small{display:block!important;margin-top:2px!important;overflow:hidden!important;color:#9c95a1!important;font-size:8px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .slot-locked .road-node-copy b{color:#92909a!important}
  .road-section-foot{min-height:37px!important;display:grid!important;grid-template-columns:auto minmax(120px,1fr) minmax(0,2fr)!important;align-items:center!important;gap:10px!important;padding:0 17px!important;border-top:1px solid #f0edf3!important;background:#fbfaff!important}
  .road-section-foot>span{color:#665c75!important;font-size:8.5px!important;font-weight:800!important}
  .road-section-foot>div{height:5px!important;overflow:hidden!important;border-radius:99px!important;background:#e8e5ed!important}.road-section-foot>div i{display:block!important;height:100%!important;border-radius:inherit!important;background:var(--section-accent)!important}
  .road-section-foot>small{overflow:hidden!important;color:#948d99!important;font-size:8.5px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .home-growth-v34{min-height:78px!important;display:grid!important;grid-template-columns:1.25fr repeat(3,minmax(0,1fr))!important;align-items:center!important;overflow:hidden!important;border:1px solid #e9e6ef!important;border-radius:17px!important;background:linear-gradient(90deg,#fff,#fbfaff)!important}
  .home-growth-v34>strong,.home-growth-v34>span{height:52px!important;min-width:0!important;display:flex!important;align-items:center!important;gap:8px!important;padding:0 15px!important;border-right:1px solid #ece9f0!important}
  .home-growth-v34>span:last-child{border-right:0!important}
  .home-growth-v34>strong>span{width:34px!important;height:34px!important;display:grid!important;place-items:center!important;border-radius:11px!important;color:#fff!important;background:#f0ae2f!important}
  .home-growth-v34>strong .ui-icon{width:19px!important;height:19px!important}
  .home-growth-v34>span>i{width:34px!important;height:34px!important;display:grid!important;place-items:center!important;padding:7px!important;border-radius:50%!important;color:#7457dd!important;background:#f0ecff!important}
  .home-growth-v34 .learning-node-icon{width:100%!important;height:100%!important}
  .home-growth-v34 b{display:block!important;overflow:hidden!important;color:#443d4c!important;font-size:10px!important;text-overflow:ellipsis!important;white-space:nowrap!important}.home-growth-v34 small{display:block!important;margin-top:2px!important;overflow:hidden!important;color:#9b949f!important;font-size:8px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .home-road>.duo-stage-finish{min-height:42px!important;border:1px solid #ebe7f2!important;border-radius:14px!important;background:#fff!important}

  #view:has(.view-page[data-view="home"].active) .right-panel .side-card{padding:14px!important;border:1px solid #e7e4ed!important;border-radius:16px!important;background:#fff!important;box-shadow:0 8px 24px rgba(48,41,72,.035)!important}
  #view:has(.view-page[data-view="home"].active) #sideStats{min-height:145px!important}
  #view:has(.view-page[data-view="home"].active) #sideLeague{min-height:154px!important}
  #view:has(.view-page[data-view="home"].active) #homeTasks{min-height:210px!important}
  #view:has(.view-page[data-view="home"].active) #homeTasks::before{font-size:15px!important;color:#312c3a!important}
  #view:has(.view-page[data-view="home"].active) .right-panel .section-subtitle b{font-size:14px!important}
  #view:has(.view-page[data-view="home"].active) .streak-week i{height:29px!important;border-radius:50%!important}

  /* ============================ STUDY ============================ */
  #view:has(.view-page[data-view="study"].active) .main-col{padding:16px 22px 24px!important}
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

  /* 调整训练：将原 modal 变成横屏三步工作台，所有选项仍由 study.js 的真实配置生成。 */
  
  
  
  
  
  
  
  
  
  .study-mode-options{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;gap:8px!important}
  .study-mode-choice{padding:12px!important;border-radius:13px!important;box-shadow:none!important}
  .study-mode-choice.active{border-color:#9c86ef!important;background:linear-gradient(145deg,#f6f3ff,#fff)!important;box-shadow:inset 0 0 0 1px #cfc4fb!important}
  .study-mode-choice>span{width:36px!important;height:36px!important;border-radius:11px!important}.study-mode-choice b{font-size:11px!important}.study-mode-choice small{font-size:8.5px!important}
  
  .study-inline-options{position:relative!important;min-height:54px!important;display:flex!important;align-items:center!important;gap:7px!important;margin:6px 0 0!important;padding:8px 8px 8px 92px!important;border:1px solid #f0edf4!important;border-radius:12px!important;background:#fbfaff!important}
  .study-inline-options[hidden]{display:none!important}
  .study-inline-options::before{position:absolute!important;left:12px!important;top:50%!important;transform:translateY(-50%)!important;color:#5b5365!important;font-size:10px!important;font-weight:820!important}
  #studyQuantityOptions::before{content:"刷题数量"}#studyBoardSizeOptions::before{content:"棋盘路数"}#studyStageOptions::before{content:"训练阶段"}
  .study-inline-options button{height:36px!important;min-width:88px!important;border-radius:9px!important;background:#fff!important}.study-inline-options button.active{border-color:#8f79ea!important;background:#f1edff!important;color:#5e42d1!important}
  
  
  .study-adjust-summary{grid-area:summary!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;min-width:0!important;padding:10px!important;border-radius:12px!important;background:#f8f6ff!important}
  .study-adjust-summary>span{min-width:0!important;padding:4px 7px!important;border-right:1px solid #e5e0f3!important}.study-adjust-summary>span:last-child{border-right:0!important}
  .study-adjust-summary small{display:block!important;color:#9690a0!important;font-size:8px!important}.study-adjust-summary b{display:block!important;margin-top:3px!important;overflow:hidden!important;color:#3d3549!important;font-size:10px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  

  /* ============================ LIBRARY ============================ */
  #view:has(.view-page[data-view="library"].active) .main-col{padding:12px 16px 22px!important}
  .library-page-v13{width:100%!important;max-width:none!important}
  .library-feed-screen>.feed-category-bar-v13,
  .library-inner-head{min-height:62px!important;border-radius:16px!important;border-color:#e5e3eb!important;box-shadow:0 7px 20px rgba(47,40,74,.035)!important}
  .library-feed-screen>.feed-zone-v13{min-height:0!important}
  .library-page-v13 .feed-focus-layout-v19{gap:12px!important}
  .library-page-v13 #feedQueueHost.feed-queue,
  .library-page-v13 .feed-info-v20{border-radius:16px!important;box-shadow:0 8px 24px rgba(48,40,76,.04)!important}
  .library-page-v13 .feed-board-stage-v20 .feed-board-frame{border-radius:16px!important;box-shadow:0 12px 26px rgba(76,54,25,.11)!important}
  .library-browser[data-library-kind="tournament"] .library-browser-body{gap:12px!important}
  .library-browser[data-library-kind="tournament"] #libraryInspector:has(.lib-inspector-board-shell){border-radius:18px!important;box-shadow:0 9px 25px rgba(48,40,76,.045)!important}
  .library-detail-layer{background:linear-gradient(180deg,#f7f7fb,#fbfbfd)!important}
  .library-detail-surface{box-shadow:0 18px 46px rgba(44,37,70,.08)!important}

  /* ============================ LEAGUE ============================ */
  #view:has(.view-page[data-view="league"].active) .main-col{padding:18px 28px 30px!important}
  .league-page{
    max-width:1370px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 315px!important;
    grid-template-areas:"head head" "progress progress" "week battle"!important;
    gap:14px 16px!important;
    align-items:start!important;
  }
  .league-header{grid-area:head!important;min-height:86px!important;padding:8px 4px 12px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  .league-header-icon{width:52px!important;height:52px!important;border-radius:15px!important;color:#694dde!important;background:#f0ecff!important;box-shadow:none!important}
  .league-header-copy h2{font-size:27px!important;color:#272238!important}.league-header-copy p{font-size:11px!important}
  .league-history-btn{min-height:38px!important;padding:0 14px!important;border:1px solid #dfdce7!important;border-radius:10px!important;background:#fff!important;color:#4f485b!important}
  .league-progress{grid-area:progress!important;padding:13px 18px!important;border-color:#dcd5f6!important;border-radius:18px!important;background:linear-gradient(100deg,#f9f7ff,#fff)!important;box-shadow:0 9px 25px rgba(67,51,133,.045)!important}
  .league-progress-row{display:grid!important;grid-template-columns:180px 1fr 1fr minmax(280px,1.35fr)!important;gap:0!important;align-items:center!important}
  .league-rank-chip,.league-fought,.league-promotion,.league-promotion-hint{min-height:68px!important;padding:6px 18px!important;border-right:1px solid #ebe7f3!important}.league-promotion-hint{border-right:0!important}
  .league-rank-icon{width:48px!important;height:48px!important;border-radius:14px!important;background:linear-gradient(145deg,#7555e8,#5d3ed1)!important}
  .league-rank-chip b{font-size:21px!important}.league-fought b,.league-promotion b{font-size:17px!important}.league-promotion-hint b{font-size:13px!important}.league-promotion-hint small{font-size:9px!important}
  .league-week{grid-area:week!important;min-height:452px!important;padding:20px 20px 18px!important;border-radius:20px!important;background:#fff!important;box-shadow:0 10px 30px rgba(52,43,82,.045)!important}
  .league-week .league-section-head{min-height:42px!important;padding:0 4px!important}.league-week .league-section-head h3{font-size:16px!important}.league-week .league-section-head small{font-size:9.5px!important}
  .league-opponents{
    position:relative!important;
    display:grid!important;
    grid-template-columns:repeat(7,minmax(88px,1fr))!important;
    gap:10px!important;
    align-items:start!important;
    margin-top:35px!important;
    padding:0 8px!important;
  }
  .league-opponents::before{content:"";position:absolute;left:6%;right:6%;top:1px;height:2px;border-radius:99px;background:linear-gradient(90deg,#6c51de 0 28%,#dedbe6 28% 100%)}
  .league-opponent{
    position:relative!important;
    min-height:192px!important;
    gap:8px!important;
    padding:28px 6px 11px!important;
    border:1px solid #e5e2eb!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:0 6px 18px rgba(52,43,82,.035)!important;
  }
  .league-opponent::before{content:"";position:absolute;top:-39px;left:50%;width:18px;height:18px;transform:translateX(-50%);border:5px solid #fff;border-radius:50%;background:#aaa5b5;box-shadow:0 0 0 2px #d9d5e1}
  .league-opponent.win::before{background:#28a866;box-shadow:0 0 0 2px #8ad3aa}.league-opponent.done::before{background:#28a866;box-shadow:0 0 0 2px #8ad3aa}.league-opponent.ready::before{background:#7660e3;box-shadow:0 0 0 3px #c9bef7}
  .league-opponent:hover{transform:translateY(-2px)!important;border-color:#bbaaf6!important;box-shadow:0 10px 24px rgba(73,54,146,.08)!important}
  .league-opponent.win{border-color:#d9efe2!important;background:linear-gradient(180deg,#fff,#f5fcf7)!important}.league-opponent.done{border-color:#f0dfdf!important;background:linear-gradient(180deg,#fff,#fff8f8)!important}.league-opponent.ready{border-color:#a995f4!important;background:linear-gradient(180deg,#fff,#faf8ff)!important}
  .league-opponent-avatar-v4{width:75px!important;height:75px!important;border:0!important;background:#f7f5fb!important}
  .league-opponent b{font-size:12px!important;color:#3d3746!important}.league-opponent small{font-size:9px!important}
  .league-lower{grid-area:battle!important;min-height:452px!important}
  .league-battle{height:100%!important;min-height:452px!important;padding:18px!important;border-radius:20px!important;background:#fff!important;box-shadow:0 10px 30px rgba(52,43,82,.045)!important}
  .league-battle .league-section-head{min-height:44px!important;padding:0 2px 8px!important;border-bottom:1px solid #efedf3!important}.league-battle .league-section-head h3{font-size:16px!important}.league-battle .league-section-head small{padding:5px 8px!important;border-radius:8px!important;background:#f5f2ff!important;font-size:9px!important}
  .weekly-battle-rank-row-v8{min-height:68px!important;padding:10px!important;border-radius:12px!important}.weekly-battle-rank-row-v8.self{border-color:#aa98f0!important;background:#f7f4ff!important}

  /* ============================ MINE ============================ */
  #view:has(.view-page[data-view="mine"].active) .main-col{padding:20px 28px 30px!important}
  .mine-page{
    max-width:1380px!important;
    display:grid!important;
    grid-template-columns:minmax(0,.85fr) minmax(0,1.05fr) minmax(320px,.92fr)!important;
    gap:14px!important;
    align-items:start!important;
  }
  .mine-overview{
    grid-column:1/-1!important;
    min-height:118px!important;
    display:grid!important;
    grid-template-columns:minmax(330px,1.15fr) minmax(560px,1.85fr)!important;
    align-items:stretch!important;
    overflow:hidden!important;
    padding:0!important;
    border-radius:19px!important;
    background:linear-gradient(105deg,#f7f2ff 0%,#fff 43%,#fff 100%)!important;
    box-shadow:0 9px 28px rgba(53,44,84,.045)!important;
  }
  .mine-overview .mine-user-card{min-width:0!important;display:grid!important;grid-template-columns:82px minmax(0,1fr) auto!important;grid-template-areas:"avatar copy msg" "avatar copy profile"!important;align-items:center!important;gap:4px 15px!important;padding:17px 20px!important;border:0!important;background:transparent!important}
  .mine-overview .mine-avatar{grid-area:avatar!important;width:82px!important;height:82px!important;border:6px solid rgba(255,255,255,.72)!important;box-shadow:0 7px 18px rgba(72,51,137,.13)!important}
  .mine-overview .mine-user-copy{grid-area:copy!important}.mine-overview .mine-user-copy b{font-size:22px!important;color:#2e2938!important}.mine-overview .mine-user-copy small{font-size:10px!important}
  .mine-overview .mine-msg-entry{grid-area:msg!important;align-self:end!important;min-height:40px!important;margin:0!important;border-radius:12px!important;box-shadow:none!important}.mine-overview .mine-profile-open{grid-area:profile!important;align-self:start!important;min-height:32px!important;border-radius:10px!important}.mine-overview .mine-guest-actions{grid-area:profile!important}
  .mine-assets-card{display:flex!important;align-items:center!important;padding:14px 18px!important;border:0!important;border-left:1px solid #ece8f1!important;background:transparent!important}
  .mine-assets-card .mine-assets{width:100%!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
  .mine-assets-card .mine-asset{min-height:72px!important;padding:12px 13px!important;border:1px solid #ece9f1!important;border-radius:14px!important;background:#fff!important;box-shadow:0 5px 16px rgba(48,41,72,.03)!important}
  .mine-assets-card .mine-asset img.asset-nec,.mine-assets-card .mine-asset img.mine-shield,.mine-assets-card .mine-asset .mine-shield-fallback{width:29px!important;height:29px!important}.mine-assets-card .mine-asset-copy b{font-size:18px!important}.mine-assets-card .mine-asset-copy small{font-size:10px!important}
  .mine-page>.mine-card{padding:17px 18px!important;border-radius:18px!important;box-shadow:0 8px 26px rgba(50,42,79,.04)!important}
  .mine-page>.mine-card:has([data-action="mine-streak"]){grid-column:1/3!important;grid-row:auto!important;min-height:430px!important}
  .mine-page>.mine-card:has(#mineTaskList){grid-column:3!important;min-height:430px!important}
  .mine-page>.mine-card:has(#mineAchGrid){grid-column:1/-1!important;min-height:170px!important}
  .mine-section-head{margin-bottom:12px!important}.mine-section-title{font-size:15px!important}
  .mine-svc-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}.mine-svc-grid>button{min-height:74px!important;padding:11px!important;border:1px solid #ece9f1!important;border-radius:13px!important;background:#fff!important;box-shadow:0 4px 13px rgba(49,42,72,.025)!important}.mine-svc-grid>button>svg,.mine-svc-grid>button>.ui-icon{width:22px!important;height:22px!important}.mine-svc-grid>button b{font-size:11px!important}.mine-svc-grid>button small{font-size:8.5px!important}
  .mine-core-services{grid-template-columns:repeat(3,minmax(0,1fr))!important;margin-top:10px!important}.mine-core-services>button{min-height:82px!important}
  .mine-task-item{min-height:73px!important;padding:12px!important;border:1px solid #efedf3!important;border-radius:13px!important;background:#fff!important}.mine-task-item+.mine-task-item{margin-top:9px!important}.mine-task-row b{font-size:11px!important}.mine-task-row small{font-size:9px!important}
  .mine-ach-grid{grid-template-columns:repeat(auto-fit,minmax(105px,1fr))!important;gap:12px!important}.mine-ach-badge{width:74px!important;height:74px!important;border:0!important;border-radius:18px!important;background:transparent!important}.mine-ach-badge img{object-fit:contain!important}.mine-ach-item small{max-width:112px!important;font-size:9.5px!important;color:#4c4655!important}
}

@media (min-width:901px) and (max-width:1180px){
  :root{--pc-nav-w:150px;--pc-aside-w:270px;--pc-gutter:14px}
  .topbar .brand{width:138px!important;min-width:138px!important}.topbar .brand-wordmark img{width:92px!important}.side-nav{padding-inline:9px!important}.side-nav-btn{padding-inline:10px!important;font-size:11px!important}
  #view:has(.view-page[data-view="home"].active){grid-template-columns:var(--pc-nav-w) minmax(0,1fr)!important}.right-panel{display:none!important}
  .view-page[data-view="home"] .stage-banner{grid-template-columns:32px 218px minmax(0,1fr) 32px!important}.home-course>button{min-width:100px!important}.home-hero-art{display:none!important}.view-page[data-view="home"] .home-hero{grid-template-columns:minmax(0,1fr) auto!important}
  .study-adjust-summary{grid-template-columns:repeat(2,1fr)!important}
  .league-page{grid-template-columns:minmax(0,1fr) 270px!important}.league-progress-row{grid-template-columns:150px 1fr 1fr minmax(220px,1.2fr)!important}.league-rank-chip,.league-fought,.league-promotion,.league-promotion-hint{padding-inline:10px!important}.league-opponents{grid-template-columns:repeat(7,minmax(76px,1fr))!important;gap:5px!important}.league-opponent-avatar-v4{width:60px!important;height:60px!important}
  .mine-page{grid-template-columns:1fr 1fr!important}.mine-overview{grid-template-columns:1fr!important}.mine-assets-card{border-left:0!important;border-top:1px solid #ece8f1!important}.mine-page>.mine-card:has([data-action="mine-streak"]),.mine-page>.mine-card:has(#mineTaskList){grid-column:auto!important}.mine-page>.mine-card:has(#mineAchGrid){grid-column:1/-1!important}.mine-core-services{grid-template-columns:repeat(2,1fr)!important}
}

@media (max-width:900px){
  .home-road{display:block!important}.road-section-v34{display:block!important}.road-track{display:flex!important;min-height:160px!important;overflow-x:auto!important}.road-node-wrap{min-width:116px!important}.home-growth-v34{display:none!important}
  .mine-overview{display:block!important;border-radius:16px!important}.mine-assets-card{margin-top:10px!important}.study-adjust-summary{grid-template-columns:1fr 1fr!important}
}

@media (min-width: 901px) {
  .view-page[data-view="train"] {
    padding: 0 !important;
    background:
      radial-gradient(circle at 22% 0%, rgba(101,71,245,.055), transparent 29rem),
      linear-gradient(180deg,#fafaff 0%,#f7f7fc 100%);
  }
  .view-page[data-view="train"] > .train-stage {
    width: min(1380px, calc(100vw - 286px));

    min-height: calc(100vh - 96px);
    margin: 0 auto;
    padding: 22px 24px 34px;
  }

  /* ---------- 进入关卡：先说明目标，再进入运行台 ---------- */
  .train-confirm {
    width: min(760px, 100%);
    margin: 54px auto 0;
    padding: 34px 38px 32px !important;
    border: 1px solid #e8e5f1 !important;
    border-radius: 26px !important;
    background:
      radial-gradient(circle at 100% 0, rgba(101,71,245,.08), transparent 19rem),
      #fff !important;
    box-shadow: 0 20px 54px rgba(48,37,92,.10) !important;
  }
  .train-confirm-meta {
    display: inline-flex !important;
    align-items: center;
    min-height: 29px;
    padding: 0 11px;
    border-radius: 999px;
    color: #5841cf !important;
    background: #f1eeff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
  }
  .train-confirm h1 {
    margin: 16px 0 8px !important;
    color: #211d31 !important;
    font-size: clamp(28px,2.2vw,36px) !important;
    line-height: 1.18 !important;
    letter-spacing: -.025em;
  }
  .train-confirm-desc {
    max-width: 650px;
    margin: 0 0 22px !important;
    color: #696376 !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
  }
  .train-facts {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px !important;
    margin: 0 0 20px !important;
  }
  .train-facts > * {
    min-height: 66px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 14px !important;
    border: 1px solid #ece9f3 !important;
    border-radius: 15px !important;
    background: #faf9fd !important;
  }
  .train-confirm-actions { display:flex !important; gap:12px !important; margin-top:22px !important; }
  .train-confirm-actions button { min-width:140px; min-height:46px; border-radius:14px !important; font-weight:800 !important; }

  /* ---------- 统一 PC 关卡运行台 ---------- */
  .train-play {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: minmax(540px, 1fr) minmax(340px, 390px);
    grid-template-areas:
      "head head"
      "board side";
    align-items: start;
    gap: 14px 18px;
    padding: 0 !important;
    background: transparent !important;
  }
  .train-play-head {
    grid-area: head;
    min-height: 74px;
    display: grid !important;
    grid-template-columns: 44px minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px !important;
    border: 1px solid #e9e6f1;
    border-radius: 20px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 7px 22px rgba(44,34,77,.055);
    backdrop-filter: blur(14px);
  }
  .train-back-btn {
    width: 40px; height: 40px;
    display:grid; place-items:center;
    border:1px solid #e5e1ed;
    border-radius:13px;
    color:#514a65;
    background:#fff;
  }
  .train-back-btn:hover { border-color:#cfc7f8; color:#5d43df; background:#f8f6ff; }
  .train-back-btn .ui-icon { width:19px;height:19px; }
  .train-title-stack { min-width:0; display:grid; grid-template-columns:auto minmax(0,1fr); align-items:baseline; gap:2px 9px; }
  .train-mode-eyebrow { grid-column:1/-1; color:#6950dd; font-size:11px; font-weight:850; letter-spacing:.055em; }
  .train-title-stack > b { min-width:0; overflow:hidden; color:#201c2e; font-size:18px; font-weight:880; text-overflow:ellipsis; white-space:nowrap; }
  .train-play-meta { min-width:0; color:#8a8395 !important; font-size:11px !important; white-space:nowrap; }
  .train-head-state { display:flex; align-items:center; justify-content:flex-end; gap:8px; }
  .train-turn-chip,.train-goal-hint {
    min-height:32px;
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    padding:0 12px !important;
    border-radius:999px !important;
    font-size:11px !important;
    font-weight:850 !important;
    white-space:nowrap;
  }
  .train-turn-chip { color:#5544bd; background:#f0edff; border:1px solid #ded7ff; }
  .train-turn-chip.black { color:#fff; background:#27252d; border-color:#27252d; }
  .train-turn-chip.white { color:#302d39; background:#fff; border-color:#ddd9e4; box-shadow:0 2px 8px rgba(45,38,70,.08); }
  .train-turn-chip.memory { color:#876116; background:#fff5da; border-color:#f3dfab; }
  .train-turn-chip.minigame { color:#266b4a; background:#eaf8f0; border-color:#c9ebd8; }
  .train-turn-chip.bonus { color:#9a6510; background:#fff3d9; border-color:#efd798; }
  .train-goal-hint { color:#6547f5 !important; background:#f4f1ff !important; border:1px solid #e0d9ff; }

  .train-board-column {
    grid-area: board;
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
    padding: 14px;
    border:1px solid #e9e6ef;
    border-radius:24px;
    background:#fff;
    box-shadow:0 15px 38px rgba(54,42,91,.075);
  }
  .train-board-wrap {
    position:relative;
    width:min(100%, calc(100vh - 260px), 720px) !important;
    min-width:480px;
    aspect-ratio:1/1 !important;
    margin:0 auto !important;
    overflow:hidden;
    border-radius:18px !important;
    background:#e5bd6c;
    box-shadow:0 9px 25px rgba(91,61,21,.14), inset 0 0 0 1px rgba(91,55,15,.18);
  }
  .train-board-wrap > .go-board,
  #trainBoard {
    width:100% !important;
    height:100% !important;
    aspect-ratio:1/1 !important;
    max-width:none !important;
    max-height:none !important;
    border-radius:18px !important;
  }
  #trainBoard .board-stone { transition:left .11s ease, top .11s ease, transform .11s ease; }
  #trainBoard .board-marker.stage-last { width:calc(34% / var(--n)) !important; height:calc(30% / var(--n)) !important; min-width:0 !important; min-height:0 !important; max-width:none !important; max-height:none !important; border:0 !important; border-radius:0 !important; background:#e04444 !important; box-shadow:none !important; clip-path:polygon(50% 0,100% 100%,0 100%) !important; filter:drop-shadow(0 1px 1px rgba(0,0,0,.24)); }
  .train-board-wait {
    position:absolute !important;
    inset:auto 14px 14px 14px !important;
    min-height:54px;
    display:grid !important;
    grid-template-columns:26px minmax(0,1fr);
    grid-template-rows:auto auto;
    align-items:center;
    column-gap:9px;
    padding:8px 11px !important;
    border:1px solid rgba(222,216,246,.94);
    border-radius:15px !important;
    background:rgba(255,255,255,.94) !important;
    box-shadow:0 8px 24px rgba(48,37,89,.14) !important;
    backdrop-filter:blur(12px);
  }
  .train-board-wait[hidden] { display:none !important; }
  .train-board-wait-spinner { grid-row:1/3; width:22px;height:22px; border:3px solid #e8e3fb;border-top-color:#674af0;border-radius:50%; animation:v35spin .8s linear infinite; }
  .train-board-wait b { color:#363042;font-size:11px; }
  .train-board-wait small { color:#8a8394;font-size:9px; }
  @keyframes v35spin { to { transform:rotate(360deg); } }

  .train-controls {
    width:100%;
    min-height:50px;
    display:flex !important;
    align-items:center;
    justify-content:center;
    gap:6px !important;
    padding:6px 8px !important;
    border:1px solid #ece9f2;
    border-radius:16px !important;
    background:#faf9fd !important;
  }
  .train-controls > button,.train-stat {
    min-height:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 10px !important;
    border:1px solid #e3dfea !important;
    border-radius:10px !important;
    color:#5d566a !important;
    background:#fff !important;
    font-size:10px !important;
    font-weight:760 !important;
    white-space:nowrap;
  }
  .train-stat { border:0 !important; background:transparent !important; padding-inline:5px !important; color:#837c8c !important; }
  .train-controls > button:hover:not(:disabled) { border-color:#cfc5ff !important; color:#573dde !important; background:#f8f5ff !important; }
  .train-controls > button:disabled { opacity:.42; cursor:default; }
  .train-controls .train-danger { color:#c94250 !important; }
  .train-controls em { margin-left:3px;font-style:normal;color:#6b50e8; }
  .train-status { width:100%; min-height:24px; margin:0 !important; padding:0 5px !important; color:#777081 !important; font-size:11px !important; text-align:center; }

  /* ---------- 右侧状态台 ---------- */
  .train-side-stack {
    grid-area:side;
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:12px;
  }
  .train-side-stack > section {
    border:1px solid #e8e5ef !important;
    border-radius:22px !important;
    background:#fff !important;
    box-shadow:0 13px 34px rgba(54,42,91,.07) !important;
  }
  .train-match-panel { padding:16px !important; }
  .train-match-heading { display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding-bottom:12px;border-bottom:1px solid #efedf3; }
  .train-match-heading > div { min-width:0;display:grid;gap:4px; }
  .train-match-heading span { color:#6d53df;font-size:10px;font-weight:850; }
  .train-match-heading b { color:#282331;font-size:14px;line-height:1.4; }
  .train-runtime-badge { flex:none;min-height:26px;display:inline-flex;align-items:center;padding:0 8px;border-radius:999px;color:#27754d !important;background:#eaf8f0;font-size:9px !important; }
  .train-runtime-badge.blocked { color:#b64955 !important;background:#fff0f2; }

  .train-roster { display:grid;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);align-items:start;gap:6px;margin-top:12px; }
  .train-roster-vs { align-self:center;color:#a29baa;font-size:9px;font-weight:900;text-align:center; }
  .train-roster-side { min-width:0;display:grid;gap:6px; }
  .train-roster-side > span { color:#8c8595;font-size:9px;font-weight:800;text-align:center; }
  .train-role-card { min-width:0;min-height:47px;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:7px;padding:5px 7px;border:1px solid #ece9f2;border-radius:12px;background:#faf9fc;transition:.15s ease; }
  .train-role-card.active { border-color:#bfb3ff;background:#f3f0ff;box-shadow:inset 0 0 0 1px #d9d1ff; }
  .train-role-card.black.active { border-color:#67616d;background:#f1f0f3;box-shadow:inset 0 0 0 1px #c7c3ca; }
  .train-role-avatar { width:32px;height:32px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#eeeaf8; }
  .train-role-avatar img { width:100%;height:100%;object-fit:cover; }
  .train-role-user-mark { width:100%;height:100%;display:grid;place-items:center;border-radius:50%;color:#fff;background:linear-gradient(145deg,#795ef7,#5638d9);font-size:11px;font-weight:900; }
  .train-role-stone { width:20px;height:20px;border-radius:50%;background:radial-gradient(circle at 32% 25%,#68666d,#17171b 56%,#020203);box-shadow:0 2px 4px rgba(30,24,43,.28); }
  .train-role-card > div:last-child { min-width:0;display:grid;gap:1px; }
  .train-role-card b { overflow:hidden;color:#312c39;font-size:10px;text-overflow:ellipsis;white-space:nowrap; }
  .train-role-card small { overflow:hidden;color:#908998;font-size:8px;text-overflow:ellipsis;white-space:nowrap; }
  .train-current-turn { min-height:38px;display:flex;align-items:center;margin-top:12px;padding:0 11px;border-radius:12px;color:#4f448b;background:#f4f1ff;font-size:11px;font-weight:850; }
  .train-match-facts { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px; }
  .train-match-facts span { min-height:31px;display:flex;align-items:center;justify-content:center;border-radius:9px;color:#716a79;background:#f8f7fb;font-size:9px;font-weight:720; }
  .train-match-progress { height:7px;margin-top:10px;overflow:hidden;border-radius:999px;background:#ece9f2; }
  .train-match-progress i { height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,#8e77fb,#6347ee);transition:width .25s ease; }

  /* ---------- 珀界棋三策略 ---------- */
  .train-auto-panel { padding:14px !important; }
  .train-auto-head { display:grid !important;gap:3px !important;margin-bottom:9px !important; }
  .train-auto-head b { color:#2c2735 !important;font-size:13px !important; }
  .train-auto-head span { color:#8b8493 !important;font-size:9px !important; }
  .train-auto-options { display:grid !important;grid-template-columns:1fr !important;gap:7px !important; }
  .train-auto-option {
    min-height:58px !important;
    display:grid !important;
    grid-template-columns:38px minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:8px !important;
    padding:7px 9px !important;
    border:1px solid #e9e6ef !important;
    border-radius:13px !important;
    color:inherit !important;
    background:#fbfafd !important;
    text-align:left !important;
  }
  .train-auto-option:hover:not(:disabled) { border-color:#bfb2ff !important;background:#f4f1ff !important;box-shadow:0 5px 14px rgba(86,62,191,.10); }
  .train-auto-avatar { width:36px;height:36px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#eeeaf8; }
  .train-auto-avatar img { width:100%;height:100%;object-fit:cover; }
  .train-auto-copy { min-width:0;display:grid;gap:2px; }
  .train-auto-copy b { overflow:hidden;color:#342f3d;font-size:10px;text-overflow:ellipsis;white-space:nowrap; }
  .train-auto-copy small { overflow:hidden;color:#817a89;font-size:8px;text-overflow:ellipsis;white-space:nowrap; }
  .train-auto-option strong { min-width:43px;min-height:31px;display:grid;place-items:center;border-radius:9px;color:#5940d6;background:#eeebff;font-size:12px;font-weight:900; }

  /* ---------- 题目关卡：棋盘是答题区，右侧只承担教学信息 ---------- */
  .train-play[data-train-mode="course"] .train-controls,
  .train-play[data-train-mode="course"] .train-status,
  .train-play[data-train-mode="memory"] .train-controls,
  .train-play[data-train-mode="memory"] .train-status { display:none !important; }
  .course-panel { padding:0 !important;overflow:hidden; }
  .course-coach-head { min-height:82px;display:grid;grid-template-columns:60px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 13px;background:linear-gradient(135deg,#f1edff,#fff 72%);border-bottom:1px solid #ebe7f4; }
  .course-coach-avatar { width:58px;height:66px;align-self:end;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 5px 7px rgba(53,35,118,.16)); }
  .course-coach-copy { min-width:0;display:grid;gap:2px; }
  .course-coach-copy span { color:#6a4fdf;font-size:9px;font-weight:850;letter-spacing:.06em; }
  .course-coach-copy b { overflow:hidden;color:#282331;font-size:14px;text-overflow:ellipsis;white-space:nowrap; }
  .course-coach-copy small { color:#8b8494;font-size:9px; }
  .course-head-badges { display:grid;justify-items:end;gap:5px; }
  .course-vigor { min-width:58px;min-height:24px;display:grid;place-items:center;padding:0 8px;border-radius:999px;color:#866115;background:#fff5d9;font-size:8px;font-weight:850; }
  .course-count { min-width:48px;min-height:28px;display:grid;place-items:center;padding:0 8px;border-radius:999px;color:#5d46d4;background:#ece8ff;font-size:9px;font-weight:850; }
  .course-progress-track { height:5px;background:#efedf4; }
  .course-progress-track i { height:100%;display:block;background:linear-gradient(90deg,#866ef8,#5d42e5);transition:width .22s ease; }
  .course-turn-badge { min-height:42px;display:flex;align-items:center;gap:8px;margin:12px 13px 0;padding:0 12px;border-radius:12px;font-size:12px;font-weight:900; }
  .course-turn-badge i { width:20px;height:20px;border-radius:50%; }
  .course-turn-badge.black { color:#fff;background:#2a2830; }
  .course-turn-badge.black i { background:radial-gradient(circle at 32% 25%,#6b6970,#17171b 56%,#020203);box-shadow:0 2px 4px rgba(0,0,0,.28); }
  .course-turn-badge.white { color:#302c39;background:#f7f6f9;border:1px solid #dedbe4; }
  .course-turn-badge.white i { background:radial-gradient(circle at 31% 23%,#fff,#f1f0f1 58%,#c7c5c4);border:1px solid rgba(80,72,70,.18); }
  .course-question-copy { margin:10px 13px 0;padding:12px 13px;border-radius:14px;background:#faf9fc; }
  .course-prompt { margin:0 !important;color:#332e3b !important;font-size:13px !important;font-weight:800 !important;line-height:1.55 !important; }
  .course-guide { margin:6px 0 0 !important;color:#7b7482 !important;font-size:10px !important;line-height:1.55 !important; }
  .course-feedback { min-height:48px;display:flex !important;align-items:center;margin:9px 13px 0 !important;padding:9px 11px !important;border-radius:12px !important;color:#695f75;background:#f5f3f8;font-size:10px !important;line-height:1.5; }
  .course-feedback.correct { color:#28734e !important;background:#ebf8f1 !important; }
  .course-feedback.wrong { color:#b34450 !important;background:#fff0f2 !important; }
  .course-side-actions { display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px !important;margin:10px 13px 0 !important; }
  .course-side-actions button { min-height:36px;border:1px solid #e6e2ec;border-radius:10px;color:#716a7b;background:#fff;font-size:9px;font-weight:750; }
  .course-next-row { display:grid;grid-template-columns:minmax(110px,.42fr) minmax(0,1fr);gap:8px;padding:10px 13px 13px !important; }
  .course-next-row button { width:100%;min-height:42px;border-radius:12px !important; }
  .course-answer-btn { border:1px solid #ded9ed !important;color:#625a70 !important;background:#fff !important; }

  /* ---------- 记忆训练 ---------- */
  .memory-panel { padding:16px !important; }
  .memory-head { align-items:flex-start !important;padding-bottom:12px;border-bottom:1px solid #efedf3; }
  .memory-kicker { display:block;color:#866115;font-size:9px;font-weight:850;letter-spacing:.06em;margin-bottom:3px; }
  .memory-head b { display:block;color:#2e2936;font-size:15px !important; }
  .memory-head small { display:block;margin-top:3px;color:#8d8695 !important;font-size:9px !important; }
  .memory-progress { color:#6b51dd !important;background:#eeeaff !important; }
  .memory-phase-row { margin-top:13px !important;padding:10px 11px !important;border-radius:12px;background:#faf9fc; }
  .memory-phase-row > span { color:#50495b;font-size:10px;font-weight:800; }
  .memory-progress-track { height:7px !important;border-radius:999px !important;background:#e9e6ee !important; }
  .memory-progress-track i { background:linear-gradient(90deg,#8c74f9,#6146e8) !important; }
  .memory-hint { min-height:58px;margin:10px 0 0 !important;padding:11px 12px;border-radius:12px;color:#6d6577;background:#f7f5fb;font-size:10px !important;line-height:1.55 !important; }
  .memory-actions { display:grid !important;gap:7px !important;margin-top:10px !important; }
  .memory-actions button { min-height:40px;border-radius:11px !important; }

  /* ---------- iframe 小游戏 / 宝箱 ---------- */
  .train-play[data-train-mode="minigame"] .train-board-column,
  .train-play[data-train-mode="bonus"] .train-board-column { display:none !important; }
  .train-play[data-train-mode="minigame"] .train-side-stack,
  .train-play[data-train-mode="bonus"] .train-side-stack { grid-column:1/-1;grid-row:2; }
  .minigame-panel { min-height:620px;padding:14px !important; }
  .minigame-head { min-height:60px;padding:0 4px 10px !important;border-bottom:1px solid #efedf3; }
  .minigame-frame { width:100% !important;height:min(72vh,720px) !important;margin-top:10px;border:0 !important;border-radius:16px;background:#faf9fd; }
  .minigame-runtime { margin-top:10px !important;border-radius:12px !important; }
  .bonus-panel { width:min(520px,100%);min-height:370px;align-self:center;margin:58px auto 0;padding:38px !important;text-align:center;justify-content:center !important;background:radial-gradient(circle at 50% 10%,#fff5da,#fff 58%) !important; }
  .bonus-chest { width:78px;height:78px !important;margin:0 auto 13px !important;border-radius:24px !important;color:#a46b0f !important;background:#fff1c7 !important; }
  .bonus-chest .ui-icon { width:42px;height:42px; }
  .bonus-kicker { color:#a16a13;font-size:10px;font-weight:850;letter-spacing:.08em; }
  .bonus-panel h3 { margin:5px 0 8px !important;color:#30291f;font-size:22px !important; }
  .bonus-panel p { max-width:400px;margin:0 auto 20px !important;color:#776d60 !important;font-size:11px !important;line-height:1.65 !important; }
  .bonus-panel .btn-primary { min-width:180px;min-height:44px;border-radius:13px !important; }

  /* 自由 2v2 营地：保留真实组队流程，改善 PC 信息层级。 */
  .team-campsite { width:min(980px,100%);margin:20px auto 0;padding:24px !important;border-radius:24px !important;box-shadow:0 18px 44px rgba(50,39,88,.09) !important; }
  .team-campsite-kicker { color:#6a4dde !important;font-size:10px !important;font-weight:850 !important;letter-spacing:.06em; }
  .team-campsite-head h2 { margin:5px 0 6px !important;color:#282330 !important;font-size:23px !important; }
  .team-campsite-head p { max-width:760px;color:#766f7e !important;font-size:12px !important;line-height:1.65 !important; }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .view-page[data-view="train"] > .train-stage { width:calc(100vw - 230px);padding-inline:14px; }
  .train-play { grid-template-columns:minmax(470px,1fr) 330px;gap:12px; }
  .train-board-wrap { min-width:430px;width:min(100%,calc(100vh - 260px),640px) !important; }
  .train-controls { flex-wrap:wrap; }
  .train-title-stack > b { font-size:16px; }
  .train-play-meta { display:none; }
}

@media (max-width: 900px) {
  .view-page[data-view="train"] .train-stage { padding:10px !important; }
  .train-play { display:flex !important;flex-direction:column;gap:10px !important; }
  .train-play-head { width:100%;display:grid !important;grid-template-columns:40px minmax(0,1fr);gap:8px;padding:8px !important;border-radius:16px;background:#fff; }
  .train-head-state { grid-column:1/-1;justify-content:flex-start;padding-left:48px; }
  .train-back-btn { width:38px;height:38px;border:1px solid #e6e2ed;border-radius:12px;background:#fff; }
  .train-title-stack { min-width:0;display:grid; }
  .train-mode-eyebrow { color:#694fdf;font-size:9px;font-weight:850; }
  .train-title-stack > b { font-size:15px; }
  .train-play-meta { color:#8a8394;font-size:9px; }
  .train-turn-chip,.train-goal-hint { min-height:28px;padding:0 9px;border-radius:999px;font-size:9px;font-weight:850; }
  .train-board-column { width:100%;display:flex;flex-direction:column;gap:7px; }
  .train-board-wrap { width:min(100%,calc(100svh - 250px),680px) !important;aspect-ratio:1/1 !important;margin:auto; }
  #trainBoard { width:100% !important;height:100% !important;aspect-ratio:1/1 !important; }
  .train-side-stack { width:100%;display:grid;gap:9px; }
  .train-match-panel,.train-auto-panel,.course-panel,.memory-panel,.minigame-panel,.bonus-panel { border-radius:16px !important; }
  .train-roster { grid-template-columns:1fr 24px 1fr; }
  .train-controls { display:flex;flex-wrap:wrap;gap:5px;padding:6px; }
  .train-controls > button,.train-stat { min-height:32px;padding:0 8px;font-size:9px; }
  .course-coach-head { display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:8px;padding:8px 10px; }
  .course-coach-avatar { width:50px;height:58px;object-fit:contain; }
  .course-turn-badge { margin:9px 10px 0; }
  .course-question-copy,.course-feedback { margin-inline:10px !important; }
  .course-side-actions { margin-inline:10px !important; }
  .course-next-row { padding-inline:10px !important; }
  .train-play[data-train-mode="course"] .train-controls,.train-play[data-train-mode="course"] .train-status,.train-play[data-train-mode="memory"] .train-controls,.train-play[data-train-mode="memory"] .train-status { display:none !important; }
  .train-play[data-train-mode="minigame"] .train-board-column,.train-play[data-train-mode="bonus"] .train-board-column { display:none !important; }
}

@media (prefers-reduced-motion: reduce) {
  #trainBoard .board-stone,.train-match-progress i,.course-progress-track i,.train-board-wait-spinner { transition:none !important;animation:none !important; }
}

#trainSettle .train-settle-card {
  width:min(600px,calc(100vw - 32px)) !important;
  padding:26px !important;
  border:1px solid #e7e3ef !important;
  border-radius:24px !important;
  background:#fff !important;
  box-shadow:0 28px 70px rgba(38,29,67,.18) !important;
}
#trainSettle .login-title { margin:0 0 15px !important;color:#25202f !important;font-size:18px !important;text-align:left !important; }
#trainSettle .train-settle-head { padding:18px;border-radius:17px;background:linear-gradient(135deg,#f1edff,#fff 72%);text-align:center; }
#trainSettle .train-settle-icon { width:48px;height:48px;display:grid;place-items:center;margin:0 auto 8px;border-radius:15px;color:#fff;background:linear-gradient(145deg,#795df8,#5637da); }
#trainSettle .train-settle-icon .ui-icon { width:25px;height:25px; }
#trainSettle .train-settle-icon.error { background:#d84d5b; }
#trainSettle .train-settle-head h3 { margin:0;color:#2b2633;font-size:18px; }
#trainSettle .train-settle-head p { margin:5px 0 0;color:#746d7c;font-size:11px;line-height:1.55; }
#trainSettle .train-settle-metrics { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px; }
#trainSettle .train-settle-metrics article { min-height:84px;display:grid;place-items:center;align-content:center;gap:2px;padding:9px;border:1px solid #ece9f2;border-radius:14px;background:#faf9fc; }
#trainSettle .train-settle-metrics article > span { color:#694fe1; }
#trainSettle .train-settle-metrics small { color:#8a8392;font-size:9px; }
#trainSettle .train-settle-metrics b { color:#2c2734;font-size:16px; }
#trainSettle .train-settle-rewards { display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;padding:10px;border-radius:13px;background:#fff8e7; }
#trainSettle .train-settle-rewards span { flex:1;min-width:120px;display:flex;align-items:center;justify-content:center;gap:4px;color:#87611c;font-size:9px;font-weight:800; }
#trainSettle .train-settle-note { margin-top:9px;padding:8px 10px;border-radius:10px;color:#6c6575;background:#f7f5fa;font-size:9px;text-align:center; }
#trainSettle .train-settle-actions { display:flex;justify-content:center;gap:9px;margin-top:14px; }
#trainSettle .train-settle-actions button { min-width:150px;min-height:42px;border-radius:12px !important; }

.train-barrier-mask { z-index:1800 !important;background:rgba(35,29,49,.28) !important;backdrop-filter:blur(7px); }
.train-barrier-card {
  width:min(520px,calc(100vw - 44px));display:grid;grid-template-columns:112px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:10px 18px;
  padding:22px 24px 18px;border:1px solid rgba(229,224,243,.96);border-radius:24px;background:#fff;box-shadow:0 28px 70px rgba(43,34,73,.22);
}
.train-barrier-mentor { width:104px;height:116px;grid-row:1/3;align-self:end;display:flex;align-items:flex-end;justify-content:center;overflow:hidden;border-radius:20px;background:linear-gradient(145deg,#f2eeff,#fff7e7); }
.train-barrier-mentor img { width:118px;max-width:none;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 7px 10px rgba(42,28,94,.17)); }
.train-barrier-copy { min-width:0;align-self:end; }
.train-barrier-copy > span { color:#6f54df;font-size:9px;font-weight:850;letter-spacing:.08em; }
.train-barrier-copy h3 { margin:5px 0 5px;color:#2a2532;font-size:19px;line-height:1.35; }
.train-barrier-copy p { margin:0;color:#776f7f;font-size:10px;line-height:1.55; }
.train-barrier-actions { display:flex;justify-content:flex-end;gap:8px;align-self:start; }
.train-barrier-actions button { min-width:110px;min-height:40px;border-radius:12px !important; }
.train-barrier-actions .danger { border-color:#d74b58 !important;color:#fff !important;background:#d74b58 !important; }
@media(max-width:700px){
  .train-barrier-card{grid-template-columns:82px minmax(0,1fr);padding:17px;border-radius:19px}
  .train-barrier-mentor{width:78px;height:92px}.train-barrier-mentor img{width:94px}.train-barrier-copy h3{font-size:16px}
  .train-barrier-actions{grid-column:1/-1}.train-barrier-actions button{flex:1;min-width:0}
}

/* 练习型结算不显示不存在的第三列，避免“+0 奖励”形成假业务感。 */
#trainSettle .train-settle-metrics.practice{
  grid-template-columns:repeat(2,minmax(0,1fr));
  max-width:520px;
  margin-inline:auto;
}
#trainSettle .train-settle-note.free{
  width:min(100%,560px);
  margin:10px auto 0;
  padding:9px 12px;
  border:1px solid #e4defb;
  border-radius:12px;
  color:#5b4bb2;
  background:#f7f4ff;
  font-weight:700;
  text-align:center;
}
#trainSettle .train-settle-actions{
  flex-wrap:wrap;
}
#trainSettle .train-settle-actions .btn-ghost{
  border-color:#ddd7f5;
  background:#fff;
}

/* 题目运行台：来源、轮到哪方、导师提示形成稳定信息层级。 */
.train-play[data-train-mode="course"] .course-coach-head{
  border-bottom:1px solid #eeeaf7;
  padding-bottom:10px;
}
.train-play[data-train-mode="course"] #courseLevel{
  display:block;
  margin-top:2px;
  color:#81798f;
  font-weight:650;
}
.train-play[data-train-mode="course"] .course-turn-badge{
  min-height:42px;
  border-radius:13px;
  font-size:14px;
  font-weight:900;
  letter-spacing:.01em;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.035);
}
.train-play[data-train-mode="course"] .course-turn-badge.black{
  color:#fff;
  background:#29272f;
}
.train-play[data-train-mode="course"] .course-turn-badge.white{
  color:#312d3b;
  background:#f5f3f8;
  box-shadow:inset 0 0 0 1px #ddd8e7;
}
.train-play[data-train-mode="course"] .course-turn-badge i{
  width:20px;
  height:20px;
  border-radius:50%;
  box-shadow:0 1px 4px rgba(0,0,0,.18);
}
.train-play[data-train-mode="course"] .course-turn-badge.black i{background:#111;box-shadow:inset 0 1px 3px rgba(255,255,255,.2),0 1px 4px rgba(0,0,0,.3)}
.train-play[data-train-mode="course"] .course-turn-badge.white i{background:#fff;border:1px solid #d2ced9}

/* 独立反馈层必须位于训练运行台之上，不再依赖结算弹层父节点。 */
#trainBarrier{z-index:4300}
#trainSettle{z-index:4400}

/* 训练页主行动在“继续训练”状态下更明确，但不引入新数据。 */
.study-start-button:has(#studyStartText){
  transition:transform .16s ease,box-shadow .16s ease;
}
.study-start-button:hover{transform:translateY(-1px)}

@media(max-width:980px){
  #trainSettle .train-settle-metrics.practice{grid-template-columns:1fr 1fr}
}

@media (min-width:901px){
  :root{
    --pc-nav-w:220px;
    --pc-aside-w:318px;
    --pc-content-max:1390px;
    --pc-topbar-h:70px;
  }

  .topbar{padding-inline:22px 26px!important}
  .topbar .brand{width:205px!important;min-width:205px!important}
  .side-nav{padding:28px 16px 20px!important}
  .side-nav::before{margin:0 13px 18px!important;font-size:11px!important}
  .side-nav-btn{min-height:52px!important;padding-inline:16px!important;border-radius:15px!important;font-size:14px!important}
  .side-nav-btn .ui-icon{width:19px!important;height:19px!important}
  .main-col{padding:20px 24px 30px!important}

  /* ============================ HOME / 首页 ============================ */
  #view:has(.view-page[data-view="home"].active){grid-template-columns:var(--pc-nav-w) minmax(0,1fr) var(--pc-aside-w)!important}
  #view:has(.view-page[data-view="home"].active) .main-col{padding:14px 18px 28px!important}
  #view:has(.view-page[data-view="home"].active) .right-panel{
    display:flex!important;
    height:calc(100vh - var(--pc-topbar-h))!important;
    padding:20px 16px 24px 10px!important;
    gap:14px!important;
    overflow:auto!important;
    background:#fbfbfe!important;
  }
  #view:has(.view-page[data-view="home"].active) #homeTasks{display:none!important}
  .view-page[data-view="home"] .home-grid{display:block!important;max-width:none!important}
  .view-page[data-view="home"] .home-main{width:100%!important;max-width:1040px!important;margin:0 auto!important;gap:16px!important}
  .view-page[data-view="home"] .home-side{display:none!important}

  .view-page[data-view="home"] .home-hero{
    min-height:104px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 330px auto!important;
    align-items:center!important;
    padding:8px 18px 4px 28px!important;
  }
  .view-page[data-view="home"] .home-user b{font-size:29px!important;letter-spacing:-.02em!important}
  .view-page[data-view="home"] .home-user span{max-width:620px!important;margin-top:7px!important;font-size:12.5px!important;color:#6f687d!important}
  .home-welcome-kicker{font-size:9px!important}
  .home-hero-art{height:112px!important}
  .home-hero-art img{bottom:-8px!important;width:185px!important;max-height:122px!important;object-fit:contain!important}

  .view-page[data-view="home"] .stage-banner{
    min-height:186px!important;
    grid-template-columns:38px 315px minmax(0,1fr) 38px!important;
    gap:14px!important;
    padding:18px!important;
    border-radius:22px!important;
    border-color:color-mix(in srgb,var(--section-accent,#7459ef) 35%,#e7e2f5)!important;
    background:
      radial-gradient(circle at 26% 50%,var(--section-soft,#f0ecff) 0 12%,transparent 34%),
      linear-gradient(110deg,var(--section-wash,#faf8ff),#fff 55%,#fbf9ff)!important;
  }
  .view-page[data-view="home"] .stage-banner::before{left:300px!important;top:-42px!important;width:210px!important;height:260px!important;background:linear-gradient(145deg,color-mix(in srgb,var(--section-accent,#7459ef) 10%,transparent),rgba(255,255,255,.12))!important}
  .view-page[data-view="home"] .stage-info{padding:10px 25px 10px 8px!important}
  .view-page[data-view="home"] .stage-meta{margin-bottom:10px!important;padding:5px 10px!important;background:var(--section-accent,#7459ef)!important;font-size:9.5px!important}
  .view-page[data-view="home"] .stage-title-row b{font-size:25px!important}
  .view-page[data-view="home"] .section-title{margin-top:8px!important;font-size:13px!important;font-weight:850!important;color:#51475f!important}
  .view-page[data-view="home"] .stage-subtitle{margin-top:7px!important;font-size:10.5px!important;line-height:1.5!important}
  .home-course{min-height:138px!important;padding:18px 16px 18px 30px!important;column-gap:22px!important}
  .home-course>small{font-size:12.5px!important;color:var(--section-dark,#5038b4)!important}
  .home-course>b{font-size:21px!important;line-height:1.35!important}
  .home-course-progress{height:7px!important}
  .home-course-progress i{background:var(--section-accent,#7459ef)!important}
  .home-course>span{font-size:10.5px!important}
  .home-course>button{min-width:154px!important;height:54px!important;background:linear-gradient(110deg,var(--section-accent,#7459ef),var(--section-dark,#5a3fd0))!important;font-size:13px!important}

  .home-road-card{
    overflow:hidden;
    border:1px solid #e7e4ed!important;
    border-radius:21px!important;
    background:#fff!important;
    box-shadow:0 10px 30px rgba(52,43,82,.045)!important;
  }
  .home-road-card-head{height:58px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 20px;border-bottom:1px solid #f0edf4}
  .home-road-card-head>div{display:flex;align-items:center;gap:11px;min-width:0}
  .home-road-card-head>div>i{width:4px;height:22px;flex:none;border-radius:99px;background:var(--home-accent,#7459ef)}
  .home-road-card-head>div span{display:flex;align-items:baseline;gap:12px;min-width:0}
  .home-road-card-head b{font-size:15px;color:#302a3a}
  .home-road-card-head small{color:#948d9d;font-size:10px}
  .home-road-card-head>button{min-height:36px;display:inline-flex;align-items:center;gap:5px;padding:0 8px 0 12px;border:0;border-radius:10px;color:var(--home-accent,#6b4de3);background:transparent;font-size:10.5px;font-weight:800}
  .home-road-card-head>button:hover{background:var(--home-accent-soft,#f2eeff)}
  .home-road-card-head>button .ui-icon{width:15px;height:15px}

  .home-road-preview{height:258px!important;min-height:258px!important;display:block!important;padding:0!important;background:linear-gradient(180deg,#fff,var(--section-wash,#faf9ff))!important}
  .home-preview-route{position:relative;height:205px;overflow:hidden}
  .home-preview-route::before,.home-preview-route::after{content:"";position:absolute;border-radius:50%;background:var(--section-soft,#f0ecff);opacity:.55}
  .home-preview-route::before{width:22px;height:13px;left:4%;top:54px;box-shadow:60px -18px 0 -4px var(--section-soft,#f0ecff),760px 48px 0 -2px var(--section-soft,#f0ecff)}
  .home-preview-route::after{width:12px;height:20px;right:7%;bottom:32px;opacity:.35}
  .home-preview-route>svg{position:absolute;left:0;right:0;top:4px;width:100%;height:160px;overflow:visible;pointer-events:none}
  .preview-route-shadow{fill:none;stroke:color-mix(in srgb,var(--section-accent,#7459ef) 18%,#eae6f1);stroke-width:9;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
  .preview-route-main{fill:none;stroke:var(--section-accent,#7459ef);stroke-width:5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;opacity:.78}
  .home-preview-node.duo-node{position:absolute!important;left:var(--px)!important;top:var(--py)!important;width:124px!important;min-height:118px!important;padding:0!important;border:0!important;background:transparent!important;transform:translate(-50%,-50%)!important;box-shadow:none!important;color:var(--section-accent,#7459ef)!important;text-align:center!important;z-index:3!important}
  .home-preview-node-orb{position:relative;width:62px;height:62px;display:grid;place-items:center;margin:0 auto 8px;border:5px solid #fff;border-radius:50%;background:linear-gradient(145deg,var(--section-accent,#7459ef),var(--section-dark,#5638c7));box-shadow:0 0 0 3px color-mix(in srgb,var(--section-accent,#7459ef) 23%,transparent),0 8px 18px rgba(70,52,130,.14)}
  .home-preview-node.locked .home-preview-node-orb{background:#e5e3e8;box-shadow:0 0 0 3px #f1eff3;color:#aaa5b0!important;filter:saturate(.2)}
  .home-preview-node.current .home-preview-node-orb{width:68px;height:68px;box-shadow:0 0 0 5px color-mix(in srgb,var(--section-accent,#7459ef) 20%,transparent),0 10px 24px color-mix(in srgb,var(--section-accent,#7459ef) 25%,transparent)}
  .home-preview-node-orb>i{display:grid;place-items:center;width:37px;height:37px;color:#fff;font-style:normal}
  .home-preview-node-orb .learning-node-icon{width:35px!important;height:35px!important;color:currentColor!important;fill:currentColor!important}
  .home-preview-node-orb>em{position:absolute;right:-4px;bottom:-3px;width:22px;height:22px;display:grid;place-items:center;border:3px solid #fff;border-radius:50%;color:#fff;background:#44b36b;font-style:normal}
  .home-preview-node.current .home-preview-node-orb>em{background:var(--section-accent,#7459ef)}
  .home-preview-node.locked .home-preview-node-orb>em{background:#bbb7c1}
  .home-preview-node-orb>em .ui-icon{width:11px;height:11px}
  .home-preview-node-copy{display:block;width:130px;margin-left:-3px}
  .home-preview-node-copy b{display:block;overflow:hidden;color:#403948;font-size:11px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
  .home-preview-node-copy small{display:block;margin-top:3px;color:#9a93a0;font-size:8.5px}
  .home-preview-foot{height:53px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:0 20px;border-top:1px solid #f1eef4;background:rgba(252,251,255,.92)}
  .home-preview-foot>span{color:var(--section-dark,#5c46ba);font-size:10px;font-weight:900}
  .home-preview-foot>b{overflow:hidden;color:#8c8594;font-size:9.5px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
  .home-preview-foot>em{padding:5px 9px;border-radius:999px;color:var(--section-dark,#5c46ba);background:var(--section-soft,#f1edff);font-size:9px;font-style:normal;font-weight:850}

  .home-growth-strip{min-height:86px;display:grid;grid-template-columns:1.1fr repeat(3,1fr);align-items:center;overflow:hidden;padding:0 18px!important;border-radius:18px!important;background:linear-gradient(100deg,#faf8ff,#fff)!important}
  .home-growth-strip>strong,.home-growth-strip>span{min-width:0;display:flex;align-items:center;gap:10px;padding:10px 16px;border-right:1px solid #eeeaf4}
  .home-growth-strip>span:last-child{border-right:0}
  .home-growth-strip>strong>span,.home-growth-strip>span>i{width:42px;height:42px;display:grid;place-items:center;flex:none;border-radius:50%;color:var(--home-accent,#6d50e8);background:var(--home-accent-soft,#f1edff);font-style:normal}
  .home-growth-strip>strong>span .ui-icon{width:22px;height:22px}
  .home-growth-strip>span>i .learning-node-icon{width:25px;height:25px;color:currentColor;fill:currentColor}
  .home-growth-strip b{display:block;overflow:hidden;color:#393342;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
  .home-growth-strip small{display:block;margin-top:3px;overflow:hidden;color:#98919f;font-size:8.5px;text-overflow:ellipsis;white-space:nowrap}

  /* 首页完整学习路线：放大到整个工作区，按“部分”横向滚动，滚轮映射 scrollLeft。 */
  .home-road-expanded[hidden]{display:none!important}
  .home-road-expanded{
    --road-accent:#7459ef;--road-dark:#5638c7;--road-soft:#f1edff;--road-wash:#faf8ff;
    position:fixed;z-index:2050;left:var(--pc-nav-w);right:0;top:var(--pc-topbar-h);bottom:0;
    display:grid;grid-template-rows:104px minmax(0,1fr) 48px;
    overflow:hidden;background:linear-gradient(180deg,var(--road-wash),#f8f8fc 52%,#fff);
    transition:background .22s ease;
  }
  body.home-road-expanded-open .right-panel{visibility:hidden!important}
  .home-road-expanded-head{display:grid;grid-template-columns:150px minmax(0,1fr) 230px 126px;align-items:center;gap:18px;padding:14px 28px;border-bottom:1px solid color-mix(in srgb,var(--road-accent) 12%,#e9e6ee);background:rgba(255,255,255,.93);backdrop-filter:blur(16px)}
  .home-road-back,.home-road-stage-btn{height:42px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #e1ddea;border-radius:12px;color:#514a5d;background:#fff;font-size:11px;font-weight:800}
  .home-road-back .ui-icon,.home-road-stage-btn .ui-icon{width:15px;height:15px}
  .home-road-expanded-title{min-width:0}
  .home-road-expanded-title small{display:block;color:var(--road-accent);font-size:9px;font-weight:850;letter-spacing:.08em}
  .home-road-expanded-title h2{margin:3px 0 1px;color:#2e2938;font-size:22px;line-height:1.25}
  .home-road-expanded-title p{margin:0;overflow:hidden;color:#766f80;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
  .home-road-expanded-progress{display:grid;grid-template-columns:auto minmax(90px,1fr);align-items:center;gap:10px}
  .home-road-expanded-progress>span{color:var(--road-dark);font-size:10px;font-weight:850}
  .home-road-expanded-progress>div{height:6px;overflow:hidden;border-radius:99px;background:#e6e2ed}.home-road-expanded-progress>div i{display:block;width:0;height:100%;border-radius:inherit;background:var(--road-accent);transition:width .2s ease}
  .home-road-stage-btn{border-color:color-mix(in srgb,var(--road-accent) 25%,#e1ddea);color:var(--road-dark);background:var(--road-soft)}
  .home-road-scroll-shell{position:relative;min-height:0;overflow:hidden;padding:24px 58px 16px}
  .home-road-scroller{height:100%;display:flex;align-items:stretch;gap:22px;overflow-x:auto;overflow-y:hidden;padding:0 36px 22px;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--road-accent) 40%,#c8c3d1) transparent;scroll-snap-type:x proximity;overscroll-behavior-x:contain;outline:0}
  .home-road-scroller::-webkit-scrollbar{height:8px}.home-road-scroller::-webkit-scrollbar-thumb{border-radius:99px;background:color-mix(in srgb,var(--road-accent) 38%,#c7c1d2)}
  .home-road-section-panel{width:var(--panel-width);min-width:var(--panel-width);height:min(520px,calc(100% - 20px));align-self:center;display:grid;grid-template-rows:62px minmax(0,1fr);overflow:hidden;scroll-snap-align:center;border:1px solid color-mix(in srgb,var(--section-accent) 20%,#e4e0e9);border-radius:24px;background:linear-gradient(180deg,#fff 0 62px,var(--section-wash) 62px 100%);box-shadow:0 14px 36px rgba(52,42,86,.065)}
  .home-road-section-panel>header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 22px;border-bottom:1px solid #eeeaf2}
  .home-road-section-panel>header span{min-width:0}.home-road-section-panel>header small{display:block;color:var(--section-accent);font-size:8.5px;font-weight:850}.home-road-section-panel>header b{display:block;margin-top:3px;overflow:hidden;color:#39323f;font-size:15px;text-overflow:ellipsis;white-space:nowrap}
  .home-road-section-panel>header em{padding:6px 10px;border-radius:999px;color:var(--section-dark);background:var(--section-soft);font-size:9px;font-style:normal;font-weight:850}
  .home-road-section-panel.section-locked{filter:saturate(.78)}
  .home-road-section-body-v37{position:relative;min-height:0;overflow:hidden}
  .home-road-section-body-v37::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 15% 24%,var(--section-soft),transparent 18%),radial-gradient(circle at 85% 76%,var(--section-soft),transparent 19%);opacity:.65;pointer-events:none}
  .home-road-lazy-v37{height:100%;display:grid;place-content:center;justify-items:center;gap:10px;color:#aaa3b1;font-size:10px}.home-road-lazy-v37 span{width:30px;height:30px;border:3px solid #e3dfeb;border-top-color:var(--section-accent);border-radius:50%;animation:v37spin .9s linear infinite}
  @keyframes v37spin{to{transform:rotate(360deg)}}
  .home-expanded-route-svg{position:absolute;left:0;top:56px;width:100%;height:245px;overflow:visible;pointer-events:none}
  .expanded-route-shadow{fill:none;stroke:color-mix(in srgb,var(--section-accent) 17%,#e5e1e8);stroke-width:12;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
  .expanded-route-main{fill:none;stroke:var(--section-accent);stroke-width:6;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;opacity:.8}
  .home-expanded-node.duo-node{position:absolute!important;left:var(--px)!important;top:calc(var(--py) + 56px)!important;width:110px!important;min-height:128px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;transform:translate(-50%,-50%)!important;color:var(--section-accent)!important;text-align:center!important;z-index:3!important}
  .home-expanded-node-orb{position:relative;width:66px;height:66px;display:grid;place-items:center;margin:0 auto 9px;border:5px solid #fff;border-radius:50%;background:linear-gradient(145deg,var(--section-accent),var(--section-dark));box-shadow:0 0 0 4px color-mix(in srgb,var(--section-accent) 18%,transparent),0 9px 20px rgba(61,47,112,.13)}
  .home-expanded-node.current .home-expanded-node-orb{width:74px;height:74px;box-shadow:0 0 0 6px color-mix(in srgb,var(--section-accent) 20%,transparent),0 12px 28px color-mix(in srgb,var(--section-accent) 24%,transparent)}
  .home-expanded-node.locked .home-expanded-node-orb{background:#e4e2e7;color:#aaa5af!important;box-shadow:0 0 0 4px #efedf1;filter:saturate(.1)}
  .home-expanded-node-orb>i{width:38px;height:38px;display:grid;place-items:center;color:#fff;font-style:normal}.home-expanded-node-orb>i .learning-node-icon{width:37px;height:37px;color:currentColor;fill:currentColor}
  .home-expanded-node-orb>em{position:absolute;right:-4px;bottom:-3px;width:23px;height:23px;display:grid;place-items:center;border:3px solid #fff;border-radius:50%;color:#fff;background:#40ae67;font-style:normal}.home-expanded-node.current .home-expanded-node-orb>em{background:var(--section-accent)}.home-expanded-node.locked .home-expanded-node-orb>em{background:#b8b4be}
  .home-expanded-node-orb>em .ui-icon{width:11px;height:11px}
  .home-expanded-node-copy{display:block;width:124px;margin-left:-7px}.home-expanded-node-copy b{display:block;overflow:hidden;color:#413a48;font-size:10.5px;text-overflow:ellipsis;white-space:nowrap}.home-expanded-node-copy small{display:block;margin-top:3px;overflow:hidden;color:#96909e;font-size:8px;text-overflow:ellipsis;white-space:nowrap}
  .home-road-edge{position:absolute;z-index:5;top:50%;width:42px;height:64px;display:grid;place-items:center;transform:translateY(-50%);border:1px solid #e1ddea;border-radius:14px;color:var(--road-dark);background:rgba(255,255,255,.94);box-shadow:0 8px 20px rgba(55,45,85,.08)}.home-road-edge.prev{left:14px}.home-road-edge.next{right:14px}.home-road-edge .ui-icon{width:18px;height:18px}
  .home-road-expanded-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 28px;border-top:1px solid #ece8f0;color:#8c8595;background:#fff;font-size:9.5px}.home-road-expanded-foot b{color:var(--road-dark);font-size:9.5px}
  .home-road-expanded.theme-changing .home-road-expanded-head{animation:v37theme .22s ease}@keyframes v37theme{0%{opacity:.65}100%{opacity:1}}

  /* 首页右侧卡片：只保留连胜资产 / 经验联赛 / 真实今日任务。 */
  #view:has(.view-page[data-view="home"].active) .right-panel>.side-card{border:1px solid #e8e5ee!important;border-radius:18px!important;background:#fff!important;box-shadow:0 9px 24px rgba(50,42,79,.04)!important}
  #view:has(.view-page[data-view="home"].active) #sideStats{padding:16px!important}
  #view:has(.view-page[data-view="home"].active) #sideLeague{padding:16px!important}
  #view:has(.view-page[data-view="home"].active) #sideDaily{padding:16px!important}
  .home-side-task-list{display:grid;gap:8px;margin-top:11px}.home-side-task-list>button{min-height:58px;display:grid;grid-template-columns:31px minmax(0,1fr);align-items:center;gap:9px;padding:8px 9px;border:1px solid #eeeaf3;border-radius:12px;background:#faf9fd;text-align:left}.home-side-task-list>button>span{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;color:#6d50e8;background:#eee9ff}.home-side-task-list>button.done>span{color:#279a57;background:#eaf8ef}.home-side-task-list>button>span .ui-icon{width:15px;height:15px}.home-side-task-list>button div{min-width:0}.home-side-task-list b{display:block;overflow:hidden;color:#48414f;font-size:10.5px;text-overflow:ellipsis;white-space:nowrap}.home-side-task-list small{display:block;margin-top:2px;color:#968f9d;font-size:8.5px}.home-side-task-list i{height:4px;display:block;overflow:hidden;margin-top:6px;border-radius:99px;background:#ebe8ef}.home-side-task-list i em{display:block;height:100%;border-radius:inherit;background:#7459ef}.home-side-task-more{width:100%;height:36px;display:flex;align-items:center;justify-content:center;gap:5px;margin-top:10px;border:0;border-radius:10px;color:#684bd9;background:#f2eeff;font-size:9.5px;font-weight:800}.home-side-task-more .ui-icon{width:13px;height:13px}

  /* ============================ STUDY / 学习训练 ============================ */
  #view:has(.view-page[data-view="study"].active) .main-col{padding:18px 26px 28px!important}
  
  
  
  
  
  
  
  
  
  

  /* ============================ LIBRARY / 棋谱库 ============================ */
  #view:has(.view-page[data-view="library"].active) .main-col{padding:14px 20px 22px!important}
  .library-page-v13{width:min(100%,1420px)!important;max-width:1420px!important;margin-inline:auto!important}
  .library-feed-screen>.feed-category-bar-v13{min-height:72px!important;padding:8px 14px!important;border-radius:17px!important}.library-feed-identity{min-width:245px!important}.library-feed-identity b{font-size:17px!important}.library-feed-identity small{font-size:9px!important}.feed-category-tabs{gap:12px!important}.feed-category-tabs>button{min-width:68px!important;min-height:44px!important;font-size:12px!important}
  .library-feed-screen>.feed-zone-v13{height:min(710px,calc(100dvh - 170px))!important;min-height:610px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .library-page-v13 .feed-focus-layout-v19{grid-template-columns:270px minmax(520px,1fr) 350px!important;gap:14px!important;height:100%!important;align-items:stretch!important}
  .library-page-v13 #feedQueueHost.feed-queue{padding:13px!important;border:1px solid #e5e2eb!important;border-radius:18px!important;background:#fff!important;box-shadow:0 8px 24px rgba(48,40,76,.04)!important}.library-page-v13 .feed-queue-head{min-height:48px!important}.library-page-v13 .feed-queue-item{min-height:66px!important;padding:9px 8px!important;border-radius:11px!important}.library-page-v13 .feed-queue-item.active,.library-page-v13 .feed-queue-item[aria-current="true"]{border-color:#9d86ef!important;background:#f6f3ff!important;box-shadow:inset 3px 0 0 #7459ef!important}
  .library-page-v13 .feed-board-stage-v20{display:grid!important;place-items:center!important;min-width:0!important}.library-page-v13 .feed-board-stage-v20 .feed-board-frame{width:min(100%,calc(100dvh - 205px),640px)!important;max-width:640px!important;align-self:center!important;border-radius:18px!important;box-shadow:0 16px 34px rgba(96,67,28,.14)!important}
  .library-page-v13 .feed-info-v20{height:100%!important;padding:20px 18px 16px!important;border:1px solid #e6e2eb!important;border-radius:18px!important;background:linear-gradient(180deg,#fff,#fffdfb)!important;box-shadow:0 8px 24px rgba(48,40,76,.04)!important}.library-page-v13 .feed-info-v20 h2{font-size:21px!important;line-height:1.4!important}.library-page-v13 .feed-info-v20 .feed-cta{min-height:50px!important;border-radius:13px!important}

  /* ============================ LEAGUE / 联赛 ============================ */
  #view:has(.view-page[data-view="league"].active) .main-col{padding:24px 30px 30px!important}
  .league-page{width:min(100%,1320px)!important;max-width:1320px!important;grid-template-columns:minmax(0,1fr) 300px!important;grid-template-areas:"head head" "progress progress" "week battle"!important;gap:18px!important}
  .league-header{min-height:78px!important;padding:2px 4px 8px!important}.league-header-icon{width:58px!important;height:58px!important;border-radius:16px!important}.league-header-copy h2{font-size:29px!important}.league-header-copy p{margin-top:4px!important;font-size:11px!important}
  .league-progress{padding:16px 20px!important;border-radius:20px!important}.league-progress-row{grid-template-columns:190px 1fr 1fr minmax(285px,1.2fr)!important}.league-rank-chip,.league-fought,.league-promotion,.league-promotion-hint{min-height:76px!important}
  .league-week{min-height:490px!important;padding:22px!important;border-radius:20px!important}.league-opponents{margin-top:42px!important;gap:9px!important}.league-opponent{min-height:205px!important;padding-top:32px!important}.league-opponent-avatar-v4{width:78px!important;height:78px!important}.league-lower,.league-battle{min-height:490px!important}.league-battle{padding:20px!important}
  #weeklyBattleRanking:empty::before{content:"本周对局完成后，战绩会显示在这里。";min-height:320px;display:grid;place-items:center;color:#a39ca9;font-size:10px;text-align:center}

  /* ============================ MINE / 我的 ============================ */
  #view:has(.view-page[data-view="mine"].active) .main-col{padding:18px 26px 30px!important}
  .mine-page{width:min(100%,1360px)!important;max-width:1360px!important;display:flex!important;flex-direction:column!important;gap:16px!important}
  .mine-overview{min-height:132px!important;grid-template-columns:minmax(390px,1.05fr) minmax(650px,1.95fr)!important;border-radius:21px!important;background:linear-gradient(105deg,#f3edff 0%,#fff 38%,#fff 100%)!important}
  .mine-overview .mine-user-card{grid-template-columns:92px minmax(0,1fr) auto!important;padding:18px 22px!important}.mine-overview .mine-avatar{width:92px!important;height:92px!important}.mine-overview .mine-user-copy b{font-size:24px!important}.mine-overview .mine-user-copy small{font-size:10px!important}.mine-assets-card .mine-asset{min-height:82px!important;padding:14px!important}
  .mine-dashboard{display:grid;grid-template-columns:300px minmax(430px,1fr) minmax(340px,.9fr);gap:16px;align-items:stretch}
  .mine-dashboard>.mine-card{min-height:418px;padding:19px!important;border:1px solid #e7e4ed!important;border-radius:20px!important;background:#fff!important;box-shadow:0 9px 28px rgba(50,42,79,.045)!important}
  .mine-section-head{min-height:35px!important;margin-bottom:13px!important}.mine-section-title{font-size:14px!important}
  .mine-quick-grid{display:grid;gap:9px}.mine-quick-grid>button{min-height:56px;display:grid;grid-template-columns:38px minmax(0,1fr) 18px;align-items:center;gap:10px;padding:8px 9px;border:1px solid #ece9f1;border-radius:13px;background:#fff;text-align:left;transition:.15s ease}.mine-quick-grid>button:hover{transform:translateY(-1px);border-color:#cfc4f7;background:#faf8ff}.mine-quick-grid>button>.ui-icon:first-child{width:36px;height:36px;padding:8px;border-radius:12px;color:#694bdd;background:#f0ecff}.mine-quick-grid>button span{min-width:0}.mine-quick-grid>button b{display:block;color:#3b3543;font-size:11px}.mine-quick-grid>button small{display:block;margin-top:2px;overflow:hidden;color:#98919f;font-size:8.5px;text-overflow:ellipsis;white-space:nowrap}.mine-quick-grid>button .arrow{width:15px;height:15px;color:#aaa4b0}
  .mine-services-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mine-services-grid>button{min-height:105px;display:grid;grid-template-columns:54px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;column-gap:12px;padding:14px;border:1px solid #ebe8f0;border-radius:15px;background:#fff;text-align:left}.mine-services-grid>button:hover{border-color:#cfc4f7;background:#faf8ff}.mine-services-grid .svc-icon{grid-row:1/3;width:52px;height:52px;display:grid;place-items:center;border-radius:16px;color:#724fde;background:#f0ebff}.mine-services-grid .svc-icon.store{color:#8751dc;background:#f6edff}.mine-services-grid .svc-icon.board{color:#477fdb;background:#eaf3ff}.mine-services-grid .svc-icon.medal{color:#d29227;background:#fff4dc}.mine-services-grid .svc-icon.user{color:#4da55d;background:#ebf8ee}.mine-services-grid .svc-icon.vip{color:#d59626;background:#fff3dd}.mine-services-grid .svc-icon .ui-icon{width:25px;height:25px}.mine-services-grid b{align-self:end;color:#37313e;font-size:12px}.mine-services-grid small{align-self:start;margin-top:3px;color:#98919e;font-size:8.5px}
  .mine-task-summary{min-height:92px;display:grid;grid-template-columns:78px minmax(0,1fr);align-items:center;gap:14px;margin-bottom:12px;padding:8px 10px;border-radius:15px;background:linear-gradient(105deg,#f8f5ff,#fff)}.mine-task-ring{width:72px;height:72px;display:grid;place-content:center;border:9px solid #e5ddff;border-top-color:#7459ef;border-right-color:#7459ef;border-radius:50%;text-align:center}.mine-task-ring b{color:#6547df;font-size:15px}.mine-task-ring small{margin-top:2px;color:#91899c;font-size:7px}.mine-task-summary>div:last-child b{display:block;color:#3d3645;font-size:12px}.mine-task-summary>div:last-child small{display:block;margin-top:5px;color:#9a93a0;font-size:8.5px}.mine-tasks #mineTaskList{display:grid;gap:8px}.mine-tasks .mine-task-item{min-height:63px!important;margin:0!important;padding:10px!important}
  .mine-achievements{min-height:190px!important;padding:18px 20px!important;border:1px solid #e7e4ed!important;border-radius:20px!important;background:#fff!important;box-shadow:0 9px 28px rgba(50,42,79,.045)!important}.mine-achievements .mine-ach-grid{grid-template-columns:repeat(auto-fit,minmax(92px,1fr))!important;gap:16px!important}.mine-achievements .mine-ach-badge{width:76px!important;height:76px!important}.mine-achievements .mine-ach-item small{font-size:9px!important}
}

@media (min-width:901px) and (max-width:1240px){
  :root{--pc-nav-w:168px;--pc-aside-w:276px}
  .topbar .brand{width:155px!important;min-width:155px!important}.topbar .brand-wordmark img{width:96px!important}.side-nav{padding-inline:10px!important}.side-nav-btn{font-size:12px!important;padding-inline:12px!important}
  #view:has(.view-page[data-view="home"].active){grid-template-columns:var(--pc-nav-w) minmax(0,1fr)!important}#view:has(.view-page[data-view="home"].active) .right-panel{display:none!important}
  .view-page[data-view="home"] .home-main{max-width:100%!important}.view-page[data-view="home"] .home-hero{grid-template-columns:minmax(0,1fr) 230px auto!important}.view-page[data-view="home"] .stage-banner{grid-template-columns:34px 260px minmax(0,1fr) 34px!important}.home-course{padding-left:18px!important}.home-course>button{min-width:120px!important}
  .home-road-expanded{left:var(--pc-nav-w)}.home-road-expanded-head{grid-template-columns:120px minmax(0,1fr) 180px 110px;padding-inline:18px!important}.home-road-scroll-shell{padding-inline:46px!important}
  
  .library-page-v13 .feed-focus-layout-v19{grid-template-columns:220px minmax(460px,1fr) 310px!important;gap:10px!important}.library-page-v13 .feed-board-stage-v20 .feed-board-frame{max-width:540px!important}
  .league-page{grid-template-columns:minmax(0,1fr) 260px!important}.league-progress-row{grid-template-columns:150px 1fr 1fr minmax(240px,1fr)!important}.league-opponents{grid-template-columns:repeat(7,minmax(76px,1fr))!important}
  .mine-dashboard{grid-template-columns:260px minmax(360px,1fr) 315px!important}.mine-overview{grid-template-columns:340px minmax(0,1fr)!important}.mine-services-grid>button{grid-template-columns:42px minmax(0,1fr)!important;padding:10px!important}.mine-services-grid .svc-icon{width:42px;height:42px}.mine-quick-grid>button{min-height:53px}
}

@media (max-width:900px){
  .home-road-expanded{display:none!important}
  .home-road-card,.home-growth-strip{display:none!important}
}

#stageDrawerPanel.show{z-index:2180!important}

@media (min-width:901px){
  :root{
    --pc-art-home:url("/web/assets/brand/generated/home-monkey-hero.webp");
    --pc-art-route:url("/web/assets/brand/generated/home-route-map-hero.webp");
    --pc-art-study:url("/web/assets/brand/generated/study-team-hero.webp");
    --pc-art-library:url("/web/assets/brand/generated/library-board-hero.webp");
    --pc-art-league:url("/web/assets/brand/generated/league-honor-hero.webp");
  }

  /* 公共：让局部卡片可以承载气氛图 */
  .view-page[data-view="home"] .home-hero, .view-page[data-view="home"] .stage-banner, .view-page[data-view="study"] .smart-training-card, .view-page[data-view="library"] .library-page-v13, .view-page[data-view="league"] .league-page, .view-page[data-view="mine"] .mine-page, .stage-drawer-card{
    position:relative;
    isolation:isolate;
  }

  .view-page[data-view="home"] .home-hero > *, .view-page[data-view="home"] .stage-banner > *, .view-page[data-view="study"] .smart-training-card > *, .view-page[data-view="library"] .library-page-v13 > *, .view-page[data-view="league"] .league-page > *, .view-page[data-view="mine"] .mine-page > *, .stage-drawer-card > *{
    position:relative;
    z-index:1;
  }

  /* 首页：欢迎区更接近设计稿，右侧加入小猴大场景 */
  .view-page[data-view="home"] .home-hero{
    background:
      linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.95) 47%,rgba(255,255,255,.60) 68%,rgba(255,255,255,.28) 100%),
      var(--pc-art-home) right center / cover no-repeat !important;
  }
  .view-page[data-view="home"] .home-hero::after{
    content:"";
    position:absolute;
    right:0;
    top:0;
    bottom:0;
    width:42%;
    border-radius:inherit;
    background:linear-gradient(270deg,rgba(244,240,255,.12),rgba(244,240,255,.0));
    pointer-events:none;
    z-index:0;
  }
  .view-page[data-view="home"] .home-hero .home-hero-art{opacity:0;pointer-events:none}

  /* 首页：阶段横幅 / 全部阶段抽屉融入路线气氛图 */
  .view-page[data-view="home"] .stage-banner{
    background:
      linear-gradient(90deg,rgba(248,245,255,.985) 0%,rgba(255,255,255,.97) 46%,rgba(255,255,255,.76) 63%,rgba(255,255,255,.28) 100%),
      var(--pc-art-route) center center / cover no-repeat !important;
  }
  .view-page[data-view="home"] .stage-banner::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    background:radial-gradient(circle at 20% 18%,rgba(255,255,255,.62),transparent 22%), radial-gradient(circle at 74% 52%,rgba(125,96,227,.08),transparent 28%);
    pointer-events:none;
    z-index:0;
  }
  .stage-drawer-card{
    overflow:hidden;
    background:#fff;
  }
  .stage-drawer-card::before{
    content:"";
    position:absolute;
    inset:0 0 auto 0;
    height:180px;
    background:
      linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,.92) 88%),
      var(--pc-art-route) center top / cover no-repeat;
    opacity:.95;
    pointer-events:none;
    z-index:0;
  }
  .stage-drawer-card .panel-head,
  .stage-drawer-card .panel-body{position:relative;z-index:1}

  /* 学习页：主英雄卡与右侧推荐卡加入三角色气氛图 */
  .view-page[data-view="study"] .smart-training-card{
    overflow:hidden;
  }
  
  
  .view-page[data-view="study"] .smart-training-card::before{
    content:"";
    position:absolute;
    inset:0 0 auto 0;
    height:148px;
    background:
      linear-gradient(180deg,rgba(255,255,255,.90),rgba(255,255,255,.64) 58%,rgba(255,255,255,0));
    pointer-events:none;
    z-index:0;
  }
  .view-page[data-view="study"] .smart-training-card::after{
    content:"";
    position:absolute;
    right:-24px;
    top:-8px;
    width:188px;
    height:168px;
    border-radius:24px;
    background:var(--pc-art-study) right top / cover no-repeat;
    opacity:.18;
    transform:scaleX(-1);
    pointer-events:none;
    z-index:0;
  }

  /* 棋谱库：页面级氛围底图，用围棋雅境拉开品质感 */
  .view-page[data-view="library"] .library-page-v13{
    overflow:hidden;
  }
  .view-page[data-view="library"] .library-page-v13::before{
    content:"";
    position:absolute;
    left:18px;
    right:18px;
    top:0;
    height:280px;
    border-radius:28px;
    background:
      linear-gradient(90deg,rgba(255,255,255,.97) 0%,rgba(255,255,255,.86) 40%,rgba(255,255,255,.42) 100%),
      var(--pc-art-library) right top / cover no-repeat;
    opacity:.9;
    pointer-events:none;
    z-index:0;
  }
  .view-page[data-view="library"] .library-feed-shell,
  .view-page[data-view="library"] .library-panel,
  .view-page[data-view="library"] .library-inspector,
  .view-page[data-view="library"] .library-inner-head{
    backdrop-filter:saturate(1.08) blur(2px);
  }

  /* 联赛：头部与整体页面融入荣誉奖台场景 */
  .view-page[data-view="league"] .league-page{
    overflow:hidden;
  }
  .view-page[data-view="league"] .league-page::before{
    content:"";
    position:absolute;
    left:6px;
    right:6px;
    top:0;
    height:255px;
    border-radius:26px;
    background:
      linear-gradient(90deg,rgba(255,255,255,.97) 0%,rgba(255,255,255,.86) 38%,rgba(255,255,255,.28) 100%),
      var(--pc-art-league) center top / cover no-repeat;
    pointer-events:none;
    z-index:0;
  }
  .view-page[data-view="league"] .league-header,
  .view-page[data-view="league"] .league-progress{
    background-color:rgba(255,255,255,.92);
    backdrop-filter:blur(4px);
  }

  /* 我的：用户卡 / 成就墙加入荣誉氛围，弱化右侧空白感 */
  .view-page[data-view="mine"] .mine-page{
    overflow:hidden;
  }
  .view-page[data-view="mine"] .mine-page::before{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:0;
    height:232px;
    background:
      linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.95) 42%,rgba(255,255,255,.38) 100%),
      var(--pc-art-league) right top / cover no-repeat;
    border-radius:24px;
    pointer-events:none;
    z-index:0;
  }
  .view-page[data-view="mine"] .mine-user-card{
    background:
      linear-gradient(90deg,rgba(255,255,255,.98),rgba(255,255,255,.94) 62%,rgba(255,255,255,.80) 100%),
      var(--pc-art-home) right center / cover no-repeat !important;
  }
  .view-page[data-view="mine"] .mine-card[aria-label="成就墙"]{
    position:relative;
    overflow:hidden;
  }
  .view-page[data-view="mine"] .mine-card[aria-label="成就墙"]::before{
    content:"";
    position:absolute;
    right:-20px;
    top:-16px;
    width:300px;
    height:180px;
    background:var(--pc-art-league) right top / cover no-repeat;
    opacity:.12;
    pointer-events:none;
    z-index:0;
  }

  /* 小幅增强白卡层次，避免背景图过轻时页面发灰 */
  .view-page[data-view="study"] .smart-training-card, .view-page[data-view="library"] .library-panel, .view-page[data-view="library"] .library-inspector, .view-page[data-view="league"] .league-header, .view-page[data-view="league"] .league-progress, .view-page[data-view="mine"] .mine-card{
    box-shadow:0 10px 28px rgba(61,49,102,.05);
  }
}

@media (min-width:901px){
  .home-road-expanded{
    grid-template-rows:104px minmax(0,1fr) 46px!important;
    background:
      linear-gradient(180deg,color-mix(in srgb,var(--road-wash) 92%,#fff) 0%,rgba(249,248,253,.97) 42%,#fff 100%)!important;
  }
  .home-road-expanded::before{
    content:"";
    position:absolute;
    inset:104px 0 46px 0;
    background:
      linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,.90)),
      url("/web/assets/brand/generated/home-route-map-hero.webp") center top / cover no-repeat;
    opacity:.16;
    pointer-events:none;
    z-index:0;
  }
  .home-road-expanded-head,.home-road-scroll-shell,.home-road-expanded-foot{position:relative;z-index:1}

  .home-road-scroll-shell{
    min-height:0!important;
    padding:0 54px!important;
    overflow:hidden!important;
  }
  .home-road-scroller{
    position:relative!important;
    height:100%!important;
    display:block!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    padding:28px 0 110px!important;
    scroll-snap-type:none!important;
    overscroll-behavior-y:contain!important;
    scrollbar-width:thin!important;
    scrollbar-color:color-mix(in srgb,var(--road-accent) 42%,#c8c3d1) transparent!important;
    outline:0!important;
  }
  .home-road-scroller::-webkit-scrollbar{width:8px!important;height:0!important}
  .home-road-scroller::-webkit-scrollbar-thumb{border-radius:99px;background:color-mix(in srgb,var(--road-accent) 40%,#c7c1d2)}

  .home-road-journey{
    position:relative;
    width:min(1040px,calc(100% - 60px));
    min-width:760px;
    margin:0 auto;
  }
  .home-road-journey-art{
    position:absolute;
    inset:0;
    overflow:hidden;
    border-radius:42px;
    pointer-events:none;
  }
  .home-road-journey-art::before,
  .home-road-journey-art::after{
    content:"";
    position:absolute;
    width:420px;height:420px;border-radius:50%;
    background:radial-gradient(circle,color-mix(in srgb,var(--road-accent) 8%,transparent),transparent 68%);
    filter:blur(2px);
  }
  .home-road-journey-art::before{left:-170px;top:7%}
  .home-road-journey-art::after{right:-170px;top:46%}

  .home-road-journey-svg{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    overflow:visible;
    pointer-events:none;
    z-index:1;
  }
  .journey-route-shadow,
  .journey-route-main{
    fill:none;
    stroke-linecap:round;
    stroke-linejoin:round;
    vector-effect:non-scaling-stroke;
  }
  .journey-route-shadow{
    stroke:color-mix(in srgb,var(--road-accent) 16%,#e7e3eb);
    stroke-width:19;
    opacity:.9;
  }
  .journey-route-main{
    stroke:var(--road-accent);
    stroke-width:7;
    opacity:.72;
    filter:drop-shadow(0 4px 7px color-mix(in srgb,var(--road-accent) 18%,transparent));
    transition:stroke .25s ease;
  }

  /* “部分”只作为路径中的章节标记，不形成独立卡片。 */
  .home-road-section-band{
    position:absolute;
    left:0;right:0;
    z-index:2;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    filter:none!important;
    pointer-events:none;
  }
  .home-road-section-band::before{
    content:"";
    position:absolute;
    top:36px;
    left:50%;
    width:12px;height:12px;
    border:4px solid #fff;
    border-radius:50%;
    transform:translateX(-50%);
    background:var(--section-accent);
    box-shadow:0 0 0 5px var(--section-soft),0 4px 10px rgba(57,45,91,.12);
    z-index:4;
  }
  .home-road-section-marker{
    position:absolute;
    top:0;
    width:275px;
    min-height:58px;
    display:grid;
    grid-template-columns:5px minmax(0,1fr);
    gap:11px;
    align-items:center;
    padding:4px 0;
    pointer-events:none;
    z-index:6;
  }
  .home-road-section-band.left .home-road-section-marker{left:18px;text-align:left}
  .home-road-section-band.right .home-road-section-marker{right:18px;text-align:right;grid-template-columns:minmax(0,1fr) 5px}
  .home-road-section-band.right .home-road-section-marker>i{grid-column:2;grid-row:1}
  .home-road-section-band.right .home-road-section-marker>span{grid-column:1;grid-row:1}
  .home-road-section-marker>i{width:5px;height:40px;border-radius:99px;background:var(--section-accent);box-shadow:0 3px 8px color-mix(in srgb,var(--section-accent) 20%,transparent)}
  .home-road-section-marker small{display:block;color:var(--section-accent);font-size:8.5px;font-weight:900;letter-spacing:.08em}
  .home-road-section-marker b{display:block;margin-top:2px;overflow:hidden;color:#38313f;font-size:14px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
  .home-road-section-marker em{display:inline-block;margin-top:4px;padding:3px 7px;border-radius:999px;color:var(--section-dark);background:var(--section-soft);font-size:8px;font-style:normal;font-weight:850}
  .home-road-section-band.section-locked .home-road-section-marker{opacity:.58}

  .home-road-section-body-v39{position:absolute;inset:0;pointer-events:auto}
  .home-road-lazy-v39{
    position:absolute;
    left:50%;top:96px;
    display:flex;align-items:center;gap:8px;
    transform:translateX(-50%);
    color:#9b94a1;font-size:9px;
  }
  .home-road-lazy-v39 span{width:18px;height:18px;border:2px solid #e3dfeb;border-top-color:var(--section-accent);border-radius:50%;animation:v37spin .9s linear infinite}
  .home-road-empty{position:absolute;left:50%;top:100px;transform:translateX(-50%);color:#9992a0;font-size:10px}

  /* 节点沿整条路径连续排布。 */
  .home-road-section-band .home-expanded-node.duo-node{
    position:absolute!important;
    left:var(--px)!important;
    top:var(--py)!important;
    width:148px!important;
    min-height:122px!important;
    display:block!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    transform:translate(-50%,-42%)!important;
    color:var(--section-accent)!important;
    text-align:center!important;
    pointer-events:auto!important;
    z-index:5!important;
  }
  .home-road-section-band .home-expanded-node.duo-node:not(.locked):hover{transform:translate(-50%,-45%) scale(1.035)!important}
  .home-road-section-band .home-expanded-node-orb{
    width:68px;height:68px;
    margin:0 auto 9px;
    border:5px solid rgba(255,255,255,.96);
    background:linear-gradient(145deg,var(--section-accent),var(--section-dark));
    box-shadow:0 0 0 5px color-mix(in srgb,var(--section-accent) 15%,transparent),0 10px 22px rgba(59,46,103,.14);
  }
  .home-road-section-band .home-expanded-node.current .home-expanded-node-orb{
    width:78px;height:78px;
    box-shadow:0 0 0 8px color-mix(in srgb,var(--section-accent) 17%,transparent),0 0 0 13px color-mix(in srgb,var(--section-accent) 7%,transparent),0 14px 30px color-mix(in srgb,var(--section-accent) 25%,transparent);
  }
  .home-road-section-band .home-expanded-node.locked .home-expanded-node-orb{
    background:#e5e3e8!important;color:#aaa6b0!important;box-shadow:0 0 0 5px #f0eef2!important;filter:saturate(.12)!important;
  }
  .home-road-section-band .home-expanded-node-copy{width:148px;margin-left:0}
  .home-road-section-band .home-expanded-node-copy b{font-size:11px;color:#3f3847}
  .home-road-section-band .home-expanded-node-copy small{max-width:148px;margin-top:3px;font-size:8.2px;color:#928b99}

  /* 上一部分 / 下一部分变成右侧纵向导航，不割裂路线。 */
  .home-road-edge{
    left:auto!important;
    right:16px!important;
    width:42px!important;height:42px!important;
    border-radius:50%!important;
    transform:none!important;
  }
  .home-road-edge.prev{top:calc(50% - 50px)!important}
  .home-road-edge.next{top:calc(50% + 8px)!important}
  .home-road-edge.prev .ui-icon{transform:rotate(90deg)}
  .home-road-edge.next .ui-icon{transform:rotate(90deg)}

  .home-road-expanded-foot{background:rgba(255,255,255,.94)!important;backdrop-filter:blur(12px)}
  .home-road-expanded-foot b::before{content:"当前部分会随滚动自动切换 · ";font-weight:600;color:#9a93a0}

  /* 当前主题变化时，路径本体也柔和换色。 */
  .home-road-expanded.theme-changing .home-road-journey{animation:v39journeyTheme .24s ease}
  @keyframes v39journeyTheme{0%{opacity:.78}100%{opacity:1}}
}

@media (min-width:901px) and (max-width:1240px){
  .home-road-scroll-shell{padding-inline:20px!important}
  .home-road-journey{width:min(900px,calc(100% - 28px));min-width:700px}
  .home-road-section-marker{width:225px}
  .home-road-section-band.left .home-road-section-marker{left:2px}
  .home-road-section-band.right .home-road-section-marker{right:2px}
}

@media (min-width:901px){
  .view-page[data-view="home"]{
    --home-brand:#7459EF;
    --home-brand-dark:#2A2454;
    --home-brand-soft:#F1ECFF;
    --home-brand-wash:#FAF8FF;
  }

  /* 首页整体结构 */
  .view-page[data-view="home"] .home-grid{gap:22px!important;align-items:start!important}
  .view-page[data-view="home"] .home-main{display:grid;gap:18px!important}
  .right-panel{gap:18px!important}
  .right-panel #sideDaily{display:none!important}
  .right-panel .side-card,
  .view-page[data-view="home"] .card{
    border:1px solid #ece8f6!important;
    box-shadow:0 8px 24px rgba(79,57,146,.04)!important;
  }

  /* 欢迎区 */
  .view-page[data-view="home"] .home-hero{
    min-height:154px!important;
    grid-template-columns:minmax(0,1fr) 430px auto!important;
    gap:20px!important;
    padding:20px 26px 16px 26px!important;
    border-radius:26px!important;
    border:0!important;
    background:
      linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.96) 48%,rgba(255,255,255,.56) 66%,rgba(255,255,255,.16) 100%),
      url("/web/assets/brand/generated/home-monkey-hero.webp") right 10px center/360px auto no-repeat,
      radial-gradient(circle at 65% 14%,rgba(167,143,255,.22),transparent 22%),
      linear-gradient(180deg,#fcfbff 0%,#f7f4ff 100%)!important;
    position:relative;
    overflow:hidden;
  }
  .view-page[data-view="home"] .home-hero::before{
    content:"";
    position:absolute;right:265px;top:22px;width:150px;height:104px;
    background:radial-gradient(circle at 50% 50%,rgba(133,108,244,.18),transparent 70%);
    filter:blur(2px);pointer-events:none;
  }
  .view-page[data-view="home"] .home-hero .avatar-button{display:none!important}
  .view-page[data-view="home"] .home-user{align-self:center;max-width:760px}
  .home-welcome-kicker{display:block!important;margin-bottom:8px;color:#7B63EA!important;font-size:12px!important;font-weight:900!important;letter-spacing:.12em!important}
  .view-page[data-view="home"] .home-user b{
    display:block;font-size:32px!important;line-height:1.18!important;color:#1F1A4A!important;
    letter-spacing:-.02em;
  }
  .view-page[data-view="home"] .home-user span{
    margin-top:12px!important;font-size:16px!important;line-height:1.55!important;color:#4A4776!important;
  }
  .home-hero-art{display:none!important}
  .view-page[data-view="home"] .home-hero .btn-login{
    align-self:start!important;margin-top:6px!important;min-width:98px!important;height:42px!important;
    border-radius:999px!important;background:linear-gradient(135deg,#876AF6,#6F4BF0)!important;
    color:#fff!important;box-shadow:0 12px 24px rgba(112,86,235,.22)!important;border:0!important;
  }

  /* 继续学习主卡 */
  .view-page[data-view="home"] .stage-banner{
    grid-template-columns:42px 340px minmax(0,1fr) 42px!important;
    min-height:178px!important;
    gap:18px!important;
    padding:14px 18px!important;
    border-radius:28px!important;
    border:1px solid #e9e2ff!important;
    background:
      linear-gradient(90deg,rgba(255,255,255,.985) 0%,rgba(255,255,255,.975) 48%,rgba(255,255,255,.92) 100%),
      linear-gradient(180deg,#fbf9ff,#ffffff)!important;
    position:relative;
    overflow:hidden;
  }
  .view-page[data-view="home"] .stage-banner::before{
    content:""!important;position:absolute!important;left:284px!important;top:-30px!important;width:280px!important;height:240px!important;
    background:radial-gradient(circle at 28% 56%,rgba(163,136,255,.13),transparent 33%),radial-gradient(circle at 56% 40%,rgba(163,136,255,.11),transparent 24%)!important;
    opacity:1!important;pointer-events:none!important;transform:none!important;border-radius:0!important;
  }
  .view-page[data-view="home"] .stage-banner::after{
    content:"";position:absolute;left:270px;top:0;bottom:0;width:1px;background:#f0ebfb;pointer-events:none;
  }
  .view-page[data-view="home"] .stage-nav{
    width:38px!important;height:38px!important;border-radius:50%!important;
    background:#fff!important;border:1px solid #e7e0fb!important;color:#8a73ef!important;align-self:center!important;
    box-shadow:0 6px 16px rgba(90,73,168,.08)!important;
  }
  .view-page[data-view="home"] .stage-info{
    align-self:stretch!important;display:flex!important;flex-direction:column!important;justify-content:center!important;
    min-width:0;padding:10px 10px 10px 0!important;
  }
  .view-page[data-view="home"] .stage-meta{
    display:inline-flex!important;align-self:flex-start!important;padding:7px 14px!important;border-radius:999px!important;
    background:linear-gradient(135deg,#7D61F1,#7052EB)!important;color:#fff!important;font-size:12px!important;font-weight:900!important;
    line-height:1;margin-bottom:18px!important;
  }
  .view-page[data-view="home"] .stage-title-row{display:block!important}
  .view-page[data-view="home"] .stage-title-row b{
    display:block!important;color:#1F1A4A!important;font-size:28px!important;line-height:1.18!important;font-weight:900!important;
  }
  .view-page[data-view="home"] .stage-title-row .stage-hint{
    display:block!important;margin-top:12px!important;padding:0!important;border:0!important;background:none!important;
    color:#4F4A74!important;font-size:16px!important;font-weight:800!important;
  }
  .view-page[data-view="home"] .section-title{
    margin-top:12px!important;color:#4B4769!important;font-size:14px!important;font-weight:800!important;
  }
  .view-page[data-view="home"] .stage-subtitle{
    margin-top:12px!important;color:#78728F!important;font-size:13px!important;line-height:1.55!important;
  }
  .home-course{
    height:auto!important;align-self:center!important;padding:20px 16px 20px 20px!important;border-radius:0!important;background:none!important;box-shadow:none!important;
  }
  .home-course small{
    display:flex!important;align-items:center!important;gap:8px!important;color:#6D52EB!important;font-size:14px!important;font-weight:900!important;
  }
  .home-course b{
    margin-top:10px!important;font-size:22px!important;line-height:1.32!important;color:#1F1A4A!important;font-weight:900!important;
  }
  .home-course-progress{
    margin-top:16px!important;height:8px!important;background:#ebe7f8!important;border-radius:999px!important;overflow:hidden!important;
  }
  .home-course-progress>i{border-radius:999px!important;background:linear-gradient(90deg,#7A5EF0,#6D4EEF)!important}
  .home-course>span{margin-top:10px!important;color:#696585!important;font-size:13px!important;font-weight:700!important}
  .home-course>button{
    margin-top:18px!important;min-width:160px!important;height:58px!important;padding:0 28px!important;border-radius:999px!important;border:0!important;
    background:linear-gradient(135deg,#7A5EF0,#6046EE)!important;color:#fff!important;box-shadow:0 16px 28px rgba(108,81,238,.24)!important;
  }
  .home-course>button span{font-size:16px!important;font-weight:900!important}
  .home-course>button .ui-icon{width:20px!important;height:20px!important}

  /* 学习路线图卡片 */
  .home-road-card{
    overflow:hidden;border-radius:24px!important;background:#fff!important;
  }
  .home-road-card-head{
    min-height:64px!important;padding:0 22px!important;border-bottom:1px solid #efebf8!important;background:#fff!important;
  }
  .home-road-card-head>div{gap:14px!important}
  .home-road-card-head>div i{width:6px!important;height:24px!important;border-radius:999px!important;background:#7B60F1!important}
  .home-road-card-head>div b{font-size:18px!important;color:#1F1A4A!important}
  .home-road-card-head>div small{margin-left:16px!important;font-size:14px!important;color:#8A82A8!important}
  .home-road-card-head>button{color:#7A5EF0!important;font-size:14px!important;font-weight:900!important}

  #learningRoad{
    min-height:270px!important;padding:18px 22px 18px!important;
    background:linear-gradient(180deg,#fff 0%,#fff 72%,#fcfbff 100%)!important;
  }
  .home-preview-route{
    height:235px!important;border-radius:20px!important;background:
      radial-gradient(circle at 9% 8%,rgba(203,193,251,.22),transparent 6%),
      radial-gradient(circle at 74% 14%,rgba(203,193,251,.18),transparent 5%),
      linear-gradient(180deg,rgba(249,247,255,.72) 0%,rgba(255,255,255,.0) 28%),
      #fff;
  }
  .home-preview-route::before,.home-preview-route::after{background:#f0ebff!important;opacity:.8!important}
  .home-preview-route>svg{top:12px!important;height:190px!important}
  .home-preview-route .home-preview-path-back{stroke:#dacfff!important;stroke-width:15!important;opacity:1!important}
  .home-preview-route .home-preview-path-front{stroke:#9E87FF!important;stroke-width:7px!important;opacity:.95!important}
  .home-preview-route .home-preview-node{
    transform:translate(-50%,-36%)!important;
    min-width:156px!important;
  }
  .home-preview-node .home-preview-node-orb{
    width:74px!important;height:74px!important;border:5px solid #fff!important;
    background:linear-gradient(135deg,#8B72FD,#6F52EF)!important;box-shadow:0 0 0 6px #efe9ff,0 14px 26px rgba(95,73,185,.18)!important;
  }
  .home-preview-node.current .home-preview-node-orb{width:80px!important;height:80px!important}
  .home-preview-node.locked .home-preview-node-orb{background:linear-gradient(135deg,#E6E4EB,#D7D3DE)!important;box-shadow:0 0 0 6px #f3f1f6,0 8px 16px rgba(0,0,0,.04)!important}
  .home-preview-node-copy b{font-size:14px!important;color:#28234e!important}
  .home-preview-node-copy small{margin-top:5px!important;font-size:12px!important;color:#88839d!important}
  .home-road-card .road-tip{display:none!important}

  /* 成长小目标 */
  .home-growth-strip{
    min-height:104px!important;padding:0 10px!important;border-radius:22px!important;background:#fff!important;
    grid-template-columns:1.12fr repeat(3,1fr)!important;
  }
  .home-growth-strip>strong,.home-growth-strip>span{padding:20px 18px!important;border-right:1px solid #efebf8!important}
  .home-growth-strip>span:last-child{border-right:0!important}
  .home-growth-strip>strong>span,.home-growth-strip>span>i{
    width:48px!important;height:48px!important;background:#F3EEFF!important;color:#765AEE!important;
  }
  .home-growth-strip b{font-size:17px!important;color:#241E4C!important}
  .home-growth-strip small{margin-top:6px!important;font-size:12px!important;color:#8B85A0!important}

  /* 右侧三卡更靠近设计稿 */
  .right-panel .side-card,
  .right-panel .home-tasks{
    border-radius:22px!important;background:#fff!important;padding:18px!important;
  }
  .side-stats .section-subtitle,
  .side-league .section-subtitle,
  .home-tasks .home-task-card-head{
    display:flex;align-items:center;justify-content:space-between;margin-bottom:16px!important;
  }
  .side-stats .section-subtitle span,
  .side-league .section-subtitle span,
  .home-task-card-head span{display:flex;align-items:center;gap:8px}
  .side-stats .section-subtitle b,
  .side-league .section-subtitle b,
  .home-task-card-head b{font-size:16px!important;color:#1F1A4A!important}
  .home-streak-days{font-size:18px;color:#1F1A4A;font-weight:900}
  .streak-week{gap:10px!important;margin:12px 0 16px!important}
  .streak-week i{width:34px!important;height:34px!important;border-radius:50%!important;background:#fbfaff!important;border:1px solid #eee9fa!important;color:#8882a1!important;font-size:13px!important}
  .streak-week i.on,.streak-week i.today{border-color:#7A5EF0!important;color:#7A5EF0!important;background:#fff!important}
  .side-assets{gap:12px!important}
  .side-assets span{flex:1;border-radius:14px!important;background:#fff!important;border:1px solid #eee9f9!important;padding:12px 10px!important}
  .side-assets b{font-size:20px!important;color:#2A2454!important}
  .league-rank-row{display:grid!important;grid-template-columns:92px minmax(0,1fr)!important;gap:14px!important;align-items:center!important}
  .league-rank{font-size:22px!important;color:#6C54EE!important}
  .league-meta span{font-size:15px!important;color:#2A2454!important;font-weight:800!important}
  .league-meta small{display:block;margin-top:8px!important;font-size:12px!important;color:#8B85A0!important}
  .league-go{margin-top:14px!important;height:44px!important;border-radius:14px!important;background:#F6F1FF!important;color:#6E55EF!important;font-weight:900!important}

  /* 今日任务卡 */
  .home-tasks{display:block!important}
  .home-task-list{display:grid;gap:12px}
  .task-mini-v40{display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;gap:12px!important;align-items:start!important;padding:12px 12px!important;border-radius:16px!important;background:#fff!important;border:1px solid #eee9f9!important;box-shadow:none!important}
  .task-mini-v40 .task-mini-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:10px;background:#F3EEFF;color:#765AEE}
  .task-mini-v40 b{font-size:15px!important;color:#29244e!important}
  .task-mini-v40 small{margin-top:4px!important;font-size:13px!important;color:#8D87A4!important}
  .task-mini-v40 .progress{margin-top:10px!important;height:8px!important;border-radius:999px!important;background:#efebf8!important}
  .task-mini-v40 .progress i{background:linear-gradient(90deg,#7A5EF0,#6D4EEF)!important}
  .home-task-empty{padding:26px 0 20px;text-align:center;color:#8C86A3}
  .home-task-empty strong{display:block;color:#29244e;font-size:16px;margin-bottom:6px}
  .home-side-task-more{margin-top:14px!important;height:46px!important;border-radius:14px!important;background:#F6F1FF!important;color:#6E55EF!important;font-weight:900!important;border:0!important}

  /* 连续路径展开页同步品牌风格 */
  .home-road-expanded{
    border:1px solid #ece7f8!important;
    box-shadow:0 14px 34px rgba(67,51,130,.12)!important;
  }
  .home-road-expanded-head{background:linear-gradient(180deg,#fdfcff,#fff)!important;border-bottom:1px solid #efebf8!important}
  .home-road-expanded-title h2{color:#1F1A4A!important}
  .home-road-expanded-title p,.home-road-expanded-head small{color:#7E7896!important}
  .home-road-stage-btn,
  .home-road-back{border:1px solid #e9e2fb!important;background:#fff!important;color:#7157EF!important}
}

@media (min-width:901px) and (max-width:1280px){
  .view-page[data-view="home"] .home-hero{grid-template-columns:minmax(0,1fr) 300px auto!important;background-size:290px auto, auto, auto, auto!important}
  .view-page[data-view="home"] .stage-banner{grid-template-columns:38px 300px minmax(0,1fr) 38px!important}
}

@media (min-width:901px){
  /* 设计稿三栏比例：左侧不再过窄，右侧卡片不再与主内容隔一大片空白。 */
  #view:has(.view-page[data-view="home"].active){--pc-nav-w:244px;--pc-aside-w:350px;grid-template-columns:var(--pc-nav-w) minmax(0,1fr) var(--pc-aside-w)!important}
  body:has(.view-page[data-view="home"].active) .topbar{padding-left:28px!important;padding-right:26px!important}
  body:has(.view-page[data-view="home"].active) .topbar .brand{width:216px!important;min-width:216px!important}
  #view:has(.view-page[data-view="home"].active) .main-col{padding:10px 24px 30px 56px!important}
  #view:has(.view-page[data-view="home"].active) .right-panel{padding:20px 20px 26px 10px!important;gap:14px!important;overflow-y:auto!important}
  .view-page[data-view="home"] .home-main{max-width:none!important;margin:0!important;gap:16px!important}

  /* 首页主界面固定使用品牌紫；APP section.colorValue 仍保留给“查看全部路线”的滚动主题变化。 */
  .view-page[data-view="home"]{--home-accent:#7459EF!important;--home-accent-dark:#5537C7!important;--home-accent-soft:#F0EBFF!important;--home-accent-wash:#FBF9FF!important}
  .view-page[data-view="home"] .stage-banner,
  .view-page[data-view="home"] #learningRoad{--section-accent:#7459EF!important;--section-dark:#5537C7!important;--section-soft:#F0EBFF!important;--section-wash:#FBF9FF!important}

  /* 左侧导航 + 基于真实当前部分内容的学习提示卡。 */
  #view:has(.view-page[data-view="home"].active) .side-nav{display:flex!important;flex-direction:column!important;padding:28px 18px 18px!important}
  #view:has(.view-page[data-view="home"].active) .side-nav-btn{min-height:52px!important;border-radius:17px!important;font-size:15px!important}
  .home-sidebar-tip{display:none}
  #view:has(.view-page[data-view="home"].active) .home-sidebar-tip{
    display:flex;margin-top:auto;min-height:230px;position:relative;overflow:hidden;flex-direction:column;align-items:center;justify-content:flex-end;
    padding:92px 16px 16px;border:1px solid #e9e3fb;border-radius:25px;background:linear-gradient(180deg,#FBF9FF,#fff 74%);box-shadow:0 10px 24px rgba(70,54,133,.05);text-align:center;
  }
  .home-sidebar-tip::before{content:"";position:absolute;left:22px;right:22px;top:18px;height:98px;border-radius:50%;background:radial-gradient(circle,rgba(137,110,245,.14),transparent 68%)}
  .home-sidebar-tip img{position:absolute;z-index:1;top:0;left:50%;width:150px;height:118px;object-fit:contain;object-position:center;transform:translateX(-50%);filter:drop-shadow(0 9px 12px rgba(77,56,152,.12))}
  .home-sidebar-tip b{position:relative;z-index:2;color:#6B52EC;font-size:16px}
  .home-sidebar-tip p{position:relative;z-index:2;display:-webkit-box;margin:8px 0 14px;overflow:hidden;color:#87809a;font-size:11px;line-height:1.55;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .home-sidebar-tip button{position:relative;z-index:2;width:100%;height:40px;display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid #ddd4fb;border-radius:999px;background:#fff;color:#6B52EC;font-size:12px;font-weight:850}
  .home-sidebar-tip button .ui-icon{width:13px;height:13px}

  /* 欢迎区：设计稿是“文字 + 大幅导师插画”，不是右上角的一小块背景图。 */
  .view-page[data-view="home"] .home-hero{
    min-height:122px!important;display:block!important;padding:18px 28px 12px!important;border:0!important;border-radius:0!important;overflow:visible!important;
    background:linear-gradient(90deg,rgba(255,255,255,.98),rgba(255,255,255,.96) 60%,rgba(247,243,255,.54))!important;box-shadow:none!important;
  }
  .view-page[data-view="home"] .home-user{position:relative;z-index:3;width:58%;padding-top:2px}
  .home-welcome-kicker{font-size:10px!important;letter-spacing:.13em!important;margin-bottom:6px!important}
  .view-page[data-view="home"] .home-user b{font-size:29px!important;color:#211A4C!important}
  .view-page[data-view="home"] .home-user span{margin-top:9px!important;font-size:13.5px!important;color:#615B79!important}
  .view-page[data-view="home"] .home-hero .home-hero-art{display:block!important;opacity:1!important;position:absolute!important;z-index:2!important;right:18px!important;top:-26px!important;width:440px!important;height:178px!important;pointer-events:none!important;overflow:visible!important}
  .view-page[data-view="home"] .home-hero .home-hero-art::before,.view-page[data-view="home"] .home-hero .home-hero-art::after,.view-page[data-view="home"] .home-hero .home-hero-art i{display:none!important}
  .view-page[data-view="home"] .home-hero .home-hero-art img{position:absolute!important;left:auto!important;right:0!important;bottom:auto!important;top:0!important;width:440px!important;height:178px!important;max-height:none!important;transform:none!important;object-fit:contain!important;filter:drop-shadow(0 8px 16px rgba(79,61,151,.10))!important}
  .view-page[data-view="home"] .home-hero .btn-login{position:absolute!important;z-index:4!important;right:18px!important;top:4px!important}

  /* 继续学习：减少空白，去掉偏粉主题，加入与设计稿接近的圆形阶段视觉。 */
  .view-page[data-view="home"] .stage-banner{min-height:198px!important;grid-template-columns:42px 315px 145px minmax(0,1fr) 42px!important;gap:10px!important;padding:14px 18px!important;border-color:#DCD2FF!important;background:linear-gradient(105deg,#FBF9FF 0%,#fff 54%,#FCFBFF 100%)!important}
  .view-page[data-view="home"] .stage-banner::after{left:360px!important;background:#ECE7F8!important}
  .view-page[data-view="home"] .stage-banner::before{content:""!important;position:relative!important;left:auto!important;top:auto!important;width:122px!important;height:122px!important;align-self:center!important;justify-self:center!important;grid-column:3!important;grid-row:1!important;border-radius:50%!important;background:
    radial-gradient(circle at 55% 64%,#5F4FD0 0 5%,transparent 6%),
    radial-gradient(ellipse at 52% 75%,#6C5DDA 0 17%,#9788EE 18% 32%,#DDD6FF 33% 53%,#F4F0FF 54% 70%,transparent 71%)!important;
    box-shadow:inset 0 0 0 1px rgba(105,84,221,.06)!important;opacity:1!important;transform:none!important}
  .view-page[data-view="home"] .stage-info{grid-column:2!important;grid-row:1!important;padding:10px 18px 10px 4px!important}
  .view-page[data-view="home"] .stage-meta{margin-bottom:14px!important;padding:6px 12px!important;background:#7459EF!important;font-size:10.5px!important}
  .view-page[data-view="home"] .stage-title-row b{font-size:27px!important;color:#211A4C!important}
  .view-page[data-view="home"] .stage-hint{display:none!important}
  .view-page[data-view="home"] .section-title{margin-top:12px!important;color:#4C476B!important;font-size:14px!important}
  .view-page[data-view="home"] .stage-subtitle{margin-top:10px!important;color:#817A94!important;font-size:12px!important}
  .home-course{grid-column:4!important;grid-row:1!important;min-height:150px!important;padding:18px 20px 18px 24px!important;border-left:0!important}
  .home-course>small{font-size:14px!important;color:#654AE4!important}
  .home-course>b{font-size:20px!important;color:#211A4C!important}
  .home-course-progress{height:7px!important;margin-top:14px!important}
  .home-course>span{font-size:12px!important;color:#77718B!important}
  .home-course>button{min-width:158px!important;height:55px!important;margin-top:14px!important;background:linear-gradient(135deg,#795EF2,#5C42E8)!important}

  /* 路线预览：路径更厚、更完整；节点明确使用顺序号，文字仍是真实关卡名称。 */
  .home-road-card{border-radius:23px!important;border-color:#E9E5F2!important}
  .home-road-card-head{height:62px!important;padding:0 22px!important}
  .home-road-card-head b{font-size:16px!important;color:#211A4C!important}
  .home-road-card-head small{font-size:11.5px!important}
  .home-road-card-head>button{font-size:12.5px!important}
  #learningRoad{height:304px!important;min-height:304px!important;padding:0!important;background:#fff!important}
  .home-preview-route{height:246px!important;background:
    radial-gradient(ellipse at 49% 88%,rgba(110,84,226,.045),transparent 36%),
    linear-gradient(180deg,#fff,#FEFDFF)!important}
  .home-preview-route>svg{top:18px!important;height:192px!important}
  .preview-route-shadow{stroke:#DED6FA!important;stroke-width:15!important}
  .preview-route-main{stroke:#9A84F5!important;stroke-width:7!important;opacity:1!important}
  .home-preview-node.duo-node{width:150px!important;min-height:136px!important;transform:translate(-50%,-42%)!important}
  .home-preview-node-orb{width:72px!important;height:72px!important;border:5px solid #fff!important;background:linear-gradient(145deg,#856BFA,#684CE8)!important;box-shadow:0 0 0 6px #EEE9FF,0 10px 24px rgba(89,66,184,.16)!important}
  .home-preview-node.current .home-preview-node-orb{width:78px!important;height:78px!important}
  .home-preview-node.locked .home-preview-node-orb{background:#DFDDE4!important;box-shadow:0 0 0 6px #F1EFF4,0 7px 16px rgba(0,0,0,.04)!important}
  .home-preview-node-number{display:grid!important;place-items:center!important;width:42px!important;height:42px!important;color:#fff!important;font-size:20px!important;font-style:normal!important;font-weight:900!important;line-height:1!important}
  .home-preview-node.locked .home-preview-node-number{color:#A7A3AD!important}
  .home-preview-node-copy{width:150px!important;margin-left:0!important}
  .home-preview-node-copy b{font-size:13px!important;color:#28224E!important}
  .home-preview-node-copy small{font-size:10.5px!important;color:#8F899E!important}
  .home-preview-foot{height:58px!important;grid-template-columns:auto minmax(0,1fr) auto!important;padding:0 22px!important;background:#FEFDFF!important}
  .home-preview-foot>span{font-size:11px!important}.home-preview-foot>b{font-size:10.5px!important}.home-preview-foot>em{font-size:10px!important}

  /* 成长目标保持真实关卡类型，不再出现过度截断。 */
  .home-growth-strip{min-height:94px!important;padding:0 12px!important}
  .home-growth-strip>strong,.home-growth-strip>span{padding:16px 14px!important}
  .home-growth-strip b{font-size:14px!important}.home-growth-strip small{font-size:10px!important}

  
  #view:has(.view-page[data-view="home"].active) #sideDaily{display:none!important}
  #view:has(.view-page[data-view="home"].active) #homeTasks{display:block!important;min-height:0!important}
  #view:has(.view-page[data-view="home"].active) #sideStats,
  #view:has(.view-page[data-view="home"].active) #sideLeague,
  #view:has(.view-page[data-view="home"].active) #homeTasks{border-radius:22px!important;padding:17px!important;background:#fff!important}
  #view:has(.view-page[data-view="home"].active) #sideStats{min-height:145px!important}
  #view:has(.view-page[data-view="home"].active) #sideLeague{min-height:164px!important}
  #view:has(.view-page[data-view="home"].active) #homeTasks{min-height:250px!important}
  #view:has(.view-page[data-view="home"].active) #homeTasks::before{display:none!important;content:none!important}
  .home-streak-days{font-size:20px!important}
  .streak-week{gap:6px!important}.streak-week i{width:31px!important;height:31px!important;font-size:11px!important}
  .side-assets span{padding:9px 6px!important}.side-assets b{font-size:15px!important}

  .league-rank-row{grid-template-columns:84px minmax(0,1fr)!important;gap:12px!important}
  .home-league-medal{width:78px;height:78px;object-fit:contain;filter:drop-shadow(0 7px 10px rgba(69,54,126,.11))}
  .home-league-copy{min-width:0}
  .home-league-copy .league-rank{display:block;font-size:21px!important}
  .home-league-copy .league-meta{margin-top:4px}
  .league-meta span{font-size:12px!important}.league-meta small{font-size:10px!important;margin-top:5px!important}
  .league-go{height:38px!important;margin-top:10px!important;font-size:11px!important}

  .home-task-card-head{margin-bottom:12px!important}.home-task-card-head b{font-size:16px!important}
  .home-task-list{gap:9px!important}
  .task-mini-v40{grid-template-columns:30px minmax(0,1fr)!important;gap:9px!important;padding:10px!important;border-radius:13px!important}
  .task-mini-v40.done{background:#FAF9FF!important;border-color:#DDD5FB!important}
  .task-mini-icon{width:30px!important;height:30px!important;border-radius:9px!important}
  .task-mini-main{min-width:0}.task-mini-title{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.task-mini-title b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px!important}
  .task-mini-main p{display:-webkit-box;margin:3px 0 0;overflow:hidden;color:#958EA2;font-size:9px;line-height:1.3;-webkit-line-clamp:1;-webkit-box-orient:vertical}
  .task-mini-progress-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;margin-top:7px}.task-mini-progress-row .progress{margin:0!important;height:4px!important}.task-mini-progress-row small{margin:0!important;font-size:8.5px!important;white-space:nowrap}
  .home-task-reward{display:inline-flex;align-items:center;gap:3px;flex:none;color:#735BE9;font-size:8px;font-weight:800}.home-task-reward img{width:14px;height:14px;object-fit:contain}.home-task-reward em{font-style:normal}
  .home-side-task-more{height:38px!important;margin-top:10px!important;font-size:10.5px!important}

  /* 连续大路线仍使用 APP 真实 section.colorValue；只统一节点数字视觉。 */
  .home-expanded-node-number{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;color:#fff!important;font-size:18px!important;font-style:normal!important;font-weight:900!important}
  .home-road-section-band .home-expanded-node.locked .home-expanded-node-number{color:#A7A3AD!important}
}

@media (min-width:901px) and (max-width:1280px){
  #view:has(.view-page[data-view="home"].active){--pc-nav-w:210px;--pc-aside-w:306px}
  #view:has(.view-page[data-view="home"].active) .main-col{padding-left:26px!important;padding-right:18px!important}
  .home-sidebar-tip{display:none!important}
  .view-page[data-view="home"] .home-hero .home-hero-art{right:-10px!important;width:330px!important}.view-page[data-view="home"] .home-hero .home-hero-art img{width:330px!important}
  .view-page[data-view="home"] .stage-banner{grid-template-columns:34px 245px 105px minmax(0,1fr) 34px!important}
  .home-course>button{min-width:130px!important}
}

@media (min-width:901px){
  /* ---------- 欢迎区角色：透明正式素材，不再出现矩形背景块 ---------- */
  .view-page[data-view="home"] .home-hero{
    min-height:132px!important;
    overflow:hidden!important;
    background:
      radial-gradient(circle at 78% 45%,rgba(125,96,239,.12),transparent 20%),
      radial-gradient(circle at 88% 22%,rgba(167,145,255,.10),transparent 14%),
      linear-gradient(90deg,#fff 0%,#fff 58%,#fbf9ff 100%)!important;
  }
  .view-page[data-view="home"] .home-user{width:64%!important}
  .view-page[data-view="home"] .home-hero .home-hero-art{
    display:block!important;opacity:1!important;
    position:absolute!important;right:56px!important;top:-22px!important;
    width:190px!important;height:190px!important;overflow:visible!important;
  }
  .view-page[data-view="home"] .home-hero .home-hero-art img{
    position:absolute!important;inset:0!important;width:190px!important;height:190px!important;
    object-fit:contain!important;object-position:center!important;transform:none!important;
    filter:drop-shadow(0 12px 18px rgba(74,53,151,.16))!important;
  }
  .view-page[data-view="home"] .home-hero .home-hero-art::before,
  .view-page[data-view="home"] .home-hero .home-hero-art::after,
  .view-page[data-view="home"] .home-hero .home-hero-art i{display:none!important}

  /* 左侧学习提示同样只使用透明角色图，尺寸收敛。 */
  #view:has(.view-page[data-view="home"].active) .home-sidebar-tip{
    min-height:244px!important;padding-top:114px!important;
  }
  .home-sidebar-tip img{
    top:2px!important;width:104px!important;height:104px!important;object-fit:contain!important;
  }
  .home-sidebar-tip::before{width:130px!important;height:86px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important}

  /* ---------- 真实今日任务：与任务中心视觉和字段保持一致 ---------- */
  #view:has(.view-page[data-view="home"].active) #homeTasks{min-height:280px!important}
  .home-task-card-head small{color:#8d87a3;font-size:11px;font-weight:800}
  .task-mini-v40{
    grid-template-columns:32px minmax(0,1fr)!important;
    min-height:72px!important;padding:10px 11px!important;
    background:#fff!important;border:1px solid #ece8f7!important;
  }
  .task-mini-v40:hover{border-color:#d5cbfa!important;background:#fcfbff!important}
  .task-mini-v40.done{border-color:#d9d2fa!important;background:#faf8ff!important}
  .task-mini-main{min-width:0!important}
  .task-mini-title{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important}
  .task-mini-title b{font-size:11px!important;color:#2e284c!important;white-space:normal!important;line-height:1.35!important}
  .task-mini-title small{font-size:9px!important;color:#77718e!important;white-space:nowrap!important;font-weight:800!important}
  .task-mini-main p{margin:4px 0 0!important;font-size:9px!important;line-height:1.35!important;color:#9690a4!important;-webkit-line-clamp:2!important}
  .task-mini-progress-row{display:block!important;margin-top:7px!important}
  .task-mini-progress-row .progress{height:4px!important;margin:0!important;background:#eeeaf7!important}
  .task-mini-progress-row .progress i{background:linear-gradient(90deg,#7a5ef0,#684ce7)!important}

  /* ---------- 查看全部关卡：恢复“中间区域纵向滚动” ---------- */
  body.home-road-expanded-open .right-panel{visibility:visible!important;display:flex!important}
  body.home-road-expanded-open .view-page[data-view="home"] .home-main{display:none!important}
  body.home-road-expanded-open .view-page[data-view="home"] .home-grid{display:block!important}

  .home-road-expanded[hidden]{display:none!important}
  .home-road-expanded{
    --road-accent:#7459ef;--road-dark:#5638c7;--road-soft:#f1edff;--road-wash:#faf8ff;
    position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
    width:100%!important;height:calc(100dvh - var(--pc-topbar-h) - 42px)!important;min-height:640px!important;
    display:grid!important;grid-template-rows:106px minmax(0,1fr) 42px!important;
    overflow:hidden!important;border:1px solid #e8e3f4!important;border-radius:24px!important;
    background:linear-gradient(180deg,#fff 0%,#fdfcff 100%)!important;
    box-shadow:0 12px 32px rgba(64,49,122,.07)!important;
    z-index:1!important;
  }

  /* 顶部就是固定浮动的当前部分信息条。 */
  .home-road-expanded-head{
    position:relative!important;z-index:5!important;
    display:grid!important;grid-template-columns:118px minmax(0,1fr) 220px 112px!important;
    align-items:center!important;gap:16px!important;padding:14px 18px!important;
    border-bottom:1px solid #ece8f5!important;
    background:rgba(255,255,255,.96)!important;backdrop-filter:blur(14px)!important;
    box-shadow:0 8px 18px rgba(69,52,128,.035)!important;
  }
  .home-road-expanded-title small{font-size:9px!important;color:var(--road-accent)!important}
  .home-road-expanded-title h2{margin:3px 0 2px!important;font-size:21px!important;color:#292347!important}
  .home-road-expanded-title p{font-size:10px!important;color:#817a92!important}
  .home-road-expanded-progress>div{height:6px!important;background:#ece8f3!important}
  .home-road-expanded-progress>div i{background:var(--road-accent)!important}
  .home-road-back,.home-road-stage-btn{height:40px!important;border-radius:12px!important}

  .home-road-scroll-shell{
    position:relative!important;min-height:0!important;padding:0!important;overflow:hidden!important;
  }
  .home-road-scroller{
    position:relative!important;height:100%!important;display:block!important;
    overflow-x:hidden!important;overflow-y:auto!important;
    padding:0 30px 70px!important;scroll-snap-type:none!important;overscroll-behavior-y:contain!important;
    scrollbar-width:thin!important;scrollbar-color:#cfc5f6 transparent!important;
  }
  .home-road-scroller::-webkit-scrollbar{width:8px!important;height:0!important}
  .home-road-scroller::-webkit-scrollbar-thumb{border-radius:999px!important;background:#cfc5f6!important}

  .home-road-classic{
    width:min(100%,820px)!important;margin:0 auto!important;padding:18px 0 12px!important;
    background:
      radial-gradient(circle at 12% 12%,rgba(121,92,239,.055),transparent 13%),
      radial-gradient(circle at 88% 38%,rgba(121,92,239,.05),transparent 14%),
      transparent!important;
  }

  /* 早期路线的“连续长页面”感：部分不是独立卡片，只是章节分隔。 */
  .home-road-classic-section.duo-section{
    position:relative!important;margin:0!important;padding:0!important;
    overflow:visible!important;border:0!important;border-radius:0!important;
    background:transparent!important;box-shadow:none!important;opacity:1!important;
  }
  .home-road-classic-section + .home-road-classic-section{margin-top:-6px!important}
  .home-road-classic-label{
    min-height:68px!important;display:grid!important;grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr)!important;
    align-items:center!important;gap:16px!important;padding:8px 22px 4px!important;
  }
  .home-road-classic-label>i{height:1px!important;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--section-accent) 34%,#d8d3e2))!important}
  .home-road-classic-label>i:last-child{background:linear-gradient(90deg,color-mix(in srgb,var(--section-accent) 34%,#d8d3e2),transparent)!important}
  .home-road-classic-label span{text-align:center!important;max-width:360px!important}
  .home-road-classic-label b{font-size:13px!important;color:var(--section-accent)!important}
  .home-road-classic-label small{margin-top:4px!important;font-size:9px!important;color:#928b9e!important}

  .home-road-classic-track.duo-road{
    position:relative!important;width:min(100%,720px)!important;max-width:720px!important;margin:0 auto!important;
    overflow:visible!important;
  }
  .home-road-classic-track .duo-route{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;overflow:visible!important;pointer-events:none!important}
  .home-road-classic-track .duo-slot{z-index:3!important}
  .home-road-classic-track .duo-node{
    width:68px!important;height:68px!important;border-radius:50%!important;
    background:var(--section-accent)!important;box-shadow:0 6px 0 var(--section-dark),0 10px 20px rgba(49,35,102,.14)!important;
  }
  .home-road-classic-track .duo-node.current{box-shadow:0 6px 0 var(--section-dark),0 0 0 7px var(--section-soft),0 12px 24px rgba(64,44,138,.18)!important}
  .home-road-classic-track .duo-node.locked{background:#e2dfe7!important;box-shadow:0 5px 0 #cbc7d3,0 8px 16px rgba(45,36,77,.06)!important}
  .home-road-classic-track .duo-node.boss{width:78px!important;height:78px!important}
  .home-road-classic-track .duo-slot .node-label{width:150px!important;margin-top:2px!important}
  .home-road-classic-track .duo-slot .node-label b{font-size:12px!important;color:#3c3546!important}
  .home-road-classic-track .duo-slot .node-label small{display:block!important;margin-top:3px!important;font-size:8px!important;color:#96909e!important}
  .home-road-classic-track .duo-slot.slot-current::before{content:"当前"!important}
  .home-road-classic-track .duo-connector-depth{stroke-width:15!important;opacity:.72!important}
  .home-road-classic-track .duo-connector{stroke-width:7!important;opacity:.85!important}

  .home-road-classic>.duo-stage-finish{
    width:min(100%,720px)!important;margin:8px auto 0!important;border:0!important;border-radius:18px!important;
    background:#faf8ff!important;
  }

  /* 上/下一部分按钮是辅助跳转，不打断纵向主路线。 */
  .home-road-edge{
    position:absolute!important;right:12px!important;left:auto!important;z-index:7!important;
    width:38px!important;height:38px!important;border-radius:50%!important;
    transform:none!important;background:#fff!important;border:1px solid #e5dff5!important;
  }
  .home-road-edge.prev{top:14px!important}
  .home-road-edge.next{top:60px!important}
  .home-road-edge.prev .ui-icon,.home-road-edge.next .ui-icon{transform:rotate(90deg)!important}

  .home-road-expanded-foot{
    display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
    padding:0 18px!important;border-top:1px solid #eeeaf5!important;background:#fff!important;
    font-size:9px!important;color:#8a8498!important;
  }
  .home-road-expanded-foot b::before{content:"当前部分会随滚动自动切换 · ";font-weight:600;color:#a19aaa}
}

@media (min-width:901px) and (max-width:1280px){
  .home-road-expanded{height:calc(100dvh - var(--pc-topbar-h) - 28px)!important}
  .home-road-expanded-head{grid-template-columns:100px minmax(0,1fr) 170px 100px!important;gap:10px!important;padding-inline:12px!important}
  .home-road-scroller{padding-inline:18px!important}
  .home-road-classic{width:min(100%,760px)!important}
  .view-page[data-view="home"] .home-hero .home-hero-art{right:18px!important;width:160px!important;height:160px!important}
  .view-page[data-view="home"] .home-hero .home-hero-art img{width:160px!important;height:160px!important}
}

@media (min-width:901px){
  /* 阶段圆形视觉进一步贴近设计稿：山丘 + 小旗，不使用不匹配的矩形插画。 */
  .view-page[data-view="home"] .stage-banner::before{
    background:
      linear-gradient(#ef6d74,#ef6d74) 60% 34% / 26px 15px no-repeat,
      linear-gradient(#725bc8,#725bc8) 50% 48% / 3px 44px no-repeat,
      radial-gradient(circle at 57% 29%,rgba(255,255,255,.95) 0 7%,transparent 8%),
      radial-gradient(ellipse at 50% 79%,#6351cf 0 16%,#8f80e9 17% 30%,#c9bef9 31% 47%,#eeeaff 48% 64%,#faf8ff 65% 72%,transparent 73%)!important;
  }
  .home-task-empty.syncing::before{
    content:"";display:block;width:22px;height:22px;margin:0 auto 8px;border:2px solid #e6e0f8;border-top-color:#7459ef;border-radius:50%;animation:v42TaskSpin .8s linear infinite;
  }
  @keyframes v42TaskSpin{to{transform:rotate(360deg)}}
}

/* 绝对隐藏规则：后加载的 display:grid/flex !important 不得冲掉 hidden。 */
#trainConfirm[hidden],#trainConfirm.is-hidden,
#teamCampsitePanel[hidden],#teamCampsitePanel.is-hidden,
#trainPlay[hidden],#trainPlay.is-hidden,
#trainMatchPanel[hidden],#trainMatchPanel.is-hidden,
#trainAutoPanel[hidden],#trainAutoPanel.is-hidden,
#coursePanel[hidden],#coursePanel.is-hidden,
#memoryPanel[hidden],#memoryPanel.is-hidden,
#minigamePanel[hidden],#minigamePanel.is-hidden,
#bonusPanel[hidden],#bonusPanel.is-hidden,
#trainBoardWait[hidden],#trainBoardWait.is-hidden,
#trainSettle[hidden],#trainBonusClaim[hidden],
#memoryDoneBtn[hidden],#trainRetryAiBtn[hidden],#trainMatchProgress[hidden],#minigameFrame[hidden]{display:none!important}

@media (min-width:901px){
  #view:has(.view-page[data-view="train"].active){background:#f8f8fc!important}
  #view:has(.view-page[data-view="train"].active) .main-col{padding:0!important;overflow:visible!important}
  .view-page[data-view="train"]{min-height:calc(100vh - 66px)!important;padding:0!important;background:linear-gradient(180deg,#fbfaff 0%,#f7f7fc 100%)!important}
  .view-page[data-view="train"]>.train-stage{
    width:min(1280px,calc(100vw - 64px))!important;max-width:1280px!important;min-height:calc(100vh - 66px)!important;
    margin:0 auto!important;padding:22px 24px 34px!important;box-sizing:border-box!important;
  }

  /* ---------- 关卡确认：单独一屏，不再同时露出空棋盘 ---------- */
  .train-confirm{
    width:min(760px,calc(100% - 40px))!important;margin:46px auto 0!important;padding:34px 38px 32px!important;
    border:1px solid #e8e3f5!important;border-radius:26px!important;background:
      radial-gradient(circle at 100% 0,rgba(116,89,239,.09),transparent 270px),#fff!important;
    box-shadow:0 22px 58px rgba(55,42,102,.10)!important;
  }
  .train-confirm-meta{min-height:30px!important;padding:0 12px!important;border-radius:999px!important;background:#f0ebff!important;color:#6549df!important;font-size:12px!important;font-weight:900!important}
  .train-confirm h1{margin:15px 0 8px!important;color:#201a43!important;font-size:34px!important;letter-spacing:-.03em!important}
  .train-confirm-desc{margin:0 0 22px!important;color:#67617c!important;font-size:14px!important;line-height:1.75!important}
  .train-facts{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin-bottom:18px!important}
  .train-facts span{min-height:70px!important;padding:13px 15px!important;border:1px solid #ece8f4!important;border-radius:15px!important;background:#faf9fd!important}
  .train-facts small{font-size:11px!important;color:#8b8498!important}.train-facts b{font-size:15px!important;color:#25203f!important;line-height:1.45!important;word-break:normal!important}
  .train-ai-note{margin:0!important;padding:12px 14px!important;border-radius:13px!important;font-size:12px!important}
  .train-confirm-actions{margin-top:20px!important;display:grid!important;grid-template-columns:minmax(0,1fr) 126px!important;gap:10px!important}
  .train-confirm-actions button{height:48px!important;border-radius:13px!important;font-size:14px!important}
  #trainConfirmEnter{background:linear-gradient(135deg,#7254eb,#8569f6)!important;box-shadow:0 10px 24px rgba(102,73,222,.19)!important}

  /* ---------- 正式 PC 运行台 ---------- */
  .train-play{
    width:100%!important;max-width:1220px!important;margin:0 auto!important;padding:0!important;
    display:grid!important;grid-template-columns:minmax(560px,760px) minmax(340px,400px)!important;
    grid-template-areas:"head head" "board side"!important;gap:14px 18px!important;align-items:start!important;
  }
  .train-play-head{
    grid-area:head!important;width:100%!important;max-width:none!important;min-height:70px!important;
    display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;
    padding:10px 14px!important;border:1px solid #e9e5f1!important;border-radius:18px!important;background:#fff!important;
    box-shadow:0 7px 20px rgba(49,38,83,.045)!important;
  }
  .train-back-btn{width:40px!important;height:40px!important;border:1px solid #e5e0ed!important;border-radius:12px!important;background:#fff!important;color:#524a66!important}
  .train-title-stack{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:2px 9px!important;align-items:baseline!important}
  .train-mode-eyebrow{grid-column:1/-1!important;color:#6c50e5!important;font-size:10px!important;font-weight:900!important;letter-spacing:.05em!important}
  .train-title-stack>b{color:#211c35!important;font-size:18px!important}.train-play-meta{color:#8d8697!important;font-size:11px!important}
  .train-head-state{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important}
  .train-turn-chip,.train-goal-hint{min-height:32px!important;padding:0 12px!important;border-radius:999px!important;font-size:10px!important;font-weight:900!important}

  .train-board-column{
    grid-area:board!important;width:100%!important;min-width:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:9px!important;
    padding:12px!important;border:1px solid #e9e5ef!important;border-radius:22px!important;background:#fff!important;
    box-shadow:0 14px 34px rgba(51,39,88,.065)!important;
  }
  .train-board-wrap{
    width:min(100%,calc(100vh - 214px),700px)!important;min-width:0!important;max-width:700px!important;aspect-ratio:1/1!important;
    margin:0 auto!important;padding:8px!important;border-radius:20px!important;overflow:hidden!important;
    background:linear-gradient(145deg,#c8954d,#a86e31)!important;box-shadow:0 12px 28px rgba(91,61,21,.15)!important;
  }
  #trainBoard{width:100%!important;height:100%!important;min-width:0!important;aspect-ratio:1/1!important;border-radius:14px!important;background:#e7bd70!important}
  #trainBoard>.go-grid-canvas{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:block!important}

  .train-controls{
    width:min(100%,700px)!important;max-width:700px!important;min-height:48px!important;display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:6px!important;
    padding:6px!important;border:1px solid #ece8f2!important;border-radius:14px!important;background:#faf9fd!important;box-shadow:none!important;
  }
  .train-controls>button,.train-stat{min-height:34px!important;padding:0 9px!important;border-radius:9px!important;font-size:10px!important}
  .train-status{width:min(100%,700px)!important;max-width:700px!important;min-height:22px!important;padding:2px 6px!important;color:#797284!important;font-size:10px!important}

  .train-side-stack{grid-area:side!important;width:100%!important;min-width:0!important;display:grid!important;align-content:start!important;gap:10px!important}
  .train-match-panel,.train-auto-panel,.course-panel,.memory-panel,.minigame-panel,.bonus-panel{
    width:100%!important;max-width:none!important;margin:0!important;border:1px solid #e9e5ef!important;border-radius:20px!important;background:#fff!important;
    box-shadow:0 12px 30px rgba(51,39,88,.055)!important;
  }

  /* ---------- 1~4 类对弈：阵容、轮位、目标 ---------- */
  .train-match-panel{padding:16px!important;overflow:hidden!important}
  .train-match-heading{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important;padding-bottom:13px!important;border-bottom:1px solid #efecf4!important}
  .train-match-heading span{display:block!important;color:#7055e1!important;font-size:9px!important;font-weight:900!important;letter-spacing:.05em!important}
  .train-match-heading b{display:block!important;margin-top:4px!important;color:#2a243c!important;font-size:14px!important;line-height:1.45!important}
  .train-runtime-badge{min-height:26px!important;padding:0 9px!important;border-radius:999px!important;background:#eaf8f0!important;color:#29734d!important;font-size:9px!important;font-weight:850!important}
  .train-roster{margin-top:12px!important;gap:7px!important}.train-role-card{min-height:56px!important;padding:7px!important;border-radius:12px!important}.train-role-avatar{width:38px!important;height:38px!important}.train-role-card b{font-size:10px!important}.train-role-card small{font-size:8px!important}
  .train-current-turn{margin-top:10px!important;min-height:38px!important;border-radius:11px!important;background:#f5f2ff!important;color:#5940cf!important;font-size:11px!important;font-weight:900!important}
  .train-match-facts{margin-top:9px!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}.train-match-facts span{padding:7px 8px!important;border-radius:9px!important;background:#faf9fc!important;color:#716a7c!important;font-size:9px!important}
  .train-match-progress{height:7px!important;margin-top:10px!important;border-radius:999px!important;background:#ece8f3!important;overflow:hidden!important}.train-match-progress i{display:block!important;height:100%!important;background:linear-gradient(90deg,#775ae8,#9279f5)!important}

  /* 珀界棋三策略 */
  .train-auto-panel{padding:14px!important;background:#fbfaff!important}.train-auto-head{margin-bottom:10px!important}.train-auto-head b{font-size:13px!important}.train-auto-head span{font-size:10px!important;color:#817a8c!important}.train-auto-options{display:grid!important;grid-template-columns:1fr!important;gap:7px!important}.train-auto-option{min-height:68px!important;padding:8px!important;border-radius:11px!important}.train-auto-avatar{width:42px!important;height:42px!important}.train-auto-copy b{font-size:10px!important}.train-auto-copy small{font-size:8px!important}.train-auto-option strong{font-size:11px!important;color:#6549df!important}

  /* ---------- 6 类题目：左棋盘 + 右教学面板 ---------- */
  .train-play[data-train-mode="course"]{grid-template-columns:minmax(600px,760px) minmax(360px,400px)!important}
  .train-play[data-train-mode="course"] .train-controls,.train-play[data-train-mode="course"] .train-status{display:none!important}
  .course-panel{padding:0!important;overflow:hidden!important}
  .course-coach-head{display:grid!important;grid-template-columns:62px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;padding:12px 13px 10px!important;background:linear-gradient(135deg,#f5f1ff,#fff 66%)!important;border-bottom:1px solid #efecf4!important}
  .course-coach-avatar{width:58px!important;height:64px!important;object-fit:contain!important;filter:drop-shadow(0 5px 9px rgba(62,47,111,.12))!important}
  .course-coach-copy{min-width:0!important}.course-coach-copy span{display:block!important;color:#7559e7!important;font-size:8px!important;font-weight:900!important;letter-spacing:.05em!important}.course-coach-copy b{display:block!important;margin-top:3px!important;overflow:hidden!important;color:#29233b!important;font-size:14px!important;text-overflow:ellipsis!important;white-space:nowrap!important}.course-coach-copy small{display:block!important;margin-top:3px!important;color:#8e8796!important;font-size:8px!important;line-height:1.35!important}
  .course-head-badges{display:grid!important;gap:5px!important;justify-items:end!important}.course-head-badges span{min-height:26px!important;display:grid!important;place-items:center!important;padding:0 8px!important;border-radius:999px!important;font-size:8px!important;font-weight:850!important}.course-vigor{color:#278050!important;background:#eaf8f0!important}.course-count{color:#5d46d4!important;background:#ece8ff!important}
  .course-progress-track{height:5px!important;background:#eeeaf4!important}.course-progress-track i{background:linear-gradient(90deg,#775ae8,#9279f5)!important}
  .course-turn-badge{min-height:46px!important;margin:12px 13px 0!important;padding:0 12px!important;border-radius:12px!important;font-size:12px!important;font-weight:900!important}
  .course-question-copy{margin:9px 13px 0!important;padding:12px!important;border-radius:13px!important;background:#faf9fc!important}.course-prompt{font-size:13px!important;line-height:1.55!important}.course-guide{margin-top:6px!important;font-size:10px!important;line-height:1.55!important}
  .course-feedback{min-height:50px!important;margin:9px 13px 0!important;padding:10px 11px!important;border-radius:12px!important;font-size:10px!important;line-height:1.5!important}
  .course-side-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin:9px 13px 0!important}.course-side-actions button{min-height:36px!important;padding:0 6px!important;border-radius:9px!important;font-size:8.5px!important}
  .course-next-row{display:grid!important;grid-template-columns:120px minmax(0,1fr)!important;gap:7px!important;padding:9px 13px 13px!important}.course-next-row button{min-height:42px!important;border-radius:11px!important}

  /* ---------- 5 类记忆：棋盘 + 记忆流程 ---------- */
  .train-play[data-train-mode="memory"] .train-controls,.train-play[data-train-mode="memory"] .train-status{display:none!important}
  .memory-panel{padding:16px!important}.memory-head{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;padding-bottom:12px!important;border-bottom:1px solid #efecf4!important}.memory-kicker{display:block!important;color:#7559e7!important;font-size:9px!important;font-weight:900!important;letter-spacing:.05em!important}.memory-head b{display:block!important;margin-top:4px!important;color:#29233b!important;font-size:15px!important}.memory-head small{display:block!important;margin-top:3px!important;color:#8e8796!important;font-size:9px!important}.memory-progress{min-height:28px!important;display:grid!important;place-items:center!important;padding:0 9px!important;border-radius:999px!important;background:#eeeaff!important;color:#6247d9!important;font-size:9px!important;font-weight:900!important}.memory-phase-row{margin-top:13px!important;padding:10px!important;border-radius:11px!important;background:#faf9fc!important}.memory-phase-row>span{font-size:10px!important}.memory-hint{min-height:62px!important;margin-top:10px!important;padding:11px!important;border-radius:11px!important;background:#f7f5fb!important;color:#6f687a!important;font-size:10px!important;line-height:1.55!important}.memory-actions{margin-top:9px!important;display:grid!important;grid-template-columns:1fr!important;gap:7px!important}.memory-actions button{min-height:41px!important;border-radius:10px!important}

  /* ---------- 7 类小游戏：整块运行，不显示空棋盘 ---------- */
  .train-play[data-train-mode="minigame"],.train-play[data-train-mode="bonus"]{grid-template-columns:1fr!important;grid-template-areas:"head" "side"!important;max-width:1120px!important}
  .train-play[data-train-mode="minigame"] .train-board-column,.train-play[data-train-mode="bonus"] .train-board-column{display:none!important}
  .train-play[data-train-mode="minigame"] .train-side-stack,.train-play[data-train-mode="bonus"] .train-side-stack{grid-area:side!important}
  .minigame-panel{min-height:0!important;padding:14px!important}.minigame-head{min-height:58px!important;padding:0 4px 10px!important;border-bottom:1px solid #efecf4!important}.minigame-frame{width:100%!important;height:min(70vh,680px)!important;min-height:460px!important;margin-top:10px!important;border:1px solid #ebe7f2!important;border-radius:14px!important;background:#fff!important}.minigame-runtime{margin-top:10px!important;border-radius:11px!important;background:#f6f4fb!important;color:#665f74!important;font-size:10px!important}

  /* ---------- 8 类宝箱：单卡片，不保留棋盘占位 ---------- */
  .bonus-panel{width:min(620px,100%)!important;min-height:420px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;margin:18px auto 0!important;padding:42px 36px!important;text-align:center!important;background:radial-gradient(circle at 50% 6%,#fff3c8,#fff 58%)!important}.bonus-chest{width:90px!important;height:90px!important;display:grid!important;place-items:center!important;margin-bottom:14px!important;border-radius:28px!important;background:#fff0bf!important;color:#a66b0e!important}.bonus-chest .ui-icon{width:46px!important;height:46px!important}.bonus-kicker{font-size:10px!important}.bonus-panel h3{margin:7px 0 9px!important;font-size:25px!important}.bonus-panel p{max-width:460px!important;font-size:12px!important;line-height:1.7!important}.bonus-panel .btn-primary{min-width:190px!important;min-height:46px!important;margin-top:10px!important;border-radius:12px!important}

  /* ---------- 2v2 自由训练组队准备 ---------- */
  .team-campsite{width:min(1000px,calc(100% - 20px))!important;margin:26px auto 0!important;padding:26px!important;border:1px solid #e8e3f1!important;border-radius:24px!important;background:#fff!important;box-shadow:0 18px 44px rgba(50,39,88,.08)!important}.team-campsite-head{margin-bottom:20px!important}.team-campsite-head h2{font-size:25px!important}.team-campsite-head p{font-size:12px!important}.team-draft-grid{gap:10px!important}.team-draft-slot{min-height:76px!important;border-radius:15px!important}
}

@media (min-width:901px) and (max-width:1180px){
  .view-page[data-view="train"]>.train-stage{width:calc(100vw - 32px)!important;padding-inline:14px!important}
  .train-play{grid-template-columns:minmax(500px,1fr) 340px!important;gap:12px!important}
  .train-board-wrap{width:min(100%,calc(100vh - 220px),620px)!important}
  .train-play[data-train-mode="course"]{grid-template-columns:minmax(500px,1fr) 350px!important}
}

@media (max-width:900px){
  #trainConfirm[hidden],#trainPlay[hidden],#teamCampsitePanel[hidden],#trainMatchPanel[hidden],#trainAutoPanel[hidden],#coursePanel[hidden],#memoryPanel[hidden],#minigamePanel[hidden],#bonusPanel[hidden],#trainBoardWait[hidden]{display:none!important}
}

@media (min-width:901px){
  .view-page[data-view="league"]{
    --lq44:#7459ef;
    --lq44-dark:#29224f;
    --lq44-soft:#f3efff;
    --lq44-line:#e8e3f5;
    --lq44-muted:#77718f;
    position:relative;
    min-height:calc(100vh - var(--top-h,64px));
    background:
      radial-gradient(circle at 70% 12%,rgba(128,98,239,.08),transparent 23%),
      linear-gradient(180deg,#fbfaff 0%,#f8f7fc 100%);
  }
  .view-page[data-view="league"]::after{
    content:"";
    position:absolute;
    right:-35px;
    bottom:-10px;
    width:570px;
    height:315px;
    background:url("/web/assets/brand/generated/home-monkey-focus.webp") center 40% / cover no-repeat;
    opacity:.20;
    mix-blend-mode:multiply;
    mask-image:linear-gradient(135deg,transparent 0 14%,#000 40% 100%);
    -webkit-mask-image:linear-gradient(135deg,transparent 0 14%,#000 40% 100%);
    pointer-events:none;
    z-index:0;
  }
  .league-page{
    position:relative;
    z-index:1;
    width:min(100%,1320px)!important;
    max-width:1320px!important;
    margin:0 auto!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 320px!important;
    grid-template-areas:
      "head head"
      "progress progress"
      "week battle"!important;
    gap:20px!important;
    padding:26px 10px 56px!important;
    align-items:start!important;
  }

  /* 页头：设计稿不是大卡片，而是页面标题带历史入口 */
  .league-header{
    grid-area:head!important;
    min-height:72px!important;
    padding:2px 6px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .league-header-main{gap:14px!important}
  .league-header-icon{
    width:52px!important;height:52px!important;border-radius:16px!important;
    color:#6f55e9!important;
    background:#f1edff!important;
    box-shadow:none!important;
  }
  .league-header-icon .ui-icon{width:27px!important;height:27px!important}
  .league-header-copy h2{font-size:27px!important;line-height:1.15!important;color:#211b49!important;font-weight:900!important}
  .league-header-copy p{margin-top:5px!important;font-size:12px!important;color:#77718f!important;font-weight:650!important}
  .league-history-btn{
    height:42px!important;padding:0 18px!important;border-radius:12px!important;
    border:1px solid #ddd8e9!important;background:#fff!important;color:#3c3659!important;
    box-shadow:0 5px 14px rgba(52,42,89,.05)!important;font-weight:800!important;
  }

  /* 顶部段位 / 已战 / 胜场 / 晋级 */
  .league-progress{
    grid-area:progress!important;
    padding:0!important;
    overflow:hidden!important;
    border:1px solid #ded6fb!important;
    border-radius:24px!important;
    background:rgba(255,255,255,.93)!important;
    box-shadow:0 12px 28px rgba(75,58,130,.045)!important;
  }
  .league-progress-row{
    min-height:116px!important;
    display:grid!important;
    grid-template-columns:210px 1fr 1fr 1.3fr!important;
    gap:0!important;
    align-items:center!important;
  }
  .league-rank-chip,.league-fought,.league-promotion,.league-promotion-hint{
    min-width:0!important;height:72px!important;margin:0!important;padding:0 22px!important;
    border-right:1px solid #eeeaf6!important;justify-content:center!important;
  }
  .league-promotion-hint{border-right:0!important}
  .league-rank-chip{gap:14px!important}
  .league-rank-icon{
    width:54px!important;height:54px!important;border-radius:16px!important;
    background:linear-gradient(145deg,#815ff6,#6643e8)!important;color:#fff!important;
    box-shadow:0 9px 20px rgba(103,72,224,.23)!important;
  }
  .league-rank-chip small,.league-fought small,.league-promotion small{font-size:11px!important;color:#817b94!important}
  .league-rank-chip b{font-size:21px!important;color:#282248!important}
  .league-fought b,.league-promotion b{font-size:18px!important;color:#252044!important}
  .league-fought .progress,.league-promotion .progress{height:7px!important;border-radius:999px!important;background:#f0edf6!important}
  .league-fought .progress i,.league-promotion .progress i{border-radius:999px!important;background:linear-gradient(90deg,#7558ef,#9277f7)!important}
  .league-promotion-hint b{font-size:14px!important;color:#6650df!important;font-weight:900!important}
  .league-promotion-hint small{font-size:10.5px!important;line-height:1.45!important;color:#858096!important}

  /* 主赛程 + 右侧战绩榜 */
  .league-week{
    grid-area:week!important;
    min-height:458px!important;
    padding:26px 24px 24px!important;
    border:1px solid #e6e1f0!important;
    border-radius:24px!important;
    background:rgba(255,255,255,.94)!important;
    box-shadow:0 11px 26px rgba(51,42,83,.04)!important;
  }
  .league-week .league-section-head{padding:0 0 10px!important;align-items:center!important}
  .league-week .league-section-head h3{display:none!important}
  .league-week #leaguePlanSource{
    display:flex!important;align-items:center!important;gap:8px!important;
    font-size:12px!important;color:#817a96!important;font-weight:700!important;
  }
  .league-week #leaguePlanSource::before,.league-week #leaguePlanSource::after{content:"✦";color:#8a6cf3;font-size:11px}

  .league-opponents-v44{
    position:relative!important;
    display:grid!important;
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    gap:12px!important;
    padding:34px 0 0!important;
    min-width:0!important;
  }
  .league-opponents-v44::before{
    content:"";
    position:absolute;
    left:4%;right:4%;top:90px;
    border-top:2px dashed #ddd8ea;
    z-index:0;
  }
  .league-match-slot{
    position:relative;z-index:1;
    min-width:0;
    display:grid;
    grid-template-rows:28px 38px 20px 1fr;
    align-items:center;
    justify-items:center;
    padding:0;
    border:0;
    background:transparent;
    color:inherit;
    cursor:pointer;
  }
  .league-day-label{font-size:13px;color:#6e6882;font-weight:800;white-space:nowrap}
  .league-match-slot.current .league-day-label{color:#6d50ea;font-weight:900}
  .league-timeline-node{
    position:relative;z-index:3;
    width:24px;height:24px;display:grid;place-items:center;
    border:5px solid #fff;border-radius:50%;
    background:#b8b4c6;color:#fff;
    box-shadow:0 0 0 1px #ded9e8;
    font-size:12px;font-weight:900;
  }
  .league-timeline-node .ui-icon{width:12px;height:12px}
  .league-match-slot.win .league-timeline-node{background:#27ad68;box-shadow:0 4px 10px rgba(39,173,104,.24)}
  .league-match-slot.done .league-timeline-node{background:#d96c75;box-shadow:0 4px 10px rgba(217,108,117,.19)}
  .league-match-slot.current .league-timeline-node{
    width:28px;height:28px;background:#fff;border:7px solid #7356ed;
    box-shadow:0 0 0 4px #efeaff,0 5px 13px rgba(104,75,226,.20);
  }
  .league-match-slot.current .league-timeline-node::after{
    content:"";position:absolute;left:50%;top:27px;transform:translateX(-50%);
    border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:10px solid #7356ed;
  }
  .league-timeline-stem{width:1px;height:20px;background:#dcd8e6}
  .league-match-slot.current .league-timeline-stem{background:#7356ed}
  .league-match-card{
    width:100%;min-height:174px;
    display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
    gap:8px;padding:14px 7px 12px;
    border:1px solid #e1ddea;border-radius:14px;
    background:#fff;box-shadow:0 8px 18px rgba(47,40,67,.045);
    transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
  }
  .league-match-slot:hover .league-match-card{transform:translateY(-2px);border-color:#b8a9f8;box-shadow:0 12px 23px rgba(78,60,149,.10)}
  .league-match-slot.current .league-match-card{border-color:#856af2;box-shadow:0 0 0 1px rgba(117,86,237,.08),0 12px 25px rgba(78,58,158,.10)}
  .league-opponent-avatar-v44{
    width:74px;height:74px;display:grid;place-items:center;overflow:hidden;
    border-radius:50%;background:#faf9fd;
  }
  .league-opponent-avatar-v44 img,.league-opponent-avatar-v44 .mentor-portrait{width:100%;height:100%;object-fit:cover;border-radius:50%}
  .league-match-card>b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#302a4d;font-size:12px;font-weight:900}
  .league-result-pill{
    margin-top:auto;min-width:56px;height:25px;display:inline-flex;align-items:center;justify-content:center;
    padding:0 10px;border-radius:999px;background:#f1eff4;color:#868092;font-size:10.5px;font-weight:850;
  }
  .league-result-pill.win{background:#e8f8ee;color:#299c5e}
  .league-result-pill.done{background:#fff0f1;color:#cc626b}
  .league-result-pill.current{background:#f0ebff;color:#6f53e8}

  .league-lower{grid-area:battle!important;display:block!important;min-width:0!important}
  .league-battle{
    min-height:272px!important;padding:20px 18px!important;
    border:1px solid #e5e0ee!important;border-radius:24px!important;
    background:rgba(255,255,255,.95)!important;
    box-shadow:0 11px 26px rgba(51,42,83,.04)!important;
  }
  .league-battle .league-section-head{padding:0 0 13px!important;border-bottom:1px solid #efecf4!important;align-items:center!important}
  .league-battle .league-section-head h3{font-size:19px!important;color:#272142!important;font-weight:900!important}
  #leagueBattleSub{padding:5px 9px;border-radius:9px;background:#f7f4fc;color:#827b96!important;font-size:10.5px!important}
  .weekly-battle-list{display:grid;gap:10px;padding-top:14px}
  .weekly-battle-rank-row-v44{
    min-height:66px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;
    padding:10px 12px;border:1px solid #e9e5f0;border-radius:13px;background:#fff;
  }
  .weekly-battle-rank-row-v44.self{border-color:#8e75f4;background:linear-gradient(90deg,#fff,#faf7ff)}
  .weekly-rank-medal{font-size:22px;text-align:center}
  .weekly-rank-copy{min-width:0}
  .weekly-rank-copy b{display:flex;align-items:center;gap:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#292345;font-size:13px}
  .weekly-rank-copy b em{font-style:normal;font-size:9px;padding:2px 5px;border-radius:999px;background:#7659ed;color:#fff}
  .weekly-rank-copy small{display:block;margin-top:4px;color:#8b859a;font-size:10.5px}
  .weekly-battle-rank-row-v44 strong{font-size:15px;color:#292345}

  /* 空榜时也保持目标稿的紧凑居中，不出现大块无意义空白。 */
  .league-battle .empty-state{min-height:170px!important;padding:30px 10px!important}
  .league-battle .empty-state .empty-icon{width:46px!important;height:46px!important;border-radius:14px!important;background:#f2edff!important;color:#6f52e9!important}
  .league-battle .empty-state b{font-size:14px!important}
  .league-battle .empty-state small{font-size:11px!important}
}

@media (min-width:901px) and (max-width:1250px){
  .league-page{grid-template-columns:minmax(0,1fr) 270px!important;gap:14px!important}
  .league-progress-row{grid-template-columns:180px 1fr 1fr 1.25fr!important}
  .league-rank-chip,.league-fought,.league-promotion,.league-promotion-hint{padding-inline:15px!important}
  .league-opponents-v44{gap:7px!important}
  .league-opponent-avatar-v44{width:58px!important;height:58px!important}
  .league-match-card{min-height:153px!important}
}

@media (max-width:900px){
  .league-match-slot{display:flex;align-items:center;gap:8px}
}

@media (min-width:901px){
  /* 页面画布：更贴近设计稿比例，充分利用 PC 中间区域。 */
  #view:has(.view-page[data-view="study"].active){background:#fbfbfe}
  #view:has(.view-page[data-view="study"].active) .main-col{
    padding:28px 26px 34px!important;
  }
  

  /* 顶部题库 / 魅力 / 任务条 */
  
  
  
  
  
  
  
  
  
  
  .stp-bags{transform:scale(1.06);transform-origin:left center}
  

  /* 主体：目标图约 950 + 370，避免当前实现整体偏小。 */
  

  /* 主训练卡 */
  
  
  
  

  
  
  
  
  

  /* 三位真实导师：中心主将更大，左右辅助角色独立圆形舞台。 */
  
  
  
  
  

  
  
  
  
  
  
  
  
  
  
  

  /* 下半部训练计划 */
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

  /* 右侧智能训练卡 */
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}

@media (min-width:901px) and (max-width:1280px){
  
  
  
  
  
  
}

@media (min-width:901px){
  #view:has(.view-page[data-view="study"].active) .side-nav-btn[data-view="study"].active{
    color:#fff!important;
    background:linear-gradient(135deg,#6f4ee9,#8d70f6)!important;
    box-shadow:0 10px 22px rgba(107,78,221,.16)!important;
  }
  #view:has(.view-page[data-view="study"].active) .side-nav-btn[data-view="study"].active .ui-icon{color:#fff!important}
  #view:has(.view-page[data-view="study"].active) .side-nav{
    background:
      radial-gradient(circle at 55% 92%,rgba(128,98,237,.09),transparent 18%),
      #fff!important;
  }
  
}

/* 棋谱完整过程被提升到 body 后仍保持 PC 二级研究工作区坐标。 */
.library-detail-layer{
  z-index:190!important;
  isolation:isolate;
}
body.library-detail-open{overflow:hidden!important}
body.library-detail-open .library-detail-layer.show{display:block!important}
.library-detail-layer .library-detail-surface{position:relative;z-index:1}

/* 确保右侧“打开棋谱 / 继续研究此局”是真实可点击主行动，不被装饰层覆盖。 */
#libraryInspector .lib-inspector-open{
  position:relative!important;
  z-index:8!important;
  pointer-events:auto!important;
  cursor:pointer!important;
}
.library-page-v13::before,
.library-page-v13::after,
.library-inspector::before,
.library-inspector::after{pointer-events:none!important}

@media (min-width:901px){
  /* 独立单挑页：保留 PC 顶栏和左导航，不再被 .league-page overflow 裁在页面底部。 */
  .lq-play-mask{
    position:fixed!important;
    top:var(--pc-topbar-h,66px)!important;
    left:var(--pc-nav-w,208px)!important;
    right:0!important;
    bottom:0!important;
    z-index:220!important;
    padding:0!important;
    align-items:stretch!important;
    justify-content:stretch!important;
    background:#f8f7fc!important;
    backdrop-filter:none!important;
    overflow:hidden!important;
  }
  .lq-play-mask.show{display:block!important}
  body.league-duel-open{overflow:hidden!important}

  .lq-duel-page{
    width:100%;height:100%;min-height:0;
    display:grid;grid-template-rows:72px minmax(0,1fr);
    overflow:hidden;
    color:#27223d;
    background:
      radial-gradient(circle at 77% 12%,rgba(118,88,235,.08),transparent 25%),
      linear-gradient(180deg,#faf9fe 0%,#f6f6fb 100%);
  }
  .lq-duel-toolbar{
    min-width:0;display:grid;grid-template-columns:180px minmax(0,1fr) auto;align-items:center;gap:18px;
    padding:10px 26px;border-bottom:1px solid #e7e3ef;background:rgba(255,255,255,.94);backdrop-filter:blur(15px);
  }
  .lq-duel-back{
    height:42px;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;
    border:1px solid #e1ddeb;border-radius:12px;background:#fff;color:#514a65;font-size:13px;font-weight:850;
    box-shadow:0 5px 13px rgba(54,43,88,.04);
  }
  .lq-duel-back:hover{border-color:#a896f2;color:#6d54e6;background:#faf8ff}
  .lq-duel-back .ui-icon{width:16px;height:16px}
  .lq-duel-heading{min-width:0;display:flex;flex-direction:column;gap:2px}
  .lq-duel-heading small{color:#8068e8;font-size:9px;font-weight:900;letter-spacing:.12em}
  .lq-duel-heading b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#272149;font-size:20px;line-height:1.28}
  .lq-duel-heading span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#858095;font-size:11px}
  .lq-duel-toolbar-state{display:flex;align-items:center;gap:8px}
  .lq-duel-toolbar-state span{padding:8px 11px;border:1px solid #e8e4f0;border-radius:10px;background:#fff;color:#696277;font-size:11px;font-weight:800;white-space:nowrap}

  .lq-duel-shell{
    min-height:0;width:min(100%,1380px);margin:0 auto;
    display:grid;grid-template-columns:minmax(620px,1fr) 350px;gap:24px;
    padding:22px 28px 26px;overflow:auto;
  }
  .lq-duel-board-column{
    min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;gap:14px;
    padding:16px 18px 20px;border:1px solid #e6e2ee;border-radius:22px;background:#fff;
    box-shadow:0 14px 36px rgba(48,38,82,.055);
  }
  .lq-duel-players{
    width:min(100%,760px);display:grid;grid-template-columns:minmax(0,1fr) 115px minmax(0,1fr);align-items:center;gap:14px;
  }
  .lq-player-card{
    min-width:0;min-height:72px;display:flex;align-items:center;gap:11px;padding:9px 13px;
    border:1px solid #ebe7f2;border-radius:16px;background:#fbfaff;
  }
  .lq-player-card .lq-player-clock{color:#8a8495;font-size:9.5px;font-weight:800;letter-spacing:.02em}
  .lq-player-card.active .lq-player-clock{color:#674edf}
  .lq-player-card.ai{flex-direction:row-reverse;text-align:right}
  .lq-player-avatar{
    width:52px;height:52px;flex:none;display:grid;place-items:center;overflow:hidden;border-radius:50%;
    color:#fff;background:linear-gradient(145deg,#8d74f6,#6d51e9);font-size:12px;font-weight:900;
    border:3px solid #fff;box-shadow:0 0 0 2px #e7e0ff,0 5px 12px rgba(76,58,143,.12);
  }
  .lq-player-avatar img{width:100%;height:100%;object-fit:cover}
  .lq-player-card>div{min-width:0;display:flex;flex-direction:column;gap:2px}
  .lq-player-card small{color:#938ca0;font-size:9px;font-weight:750}
  .lq-player-card b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#332d46;font-size:13px}
  .lq-player-card em{color:#765be2;font-size:10px;font-style:normal;font-weight:850}
  .lq-duel-vs{text-align:center}
  .lq-duel-vs>span{display:block;color:#8a81aa;font-size:10px;font-weight:900;letter-spacing:.12em}
  .lq-duel-vs>b{display:block;margin-top:5px;color:#684fe0;font-size:12px;line-height:1.35}

  .lq-play-board-wrap{
    width:min(68vh,720px,calc(100vw - 690px))!important;
    max-width:100%!important;aspect-ratio:1/1!important;margin:0 auto!important;
    padding:12px!important;border-radius:18px!important;
    background:linear-gradient(145deg,#d8a556,#b77b35)!important;
    box-shadow:0 18px 38px rgba(86,53,20,.17),inset 0 0 0 1px rgba(92,54,20,.16)!important;
  }
  .lq-play-board-wrap .lq-board{width:100%!important;height:100%!important;aspect-ratio:1/1!important;border-radius:8px!important;overflow:hidden!important}
  .lq-board-wait{inset:12px!important;border-radius:8px!important}

  .lq-duel-side{min-width:0;display:flex;flex-direction:column;gap:14px}
  .lq-duel-status-card,.lq-duel-info-card,.lq-duel-actions,.lq-duel-note{
    border:1px solid #e7e3ef;border-radius:18px;background:#fff;box-shadow:0 10px 26px rgba(49,40,78,.04);
  }
  .lq-duel-status-card{padding:20px}
  .lq-duel-status-card small{color:#8068e8;font-size:10px;font-weight:900;letter-spacing:.06em}
  .lq-duel-status-card h2{margin:8px 0 7px;color:#292349;font-size:22px;line-height:1.3}
  .lq-duel-status-card p{margin:0;color:#8a8495;font-size:11px;line-height:1.6}
  .lq-duel-info-card{display:grid;grid-template-columns:repeat(3,1fr);overflow:hidden}
  .lq-duel-info-card>div{padding:15px 8px;text-align:center;border-right:1px solid #eeeaf3}
  .lq-duel-info-card>div:last-child{border-right:0}
  .lq-duel-info-card small{display:block;color:#9690a1;font-size:9px}
  .lq-duel-info-card b{display:block;margin-top:5px;color:#3b354b;font-size:11px}
  .lq-duel-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:13px}
  .lq-duel-actions button{
    min-height:46px;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 12px;
    border:1px solid #e5e1eb;border-radius:12px;background:#faf9fc;color:#5a5365;font-size:12px;font-weight:850;
  }
  .lq-duel-actions button:hover:not(:disabled){border-color:#a999ef;background:#f7f3ff;color:#674edf}
  .lq-duel-actions button:disabled{opacity:.45;cursor:not-allowed}
  .lq-duel-actions button .ui-icon{width:15px;height:15px}
  .lq-duel-actions .lq-danger{color:#cc4a45;background:#fff7f6;border-color:#f1d4d1}
  .lq-duel-actions .lq-danger:hover:not(:disabled){color:#fff;background:#d85650;border-color:#d85650}
  #lqRetryAiBtn{grid-column:1/-1;background:#fff4e7;color:#9a5a13;border-color:#f0d2ae}
  /* 形势券为 0：不禁用，改为可点击的「缺券待购」态，点击后引导用魂珀购买 */
  .lq-duel-actions #lqSituationBtn.is-situation-empty{background:#fff8f0;color:#9a5a13;border-color:#f0cda6}
  .lq-duel-actions #lqSituationBtn.is-situation-empty .ui-icon{color:#c2701a}
  .lq-duel-note{display:flex;align-items:flex-start;gap:9px;padding:14px 15px;color:#7e778c;font-size:10.5px;line-height:1.55}
  .lq-duel-note .ui-icon{width:17px;height:17px;flex:none;color:#7a60e6}

  /* 旧 modal 结构不再参与布局。 */
  .lq-play-mask>.lq-duel-page+.modal-card{display:none!important}
  .lq-result-mask{z-index:240!important}
}

@media (min-width:901px) and (max-width:1240px){
  .lq-duel-shell{grid-template-columns:minmax(520px,1fr) 310px;gap:16px;padding-inline:18px}
  .lq-play-board-wrap{width:min(62vh,610px,calc(100vw - 590px))!important}
  .lq-duel-toolbar{grid-template-columns:145px minmax(0,1fr) auto;padding-inline:18px}
}

@media (max-width:900px){
  .lq-play-mask{z-index:220!important;padding:0!important;background:#f8f7fc!important}
  .lq-play-mask.show{display:block!important}
  .lq-duel-page{min-height:100dvh;display:flex;flex-direction:column;background:#f8f7fc}
  .lq-duel-toolbar{display:flex;align-items:center;gap:10px;padding:10px;background:#fff;border-bottom:1px solid #eeeaf3}
  .lq-duel-back{padding:8px;border:1px solid #e5e1ec;border-radius:10px;background:#fff}
  .lq-duel-back span{display:none}.lq-duel-toolbar-state{display:none}.lq-duel-heading{min-width:0}.lq-duel-heading small{display:none}.lq-duel-heading b{font-size:15px}.lq-duel-heading span{font-size:10px}
  .lq-duel-shell{display:flex;flex-direction:column;gap:10px;padding:10px;overflow:auto}
  .lq-duel-board-column{display:flex;flex-direction:column;gap:9px;padding:9px;border:1px solid #e8e4ef;border-radius:16px;background:#fff}
  .lq-duel-players{display:grid;grid-template-columns:1fr 70px 1fr;gap:6px}.lq-player-card{display:flex;align-items:center;gap:6px}.lq-player-card.ai{flex-direction:row-reverse;text-align:right}.lq-player-avatar{width:38px;height:38px;border-radius:50%;overflow:hidden}.lq-player-avatar img{width:100%;height:100%;object-fit:cover}.lq-player-card small{display:none}.lq-player-card .lq-player-clock{display:none}.lq-player-card b{font-size:10px}.lq-player-card em{font-size:8px}.lq-duel-vs{text-align:center;font-size:8px}
  .lq-play-board-wrap{width:min(92vw,62dvh)!important;aspect-ratio:1/1!important;margin:auto!important;padding:8px!important}
  .lq-duel-side{display:grid;gap:8px}.lq-duel-status-card,.lq-duel-info-card,.lq-duel-actions,.lq-duel-note{padding:10px;border:1px solid #e8e4ef;border-radius:14px;background:#fff}.lq-duel-status-card h2{margin:4px 0;font-size:16px}.lq-duel-status-card p{font-size:9px}.lq-duel-info-card{display:grid;grid-template-columns:repeat(3,1fr);text-align:center}.lq-duel-info-card small{display:block;font-size:8px}.lq-duel-info-card b{font-size:9px}.lq-duel-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.lq-duel-actions button{min-height:40px;border:1px solid #e5e1eb;border-radius:10px;background:#faf9fc}.lq-duel-note{font-size:9px}
}

@media (min-width:901px){
  .view-page[data-view="league"]{
    --lq47:#7459ef;
    --lq47-2:#8b72f5;
    --lq47-ink:#211b49;
    --lq47-muted:#7c7590;
    --lq47-line:#e6e0f3;
    min-height:calc(100vh - 64px)!important;
    background:
      radial-gradient(circle at 78% 12%,rgba(134,104,238,.06),transparent 23%),
      linear-gradient(180deg,#fcfbff 0%,#faf9fe 58%,#f9f7fd 100%)!important;
    overflow:hidden!important;
  }
  .view-page[data-view="league"]::after{content:none!important}

  .league-page{
    width:min(100%,1388px)!important;
    max-width:1388px!important;
    min-height:760px!important;
    margin:0 auto!important;
    padding:24px 12px 108px!important;
    grid-template-columns:minmax(0,1fr) 350px!important;
    grid-template-areas:
      "head head"
      "progress progress"
      "week battle"!important;
    column-gap:20px!important;
    row-gap:20px!important;
    position:relative!important;
    isolation:isolate!important;
  }
  .league-page::before{
    content:"";
    position:absolute;
    left:-80px;right:-80px;bottom:-38px;
    height:300px;
    background:
      radial-gradient(ellipse at 18% 96%,rgba(199,188,248,.27),transparent 40%),
      radial-gradient(ellipse at 63% 102%,rgba(210,199,252,.30),transparent 43%),
      linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(245,241,255,.43) 58%,rgba(232,224,255,.54) 100%);
    z-index:-3;
    pointer-events:none;
  }
  .league-page::after{
    content:"";
    position:absolute;
    right:-6px;
    bottom:-3px;
    width:450px;
    height:298px;
    background:url("/web/assets/brand/generated/league-reference-scene.webp") right bottom/contain no-repeat;
    z-index:-1;
    pointer-events:none;
  }

  /* 页头 */
  .league-header{
    grid-area:head!important;
    min-height:86px!important;
    padding:6px 8px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
  }
  .league-header-main{gap:15px!important}
  .league-header-icon{
    width:58px!important;height:58px!important;border-radius:17px!important;
    background:#f1edff!important;color:#6f55e9!important;
  }
  .league-header-icon .ui-icon{width:29px!important;height:29px!important}
  .league-header-copy h2{font-size:30px!important;letter-spacing:-.02em!important;color:var(--lq47-ink)!important}
  .league-header-copy p{margin-top:5px!important;font-size:13px!important;color:#79728c!important}
  .league-history-btn{
    height:46px!important;padding:0 20px!important;border-radius:12px!important;
    border:1px solid #ddd7e9!important;background:#fff!important;color:#342e52!important;
    font-size:14px!important;box-shadow:0 7px 17px rgba(46,37,75,.07)!important;
  }

  /* 段位进度 */
  .league-progress{
    grid-area:progress!important;
    border:1px solid #ded6fb!important;
    border-radius:25px!important;
    overflow:hidden!important;
    background:linear-gradient(90deg,#fdfcff 0%,#fff 55%,#fbf8ff 100%)!important;
    box-shadow:0 11px 30px rgba(80,61,141,.045)!important;
  }
  .league-progress-row{
    min-height:120px!important;
    grid-template-columns:235px 1fr 1fr 1.35fr!important;
    align-items:center!important;
  }
  .league-rank-chip,.league-fought,.league-promotion,.league-promotion-hint{
    height:76px!important;
    padding:0 26px!important;
    border-right:1px solid #ece8f4!important;
  }
  .league-promotion-hint{border-right:0!important}
  .league-rank-chip{justify-content:flex-start!important;gap:16px!important}
  .league-rank-icon{
    width:66px!important;height:66px!important;border-radius:18px!important;
    background:linear-gradient(145deg,#815ff6,#6744e9)!important;
    box-shadow:0 11px 24px rgba(103,72,224,.25)!important;
  }
  .league-rank-icon .ui-icon{width:30px!important;height:30px!important}
  .league-rank-chip small,.league-fought small,.league-promotion small{font-size:11px!important;color:#7f788f!important}
  .league-rank-chip b{font-size:24px!important;color:#242044!important}
  .league-fought,.league-promotion{display:grid!important;grid-template-rows:auto auto 8px!important;align-content:center!important;gap:6px!important}
  .league-fought b,.league-promotion b{font-size:20px!important;color:#211d41!important}
  .league-fought .progress,.league-promotion .progress{height:8px!important;background:#eeebf4!important}
  .league-fought .progress i,.league-promotion .progress i{background:linear-gradient(90deg,#7255ed,#8f74f6)!important}
  .league-promotion-hint{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important}
  .league-promotion-hint b{font-size:15px!important;color:#6b51e6!important;line-height:1.35!important}
  .league-promotion-hint small{margin-top:4px!important;font-size:11px!important;color:#80798f!important;line-height:1.45!important}

  /* 主赛程 */
  .league-week{
    grid-area:week!important;
    min-height:468px!important;
    padding:27px 26px 30px!important;
    border:1px solid #e3dfee!important;
    border-radius:24px!important;
    background:rgba(255,255,255,.965)!important;
    box-shadow:0 12px 30px rgba(54,44,84,.045)!important;
  }
  .league-week .league-section-head{height:34px!important;padding:0!important;margin:0!important}
  .league-week #leaguePlanSource{font-size:13px!important;color:#7c758d!important;font-weight:700!important}
  .league-week #leaguePlanSource::before,.league-week #leaguePlanSource::after{color:#8064ef!important;font-size:12px!important}

  .league-opponents-v44{
    min-height:360px!important;
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    gap:12px!important;
    padding:44px 0 0!important;
  }
  .league-opponents-v44::before{
    left:4.1%!important;right:4.1%!important;top:103px!important;
    border-top:2px dashed #dcd7e7!important;
  }
  .league-match-slot{
    grid-template-rows:30px 40px 22px 1fr!important;
  }
  .league-day-label{font-size:14px!important;color:#69637d!important}
  .league-match-slot.current .league-day-label{color:#6d50ea!important}
  .league-timeline-node{
    width:25px!important;height:25px!important;border-width:5px!important;
    background:#aaa6bb!important;box-shadow:0 0 0 1px #dcd7e6!important;
  }
  .league-match-slot.win .league-timeline-node{background:#27ad68!important;box-shadow:0 5px 13px rgba(39,173,104,.24)!important}
  .league-match-slot.done .league-timeline-node{background:#da6b75!important}
  .league-match-slot.current .league-timeline-node{
    width:30px!important;height:30px!important;border-width:7px!important;border-color:#7356ed!important;background:#fff!important;
    box-shadow:0 0 0 5px #f0ebff,0 7px 16px rgba(104,75,226,.2)!important;
  }
  .league-match-slot.current .league-timeline-node::after{top:29px!important}
  .league-timeline-stem{height:23px!important;background:#d9d5e3!important}

  .league-match-card{
    width:100%!important;
    min-height:178px!important;
    padding:15px 8px 12px!important;
    gap:8px!important;
    border-radius:15px!important;
    border:1px solid #dfdbe8!important;
    box-shadow:0 8px 19px rgba(47,40,67,.05)!important;
  }
  .league-match-slot.current .league-match-card{
    border-color:#8266f2!important;
    box-shadow:0 0 0 1px rgba(117,86,237,.07),0 12px 26px rgba(78,58,158,.12)!important;
  }
  .league-opponent-avatar-v44{width:78px!important;height:78px!important;background:#faf9fd!important}
  .league-match-card>b{font-size:13px!important;color:#302a4d!important}
  .league-result-pill{min-width:62px!important;height:27px!important;padding:0 12px!important;font-size:11px!important}

  /* 战绩榜 */
  .league-lower{grid-area:battle!important}
  .league-battle{
    min-height:274px!important;
    padding:21px 18px 18px!important;
    border:1px solid #e3dfee!important;
    border-radius:24px!important;
    background:rgba(255,255,255,.965)!important;
    box-shadow:0 12px 30px rgba(54,44,84,.045)!important;
  }
  .league-battle .league-section-head{height:39px!important;padding:0 0 14px!important;border-bottom:1px solid #ede9f2!important}
  .league-battle .league-section-head h3{font-size:20px!important;color:#262042!important}
  #leagueBattleSub{padding:6px 10px!important;border-radius:10px!important;background:#f7f4fc!important;color:#7e7890!important;font-size:11px!important}
  .weekly-battle-list{gap:10px!important;padding-top:13px!important}
  .weekly-battle-rank-row-v44{
    min-height:70px!important;padding:10px 13px!important;border-radius:14px!important;
    border-color:#e8e3f0!important;
  }
  .weekly-battle-rank-row-v44.self{border-color:#8b71f2!important;background:linear-gradient(90deg,#fff,#faf7ff)!important}
  .weekly-rank-copy b{font-size:14px!important}.weekly-rank-copy small{font-size:11px!important}
  .weekly-battle-rank-row-v44 strong{font-size:16px!important}
  .league-battle .empty-state{min-height:176px!important;padding:34px 10px!important}
  .league-battle .empty-state .empty-icon{width:48px!important;height:48px!important}

  /* 让卡片盖在底景上，底景只出现在右下方 */
  .league-header,.league-progress,.league-week,.league-battle{position:relative!important;z-index:2!important}
}

@media (min-width:901px) and (max-width:1260px){
  .league-page{grid-template-columns:minmax(0,1fr) 300px!important;gap:16px!important;padding-inline:8px!important}
  .league-progress-row{grid-template-columns:205px 1fr 1fr 1.25fr!important}
  .league-rank-chip,.league-fought,.league-promotion,.league-promotion-hint{padding-inline:18px!important}
  .league-opponents-v44{gap:8px!important}
  .league-opponent-avatar-v44{width:66px!important;height:66px!important}
  .league-match-card{min-height:164px!important}
  .league-page::after{width:390px;height:257px!important}
}

@media (min-width:901px){
  .league-week{
    min-height:442px!important;
    padding:26px 24px 28px!important;
  }

  .league-opponents-v44{
    position:relative!important;
    min-height:326px!important;
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    gap:4px!important;
    padding:40px 0 0!important;
    align-items:start!important;
  }

  
  .league-opponents-v44::before{
    left:3.4%!important;
    right:3.4%!important;
    top:91px!important;
    height:0!important;
    border:0!important;
    border-top:2px dashed #dad6e5!important;
    background:none!important;
    opacity:1!important;
  }

  .league-match-slot{
    grid-template-rows:30px 37px 19px 1fr!important;
    align-items:center!important;
    justify-items:center!important;
    overflow:visible!important;
  }

  .league-day-label{
    font-size:13px!important;
    line-height:1!important;
    font-weight:780!important;
    color:#625c78!important;
  }
  .league-match-slot.current .league-day-label{
    color:#684bec!important;
    font-weight:900!important;
  }

  /* 未开始：白芯 + 灰环；已完成：实心状态点；当前：紫色粗环。 */
  .league-timeline-node{
    width:23px!important;
    height:23px!important;
    border:5px solid #fff!important;
    border-radius:50%!important;
    background:#aaa7bb!important;
    color:#fff!important;
    box-shadow:0 0 0 1px #d7d3df!important;
    font-size:11px!important;
  }
  .league-match-slot.ready:not(.current) .league-timeline-node{
    background:#aaa7bb!important;
    border-color:#fff!important;
    box-shadow:0 0 0 1px #d7d3df!important;
  }
  .league-match-slot.win .league-timeline-node,
  .league-match-slot.done .league-timeline-node{
    width:24px!important;
    height:24px!important;
    border:0!important;
    box-shadow:0 4px 11px rgba(39,173,104,.22)!important;
  }
  .league-match-slot.done .league-timeline-node{
    box-shadow:0 4px 11px rgba(217,108,117,.18)!important;
  }
  .league-timeline-node .ui-icon{width:13px!important;height:13px!important;stroke-width:2.5!important}

  .league-match-slot.current .league-timeline-node{
    width:29px!important;
    height:29px!important;
    border:7px solid #7255ef!important;
    background:#fff!important;
    box-shadow:0 0 0 5px #f0ecff,0 6px 15px rgba(104,75,226,.19)!important;
  }
  .league-match-slot.current .league-timeline-node::after{
    top:28px!important;
    border-left-width:7px!important;
    border-right-width:7px!important;
    border-bottom-width:9px!important;
    border-bottom-color:#7255ef!important;
  }

  .league-timeline-stem{
    width:1px!important;
    height:20px!important;
    background:#d8d4e1!important;
  }
  .league-match-slot.current .league-timeline-stem{background:#7255ef!important}

  /* 对手卡：不再撑满每一列，保持设计稿的紧凑竖卡和足够横向呼吸。 */
  .league-match-card{
    width:108px!important;
    min-width:108px!important;
    min-height:154px!important;
    padding:13px 8px 11px!important;
    gap:7px!important;
    border:1px solid #ded9e8!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:0 7px 17px rgba(47,40,67,.045)!important;
  }
  .league-match-slot:hover .league-match-card{
    transform:translateY(-1px)!important;
    border-color:#b7a8f7!important;
    box-shadow:0 10px 22px rgba(78,60,149,.09)!important;
  }
  .league-match-slot.current .league-match-card{
    border:1.5px solid #7859ef!important;
    box-shadow:0 0 0 1px rgba(117,86,237,.05),0 10px 22px rgba(78,58,158,.10)!important;
  }

  .league-opponent-avatar-v44{
    width:66px!important;
    height:66px!important;
    flex:0 0 66px!important;
    background:#faf9fd!important;
  }
  .league-opponent-avatar-v44 img,
  .league-opponent-avatar-v44 .mentor-portrait{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    border-radius:50%!important;
  }
  .league-match-card>b{
    max-width:92px!important;
    font-size:12px!important;
    line-height:1.25!important;
    color:#2e294b!important;
    font-weight:900!important;
  }
  .league-result-pill{
    margin-top:auto!important;
    min-width:56px!important;
    height:24px!important;
    padding:0 11px!important;
    border-radius:999px!important;
    font-size:10.5px!important;
    line-height:1!important;
  }
  .league-result-pill.ready{background:#f1eff4!important;color:#837d90!important}
  .league-result-pill.ready.current{background:#eee8ff!important;color:#6c50e9!important;border:1px solid #c7baff!important}
  .league-result-pill.win{background:#e8f8ee!important;color:#24945a!important}
  .league-result-pill.done{background:#fff0f1!important;color:#d35d68!important}
}

@media (min-width:901px) and (max-width:1260px){
  .league-opponents-v44{gap:2px!important}
  .league-match-card{width:96px!important;min-width:96px!important;min-height:146px!important;padding-inline:6px!important}
  .league-opponent-avatar-v44{width:60px!important;height:60px!important;flex-basis:60px!important}
  .league-match-card>b{max-width:84px!important}
}

@media (min-width:901px){
  .train-play[data-train-mode="aiAuto"]{
    width:min(1380px,calc(100vw - 310px))!important;
    max-width:1380px!important;
    grid-template-columns:minmax(600px,760px) minmax(360px,410px)!important;
    grid-template-areas:"head head" "board side"!important;
    gap:16px!important;
    align-items:start!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-play-head{
    border:1px solid #e6e1f8!important;
    background:linear-gradient(100deg,#fff 0%,#fbf9ff 70%,#f3efff 100%)!important;
    box-shadow:0 8px 24px rgba(66,50,132,.05)!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-mode-eyebrow{color:#7054e8!important}
  .train-play[data-train-mode="aiAuto"] .train-board-column{
    position:relative!important;
    padding:14px!important;
    border:1px solid #e6e1f8!important;
    border-radius:22px!important;
    background:
      radial-gradient(circle at 50% 46%,rgba(123,94,235,.09),transparent 58%),
      linear-gradient(180deg,#fbfaff,#fff)!important;
    box-shadow:0 12px 30px rgba(64,48,125,.06)!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-board-wrap{
    width:min(100%,710px)!important;
    margin:0 auto!important;
    padding:10px!important;
    border-radius:22px!important;
    background:linear-gradient(145deg,#7c63e9,#5d45ce)!important;
    box-shadow:0 0 0 5px rgba(122,94,234,.10),0 14px 32px rgba(58,42,120,.17)!important;
  }
  .train-play[data-train-mode="aiAuto"] #trainBoard{
    width:100%!important;
    aspect-ratio:1/1!important;
    border-radius:15px!important;
    overflow:hidden!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-controls{
    margin-top:12px!important;
    padding:10px 12px!important;
    border:1px solid #ece8f6!important;
    border-radius:14px!important;
    background:#fff!important;
  }
  .train-play[data-train-mode="aiAuto"] #trainAiNextBtn,
  .train-play[data-train-mode="aiAuto"] #trainUndoBtn,
  .train-play[data-train-mode="aiAuto"] #trainPassBtn{display:none!important}
  .train-play[data-train-mode="aiAuto"] .train-status{
    min-height:42px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    margin-top:9px!important;padding:8px 14px!important;border-radius:12px!important;
    color:#5c46c8!important;background:#f3efff!important;font-size:12px!important;font-weight:850!important;
  }

  .train-play[data-train-mode="aiAuto"] .train-side-stack{
    display:flex!important;
    flex-direction:column!important;
    gap:12px!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-match-panel,
  .train-play[data-train-mode="aiAuto"] .train-auto-panel{
    margin:0!important;
    border:1px solid #e6e1f8!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 10px 28px rgba(60,45,120,.055)!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-match-panel{padding:14px!important}
  .train-play[data-train-mode="aiAuto"] .train-match-heading{margin-bottom:10px!important}
  .train-play[data-train-mode="aiAuto"] .train-match-heading>div>span{color:#7665bf!important;font-size:9px!important;font-weight:900!important;letter-spacing:.08em!important}
  .train-play[data-train-mode="aiAuto"] .train-match-heading b{font-size:13px!important;color:#29233f!important}
  .train-play[data-train-mode="aiAuto"] .train-runtime-badge{background:#f1edff!important;color:#664bd7!important}

  /* 两方棋灵仅作为阵容/回合信息，实际可选策略只出现在下方决策台。 */
  .train-play[data-train-mode="aiAuto"] .train-roster{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:9px!important;
  }
  .train-auto-roster-group{padding:9px 10px;border:1px solid #efecf6;border-radius:13px;background:#fbfaff}
  .train-auto-roster-group.enemy{background:#f7f7fb}
  .train-auto-roster-group>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}
  .train-auto-roster-group>header span{font-size:10px;font-weight:900;color:#474056}
  .train-auto-roster-group>header small{font-size:8px;color:#9992a4}
  .train-auto-roster-group>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .train-auto-roster-group .train-role-card{
    min-width:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:4px!important;
    padding:6px 4px!important;border:0!important;background:transparent!important;box-shadow:none!important;text-align:center!important;
  }
  .train-auto-roster-group .train-role-avatar{width:38px!important;height:38px!important}
  .train-auto-roster-group .train-role-card>div:last-child{min-width:0;width:100%}
  .train-auto-roster-group .train-role-card b{display:block;overflow:hidden;font-size:8.5px!important;text-overflow:ellipsis;white-space:nowrap}
  .train-auto-roster-group .train-role-card small{font-size:7.5px!important}
  .train-auto-roster-group .train-role-card.active .train-role-avatar{box-shadow:0 0 0 3px #e7e0ff,0 0 0 5px #7659e8!important}

  /* 棋灵决策台：第一次点击预览，第二次点击确认。 */
  .train-play[data-train-mode="aiAuto"] .train-auto-panel{
    padding:14px!important;
    background:linear-gradient(180deg,#fff 0%,#fbf9ff 100%)!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-auto-head{display:block!important;margin-bottom:12px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-head b{display:block!important;font-size:15px!important;color:#29233f!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-head span{display:block!important;margin-top:5px!important;color:#746d83!important;font-size:10px!important;line-height:1.5!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-options{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option{
    position:relative!important;
    min-height:78px!important;
    display:grid!important;
    grid-template-columns:52px minmax(0,1fr) 72px!important;
    align-items:center!important;
    gap:9px!important;
    padding:9px 10px!important;
    border:1px solid #e9e5f1!important;
    border-radius:14px!important;
    background:#fff!important;
    text-align:left!important;
    transition:.16s ease!important;
    overflow:hidden!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-auto-option:not(:disabled):hover{border-color:#cfc4fb!important;background:#fdfcff!important;transform:translateY(-1px)!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option.selected{
    border-color:#7558e8!important;
    background:linear-gradient(100deg,#f9f6ff,#fff)!important;
    box-shadow:0 0 0 2px rgba(117,88,232,.10),0 8px 18px rgba(70,48,154,.10)!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-auto-option.selected::before{
    content:"已预览";position:absolute;right:7px;top:6px;padding:2px 6px;border-radius:999px;background:#7558e8;color:#fff;font-size:7px;font-weight:900;
  }
  .train-auto-avatar{width:48px!important;height:48px!important;border-radius:50%!important;overflow:hidden!important;background:#f0ecff!important;box-shadow:0 4px 11px rgba(72,55,130,.10)!important}
  .train-auto-avatar img{width:100%!important;height:100%!important;object-fit:cover!important}
  .train-auto-copy{min-width:0!important}
  .train-auto-copy b{display:flex!important;align-items:center!important;gap:6px!important;color:#332d42!important;font-size:11px!important}
  .train-auto-copy b em{font-size:7.5px!important;font-style:normal!important;color:#7659e8!important;background:#f0ecff!important;padding:2px 5px!important;border-radius:999px!important}
  .train-auto-copy small{display:block!important;margin-top:4px!important;overflow:hidden!important;color:#80798b!important;font-size:8.5px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .train-auto-copy u{display:block!important;margin-top:5px!important;color:#7054dc!important;font-size:8.5px!important;font-weight:850!important;text-decoration:none!important}
  .train-auto-option>strong{
    min-width:64px!important;min-height:48px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    border-radius:11px!important;background:#f3efff!important;color:#6047d1!important;font-size:16px!important;font-weight:950!important;
  }
  .train-auto-option>strong small{font-size:7px!important;color:#8a80b0!important;font-weight:800!important}
  .train-auto-option.selected>strong{background:#7358e6!important;color:#fff!important}.train-auto-option.selected>strong small{color:#e9e3ff!important}
  .train-auto-preview{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:center;margin-top:10px;padding:10px 11px;border:1px solid #ded5ff;border-radius:12px;background:#f7f4ff}
  .train-auto-preview>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#7358e6;color:#fff}.train-auto-preview .ui-icon{width:17px;height:17px}
  .train-auto-preview b{display:block;color:#382d6f;font-size:10px}.train-auto-preview small{display:block;margin-top:3px;color:#827a96;font-size:8px;line-height:1.45}

  /* 预落子：只显示位置，不改变棋盘状态。 */
  #trainBoard .board-stone.auto-preview-stone{
    opacity:.56!important;
    filter:saturate(.75)!important;
    box-shadow:0 0 0 3px rgba(255,255,255,.9),0 0 0 7px rgba(117,88,232,.35),0 5px 12px rgba(49,35,98,.18)!important;
    pointer-events:none!important;
  }
  #trainBoard .board-marker.auto-preview-ring{
    width:calc(92% / var(--n))!important;height:calc(92% / var(--n))!important;
    max-width:43px!important;max-height:43px!important;
    border:3px dashed #7659e8!important;border-radius:50%!important;background:transparent!important;
    box-shadow:0 0 0 2px rgba(255,255,255,.78)!important;
    animation:v49AutoPreviewPulse 1.1s ease-in-out infinite!important;
  }
  @keyframes v49AutoPreviewPulse{0%,100%{transform:translate(-50%,-50%) scale(.92);opacity:.72}50%{transform:translate(-50%,-50%) scale(1.08);opacity:1}}
}

@media (min-width:901px) and (max-width:1240px){
  .train-play[data-train-mode="aiAuto"]{width:100%!important;grid-template-columns:minmax(500px,1fr) 340px!important;gap:12px!important}
  .train-play[data-train-mode="aiAuto"] .train-board-wrap{max-width:610px!important}
}

#trainAutoEnemyWing[hidden]{display:none!important}

@media (min-width:901px){
  body.train-autogo-open{overflow:hidden!important}
  body.train-autogo-open #view{overflow:hidden!important}
  body.train-autogo-open .view-page[data-view="train"]{height:calc(100vh - 64px)!important;min-height:0!important;overflow:hidden!important}
  body.train-autogo-open .view-page[data-view="train"]>.train-stage{
    width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;
    padding:10px 16px 12px!important;overflow:hidden!important;box-sizing:border-box!important;
  }

  .train-play[data-train-mode="aiAuto"]{
    position:relative!important;
    width:min(1600px,calc(100vw - 28px))!important;max-width:1600px!important;
    height:100%!important;min-height:0!important;margin:0 auto!important;padding:0!important;
    display:grid!important;
    grid-template-columns:minmax(250px,300px) minmax(560px,760px) minmax(280px,330px)!important;
    grid-template-rows:minmax(0,1fr)!important;
    grid-template-areas:"enemy board self"!important;
    gap:14px!important;align-items:stretch!important;justify-content:center!important;
    overflow:hidden!important;
  }

  /* 关卡标题缩成棋盘上方悬浮状态条，不再占一整行高度。 */
  .train-play[data-train-mode="aiAuto"] .train-play-head{
    position:absolute!important;z-index:20!important;
    left:50%!important;top:4px!important;transform:translateX(-50%)!important;
    width:min(520px,calc(100% - 660px))!important;min-width:360px!important;min-height:44px!important;
    display:grid!important;grid-template-columns:34px minmax(0,1fr) auto!important;gap:8px!important;
    padding:5px 8px!important;border:1px solid rgba(215,207,248,.96)!important;border-radius:16px!important;
    background:rgba(255,255,255,.94)!important;box-shadow:0 8px 22px rgba(53,40,104,.10)!important;
    backdrop-filter:blur(14px)!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-back-btn{width:32px!important;height:32px!important;border-radius:10px!important}
  .train-play[data-train-mode="aiAuto"] .train-mode-eyebrow{font-size:8px!important;letter-spacing:.06em!important}
  .train-play[data-train-mode="aiAuto"] .train-title-stack>b{font-size:12px!important}
  .train-play[data-train-mode="aiAuto"] .train-play-meta{font-size:8px!important}
  .train-play[data-train-mode="aiAuto"] .train-turn-chip{min-height:28px!important;padding:0 9px!important;font-size:9px!important}
  .train-play[data-train-mode="aiAuto"] .train-goal-hint{display:none!important}

  /* 中央棋盘：固定在一屏内，不产生纵向滚动。 */
  .train-play[data-train-mode="aiAuto"] .train-board-column{
    grid-area:board!important;min-width:0!important;min-height:0!important;height:100%!important;
    display:grid!important;grid-template-rows:minmax(0,1fr) auto auto!important;gap:8px!important;
    align-items:center!important;padding:52px 10px 8px!important;
    border:1px solid #e7e2f7!important;border-radius:22px!important;
    background:linear-gradient(180deg,#fbfaff 0%,#fff 72%)!important;
    box-shadow:0 12px 30px rgba(62,45,126,.07)!important;overflow:hidden!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-board-wrap{
    width:min(100%,calc(100vh - 180px),690px)!important;min-width:0!important;max-width:690px!important;
    aspect-ratio:1/1!important;margin:auto!important;padding:8px!important;border-radius:20px!important;
    background:linear-gradient(145deg,#8067ee,#5d46d5)!important;
    box-shadow:0 0 0 4px rgba(121,94,235,.11),0 14px 28px rgba(56,41,116,.15)!important;
  }
  .train-play[data-train-mode="aiAuto"] #trainBoard{border-radius:13px!important}
  .train-play[data-train-mode="aiAuto"] .train-controls{
    width:100%!important;min-height:46px!important;display:grid!important;
    grid-template-columns:auto auto 1fr auto auto!important;align-items:center!important;gap:6px!important;
    margin:0!important;padding:6px 8px!important;border:1px solid #ebe7f5!important;border-radius:13px!important;background:#fff!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-stat{font-size:9px!important}
  .train-play[data-train-mode="aiAuto"] #trainAiNextBtn,
  .train-play[data-train-mode="aiAuto"] #trainUndoBtn,
  .train-play[data-train-mode="aiAuto"] #trainPassBtn{display:none!important}
  .train-play[data-train-mode="aiAuto"] #trainSituationBtn{grid-column:4!important}
  .train-play[data-train-mode="aiAuto"] #trainResignBtn{grid-column:5!important}
  .train-play[data-train-mode="aiAuto"] #trainSoundBtn{grid-column:3!important;justify-self:center!important;min-width:96px!important}
  .train-play[data-train-mode="aiAuto"] .train-controls>button{min-height:32px!important;padding:0 10px!important;border-radius:10px!important;font-size:9px!important}
  .train-play[data-train-mode="aiAuto"] .train-status{
    width:100%!important;min-height:34px!important;display:flex!important;align-items:center!important;justify-content:center!important;
    margin:0!important;padding:4px 10px!important;border-radius:11px!important;background:#f3efff!important;color:#5f47c9!important;font-size:10px!important;font-weight:850!important;
  }

  /* 左侧对方阵营。 */
  .train-auto-enemy-wing{
    grid-area:enemy!important;min-width:0!important;height:100%!important;display:block!important;padding-top:52px!important;overflow:hidden!important;
  }
  .auto-wing-card{
    height:100%!important;display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto!important;gap:10px!important;
    padding:14px!important;border:1px solid #e8e4f1!important;border-radius:22px!important;background:linear-gradient(180deg,#fff 0%,#faf9fd 100%)!important;
    box-shadow:0 12px 30px rgba(54,42,92,.065)!important;overflow:hidden!important;
  }
  .auto-wing-card.enemy{background:linear-gradient(180deg,#fcfbff 0%,#f7f7fb 100%)!important}
  .auto-wing-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:8px!important;padding-bottom:10px!important;border-bottom:1px solid #efecf4!important}
  .auto-wing-head>div{min-width:0!important}.auto-wing-head small{display:block!important;color:#8d86a0!important;font-size:9px!important;font-weight:850!important;letter-spacing:.08em!important}
  .auto-wing-head b{display:flex!important;align-items:center!important;gap:7px!important;margin-top:5px!important;color:#2c2736!important;font-size:14px!important;white-space:nowrap!important}
  .auto-wing-head>span{flex:none!important;padding:4px 7px!important;border-radius:999px!important;background:#f0edf5!important;color:#777181!important;font-size:8px!important;font-weight:850!important}
  .auto-wing-card.enemy .auto-wing-head>span{background:#f1f0f5!important;color:#6e6877!important}
  .auto-side-stone{width:16px!important;height:16px!important;display:inline-block!important;border-radius:50%!important;box-shadow:0 2px 5px rgba(32,24,45,.22)!important}
  .auto-side-stone.black{background:radial-gradient(circle at 32% 25%,#6b6871,#17171b 58%,#020203)!important}
  .auto-side-stone.white{background:radial-gradient(circle at 35% 28%,#fff,#efedf3 62%,#cbc7d1)!important;border:1px solid #d9d4df!important}
  .auto-wing-score{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}
  .auto-wing-score>span{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:34px!important;padding:0 9px!important;border-radius:10px!important;background:#f7f5fb!important;color:#8a8392!important;font-size:8px!important}
  .auto-wing-score b{color:#2f2939!important;font-size:12px!important}
  .auto-wing-role-list{min-height:0!important;display:grid!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:9px!important}
  .auto-wing-role{
    position:relative!important;min-height:0!important;display:grid!important;grid-template-columns:62px minmax(0,1fr) 24px!important;align-items:center!important;gap:9px!important;
    padding:10px!important;border:1px solid #e9e5ef!important;border-radius:16px!important;background:#fff!important;box-shadow:0 5px 14px rgba(54,43,83,.035)!important;
  }
  .auto-wing-role.turn{border-color:#cfc7ec!important;background:#fcfbff!important}
  .auto-wing-avatar{width:60px!important;height:60px!important;display:grid!important;place-items:center!important;overflow:hidden!important;border-radius:50%!important;background:#f0edf6!important;box-shadow:0 5px 14px rgba(60,46,100,.08)!important}
  .auto-wing-avatar img{width:100%!important;height:100%!important;object-fit:cover!important}
  .auto-wing-avatar .train-role-stone{width:36px!important;height:36px!important}
  .auto-wing-role>div{min-width:0!important;display:grid!important;gap:3px!important}
  .auto-wing-role b{overflow:hidden!important;color:#302a39!important;font-size:11px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .auto-wing-role small{color:#857f8d!important;font-size:8px!important}
  .auto-wing-role em{color:#9a94a1!important;font-size:8px!important;font-style:normal!important}
  .auto-wing-role>i{width:22px!important;height:22px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:#efedf3!important;color:#726c79!important;font-size:8px!important;font-style:normal!important;font-weight:900!important}
  .auto-wing-role.turn>i{background:#e9e4ff!important;color:#6a50d9!important}
  .auto-wing-foot{padding:9px!important;border-radius:11px!important;background:#f3f1f7!important;color:#7f7987!important;font-size:8px!important;line-height:1.5!important;text-align:center!important}

  /* 右侧只表现我方阵营与三棋灵决策。 */
  .train-play[data-train-mode="aiAuto"] .train-side-stack{
    grid-area:self!important;min-width:0!important;height:100%!important;display:block!important;padding-top:52px!important;overflow:hidden!important;
  }
  .train-play[data-train-mode="aiAuto"] #trainMatchPanel{display:none!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-panel{
    height:100%!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;gap:10px!important;
    margin:0!important;padding:14px!important;border:1px solid #ded7fa!important;border-radius:22px!important;
    background:linear-gradient(180deg,#fff 0%,#faf8ff 100%)!important;box-shadow:0 12px 30px rgba(65,46,132,.07)!important;overflow:hidden!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-auto-head{margin:0!important;padding-bottom:10px!important;border-bottom:1px solid #eee9fa!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-head b{display:block!important;color:#2a2442!important;font-size:14px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-head span{display:block!important;margin-top:5px!important;color:#786f91!important;font-size:8.5px!important;line-height:1.45!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-options{min-height:0!important;display:grid!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:9px!important;overflow:hidden!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option{
    min-height:0!important;height:100%!important;display:grid!important;grid-template-columns:60px minmax(0,1fr) 62px!important;align-items:center!important;gap:8px!important;
    padding:9px!important;border:1px solid #e8e3f4!important;border-radius:16px!important;background:#fff!important;box-shadow:0 5px 14px rgba(59,45,100,.035)!important;overflow:hidden!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-auto-option:not(:disabled):hover{transform:none!important;border-color:#bfb3fb!important;background:#fdfcff!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option.selected{border-color:#7358e6!important;background:#f8f5ff!important;box-shadow:0 0 0 2px rgba(115,88,230,.10)!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option.selected::before{top:5px!important;right:5px!important;font-size:7px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-avatar{width:58px!important;height:58px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-copy b{font-size:10.5px!important}.train-play[data-train-mode="aiAuto"] .train-auto-copy b em{font-size:7px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-copy small{margin-top:3px!important;font-size:8px!important}.train-play[data-train-mode="aiAuto"] .train-auto-copy u{margin-top:4px!important;font-size:8px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option>strong{min-width:58px!important;min-height:50px!important;border-radius:11px!important;font-size:15px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-preview{margin:0!important;grid-template-columns:30px minmax(0,1fr)!important;padding:8px 9px!important;border-radius:11px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-preview>span{width:30px!important;height:30px!important}.train-play[data-train-mode="aiAuto"] .train-auto-preview b{font-size:9px!important}.train-play[data-train-mode="aiAuto"] .train-auto-preview small{font-size:7.5px!important}

  /* 预览点保持明显，但不把它误认为已落子。 */
  .train-play[data-train-mode="aiAuto"] #trainBoard .board-stone.auto-preview-stone{opacity:.42!important}
  .train-play[data-train-mode="aiAuto"] #trainBoard .board-marker.auto-preview-ring{border-color:#7659e8!important}
}

@media (min-width:901px) and (max-width:1280px){
  .train-play[data-train-mode="aiAuto"]{
    width:calc(100vw - 18px)!important;grid-template-columns:minmax(210px,245px) minmax(510px,1fr) minmax(230px,270px)!important;gap:10px!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-board-wrap{width:min(100%,calc(100vh - 190px),610px)!important}
  .auto-wing-role{grid-template-columns:50px minmax(0,1fr) 20px!important;padding:7px!important}.auto-wing-avatar{width:48px!important;height:48px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option{grid-template-columns:48px minmax(0,1fr) 52px!important;padding:7px!important}.train-play[data-train-mode="aiAuto"] .train-auto-avatar{width:46px!important;height:46px!important}
}

@media (min-width:901px){
  body.train-autogo-open{overflow:hidden!important}
  body.train-autogo-open #view,
  body.train-autogo-open .main-col,
  body.train-autogo-open .view-page[data-view="train"],
  body.train-autogo-open .train-stage{min-height:0!important;overflow:hidden!important}

  body.train-autogo-open .view-page[data-view="train"]{height:calc(100dvh - 64px)!important}
  body.train-autogo-open .view-page[data-view="train"]>.train-stage{
    width:100%!important;height:100%!important;padding:8px 12px 10px!important;box-sizing:border-box!important;
  }

  .train-play[data-train-mode="aiAuto"]{
    --auto-side-left:clamp(220px,18vw,286px);
    --auto-side-right:clamp(236px,20vw,318px);
    --auto-gap:clamp(8px,1vw,14px);
    width:min(1500px,calc(100vw - 24px))!important;
    height:100%!important;
    margin:0 auto!important;
    display:grid!important;
    grid-template-columns:var(--auto-side-left) minmax(0,1fr) var(--auto-side-right)!important;
    grid-template-rows:46px minmax(0,1fr)!important;
    grid-template-areas:
      ". head ."
      "enemy board self"!important;
    gap:8px var(--auto-gap)!important;
    align-items:stretch!important;
    overflow:hidden!important;
  }

  /* 顶部状态只占中央一条，不再让棋盘垂直居中产生大块空白。 */
  .train-play[data-train-mode="aiAuto"] .train-play-head{
    grid-area:head!important;
    position:relative!important;left:auto!important;top:auto!important;transform:none!important;
    width:100%!important;min-width:0!important;min-height:46px!important;height:46px!important;
    display:grid!important;grid-template-columns:34px minmax(0,1fr) auto!important;gap:8px!important;
    padding:5px 8px!important;align-items:center!important;
    border:1px solid #e4def8!important;border-radius:15px!important;background:rgba(255,255,255,.97)!important;
    box-shadow:0 6px 18px rgba(60,45,117,.07)!important;backdrop-filter:blur(10px)!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-back-btn{width:32px!important;height:32px!important}
  .train-play[data-train-mode="aiAuto"] .train-mode-eyebrow{font-size:8px!important}
  .train-play[data-train-mode="aiAuto"] .train-title-stack>b{font-size:12px!important}
  .train-play[data-train-mode="aiAuto"] .train-play-meta{font-size:8px!important}
  .train-play[data-train-mode="aiAuto"] .train-turn-chip{min-height:28px!important;padding:0 9px!important;font-size:9px!important}

  /* 中央棋盘：顶部对齐，棋盘+操作区一屏完整出现。 */
  .train-play[data-train-mode="aiAuto"] .train-board-column{
    grid-area:board!important;
    min-width:0!important;min-height:0!important;height:100%!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;
    gap:7px!important;padding:8px 8px 8px!important;
    border:1px solid #e7e2f7!important;border-radius:20px!important;
    background:linear-gradient(180deg,#fbfaff 0%,#fff 74%)!important;
    box-shadow:0 10px 26px rgba(62,45,126,.055)!important;overflow:hidden!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-board-wrap{
    flex:0 0 auto!important;
    width:min(100%,calc(100dvh - 212px),690px)!important;
    max-width:690px!important;min-width:0!important;
    aspect-ratio:1/1!important;margin:0 auto!important;padding:7px!important;
    border-radius:18px!important;background:linear-gradient(145deg,#8067ee,#5d46d5)!important;
    box-shadow:0 0 0 3px rgba(121,94,235,.10),0 12px 25px rgba(56,41,116,.13)!important;
  }
  .train-play[data-train-mode="aiAuto"] #trainBoard{border-radius:12px!important}

  .train-play[data-train-mode="aiAuto"] .train-controls{
    flex:0 0 auto!important;width:min(100%,690px)!important;min-height:42px!important;
    display:grid!important;grid-template-columns:auto auto 1fr auto auto!important;align-items:center!important;gap:6px!important;
    margin:0!important;padding:5px 7px!important;border:1px solid #ebe7f5!important;border-radius:12px!important;background:#fff!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-stat{font-size:9px!important;white-space:nowrap!important}
  .train-play[data-train-mode="aiAuto"] #trainAiNextBtn,
  .train-play[data-train-mode="aiAuto"] #trainUndoBtn,
  .train-play[data-train-mode="aiAuto"] #trainPassBtn{display:none!important}
  .train-play[data-train-mode="aiAuto"] #trainSoundBtn{grid-column:3!important;justify-self:center!important;min-width:82px!important}
  .train-play[data-train-mode="aiAuto"] #trainSituationBtn{grid-column:4!important;color:#5d48c8!important;border-color:#ddd5fb!important;background:#f7f4ff!important;font-weight:850!important}
  .train-play[data-train-mode="aiAuto"] #trainResignBtn{grid-column:5!important;font-weight:850!important}
  .train-play[data-train-mode="aiAuto"] .train-controls>button{min-height:30px!important;padding:0 9px!important;border-radius:9px!important;font-size:9px!important;white-space:nowrap!important}
  .train-play[data-train-mode="aiAuto"] .train-status{
    flex:0 0 auto!important;width:min(100%,690px)!important;min-height:32px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    margin:0!important;padding:4px 9px!important;border-radius:10px!important;background:#f3efff!important;color:#5f47c9!important;font-size:9px!important;font-weight:850!important;
  }

  /* 左右阵营与棋盘从同一水平线开始。 */
  .train-auto-enemy-wing,
  .train-play[data-train-mode="aiAuto"] .train-side-stack{
    min-width:0!important;min-height:0!important;height:100%!important;padding-top:0!important;overflow:hidden!important;
  }
  .train-auto-enemy-wing{grid-area:enemy!important}
  .train-play[data-train-mode="aiAuto"] .train-side-stack{grid-area:self!important;display:block!important}

  .auto-wing-card,
  .train-play[data-train-mode="aiAuto"] .train-auto-panel{
    height:100%!important;min-height:0!important;
    padding:12px!important;border-radius:20px!important;overflow:hidden!important;
    box-shadow:0 9px 24px rgba(55,43,96,.05)!important;
  }

  .auto-wing-card{display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto!important;gap:8px!important}
  .auto-wing-head{padding-bottom:8px!important}
  .auto-wing-head small{font-size:8px!important}.auto-wing-head b{font-size:12px!important}.auto-wing-head>span{font-size:7.5px!important}
  .auto-wing-score{gap:5px!important}.auto-wing-score>span{min-height:30px!important;font-size:7.5px!important}.auto-wing-score b{font-size:11px!important}
  .auto-wing-role-list{grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:7px!important}
  .auto-wing-role{
    grid-template-columns:clamp(42px,4vw,54px) minmax(0,1fr) 21px!important;gap:7px!important;padding:7px!important;border-radius:14px!important;
  }
  .auto-wing-avatar{width:clamp(42px,4vw,54px)!important;height:clamp(42px,4vw,54px)!important}
  .auto-wing-role b{font-size:10px!important}.auto-wing-role small,.auto-wing-role em{font-size:7.5px!important}
  .auto-wing-foot{padding:7px!important;font-size:7.5px!important}

  /* 右侧我方决策：推荐信息只显示坐标，不展示胜率/目差。 */
  .train-play[data-train-mode="aiAuto"] #trainMatchPanel{display:none!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-panel{
    display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;gap:8px!important;
    margin:0!important;border:1px solid #ded7fa!important;background:linear-gradient(180deg,#fff 0%,#faf8ff 100%)!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-auto-head{padding-bottom:8px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-head b{font-size:12px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-head span{margin-top:4px!important;font-size:7.8px!important;line-height:1.35!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-options{grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:7px!important;overflow:hidden!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option{
    min-height:0!important;height:100%!important;
    grid-template-columns:clamp(42px,4vw,54px) minmax(0,1fr) clamp(48px,4.3vw,60px)!important;
    gap:7px!important;padding:7px!important;border-radius:14px!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-auto-avatar{width:clamp(42px,4vw,54px)!important;height:clamp(42px,4vw,54px)!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-copy b{font-size:10px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-copy b em{font-size:6.8px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-copy small{margin-top:2px!important;font-size:7.5px!important;color:#756e83!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-copy u{margin-top:3px!important;font-size:7.4px!important;color:#6850d2!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option>strong{min-width:48px!important;min-height:44px!important;padding:4px!important;border-radius:10px!important;font-size:14px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option>strong small{font-size:6.5px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-preview{grid-template-columns:28px minmax(0,1fr)!important;padding:7px!important;border-radius:10px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-preview>span{width:28px!important;height:28px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-preview b{font-size:8.2px!important}.train-play[data-train-mode="aiAuto"] .train-auto-preview small{font-size:7px!important}

  .train-play[data-train-mode="aiAuto"] #trainBoard .board-stone.auto-preview-stone{opacity:.38!important}
  .train-play[data-train-mode="aiAuto"] #trainBoard .board-marker.auto-preview-ring{border-color:#7659e8!important}
}

/* 1366×768 一类常见办公屏进一步压缩两侧，不牺牲棋盘完整性。 */
@media (min-width:901px) and (max-width:1450px){
  .train-play[data-train-mode="aiAuto"]{
    --auto-side-left:clamp(190px,17vw,230px);
    --auto-side-right:clamp(210px,19vw,255px);
    --auto-gap:8px;
    width:calc(100vw - 16px)!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-board-wrap{width:min(100%,calc(100dvh - 218px),610px)!important}
  .train-play[data-train-mode="aiAuto"] .train-controls,
  .train-play[data-train-mode="aiAuto"] .train-status{width:min(100%,610px)!important}
}

/* 较矮窗口优先缩棋盘与文字，不产生页面滚动。 */
@media (min-width:901px) and (max-height:760px){
  .train-play[data-train-mode="aiAuto"]{grid-template-rows:42px minmax(0,1fr)!important;gap-block:6px!important}
  .train-play[data-train-mode="aiAuto"] .train-play-head{height:42px!important;min-height:42px!important}
  .train-play[data-train-mode="aiAuto"] .train-board-wrap{width:min(100%,calc(100dvh - 220px),560px)!important}
  .train-play[data-train-mode="aiAuto"] .train-controls,.train-play[data-train-mode="aiAuto"] .train-status{width:min(100%,560px)!important}
  .auto-wing-card,.train-play[data-train-mode="aiAuto"] .train-auto-panel{padding:9px!important}
  .auto-wing-role,.train-play[data-train-mode="aiAuto"] .train-auto-option{padding:5px!important}
}

#trainAutoEnemyWing[hidden],#trainAutoPanel[hidden]{display:none!important}

@media (min-width:901px){
  body.train-autogo-open{
    --ag-gap:18px;
    --ag-left:clamp(268px,20vw,338px);
    --ag-right:clamp(286px,21vw,356px);
    --ag-board-max:720px;
    overflow:hidden!important;
    background:#f8f7fc!important;
  }
  body.train-autogo-open #view,
  body.train-autogo-open .main-col,
  body.train-autogo-open .view-page[data-view="train"],
  body.train-autogo-open .view-page[data-view="train"]>.train-stage{
    min-height:0!important;
    overflow:hidden!important;
  }
  body.train-autogo-open .view-page[data-view="train"]{height:calc(100dvh - 64px)!important}
  body.train-autogo-open .view-page[data-view="train"]>.train-stage{
    width:100%!important;max-width:none!important;height:100%!important;
    padding:12px 18px 14px!important;box-sizing:border-box!important;
    background:
      radial-gradient(circle at 52% 18%,rgba(123,94,235,.035),transparent 30%),
      #f9f8fd!important;
  }

  .train-play[data-train-mode="aiAuto"]{
    width:min(1640px,100%)!important;max-width:1640px!important;height:100%!important;
    margin:0 auto!important;padding:0!important;
    display:grid!important;
    grid-template-columns:var(--ag-left) minmax(560px,1fr) var(--ag-right)!important;
    grid-template-rows:70px minmax(0,1fr)!important;
    grid-template-areas:
      ". head ."
      "enemy board self"!important;
    gap:12px var(--ag-gap)!important;
    align-items:stretch!important;justify-content:center!important;
    overflow:hidden!important;
  }

  /* 中央标题条 */
  .train-play[data-train-mode="aiAuto"] .train-play-head{
    grid-area:head!important;position:relative!important;inset:auto!important;transform:none!important;
    width:100%!important;min-width:0!important;height:70px!important;min-height:70px!important;
    display:grid!important;grid-template-columns:48px minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;
    padding:9px 14px!important;border:1px solid #e7e2f6!important;border-radius:18px!important;
    background:rgba(255,255,255,.98)!important;box-shadow:0 8px 24px rgba(66,49,126,.055)!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-back-btn{
    width:44px!important;height:44px!important;border:1px solid #e7e2f5!important;border-radius:12px!important;
    background:#fff!important;color:#4a426c!important;box-shadow:0 3px 10px rgba(55,43,95,.045)!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-back-btn .ui-icon{width:20px!important;height:20px!important}
  .train-play[data-train-mode="aiAuto"] .train-title-stack{display:grid!important;grid-template-columns:auto 1fr!important;column-gap:10px!important;align-items:end!important;min-width:0!important}
  .train-play[data-train-mode="aiAuto"] .train-mode-eyebrow{
    grid-column:1/-1!important;margin:0 0 2px!important;color:#7255ee!important;font-size:10px!important;font-weight:900!important;letter-spacing:.04em!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-title-stack>b{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#201a43!important;font-size:17px!important;line-height:1.2!important}
  .train-play[data-train-mode="aiAuto"] .train-play-meta{align-self:center!important;color:#918aa4!important;font-size:10px!important;white-space:nowrap!important}
  .train-play[data-train-mode="aiAuto"] .train-head-state{display:flex!important;align-items:center!important;gap:8px!important}
  .train-play[data-train-mode="aiAuto"] .train-turn-chip{
    min-height:38px!important;display:flex!important;align-items:center!important;gap:7px!important;padding:0 16px!important;
    border:1px solid #dfdaf1!important;border-radius:999px!important;background:#fff!important;color:#302a4e!important;
    box-shadow:0 4px 12px rgba(57,44,106,.04)!important;font-size:11px!important;font-weight:850!important;white-space:nowrap!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-turn-chip::before{content:"";width:12px;height:12px;border:3px solid currentColor;border-radius:50%;box-sizing:border-box}
  .train-play[data-train-mode="aiAuto"] .train-turn-chip.black{color:#26232e!important}
  .train-play[data-train-mode="aiAuto"] .train-turn-chip.white{color:#655e76!important}
  .train-play[data-train-mode="aiAuto"] .train-goal-hint{display:none!important}

  /* 左右两翼：视觉骨架一致 */
  .train-auto-enemy-wing,
  .train-play[data-train-mode="aiAuto"] .train-side-stack{
    min-width:0!important;min-height:0!important;height:100%!important;padding:0!important;overflow:hidden!important;
  }
  .train-auto-enemy-wing{grid-area:enemy!important;display:block!important}
  .train-play[data-train-mode="aiAuto"] .train-side-stack{grid-area:self!important;display:block!important}
  .train-play[data-train-mode="aiAuto"] #trainMatchPanel{display:none!important}

  .auto-wing-card,
  .train-play[data-train-mode="aiAuto"] .train-auto-panel{
    position:relative!important;height:100%!important;min-height:0!important;margin:0!important;padding:0 14px 14px!important;
    border:1px solid #e5e1f0!important;border-radius:22px!important;background:rgba(255,255,255,.985)!important;
    box-shadow:0 12px 30px rgba(61,47,110,.055)!important;overflow:hidden!important;
  }
  .auto-wing-card::before,
  .train-play[data-train-mode="aiAuto"] .train-auto-panel::before{
    content:"";position:absolute;inset:7px;border:1px solid rgba(126,96,235,.08);border-radius:17px;pointer-events:none;
  }

  .auto-wing-tabs,.train-auto-tabs{
    height:50px;display:grid;grid-template-columns:1fr 1fr;align-items:end;margin:0 -14px 12px;border-bottom:1px solid #eeebf5;background:#fff;
  }
  .auto-wing-tabs span,.train-auto-tabs span{
    position:relative;height:50px;display:grid;place-items:center;color:#60596f;font-size:12px;font-weight:850;
  }
  .auto-wing-tabs span.active,.train-auto-tabs span.active{color:#684cec}
  .auto-wing-tabs span.active::after,.train-auto-tabs span.active::after{
    content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:2px;border-radius:99px;background:#7658ef;
  }

  /* 左：对方阵营 */
  .auto-wing-card{display:grid!important;grid-template-rows:50px auto 62px minmax(0,1fr) 48px!important;gap:0!important}
  .auto-wing-head{
    display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;
    min-height:62px!important;padding:4px 0 10px!important;border-bottom:0!important;
  }
  .auto-wing-head>div{min-width:0!important}
  .auto-wing-head small{display:none!important}
  .auto-wing-head b{display:flex!important;align-items:center!important;gap:10px!important;margin:0!important;color:#241f35!important;font-size:17px!important;font-weight:900!important;white-space:nowrap!important}
  .auto-wing-head>span{padding:4px 8px!important;border-radius:999px!important;background:#f4f2f8!important;color:#8b8494!important;font-size:8px!important;font-weight:850!important}
  .auto-side-stone{width:21px!important;height:21px!important;display:inline-block!important;border-radius:50%!important;box-shadow:0 2px 6px rgba(31,25,44,.20)!important}
  .auto-side-stone.black{background:radial-gradient(circle at 33% 26%,#6c6a72,#1a191e 58%,#030304)!important}
  .auto-side-stone.white{background:radial-gradient(circle at 34% 28%,#fff,#f2f0f4 61%,#cbc8d1)!important;border:1px solid #d8d4df!important}
  .auto-wing-score{display:grid!important;grid-template-columns:1fr 1fr!important;gap:0!important;margin-bottom:10px!important;border:1px solid #e6e1f2!important;border-radius:12px!important;overflow:hidden!important;background:#faf9fd!important}
  .auto-wing-score>span{min-height:60px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;padding:0!important;background:transparent!important;color:#8c8597!important;font-size:9px!important}
  .auto-wing-score>span+span{border-left:1px solid #e4dff0!important}
  .auto-wing-score b{color:#241f35!important;font-size:17px!important;line-height:1!important}
  .auto-wing-role-list{min-height:0!important;display:grid!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:10px!important;padding-bottom:10px!important}
  .auto-wing-role{
    min-height:0!important;display:grid!important;grid-template-columns:70px minmax(0,1fr) 30px!important;align-items:center!important;gap:10px!important;
    padding:12px!important;border:1px solid #e8e4ef!important;border-radius:16px!important;background:#fff!important;
    box-shadow:0 5px 14px rgba(58,46,88,.035)!important;
  }
  .auto-wing-role.turn{border-color:#cfc5f5!important;background:#fdfcff!important}
  .auto-wing-avatar{width:66px!important;height:66px!important;border-radius:50%!important;background:#f3f0f8!important;overflow:hidden!important;box-shadow:0 5px 14px rgba(55,43,96,.07)!important}
  .auto-wing-avatar img{width:100%!important;height:100%!important;object-fit:cover!important}
  .auto-wing-role>div{min-width:0!important;display:grid!important;gap:4px!important}
  .auto-wing-role b{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#2c2638!important;font-size:13px!important}
  .auto-wing-role small{color:#736b83!important;font-size:9px!important}
  .auto-wing-role em{color:#70689a!important;font-size:9px!important;font-style:normal!important}
  .auto-wing-role>i{width:28px!important;height:28px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:#f0edf8!important;color:#635a78!important;font-size:10px!important;font-style:normal!important;font-weight:900!important}
  .auto-wing-role.turn>i{background:#7558ed!important;color:#fff!important}
  .auto-wing-foot{height:48px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0 10px!important;border-radius:11px!important;background:#f5f3f9!important;color:#777083!important;font-size:9px!important;line-height:1.4!important;text-align:center!important}

  /* 右：我方阵营与真实选点 */
  .train-play[data-train-mode="aiAuto"] .train-auto-panel{
    display:grid!important;grid-template-rows:50px auto minmax(0,1fr) auto!important;gap:0!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-auto-head{
    min-height:94px!important;margin:0!important;padding:10px 2px 12px!important;border-bottom:0!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-auto-head b{position:relative!important;display:flex!important;align-items:center!important;gap:10px!important;color:#241f35!important;font-size:17px!important;font-weight:900!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-head b::before{content:"";width:21px;height:21px;flex:none;border-radius:50%;background:radial-gradient(circle at 35% 28%,#fff,#f2f0f4 61%,#cbc8d1);border:1px solid #d8d4df;box-shadow:0 2px 6px rgba(31,25,44,.10)}
  .train-play[data-train-mode="aiAuto"] .train-auto-head span{display:block!important;margin:10px 0 0!important;color:#756e82!important;font-size:10px!important;line-height:1.55!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-options{min-height:0!important;display:grid!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:10px!important;padding-bottom:10px!important;overflow:hidden!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option{
    min-height:0!important;height:100%!important;display:grid!important;grid-template-columns:72px minmax(0,1fr) 64px!important;align-items:center!important;gap:10px!important;
    padding:12px!important;border:1px solid #e7e2f2!important;border-radius:16px!important;background:#fff!important;
    box-shadow:0 5px 14px rgba(58,46,88,.035)!important;overflow:hidden!important;transition:border-color .14s ease,box-shadow .14s ease,background .14s ease!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-auto-option:not(:disabled):hover{transform:none!important;border-color:#c9bdf8!important;background:#fdfcff!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option.selected{border-color:#7558ef!important;background:#fcfaff!important;box-shadow:0 0 0 2px rgba(117,88,239,.08),0 7px 18px rgba(73,53,142,.07)!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option.selected::before{display:none!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-avatar{width:68px!important;height:68px!important;border-radius:50%!important;background:#f3f0f8!important;box-shadow:0 5px 14px rgba(55,43,96,.07)!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-copy{min-width:0!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-copy b{display:flex!important;align-items:center!important;gap:6px!important;color:#2c2638!important;font-size:13px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-copy b em{padding:2px 5px!important;border-radius:999px!important;background:#f0ecff!important;color:#7052df!important;font-size:8px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-copy small{display:block!important;margin-top:5px!important;color:#7a7388!important;font-size:9px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-copy u{display:block!important;margin-top:6px!important;color:#684ee7!important;font-size:9px!important;font-weight:850!important;text-decoration:none!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option>strong{
    min-width:62px!important;min-height:58px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    border-radius:12px!important;background:#f3efff!important;color:#5d43d4!important;font-size:20px!important;font-weight:950!important;line-height:1!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-auto-option>strong small{margin-bottom:4px!important;color:#8a81ad!important;font-size:7px!important;font-weight:850!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option.selected>strong{background:#7357e9!important;color:#fff!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option.selected>strong small{color:#e8e1ff!important}
  .train-auto-preview{
    min-height:46px!important;display:grid!important;grid-template-columns:30px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;
    margin:0 0 0!important;padding:7px 9px!important;border:1px solid #ded5ff!important;border-radius:11px!important;background:#f7f4ff!important;
  }
  .train-auto-preview>span{width:30px!important;height:30px!important;display:grid!important;place-items:center!important;border-radius:9px!important;background:#7558e9!important;color:#fff!important}
  .train-auto-preview b{display:block!important;color:#392e6f!important;font-size:9px!important}
  .train-auto-preview small{display:block!important;margin-top:2px!important;color:#837b96!important;font-size:7.5px!important;line-height:1.35!important}
  .train-auto-footnote{
    min-height:48px;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 10px;border-radius:11px;background:#f5f3fa;color:#777084;text-align:center;
  }
  .train-auto-footnote .ui-icon{width:14px;height:14px;color:#7558e9}.train-auto-footnote small{font-size:8.5px;line-height:1.4}
  .train-auto-panel:has(.train-auto-preview) .train-auto-footnote{display:none!important}

  /* 中央棋盘 */
  .train-play[data-train-mode="aiAuto"] .train-board-column{
    grid-area:board!important;min-width:0!important;min-height:0!important;height:100%!important;
    display:grid!important;grid-template-rows:minmax(0,1fr) 58px!important;gap:12px!important;align-items:center!important;
    padding:10px!important;border:1px solid #e5e1f0!important;border-radius:20px!important;background:#fff!important;
    box-shadow:0 12px 30px rgba(61,47,110,.055)!important;overflow:hidden!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-board-wrap{
    width:min(100%,calc(100dvh - 262px),var(--ag-board-max))!important;max-width:var(--ag-board-max)!important;min-width:0!important;
    aspect-ratio:1/1!important;margin:0 auto!important;padding:7px!important;border:2px solid #8a70f3!important;border-radius:17px!important;
    background:#fff7e6!important;box-shadow:0 0 0 4px rgba(123,95,236,.06),0 12px 24px rgba(63,47,119,.10)!important;
  }
  .train-play[data-train-mode="aiAuto"] #trainBoard{width:100%!important;height:100%!important;aspect-ratio:1/1!important;border-radius:12px!important;overflow:hidden!important}
  .train-play[data-train-mode="aiAuto"] .train-board-wait{border-radius:12px!important}

  .train-play[data-train-mode="aiAuto"] .train-controls{
    width:100%!important;height:58px!important;min-height:58px!important;display:grid!important;
    grid-template-columns:84px minmax(180px,1fr) 100px 138px 72px!important;align-items:center!important;gap:10px!important;
    margin:0!important;padding:8px 12px!important;border:1px solid #e8e3f2!important;border-radius:13px!important;background:#fff!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-stat{height:100%!important;display:flex!important;align-items:center!important;color:#514a62!important;font-size:11px!important;font-weight:800!important;white-space:nowrap!important}
  .train-play[data-train-mode="aiAuto"] #trainCaps{display:flex!important;align-items:center!important;gap:18px!important;border-left:1px solid #eeeaf4!important;padding-left:18px!important}
  .train-cap-piece{display:inline-flex;align-items:center;gap:7px}.train-cap-piece i{width:17px;height:17px;border-radius:50%;box-shadow:0 2px 4px rgba(30,25,39,.12)}
  .train-cap-piece.black i{background:radial-gradient(circle at 33% 26%,#6b6871,#17171b 58%,#020203)}
  .train-cap-piece.white i{background:radial-gradient(circle at 35% 28%,#fff,#efedf3 62%,#cbc7d1);border:1px solid #d8d4df}
  .train-play[data-train-mode="aiAuto"] #trainAiNextBtn,
  .train-play[data-train-mode="aiAuto"] #trainUndoBtn,
  .train-play[data-train-mode="aiAuto"] #trainPassBtn{display:none!important}
  .train-play[data-train-mode="aiAuto"] #trainSoundBtn{grid-column:3!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-width:0!important}
  .train-play[data-train-mode="aiAuto"] #trainSoundBtn .ui-icon{width:15px!important;height:15px!important}
  .train-play[data-train-mode="aiAuto"] #trainSituationBtn{grid-column:4!important;color:#5f45df!important;border-color:#dcd3ff!important;background:#f8f5ff!important;font-weight:900!important}
  .train-play[data-train-mode="aiAuto"] #trainResignBtn{grid-column:5!important;color:#d94159!important;border-color:#f0d7dc!important;background:#fff!important;font-weight:900!important}
  .train-play[data-train-mode="aiAuto"] .train-controls>button{height:40px!important;min-height:40px!important;padding:0 12px!important;border-radius:9px!important;font-size:10px!important;white-space:nowrap!important}
  .train-play[data-train-mode="aiAuto"] .train-status{display:none!important}

  /* 选点仅为预览，不把半透明棋子误认为已落子。 */
  .train-play[data-train-mode="aiAuto"] #trainBoard .board-stone.auto-preview-stone{opacity:.32!important;filter:saturate(.72)!important;box-shadow:0 0 0 3px rgba(255,255,255,.94),0 0 0 6px rgba(117,88,232,.32)!important}
  .train-play[data-train-mode="aiAuto"] #trainBoard .board-marker.auto-preview-ring{border-color:#7558e9!important;border-width:3px!important;background:rgba(255,255,255,.22)!important}
}

/* 中等宽屏：缩两翼，棋盘仍优先保持完整正方形。 */
@media (min-width:1181px) and (max-width:1500px){
  body.train-autogo-open{--ag-left:clamp(230px,18.5vw,278px);--ag-right:clamp(244px,19.5vw,292px);--ag-gap:12px;--ag-board-max:630px}
  .train-play[data-train-mode="aiAuto"] .train-auto-option{grid-template-columns:54px minmax(0,1fr) 52px!important;padding:8px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-avatar{width:52px!important;height:52px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option>strong{min-width:50px!important;min-height:48px!important;font-size:16px!important}
  .auto-wing-role{grid-template-columns:54px minmax(0,1fr) 24px!important;padding:8px!important}.auto-wing-avatar{width:52px!important;height:52px!important}
  .auto-wing-role b,.train-play[data-train-mode="aiAuto"] .train-auto-copy b{font-size:10.5px!important}
  .train-play[data-train-mode="aiAuto"] .train-controls{grid-template-columns:72px minmax(150px,1fr) 86px 120px 64px!important;gap:7px!important;padding-inline:9px!important}
}

/* 1280 以下进一步紧凑，但不改三栏结构。 */
@media (min-width:901px) and (max-width:1180px){
  body.train-autogo-open{--ag-left:205px;--ag-right:220px;--ag-gap:8px;--ag-board-max:540px}
  body.train-autogo-open .view-page[data-view="train"]>.train-stage{padding:8px!important}
  .train-play[data-train-mode="aiAuto"]{grid-template-columns:var(--ag-left) minmax(470px,1fr) var(--ag-right)!important;grid-template-rows:58px minmax(0,1fr)!important;gap:8px!important}
  .train-play[data-train-mode="aiAuto"] .train-play-head{height:58px!important;min-height:58px!important;padding:6px 8px!important;grid-template-columns:38px minmax(0,1fr) auto!important}
  .train-play[data-train-mode="aiAuto"] .train-back-btn{width:36px!important;height:36px!important}.train-play[data-train-mode="aiAuto"] .train-title-stack>b{font-size:13px!important}.train-play[data-train-mode="aiAuto"] .train-turn-chip{min-height:32px!important;padding-inline:10px!important;font-size:9px!important}
  .auto-wing-card,.train-play[data-train-mode="aiAuto"] .train-auto-panel{padding:0 9px 9px!important;border-radius:16px!important}
  .auto-wing-tabs,.train-auto-tabs{height:42px!important;margin:0 -9px 7px!important}.auto-wing-tabs span,.train-auto-tabs span{height:42px!important;font-size:10px!important}
  .auto-wing-card{grid-template-rows:42px auto 48px minmax(0,1fr) 38px!important}
  .auto-wing-head{min-height:50px!important}.auto-wing-head b,.train-play[data-train-mode="aiAuto"] .train-auto-head b{font-size:13px!important}
  .auto-wing-score>span{min-height:46px!important}.auto-wing-role-list,.train-play[data-train-mode="aiAuto"] .train-auto-options{gap:6px!important}
  .auto-wing-role{grid-template-columns:42px minmax(0,1fr) 20px!important;gap:5px!important;padding:6px!important}.auto-wing-avatar{width:40px!important;height:40px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-head{min-height:72px!important;padding:6px 0 8px!important}.train-play[data-train-mode="aiAuto"] .train-auto-head span{font-size:8px!important;margin-top:5px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option{grid-template-columns:42px minmax(0,1fr) 44px!important;gap:5px!important;padding:6px!important}.train-play[data-train-mode="aiAuto"] .train-auto-avatar{width:40px!important;height:40px!important}.train-play[data-train-mode="aiAuto"] .train-auto-option>strong{min-width:42px!important;min-height:42px!important;font-size:14px!important}
  .train-auto-footnote,.auto-wing-foot{min-height:38px!important;height:38px!important;font-size:7px!important}
  .train-play[data-train-mode="aiAuto"] .train-board-wrap{width:min(100%,calc(100dvh - 228px),var(--ag-board-max))!important}
  .train-play[data-train-mode="aiAuto"] .train-board-column{grid-template-rows:minmax(0,1fr) 48px!important;padding:7px!important;gap:7px!important}
  .train-play[data-train-mode="aiAuto"] .train-controls{height:48px!important;min-height:48px!important;grid-template-columns:60px minmax(118px,1fr) 70px 100px 56px!important;gap:5px!important;padding:5px 7px!important}
  .train-play[data-train-mode="aiAuto"] .train-controls>button{height:34px!important;min-height:34px!important;padding-inline:7px!important;font-size:8px!important}.train-play[data-train-mode="aiAuto"] .train-stat{font-size:8px!important} .train-play[data-train-mode="aiAuto"] #trainCaps{gap:8px!important;padding-left:8px!important}
}

/* 较矮窗口：高度优先，确保无纵向滚动。 */
@media (min-width:901px) and (max-height:790px){
  body.train-autogo-open{--ag-board-max:560px}
  .train-play[data-train-mode="aiAuto"]{grid-template-rows:56px minmax(0,1fr)!important;gap-block:7px!important}
  .train-play[data-train-mode="aiAuto"] .train-play-head{height:56px!important;min-height:56px!important}
  .train-play[data-train-mode="aiAuto"] .train-board-wrap{width:min(100%,calc(100dvh - 230px),var(--ag-board-max))!important}
  .auto-wing-tabs,.train-auto-tabs{height:40px!important}.auto-wing-tabs span,.train-auto-tabs span{height:40px!important}
  .auto-wing-card{grid-template-rows:40px auto 46px minmax(0,1fr) 36px!important}
  .auto-wing-head{min-height:48px!important;padding-block:2px 6px!important}.auto-wing-score>span{min-height:44px!important}
  .auto-wing-role-list,.train-play[data-train-mode="aiAuto"] .train-auto-options{gap:5px!important}
  .auto-wing-role,.train-play[data-train-mode="aiAuto"] .train-auto-option{padding:6px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-head{min-height:66px!important;padding:5px 0 6px!important}
  .train-auto-footnote,.auto-wing-foot{height:36px!important;min-height:36px!important}
}

@media (min-width:901px){
  body.train-autogo-open{
    --ag-left:clamp(292px,20.5vw,360px);
    --ag-right:clamp(304px,21vw,370px);
    --ag-gap:18px;
    --ag-board-size:640px;
    overflow:hidden!important;
    background:#f8f7fc!important;
  }
  body.train-autogo-open .view-page[data-view="train"]{
    height:calc(100dvh - 64px)!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  body.train-autogo-open .view-page[data-view="train"]>.train-stage{
    width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;
    padding:12px 18px 14px!important;overflow:hidden!important;box-sizing:border-box!important;
    background:radial-gradient(circle at 50% 18%,rgba(118,88,238,.035),transparent 32%),#faf9fd!important;
  }

  .train-play[data-train-mode="aiAuto"]{
    width:min(1760px,calc(100vw - 36px))!important;max-width:none!important;height:100%!important;
    margin:0 auto!important;padding:0!important;overflow:hidden!important;
    display:grid!important;
    grid-template-columns:var(--ag-left) minmax(0,1fr) var(--ag-right)!important;
    grid-template-rows:70px minmax(0,1fr)!important;
    grid-template-areas:". head ." "enemy board self"!important;
    gap:12px var(--ag-gap)!important;
    align-items:stretch!important;
  }

  /* 顶部条只属于中央列，位置与参考稿一致。 */
  .train-play[data-train-mode="aiAuto"] .train-play-head{
    grid-area:head!important;width:100%!important;height:70px!important;min-height:70px!important;
    padding:9px 14px!important;border-radius:18px!important;
  }

  /* 左右阵营从棋盘主区域顶部开始，始终同高。 */
  .train-auto-enemy-wing,
  .train-play[data-train-mode="aiAuto"] .train-side-stack{
    height:100%!important;min-height:0!important;overflow:hidden!important;
  }
  .auto-wing-card,
  .train-play[data-train-mode="aiAuto"] .train-auto-panel{
    height:100%!important;min-height:0!important;border-radius:20px!important;
  }

  /* 中央列不再使用“剩余区域居中”的旧方式；棋盘按 JS 计算出的真实最大尺寸呈现。 */
  .train-play[data-train-mode="aiAuto"] .train-board-column{
    grid-area:board!important;height:100%!important;min-height:0!important;min-width:0!important;
    display:grid!important;grid-template-rows:minmax(0,1fr) 60px!important;gap:10px!important;
    align-items:center!important;justify-items:center!important;
    padding:10px!important;overflow:hidden!important;
    border:1px solid #e5e1f0!important;border-radius:20px!important;background:#fff!important;
    box-shadow:0 12px 30px rgba(61,47,110,.055)!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-board-wrap{
    width:var(--ag-board-size)!important;height:var(--ag-board-size)!important;
    max-width:none!important;max-height:none!important;min-width:0!important;min-height:0!important;
    aspect-ratio:1/1!important;align-self:center!important;justify-self:center!important;margin:0!important;
    padding:7px!important;border:2px solid #8a70f3!important;border-radius:17px!important;
    background:#fff7e6!important;box-shadow:0 0 0 4px rgba(123,95,236,.06),0 12px 24px rgba(63,47,119,.10)!important;
    box-sizing:border-box!important;
  }
  .train-play[data-train-mode="aiAuto"] #trainBoard{
    width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
    aspect-ratio:1/1!important;border-radius:12px!important;overflow:hidden!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-controls{
    width:var(--ag-board-size)!important;max-width:100%!important;height:60px!important;min-height:60px!important;
    grid-template-columns:88px minmax(190px,1fr) 104px 142px 74px!important;gap:10px!important;
    padding:8px 12px!important;border-radius:13px!important;
  }

  /* 侧边角色卡尺寸跟随可用高度收敛，但保持参考稿的视觉密度。 */
  .auto-wing-card{grid-template-rows:50px auto 64px minmax(0,1fr) 50px!important}
  .auto-wing-role-list,
  .train-play[data-train-mode="aiAuto"] .train-auto-options{
    min-height:0!important;display:grid!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:10px!important;
  }
  .auto-wing-role{
    min-height:0!important;grid-template-columns:70px minmax(0,1fr) 30px!important;gap:10px!important;padding:11px!important;
  }
  .auto-wing-avatar{width:66px!important;height:66px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option{
    min-height:0!important;height:100%!important;grid-template-columns:70px minmax(0,1fr) 66px!important;gap:10px!important;padding:11px!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-auto-avatar{width:66px!important;height:66px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option>strong{min-width:62px!important;min-height:58px!important}

  /* 参考稿中的左右标题与底部提示保持完整，不因为棋盘变大被挤掉。 */
  .auto-wing-tabs,.train-auto-tabs{height:50px!important;margin-bottom:10px!important}
  .auto-wing-tabs span,.train-auto-tabs span{height:50px!important;font-size:12px!important}
  .auto-wing-foot,.train-auto-footnote{min-height:46px!important}
}

/* 1600 以下：稍微收窄两翼，把空间优先留给正方形棋盘。 */
@media (min-width:1181px) and (max-width:1600px){
  body.train-autogo-open{--ag-left:clamp(250px,18.5vw,300px);--ag-right:clamp(262px,19vw,312px);--ag-gap:12px}
  .train-play[data-train-mode="aiAuto"]{width:calc(100vw - 24px)!important}
  .auto-wing-role{grid-template-columns:56px minmax(0,1fr) 24px!important;padding:8px!important;gap:7px!important}
  .auto-wing-avatar{width:54px!important;height:54px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option{grid-template-columns:56px minmax(0,1fr) 54px!important;padding:8px!important;gap:7px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-avatar{width:54px!important;height:54px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option>strong{min-width:52px!important;min-height:50px!important}
}

/* 常见 1366 / 1440 办公屏：不改变三栏结构，进一步压缩边翼。 */
@media (min-width:901px) and (max-width:1180px){
  body.train-autogo-open{--ag-left:190px;--ag-right:205px;--ag-gap:8px}
  .train-play[data-train-mode="aiAuto"]{width:calc(100vw - 16px)!important;grid-template-rows:58px minmax(0,1fr)!important;gap-block:8px!important}
  .train-play[data-train-mode="aiAuto"] .train-play-head{height:58px!important;min-height:58px!important}
  .train-play[data-train-mode="aiAuto"] .train-board-column{grid-template-rows:minmax(0,1fr) 50px!important;padding:7px!important;gap:7px!important}
  .train-play[data-train-mode="aiAuto"] .train-controls{height:50px!important;min-height:50px!important;grid-template-columns:62px minmax(112px,1fr) 70px 96px 56px!important;gap:5px!important;padding:5px 7px!important}
  .auto-wing-tabs,.train-auto-tabs{height:42px!important}.auto-wing-tabs span,.train-auto-tabs span{height:42px!important;font-size:10px!important}
  .auto-wing-card{grid-template-rows:42px auto 48px minmax(0,1fr) 38px!important}
  .auto-wing-role-list,.train-play[data-train-mode="aiAuto"] .train-auto-options{gap:6px!important}
  .auto-wing-role{grid-template-columns:42px minmax(0,1fr) 20px!important;gap:5px!important;padding:6px!important}.auto-wing-avatar{width:40px!important;height:40px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option{grid-template-columns:42px minmax(0,1fr) 44px!important;gap:5px!important;padding:6px!important}.train-play[data-train-mode="aiAuto"] .train-auto-avatar{width:40px!important;height:40px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option>strong{min-width:42px!important;min-height:42px!important}
}

/* 矮屏：高度是唯一硬约束，JS 会同步把棋盘缩到一屏可容纳的最大正方形。 */
@media (min-width:901px) and (max-height:790px){
  body.train-autogo-open .view-page[data-view="train"]>.train-stage{padding-block:8px!important}
  .train-play[data-train-mode="aiAuto"]{grid-template-rows:54px minmax(0,1fr)!important;gap-block:7px!important}
  .train-play[data-train-mode="aiAuto"] .train-play-head{height:54px!important;min-height:54px!important}
  .train-play[data-train-mode="aiAuto"] .train-board-column{grid-template-rows:minmax(0,1fr) 48px!important;gap:6px!important;padding:6px!important}
  .train-play[data-train-mode="aiAuto"] .train-controls{height:48px!important;min-height:48px!important}
  .auto-wing-tabs,.train-auto-tabs{height:40px!important}.auto-wing-tabs span,.train-auto-tabs span{height:40px!important}
  .auto-wing-card,.train-play[data-train-mode="aiAuto"] .train-auto-panel{padding-bottom:8px!important}
  .auto-wing-role-list,.train-play[data-train-mode="aiAuto"] .train-auto-options{gap:5px!important}
  .auto-wing-role,.train-play[data-train-mode="aiAuto"] .train-auto-option{padding:5px!important}
}

@media (min-width:901px){
  body.train-autogo-open{
    --ag-left:clamp(300px,21.2vw,356px);
    --ag-right:clamp(306px,21.4vw,360px);
    --ag-gap:20px;
    --ag-board-size:620px;
    overflow:hidden!important;
    background:#f8f7fc!important;
  }

  body.train-autogo-open #view,
  body.train-autogo-open .main-col,
  body.train-autogo-open .view-page[data-view="train"],
  body.train-autogo-open .view-page[data-view="train"]>.train-stage{
    min-height:0!important;
    overflow:hidden!important;
  }
  body.train-autogo-open .view-page[data-view="train"]{
    height:calc(100dvh - 64px)!important;
  }
  body.train-autogo-open .view-page[data-view="train"]>.train-stage{
    height:100%!important;
    width:100%!important;
    max-width:none!important;
    box-sizing:border-box!important;
    padding:16px 20px!important;
    background:linear-gradient(180deg,#fbfaff 0%,#f8f7fc 100%)!important;
  }

  .train-play[data-train-mode="aiAuto"]{
    width:min(1648px,calc(100vw - 40px))!important;
    max-width:none!important;
    height:100%!important;
    min-height:0!important;
    margin:0 auto!important;
    padding:0!important;
    overflow:hidden!important;
    display:grid!important;
    grid-template-columns:var(--ag-left) minmax(590px,1fr) var(--ag-right)!important;
    grid-template-rows:70px minmax(0,1fr)!important;
    column-gap:var(--ag-gap)!important;
    row-gap:12px!important;
    align-items:stretch!important;
  }

  /* 左右两翼贯穿标题条和棋盘区域，完全对齐参考稿。 */
  .train-auto-enemy-wing{
    grid-column:1!important;
    grid-row:1 / 3!important;
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-side-stack{
    grid-column:3!important;
    grid-row:1 / 3!important;
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
  }

  /* 中央标题 */
  .train-play[data-train-mode="aiAuto"] .train-play-head{
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    height:70px!important;
    min-height:70px!important;
    padding:10px 14px!important;
    border:1px solid #e7e2f4!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 8px 24px rgba(61,47,110,.045)!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-back-btn{
    width:44px!important;
    height:44px!important;
    border-radius:12px!important;
    border-color:#e8e3f5!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-mode-eyebrow{font-size:10px!important;color:#7255ee!important}
  .train-play[data-train-mode="aiAuto"] .train-title-stack>b{font-size:17px!important;color:#211b43!important}
  .train-play[data-train-mode="aiAuto"] .train-play-meta{font-size:10px!important;color:#8f88a0!important}
  .train-play[data-train-mode="aiAuto"] .train-turn-chip{
    min-height:40px!important;
    padding:0 16px!important;
    border-radius:999px!important;
    border:1px solid #ded8ef!important;
    background:#fff!important;
    color:#302b4b!important;
  }

  /* 中央棋盘卡：根据 JS 的 --ag-board-size 精确占位，不再在大白区中垂直漂移。 */
  .train-play[data-train-mode="aiAuto"] .train-board-column{
    grid-column:2!important;
    grid-row:2!important;
    height:100%!important;
    min-height:0!important;
    min-width:0!important;
    display:grid!important;
    grid-template-rows:var(--ag-board-size) 64px!important;
    align-content:start!important;
    justify-items:center!important;
    gap:10px!important;
    box-sizing:border-box!important;
    padding:10px 12px!important;
    overflow:hidden!important;
    border:1px solid #e5e0ef!important;
    border-radius:20px!important;
    background:#fff!important;
    box-shadow:0 12px 30px rgba(61,47,110,.055)!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-board-wrap{
    width:var(--ag-board-size)!important;
    height:var(--ag-board-size)!important;
    min-width:0!important;
    min-height:0!important;
    max-width:none!important;
    max-height:none!important;
    aspect-ratio:1/1!important;
    align-self:start!important;
    justify-self:center!important;
    margin:0!important;
    box-sizing:border-box!important;
    padding:7px!important;
    border:2px solid #8a70f3!important;
    border-radius:16px!important;
    background:#fff7e6!important;
    box-shadow:0 0 0 4px rgba(123,95,236,.055),0 10px 24px rgba(69,52,127,.08)!important;
  }
  .train-play[data-train-mode="aiAuto"] #trainBoard{
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    aspect-ratio:1/1!important;
    border-radius:11px!important;
    overflow:hidden!important;
  }

  /* 参考稿底部操作栏横跨中央卡，不跟棋盘宽度绑死。 */
  .train-play[data-train-mode="aiAuto"] .train-controls{
    width:100%!important;
    height:64px!important;
    min-height:64px!important;
    max-width:none!important;
    display:grid!important;
    grid-template-columns:84px minmax(150px,1fr) 100px 132px 68px!important;
    align-items:center!important;
    gap:10px!important;
    padding:8px 12px!important;
    box-sizing:border-box!important;
    border:1px solid #e8e4f1!important;
    border-radius:13px!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-stat{font-size:12px!important;color:#433c60!important}
  .train-play[data-train-mode="aiAuto"] .train-controls button{
    height:42px!important;
    min-height:42px!important;
    border-radius:10px!important;
    font-size:11px!important;
  }
  .train-play[data-train-mode="aiAuto"] #trainSituationBtn{border-color:#d8cef9!important;background:#f8f5ff!important;color:#6b4ee8!important}
  .train-play[data-train-mode="aiAuto"] #trainResignBtn{border-color:#f0d7dc!important;background:#fff!important;color:#d14c5c!important}
  .train-play[data-train-mode="aiAuto"] .train-status{display:none!important}

  /* 两翼共同骨架 */
  .auto-wing-card,
  .train-play[data-train-mode="aiAuto"] .train-auto-panel{
    height:100%!important;
    min-height:0!important;
    box-sizing:border-box!important;
    margin:0!important;
    padding:0 14px 14px!important;
    overflow:hidden!important;
    border:1px solid #e5e0ef!important;
    border-radius:20px!important;
    background:#fff!important;
    box-shadow:0 10px 28px rgba(61,47,110,.045)!important;
  }
  .auto-wing-card::before,
  .train-play[data-train-mode="aiAuto"] .train-auto-panel::before{display:none!important}

  .auto-wing-tabs,.train-auto-tabs{
    height:52px!important;
    margin:0 -14px 14px!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    align-items:end!important;
    border-bottom:1px solid #eeebf5!important;
    background:#fff!important;
  }
  .auto-wing-tabs span,.train-auto-tabs span{
    height:52px!important;
    display:grid!important;
    place-items:center!important;
    color:#5f5872!important;
    font-size:13px!important;
    font-weight:850!important;
  }
  .auto-wing-tabs span.active,.train-auto-tabs span.active{color:#674bec!important}
  .auto-wing-tabs span.active::after,.train-auto-tabs span.active::after{
    left:12px!important;right:12px!important;height:2px!important;background:#7658ef!important;
  }

  /* 左翼：目标图无“提子/得失”中间大框，底部操作栏已有真实提子信息。 */
  .auto-wing-card{
    display:grid!important;
    grid-template-rows:52px 78px minmax(0,1fr) 54px!important;
  }
  .auto-wing-score{display:none!important}
  .auto-wing-head{
    min-height:78px!important;
    padding:5px 0 13px!important;
    display:flex!important;
    align-items:center!important;
  }
  .auto-wing-head b{font-size:18px!important;color:#241f35!important}
  .auto-wing-head>span{display:none!important}
  .auto-side-stone{width:22px!important;height:22px!important}
  .auto-wing-role-list{
    min-height:0!important;
    display:grid!important;
    grid-template-rows:repeat(3,minmax(0,1fr))!important;
    gap:12px!important;
    padding:0 0 12px!important;
  }
  .auto-wing-role{
    min-height:0!important;
    display:grid!important;
    grid-template-columns:72px minmax(0,1fr)!important;
    align-items:center!important;
    gap:12px!important;
    padding:13px!important;
    border:1px solid #e7e3ef!important;
    border-radius:15px!important;
    background:#fff!important;
    box-shadow:0 4px 13px rgba(52,42,82,.03)!important;
  }
  .auto-wing-role>i{display:none!important}
  .auto-wing-avatar{width:68px!important;height:68px!important}
  .auto-wing-role>div{gap:5px!important}
  .auto-wing-role b{font-size:13px!important;color:#2b2638!important}
  .auto-wing-role small{font-size:9px!important;color:#756d84!important}
  .auto-wing-role em{font-size:9px!important;color:#6f6796!important}
  .auto-wing-foot{
    min-height:54px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0 10px!important;
    border-radius:11px!important;
    background:#faf9fd!important;
    color:#7f788d!important;
    font-size:9px!important;
  }

  /* 右翼：白方说明 + 三张决策卡 + 底部提示。 */
  .train-play[data-train-mode="aiAuto"] .train-auto-panel{
    display:grid!important;
    grid-template-rows:52px 92px minmax(0,1fr) 54px!important;
    gap:0!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-auto-head{
    min-height:92px!important;
    padding:6px 0 12px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    gap:9px!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-auto-head b{
    font-size:18px!important;
    color:#241f35!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-auto-head b::before{
    content:"";
    display:inline-block;
    width:21px;
    height:21px;
    margin-right:10px;
    vertical-align:-5px;
    border-radius:50%;
    border:1px solid #d8d4df;
    background:radial-gradient(circle at 34% 28%,#fff,#f2f0f4 61%,#cbc8d1);
    box-shadow:0 2px 5px rgba(31,25,44,.08);
  }
  .train-play[data-train-mode="aiAuto"] .train-auto-head span{
    color:#777085!important;
    font-size:9px!important;
    line-height:1.55!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-auto-options{
    min-height:0!important;
    display:grid!important;
    grid-template-rows:repeat(3,minmax(0,1fr))!important;
    gap:12px!important;
    padding:0 0 12px!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-auto-option{
    min-height:0!important;
    height:100%!important;
    display:grid!important;
    grid-template-columns:72px minmax(0,1fr) 66px!important;
    align-items:center!important;
    gap:12px!important;
    padding:13px!important;
    border:1px solid #e7e3ef!important;
    border-radius:15px!important;
    background:#fff!important;
    box-shadow:0 4px 13px rgba(52,42,82,.03)!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-auto-option.selected{
    border-color:#8b6ef3!important;
    box-shadow:0 0 0 2px rgba(117,87,239,.08),0 7px 18px rgba(85,62,166,.08)!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-auto-avatar{width:68px!important;height:68px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-copy{gap:5px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-copy b{font-size:13px!important;color:#2b2638!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-copy b em{font-size:8px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-copy small{font-size:9px!important;color:#746d84!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-copy u{font-size:9px!important;color:#684ded!important;text-decoration:none!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option>strong{
    min-width:60px!important;
    min-height:58px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px!important;
    border-radius:12px!important;
    background:#f3efff!important;
    color:#6949e7!important;
    font-size:21px!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-auto-option>strong small{font-size:8px!important;color:#8a7bc8!important}
  .train-auto-preview{display:none!important}
  .train-auto-footnote{
    min-height:54px!important;
    margin:0!important;
    padding:0 12px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    border-radius:11px!important;
    background:#faf9fd!important;
    color:#7f788d!important;
  }
  .train-auto-footnote small{font-size:9px!important;line-height:1.45!important}
}

/* 1440–1600：保持三栏，轻度收窄两翼。 */
@media (min-width:1281px) and (max-width:1600px){
  body.train-autogo-open{--ag-left:clamp(270px,20vw,320px);--ag-right:clamp(276px,20.3vw,326px);--ag-gap:14px}
  .train-play[data-train-mode="aiAuto"]{width:calc(100vw - 28px)!important}
  .auto-wing-role,.train-play[data-train-mode="aiAuto"] .train-auto-option{padding:10px!important;gap:9px!important}
  .auto-wing-avatar,.train-play[data-train-mode="aiAuto"] .train-auto-avatar{width:58px!important;height:58px!important}
  .auto-wing-role{grid-template-columns:60px minmax(0,1fr)!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option{grid-template-columns:60px minmax(0,1fr) 58px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option>strong{min-width:54px!important;min-height:52px!important;font-size:18px!important}
}

/* 1280 及以下仍保持三栏，优先保护棋盘正方形。 */
@media (min-width:901px) and (max-width:1280px){
  body.train-autogo-open{--ag-left:214px;--ag-right:226px;--ag-gap:10px}
  body.train-autogo-open .view-page[data-view="train"]>.train-stage{padding:8px 10px!important}
  .train-play[data-train-mode="aiAuto"]{width:calc(100vw - 20px)!important;grid-template-columns:var(--ag-left) minmax(480px,1fr) var(--ag-right)!important;grid-template-rows:58px minmax(0,1fr)!important;row-gap:8px!important}
  .train-play[data-train-mode="aiAuto"] .train-play-head{height:58px!important;min-height:58px!important;padding:6px 9px!important}
  .auto-wing-tabs,.train-auto-tabs{height:42px!important;margin-bottom:8px!important}.auto-wing-tabs span,.train-auto-tabs span{height:42px!important;font-size:10px!important}
  .auto-wing-card{grid-template-rows:42px 58px minmax(0,1fr) 38px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-panel{grid-template-rows:42px 72px minmax(0,1fr) 38px!important}
  .auto-wing-role-list,.train-play[data-train-mode="aiAuto"] .train-auto-options{gap:6px!important;padding-bottom:6px!important}
  .auto-wing-role{grid-template-columns:46px minmax(0,1fr)!important;gap:6px!important;padding:6px!important}.auto-wing-avatar{width:44px!important;height:44px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-option{grid-template-columns:46px minmax(0,1fr) 46px!important;gap:6px!important;padding:6px!important}.train-play[data-train-mode="aiAuto"] .train-auto-avatar{width:44px!important;height:44px!important}.train-play[data-train-mode="aiAuto"] .train-auto-option>strong{min-width:44px!important;min-height:44px!important;font-size:15px!important}
  .train-play[data-train-mode="aiAuto"] .train-board-column{grid-template-rows:var(--ag-board-size) 52px!important;gap:7px!important;padding:7px!important}
  .train-play[data-train-mode="aiAuto"] .train-controls{height:52px!important;min-height:52px!important;grid-template-columns:58px minmax(100px,1fr) 66px 92px 54px!important;gap:5px!important;padding:5px 7px!important}
  .train-play[data-train-mode="aiAuto"] .train-controls button{height:38px!important;min-height:38px!important;font-size:9px!important}
}

/* 矮屏继续保持目标构图，角色卡与棋盘同步按高度压缩。 */
@media (min-width:901px) and (max-height:800px){
  body.train-autogo-open .view-page[data-view="train"]>.train-stage{padding-top:8px!important;padding-bottom:8px!important}
  .train-play[data-train-mode="aiAuto"]{grid-template-rows:56px minmax(0,1fr)!important;row-gap:7px!important}
  .train-play[data-train-mode="aiAuto"] .train-play-head{height:56px!important;min-height:56px!important}
  .auto-wing-tabs,.train-auto-tabs{height:40px!important;margin-bottom:6px!important}.auto-wing-tabs span,.train-auto-tabs span{height:40px!important}
  .auto-wing-card{grid-template-rows:40px 54px minmax(0,1fr) 36px!important}
  .train-play[data-train-mode="aiAuto"] .train-auto-panel{grid-template-rows:40px 64px minmax(0,1fr) 36px!important}
  .auto-wing-role-list,.train-play[data-train-mode="aiAuto"] .train-auto-options{gap:5px!important;padding-bottom:5px!important}
  .auto-wing-role,.train-play[data-train-mode="aiAuto"] .train-auto-option{padding:5px!important}
  .auto-wing-foot,.train-auto-footnote{min-height:36px!important}
  .train-play[data-train-mode="aiAuto"] .train-board-column{grid-template-rows:var(--ag-board-size) 48px!important;gap:6px!important;padding:6px!important}
  .train-play[data-train-mode="aiAuto"] .train-controls{height:48px!important;min-height:48px!important}
}

@media (min-width:901px){
  body.train-autogo-open{
    --ag-left:clamp(286px,21.3vw,356px);
    --ag-right:clamp(292px,21.3vw,356px);
    --ag-gap:22px;
    --ag-board-size:610px;
    overflow:hidden!important;
  }

  body.train-autogo-open #view,
  body.train-autogo-open .main-col,
  body.train-autogo-open .view-page[data-view="train"],
  body.train-autogo-open .view-page[data-view="train"]>.train-stage{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  body.train-autogo-open .view-page[data-view="train"]{
    height:calc(100dvh - 64px)!important;
  }
  body.train-autogo-open .view-page[data-view="train"]>.train-stage{
    height:100%!important;
    padding:18px 20px!important;
    box-sizing:border-box!important;
  }

  .train-play[data-train-mode="aiAuto"]{
    width:100%!important;
    max-width:none!important;
    height:100%!important;
    min-height:0!important;
    margin:0!important;
    display:grid!important;
    grid-template-columns:var(--ag-left) minmax(0,1fr) var(--ag-right)!important;
    grid-template-rows:70px minmax(0,1fr)!important;
    column-gap:var(--ag-gap)!important;
    row-gap:12px!important;
    align-items:stretch!important;
    overflow:hidden!important;
  }

  .train-auto-enemy-wing{
    grid-column:1!important;
    grid-row:1 / 3!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-play-head{
    grid-column:2!important;
    grid-row:1!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-board-column{
    grid-column:2!important;
    grid-row:2!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-side-stack{
    grid-column:3!important;
    grid-row:1 / 3!important;
  }

  /* 关键修复：旧 PC 样式给这两个元素保留了 grid-area:train-board/train-controls。
     当父元素改为 grid 后，浏览器会创建隐式网格行，导致棋盘被放到底部。 */
  .train-play[data-train-mode="aiAuto"] .train-board-wrap,
  .train-play[data-train-mode="aiAuto"] .train-controls{
    grid-area:auto!important;
    grid-column:auto!important;
    grid-row:auto!important;
  }

  /* 中央区严格按“标题 + 棋盘卡”排版；棋盘卡内部从顶部开始，不做垂直居中。 */
  .train-play[data-train-mode="aiAuto"] .train-board-column{
    height:100%!important;
    min-height:0!important;
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    padding:10px 12px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    border:1px solid #e5e0ef!important;
    border-radius:20px!important;
    background:#fff!important;
    box-shadow:0 12px 30px rgba(61,47,110,.055)!important;
  }

  .train-play[data-train-mode="aiAuto"] .train-board-wrap{
    flex:0 0 var(--ag-board-size)!important;
    width:var(--ag-board-size)!important;
    height:var(--ag-board-size)!important;
    min-width:0!important;
    min-height:0!important;
    max-width:100%!important;
    max-height:100%!important;
    aspect-ratio:1 / 1!important;
    align-self:center!important;
    margin:0!important;
    padding:7px!important;
    box-sizing:border-box!important;
    position:relative!important;
    overflow:hidden!important;
    border:2px solid #8a70f3!important;
    border-radius:16px!important;
    background:#fff7e6!important;
    box-shadow:0 0 0 4px rgba(123,95,236,.055),0 10px 24px rgba(69,52,127,.08)!important;
  }
  .train-play[data-train-mode="aiAuto"] #trainBoard{
    position:relative!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    aspect-ratio:1 / 1!important;
    border-radius:11px!important;
    overflow:hidden!important;
  }

  .train-play[data-train-mode="aiAuto"] .train-controls{
    flex:0 0 58px!important;
    width:100%!important;
    height:58px!important;
    min-height:58px!important;
    margin:0!important;
    box-sizing:border-box!important;
  }

  /* 目标图比例：左右面板同顶同底；中央标题条与左右阵营顶部对齐。 */
  .train-auto-enemy-wing,
  .train-play[data-train-mode="aiAuto"] .train-side-stack,
  .train-play[data-train-mode="aiAuto"] .train-auto-panel{
    height:100%!important;
    min-height:0!important;
  }
  .train-play[data-train-mode="aiAuto"] .train-auto-panel{margin:0!important}

  /* 角色卡不要因高屏被无限拉长。把多余高度留给卡间空白而不是拉伸卡片。 */
  .auto-wing-card{
    grid-template-rows:52px 78px minmax(0,1fr) 54px!important;
  }
  .auto-wing-role-list,
  .train-play[data-train-mode="aiAuto"] .train-auto-options{
    align-content:stretch!important;
  }
  .auto-wing-role,
  .train-play[data-train-mode="aiAuto"] .train-auto-option{
    max-height:178px!important;
  }

  /* 标题条与参考图一致，避免中央信息过度压缩。 */
  .train-play[data-train-mode="aiAuto"] .train-play-head{
    height:70px!important;
    min-height:70px!important;
    padding:10px 14px!important;
    box-sizing:border-box!important;
  }
}

@media (min-width:1281px) and (max-width:1600px){
  body.train-autogo-open{
    --ag-left:clamp(248px,19.6vw,300px);
    --ag-right:clamp(254px,19.8vw,304px);
    --ag-gap:14px;
  }
}

@media (min-width:901px) and (max-width:1280px){
  body.train-autogo-open{
    --ag-left:210px;
    --ag-right:222px;
    --ag-gap:9px;
  }
  body.train-autogo-open .view-page[data-view="train"]>.train-stage{padding:8px 10px!important}
  .train-play[data-train-mode="aiAuto"]{grid-template-rows:58px minmax(0,1fr)!important;row-gap:8px!important}
  .train-play[data-train-mode="aiAuto"] .train-play-head{height:58px!important;min-height:58px!important;padding:6px 9px!important}
  .train-play[data-train-mode="aiAuto"] .train-board-column{padding:7px!important;gap:7px!important}
  .train-play[data-train-mode="aiAuto"] .train-controls{flex-basis:52px!important;height:52px!important;min-height:52px!important}
}

@media (min-width:901px) and (max-height:800px){
  body.train-autogo-open .view-page[data-view="train"]>.train-stage{padding-top:8px!important;padding-bottom:8px!important}
  .train-play[data-train-mode="aiAuto"]{grid-template-rows:56px minmax(0,1fr)!important;row-gap:7px!important}
  .train-play[data-train-mode="aiAuto"] .train-play-head{height:56px!important;min-height:56px!important}
  .train-play[data-train-mode="aiAuto"] .train-board-column{padding:6px!important;gap:6px!important}
  .train-play[data-train-mode="aiAuto"] .train-controls{flex-basis:48px!important;height:48px!important;min-height:48px!important}
}

/* F7 猴头：装进原有 40px（总结头）/28px（练习卡）圆形渐变容器，溢出裁圆 */
.pc-monkey-holder{overflow:hidden!important;padding:0!important}
.pc-monkey-holder .pc-monkey-avatar{width:100%!important;height:100%!important;object-fit:cover;display:block;border-radius:inherit}

/* F1 总结卡 CTA：主按钮紫渐变（用户规范：主按钮紫渐变、文字标签） */
.pc-summary-cta{display:flex;width:100%;margin-top:12px;align-items:center;justify-content:center;gap:6px;
  padding:11px 14px;border:0;border-radius:12px;background:linear-gradient(135deg,#7860f0,#9060f0);
  color:#fff;font-size:12.5px;font-weight:850;letter-spacing:.04em;cursor:pointer;
  transition:filter .18s,transform .06s}
.pc-summary-cta:hover{filter:brightness(1.07)}
.pc-summary-cta:active{transform:scale(.985)}

/* F2 朗读按钮：总结要点 / 逐手教练点评两处落位 */
.pc-summary-mentor-head .gp-tts{margin-top:8px}
.pc-report-coach .gp-tts{margin-top:6px}

/* ── 学习页快捷入口：2×2 网格，金紫交替图标底色（规格 §2 右下快捷入口） ── */



/* =====================================================================
 * 批次2-3：棋谱库 browser 三栏（规格 §4/§5 设计稿05/06）
 * 左棋谱列表(共N局/收起列表) · 中央木色大棋盘+手数导航 · 右详情3卡
 * ===================================================================== */

.library-browser-body,
.library-browser[data-library-kind] .library-browser-body{grid-template-columns:minmax(280px,330px) minmax(0,1.35fr) minmax(300px,.85fr)!important;gap:9px!important}
.library-browser-body.list-collapsed,
.library-browser[data-library-kind] .library-browser-body.list-collapsed{grid-template-columns:0 minmax(0,1fr) minmax(300px,.85fr)!important}
.library-browser-body.list-collapsed>.library-panel,
.library-browser[data-library-kind] .library-browser-body.list-collapsed>.library-panel{display:none!important}

.library-browser[data-library-kind] .library-browser-body>.library-panel{padding:12px!important}
.library-browser-body.member-root>.library-stage{display:none!important}
.library-browser-body .library-list-hint i{font-style:normal}

/* ── 中央舞台：木色大棋盘（#D8C078 系） ── */
.library-browser-body>.library-stage{
  display:flex!important;flex-direction:column!important;min-height:0!important;height:100%!important;
  border-radius:20px!important;overflow:hidden!important;padding:12px 14px!important;
}
.library-stage-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;padding-bottom:9px;border-bottom:1px solid #f1eff5}
.library-stage-head span{font-size:13px;font-weight:700;color:#3a3550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.lib-list-toggle{flex:none;height:28px;padding:0 12px;border-radius:9px;border:1px solid #e8e4f5;background:#faf9ff;color:#684ee1;font-size:12px;cursor:pointer;transition:background .15s ease,border-color .15s ease}
.lib-list-toggle:hover{background:#f1edff;border-color:#d5ccf5}
.library-stage-board-wrap{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;position:relative;padding:10px 0}
.library-browser-board{
  background:linear-gradient(145deg,#e6cd85,#d8c078 55%,#c9ab5f)!important;
  border-radius:10px!important;
  box-shadow:0 12px 32px rgba(122,96,60,.20),inset 0 0 0 1px rgba(255,255,255,.35);
}
.library-stage-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#8b85a3;text-align:center;padding:20px}
.library-stage-empty b{font-size:15px;color:#5c5677}
.library-stage-empty small{font-size:12px}

/* ── 手数导航条（底部） ── */
.library-stage-nav{flex:none;display:flex;align-items:center;gap:8px;padding-top:10px;border-top:1px solid #f1eff5}
.library-stage-nav button{width:32px;height:32px;flex:none;border-radius:9px;border:1px solid #e8e4f5;background:#fff;color:#5c5677;font-size:14px;line-height:1;cursor:pointer;transition:all .15s ease;display:flex;align-items:center;justify-content:center}
.library-stage-nav button:hover{border-color:#cfc2f2;color:#684ee1;background:#f7f4ff}
.library-stage-nav input[type=range]{flex:1;min-width:0;accent-color:#7860f0;height:4px;cursor:pointer}
.lib-stage-count{flex:none;font-size:12px;font-weight:700;color:#5c5677;font-variant-numeric:tabular-nums;white-space:nowrap}

/* ── 右侧详情 3 卡：①谱信息 ②AI要点 ③学习助手 ── */
.library-browser-body>.library-inspector{
  display:flex!important;flex-direction:column!important;gap:10px!important;
  padding:14px!important;overflow:auto!important;min-height:0!important;
}
.lib-card{background:#fff;border:1px solid #f1eff5;border-radius:16px;padding:12px 13px;display:flex;flex-direction:column;gap:9px;flex:none}
.lib-card header{display:flex;flex-direction:column;gap:2px}
.lib-card header small{font-size:10px;letter-spacing:.08em;color:#9a93b5;font-weight:700;text-transform:uppercase}
.lib-card.info header b{font-size:15px;color:#37324e;line-height:1.35}
.lib-card .lib-inspector-players{margin:0}
.lib-card .lib-inspector-meta{margin:0}
.lib-card.ai b{font-size:13.5px;color:#37324e}
.lib-card.ai p{margin:0;font-size:12px;color:#8b85a3;line-height:1.55}
.lib-card.study .lib-inspector-note{margin:0}
.lib-card.study .lib-stage-loaded{font-size:11px;color:#8b85a3}
.lib-inspector-open{margin:2px 0 0}

@media (max-width:1479px){
  .library-browser-body,
  .library-browser[data-library-kind] .library-browser-body{grid-template-columns:minmax(250px,300px) minmax(0,1.3fr) minmax(280px,.9fr)!important}
  .library-browser-body.list-collapsed,
  .library-browser[data-library-kind] .library-browser-body.list-collapsed{grid-template-columns:0 minmax(0,1fr) minmax(280px,.9fr)!important}
}
@media (max-width:1180px){
  .library-browser-body,
  .library-browser[data-library-kind] .library-browser-body{grid-template-columns:minmax(220px,260px) minmax(0,1.25fr) minmax(250px,.95fr)!important}
  .library-browser-body.list-collapsed,
  .library-browser[data-library-kind] .library-browser-body.list-collapsed{grid-template-columns:0 minmax(0,1fr) minmax(250px,.95fr)!important}
  .library-browser-body .lib-inspector-note{display:block!important}
}
@media (max-width:900px){
  .library-browser-body,
  .library-browser[data-library-kind] .library-browser-body{grid-template-columns:1fr!important}
  .library-browser-body>.library-stage,.library-browser-body>.library-inspector{display:none!important}
}

@media (min-width:901px){

  
  .view-page>.league-page,
  .view-page>.mine-page,
  .view-page>.library-page{
    width:100%!important;
    max-width:none!important;
  }
  

  /* ── ② 我的页：修复 flex 子项收缩（成就墙/概览卡回整行） ── */
  .mine-page{align-items:stretch!important}
  .mine-achievements{width:100%!important}

  /* ── ③ 我的页内部网格：硬编码列宽改自适应（小窗不溢出，大窗按比例铺开） ── */
  .mine-overview{
    grid-template-columns:minmax(300px,1fr) minmax(0,1.9fr)!important;
  }
  .mine-dashboard{
    grid-template-columns:minmax(230px,290px) minmax(0,1.55fr) minmax(0,1.05fr)!important;
  }

  /* ── ④ 中窄屏（901~1240）两列降级：dashboard 第三列折行 ── */
  @media (max-width:1240px){
    .mine-dashboard{
      grid-template-columns:minmax(220px,260px) minmax(0,1fr)!important;
    }
    .mine-dashboard>.mine-tasks{
      grid-column:1/-1;
    }
  }
}

@media (min-width:901px){

  
  

  
  

  
  

  /* ── ④ 单导师场景：主将缩一档（仅 roles.length===1 时命中） ── */
  
  

  
  
}

/* ---------------------------------------------------------------------
 * 0. 视图内通用下限（仅覆盖 ≤(0,1,1) 特异性的旧声明）
 * --------------------------------------------------------------------- */
.view-page small{font-size:12px!important}
.view-page p{font-size:12.5px!important}
/* 例外：本就 ≥13px 的正文不得被下拉 */
.train-confirm .train-confirm-desc{font-size:14px!important}

/* ---------------------------------------------------------------------
 * 1. 顶栏
 * --------------------------------------------------------------------- */
.topbar .brand-tag{font-size:11px!important}
.topbar-logout{font-size:12px!important}

/* ---------------------------------------------------------------------
 * 2. 学习页（Appbar / 导师舞台 / 今日训练 / 智能训练 / 训练安排弹层）
 * --------------------------------------------------------------------- */

















.study-start-button small{font-size:12px!important}



.plan-adjust{font-size:12px!important}





/* 训练安排弹层（调整训练） */






/* ---------------------------------------------------------------------
 * 3. 首页（阶段卡 / 任务 / 经验联赛 / 路线图 / 成长条）
 * --------------------------------------------------------------------- */
.view-page[data-view="home"] .stage-meta{font-size:12px!important}
.view-page[data-view="home"] .stage-subtitle{font-size:12px!important}
.view-page[data-view="home"] .section-title{font-size:12.5px!important}
.home-mascot-hint{font-size:12px!important}
.home-welcome-kicker{font-size:10.5px!important}
.home-course>span{font-size:12px!important}
.home-course>small{font-size:12px!important}
.home-task-card-head small{font-size:12px!important}
.task-mini-title b{font-size:12.5px!important}
.task-mini-title small{font-size:11px!important}
.task-mini-main p{font-size:12px!important}
.task-mini-progress-row small{font-size:11.5px!important}
.home-task-reward{font-size:11px!important}
.home-side-task-more{font-size:12px!important}
.home-sidebar-tip p{font-size:12px!important}
.league-meta span{font-size:12.5px!important}
.league-meta small{font-size:12px!important}
.league-go{font-size:12px!important}

.road-section-head small{font-size:11px!important}
.road-section-head>em{font-size:11px!important}
.road-node-copy b{font-size:12px!important}
.road-node-copy small{font-size:11px!important}
.road-section-foot>span{font-size:11px!important}
.road-section-foot>small{font-size:11px!important}
.home-growth-v34 b{font-size:12px!important}
.home-growth-v34 small{font-size:11px!important}
.home-road-card-head small{font-size:12px!important}
.home-road-card-head>button{font-size:12px!important}
.home-preview-node-copy b{font-size:12.5px!important}
.home-preview-node-copy small{font-size:11.5px!important}
.home-preview-foot>span{font-size:11.5px!important}
.home-preview-foot>b{font-size:11px!important}
.home-preview-foot>em{font-size:11px!important}
.home-expanded-node-copy b{font-size:11.5px!important}
.home-expanded-node-copy small{font-size:11px!important}
.home-road-expanded-title small{font-size:10.5px!important}
.home-road-expanded-title p{font-size:12px!important}
.home-road-expanded-progress>span{font-size:11.5px!important}
.home-road-section-panel>header small{font-size:10.5px!important}
.home-road-section-panel>header em{font-size:11px!important}
.home-road-expanded-foot{font-size:11.5px!important}
.home-road-expanded-foot b{font-size:11.5px!important}
.home-growth-strip b{font-size:13px!important}
.home-growth-strip small{font-size:11.5px!important}
.home-road-section-marker small{font-size:10.5px!important}
.home-road-section-marker em{font-size:10.5px!important}
.home-road-empty{font-size:12px!important}
.home-road-classic-label small{font-size:11px!important}
.home-road-classic-track .duo-slot .node-label small{font-size:11px!important}

/* ---------------------------------------------------------------------
 * 4. 联赛（周赛 / 战绩榜 / 经验联赛 / 对局舞台）
 * --------------------------------------------------------------------- */
.league-rank-chip small,.league-fought small,.league-promotion small{font-size:12px!important}
.league-promotion-hint small{font-size:12px!important}
.league-opponent small{font-size:12px!important}
.experience-self-rank small,.experience-self-xp small,.experience-zone>header small{font-size:12px!important}
.experience-player-copy small{font-size:11.5px!important}
.experience-player-copy b em{font-size:10.5px!important}
.weekly-battle-rank-row-v8>span em{font-size:10.5px!important}
.lq-result-metrics small{font-size:11px!important}
.lq-result-metrics em{font-size:12px!important}
.league-result-pill{font-size:12px!important}
#leagueBattleSub{font-size:12px!important}
.weekly-rank-copy small{font-size:12px!important}
.weekly-rank-copy b em{font-size:10.5px!important}
.league-battle .empty-state small{font-size:12px!important}
.lq-duel-heading small{font-size:10.5px!important}
.lq-duel-heading span{font-size:12px!important}
.lq-duel-toolbar-state span{font-size:12px!important}
.lq-player-card small{font-size:10.5px!important}
.lq-player-card em{font-size:11px!important}
.lq-duel-vs>span{font-size:10.5px!important}
.lq-duel-status-card small{font-size:10.5px!important}
.lq-duel-info-card small{font-size:10.5px!important}
.lq-duel-info-card b{font-size:12px!important}
.lq-duel-note{font-size:12px!important}

/* ---------------------------------------------------------------------
 * 5. 我的（快捷入口 / 资产 / 成就 / 小店 / 账户服务）
 * --------------------------------------------------------------------- */
.mine-svc-grid button small{font-size:12px!important}
.mine-ach-claim{font-size:12px!important}
.mine-overview .mine-user-copy small{font-size:12px!important}
.section-heading span{font-size:12px!important}
.mine-msg-badge{font-size:11px!important}

/* ---------------------------------------------------------------------
 * 6. 棋谱库（Feed / Hub / 列表 / 浏览三栏 / 详情卡）
 * --------------------------------------------------------------------- */
.library-feed-brand p{font-size:12px!important}
.library-feed-identity small{font-size:10.5px!important}
.library-inner-head p{font-size:12px!important}
.library-inner-head small{font-size:10.5px!important}
.library-hub-menu b{font-size:12.5px!important}
.library-hub-menu small{font-size:11.5px!important}
.library-hub-section>header small{font-size:10.5px!important}
.library-hub-section>header button{font-size:12px!important}
.hub-preview-row b{font-size:12px!important}
.hub-preview-row small,.hub-preview-row strong{font-size:10.5px!important}
.hub-empty{font-size:12px!important}
.library-page-v13 .feed-queue-head small{font-size:11.5px!important}
.library-page-v13 .feed-queue-item>span:first-child{font-size:10.5px!important}
.library-page-v13 .feed-queue-item b{font-size:12px!important}
.library-page-v13 .feed-queue-item small{font-size:11px!important}
.library-page-v13 .feed-rail{font-size:10.5px!important}
.library-page-v13 .feed-card-featured .feed-badge,
.library-page-v13 .feed-card-featured .feed-secondary-badge{font-size:10.5px!important}
.library-page-v13 .feed-card-featured .feed-fact{font-size:12px!important}
.library-page-v13 .feed-card-featured .feed-event{font-size:12px!important}
.library-page-v13 .feed-players{font-size:12.5px!important}
.library-page-v13 .feed-cta{font-size:12.5px!important}
.feed-zone-title small{font-size:12px!important}
.feed-swipe-hint{font-size:11px!important}
.feed-event{font-size:12px!important}
.feed-same{font-size:11px!important}
.feed-badge,.feed-secondary-badge{font-size:10.5px!important}
.library-context-nav{font-size:12px!important}
.library-context-nav button{font-size:12px!important}
.lib-subtabs-v12>span{font-size:10.5px!important}
.lib-subtab-v12{font-size:12px!important}
.lib-gtype-row button{font-size:12px!important}
.lib-row-no{font-size:11px!important}
.lib-more{font-size:12px!important}
.lib-item-del{font-size:11px!important}
.library-browser-body .lib-item-match{font-size:12px!important}
.library-browser-body .lib-item-players{font-size:11.5px!important}
.library-browser-body .lib-item-footer{font-size:11px!important}
.library-detail-game-strip-v20 small{font-size:11px!important}
.library-detail-game-strip-v20 b{font-size:12px!important}
.library-detail-control-card-v20>header small{font-size:11px!important}
.library-detail-control-card-v20>header b{font-size:12.5px!important}
.library-detail-control-card-v20 .lib-preview-actions button{font-size:12px!important}
.lib-preview-head small,.lib-preview-head span{font-size:10.5px!important}
.lib-inspector-meta small{font-size:11px!important}
.lib-inspector-meta b{font-size:12px!important}
.lib-inspector-note{font-size:12px!important}
#libraryInspector:has(.lib-inspector-board-shell) .lib-inspector-note{font-size:12px!important}
.lib-inspector-open{font-size:12.5px!important}

#libraryInspector small{font-size:10.5px!important}
#libraryInspector p{font-size:11px!important}
#libraryInspector button{font-size:11.5px!important}
#libraryInspector em{font-size:10.5px!important}

/* ---------------------------------------------------------------------
 * 7. 训练 / 做题 / 记忆 / 小游戏 / 结算
 * --------------------------------------------------------------------- */
.train-sim-pill,.train-goal-hint,.train-turn-chip{font-size:11.5px!important}
.train-controls>button,.train-stat{font-size:12px!important}
.train-status{font-size:11.5px!important}
.train-mode-eyebrow{font-size:10.5px!important}
.train-play-meta{font-size:12px!important}
.train-runtime-badge{font-size:10.5px!important}
.train-match-heading span{font-size:10.5px!important}
.train-role-card b{font-size:12px!important}
.train-role-card small{font-size:11px!important}
.train-roster-vs,.train-roster-side>span{font-size:10.5px!important}
.train-current-turn{font-size:12px!important}
.train-match-facts span{font-size:11px!important}
.train-auto-head span{font-size:11px!important}
.train-auto-copy b{font-size:12px!important}
.train-auto-copy small{font-size:11px!important}
.train-auto-option strong{font-size:12px!important}
.train-board-wait b{font-size:12.5px!important}
.train-board-wait small{font-size:11px!important}
.course-coach-copy span{font-size:10.5px!important}
.course-coach-copy small{font-size:11px!important}
.course-head-badges span{font-size:11px!important}
.course-guide{font-size:11.5px!important}
.course-feedback{font-size:11.5px!important}
.course-side-actions button{font-size:12px!important}
.memory-kicker{font-size:10.5px!important}
.memory-head small{font-size:11px!important}
.memory-progress{font-size:11px!important}
.memory-phase-row>span{font-size:11px!important}
.memory-hint{font-size:11.5px!important}
.bonus-kicker{font-size:10.5px!important}
.minigame-runtime{font-size:11.5px!important}
.team-campsite-kicker{font-size:10.5px!important}
.train-barrier-copy>span{font-size:10.5px!important}
#trainSettle .train-settle-head p{font-size:12.5px!important}
#trainSettle .train-settle-metrics small{font-size:11px!important}
#trainSettle .train-settle-rewards span{font-size:11px!important}
.train-settle-note{font-size:11px!important}

/* ---------------------------------------------------------------------
 * 8. 其它（题库中心 / 消息 / 状态条）
 * --------------------------------------------------------------------- */
.qb-cat-meta span{font-size:12px!important}
.sd-status{font-size:12px!important}

/* ── 根容器高度：吃满视口 ── */
.library-browser{height:calc(100dvh - 40px)!important;min-height:640px!important}

/* ── 三栏宽度：左加宽 / 中弹性 / 右封顶 ── */
.library-browser-body,
.library-browser[data-library-kind] .library-browser-body{grid-template-columns:minmax(320px,400px) minmax(0,1fr) minmax(300px,380px)!important;gap:10px!important}
.library-browser[data-library-kind="member"] .library-browser-body.member-root,
.library-browser-body.member-root{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;grid-template-areas:"list"!important}
.library-browser[data-library-kind="member"] .library-browser-body.member-root>.library-panel,
.library-browser-body.member-root>.library-panel{grid-area:list!important;width:100%!important;max-width:none!important;padding:16px 18px!important}
.library-browser-body.member-root>.library-stage,.library-browser-body.member-root>.library-inspector{display:none!important}
.library-browser-body.member-root .library-panel-head{display:none!important}
.library-browser-body.member-root .library-list{padding:2px 2px 8px!important;overflow:auto!important}
.library-browser-body.member-root .lib-member-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;gap:12px!important;align-content:start!important}
.library-browser-body.member-root .lib-member-card{min-width:0!important;min-height:94px!important;display:grid!important;grid-template-columns:48px minmax(0,1fr) auto 16px!important;align-items:center!important;gap:11px!important;padding:13px 14px!important;border:1px solid #e8e4f0!important;border-radius:16px!important;background:linear-gradient(180deg,#fff 0%,#fcfbff 100%)!important;text-align:left!important;box-shadow:0 4px 14px rgba(48,39,89,.035)!important}
.library-browser-body.member-root .lib-member-card:hover{border-color:#cfc5f5!important;box-shadow:0 8px 20px rgba(82,62,165,.08)!important;transform:translateY(-1px)!important}
.library-browser-body.member-root .lib-member-card img{width:46px!important;height:46px!important;object-fit:contain!important}
.library-browser-body.member-root .lib-member-card span{min-width:0!important}
.library-browser-body.member-root .lib-member-card b{display:block!important;overflow:hidden!important;color:#302a3d!important;font-size:14px!important;line-height:1.35!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.library-browser-body.member-root .lib-member-card small{display:block!important;margin-top:4px!important;color:#918a9b!important;font-size:10.5px!important}
.library-browser-body.member-root .lib-member-card em{padding:4px 7px!important;border-radius:999px!important;color:#6755db!important;background:#f0edff!important;font-size:10px!important;font-style:normal!important;font-weight:850!important;white-space:nowrap!important}
.library-browser-body.member-root .lib-member-card .ui-icon{width:14px!important;height:14px!important;color:#aaa3b4!important}
.library-browser-body.list-collapsed,
.library-browser[data-library-kind] .library-browser-body.list-collapsed{grid-template-columns:0 minmax(0,1fr) minmax(300px,380px)!important}

@media (max-width:1479px){
  .library-browser{height:calc(100dvh - 44px)!important}
  .library-browser-body,
  .library-browser[data-library-kind] .library-browser-body{grid-template-columns:minmax(280px,350px) minmax(0,1fr) minmax(280px,340px)!important}
  .library-browser[data-library-kind="member"] .library-browser-body.member-root,
  .library-browser-body.member-root{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;grid-template-areas:"list"!important}
  .library-browser-body.list-collapsed,
  .library-browser[data-library-kind] .library-browser-body.list-collapsed{grid-template-columns:0 minmax(0,1fr) minmax(280px,340px)!important}
}
@media (max-width:1180px){
  .library-browser-body,
  .library-browser[data-library-kind] .library-browser-body{grid-template-columns:minmax(240px,290px) minmax(0,1fr) minmax(250px,300px)!important}
  .library-browser[data-library-kind="member"] .library-browser-body.member-root,
  .library-browser-body.member-root{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;grid-template-areas:"list"!important}
  .library-browser-body.list-collapsed,
  .library-browser[data-library-kind] .library-browser-body.list-collapsed{grid-template-columns:0 minmax(0,1fr) minmax(250px,300px)!important}
}

/* ── 中央舞台：棋盘在更高容器里垂直撑满（wrap 已是 flex:1，无需改动），
      仅把舞台内边距微调，宽屏下棋盘上下不留大空档 ── */
.library-browser-body>.library-stage{padding:12px 16px!important}
.library-stage-board-wrap{padding:8px 0!important}

/* ============ §0 全局交互基线 ============ */
:root {
  --v64-brand: #7459EF;
  --v64-brand-2: #5C42E8;
  --v64-brand-soft: #F1ECFF;
  --v64-brand-wash: #F7F4FF;
  --v64-ink: #221A4C;
  --v64-ink-2: #4C476B;
  --v64-sub: #6B6B7F;
  --v64-faint: #9892A8;
  --v64-line: #E9E4F5;
  --v64-green: #2F9E5B;
  --v64-green-bg: #E9F8EF;
  --v64-red: #D64545;
  --v64-red-bg: #FDEEEC;
  --v64-gold: #F5A623;
  --v64-press: cubic-bezier(.22, .9, .36, 1);
}

:focus-visible {
  outline: 2px solid #8F74F5 !important;
  outline-offset: 2px;
}

/* 主按钮：品牌渐变 + 悬浮抬升 + 按压下沉（对齐 APP ButtonElevation 手感） */
.btn-primary,
.view-page[data-view="home"] .home-course > button,
.study-start-button,
#courseNextBtn,
.train-barrier-actions .btn-primary {
  transition: transform .14s var(--v64-press), box-shadow .2s var(--v64-press), filter .2s var(--v64-press) !important;
}
.btn-primary:hover,
.view-page[data-view="home"] .home-course > button:hover,
.study-start-button:hover,
#courseNextBtn:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.04) !important;
  box-shadow: 0 14px 30px rgba(101, 74, 220, .32) !important;
}
.btn-primary:active,
.view-page[data-view="home"] .home-course > button:active,
.study-start-button:active,
#courseNextBtn:active,
.train-barrier-actions .btn-primary:active {
  transform: translateY(1.5px) !important;
  box-shadow: 0 4px 10px rgba(101, 74, 220, .22) !important;
  filter: brightness(.98) !important;
}

/* 次按钮（ghost）统一悬浮反馈 */
.btn-ghost,
.course-answer-btn,
.train-barrier-actions .btn-ghost,
.home-road-back,
.qb-back {
  transition: transform .14s var(--v64-press), border-color .16s ease, background-color .16s ease, color .16s ease !important;
}
.btn-ghost:hover,
.course-answer-btn:hover,
.train-barrier-actions .btn-ghost:hover,
.qb-back:hover {
  border-color: #B9A6F5 !important;
  color: var(--v64-brand) !important;
  background-color: var(--v64-brand-wash) !important;
  transform: translateY(-1px) !important;
}
.btn-ghost:active,
.course-answer-btn:active,
.train-barrier-actions .btn-ghost:active,
.qb-back:active { transform: translateY(1px) !important; }

/* 进度条统一动画填充 */
.home-course-progress i,
.course-progress-track i,
.home-road-expanded-progress i,
.task-mini-progress-row .progress i,
.streak-week,
.qb-cat-progress i {
  transition: width .55s var(--v64-press) !important;
}

/* ============ §1 首页 ============ */

/* ---- 1.1 Hero 问候区 ---- */
.view-page[data-view="home"] .home-hero {
  min-height: 148px !important;
  border: 1px solid #ECE7F8 !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 82% 40%, rgba(125, 96, 239, .10), transparent 24%),
    linear-gradient(120deg, #FFFFFF 0%, #FBFAFF 58%, #F5F1FE 100%) !important;
  box-shadow: 0 12px 32px rgba(52, 43, 82, .05) !important;
}
.view-page[data-view="home"] .home-welcome-kicker {
  font-size: 11px !important;
  letter-spacing: .2em !important;
  color: #8B7FD6 !important;
}
.view-page[data-view="home"] .home-user b { font-size: 28px !important; color: var(--v64-ink) !important; }
.view-page[data-view="home"] .home-user span { font-size: 13.5px !important; color: var(--v64-sub) !important; }
.view-page[data-view="home"] .home-hero .home-hero-art img {
  filter: drop-shadow(0 14px 22px rgba(84, 60, 160, .2)) !important;
}
.view-page[data-view="home"] .home-hero .btn-login {
  min-width: 104px !important;
  height: 46px !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  letter-spacing: .06em !important;
  box-shadow: 0 10px 24px rgba(112, 86, 235, .26) !important;
}
.view-page[data-view="home"] .home-hero .btn-login:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 32px rgba(112, 86, 235, .34) !important;
}

/* ---- 1.2 阶段卡（stage banner）---- */
.view-page[data-view="home"] .stage-banner {
  border-radius: 24px !important;
  border: 1px solid #E5DEF7 !important;
  transition: border-color .2s ease, box-shadow .25s ease, transform .2s var(--v64-press) !important;
}
.view-page[data-view="home"] .stage-banner:hover {
  border-color: #C9B8F7 !important;
  box-shadow: 0 16px 38px rgba(52, 43, 82, .09) !important;
  transform: translateY(-2px) !important;
}
.view-page[data-view="home"] .stage-meta {
  font-size: 12px !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 10px rgba(116, 89, 239, .28) !important;
}
.view-page[data-view="home"] .stage-title-row b { font-size: 27px !important; }
.view-page[data-view="home"] .stage-subtitle { font-size: 12.5px !important; line-height: 1.55 !important; }
.view-page[data-view="home"] .stage-nav {
  border-radius: 12px !important;
  transition: background-color .15s ease, color .15s ease, transform .12s var(--v64-press) !important;
}
.view-page[data-view="home"] .stage-nav:hover:not(:disabled) { background: var(--v64-brand-soft) !important; color: var(--v64-brand) !important; transform: translateY(-1px); }
.view-page[data-view="home"] .stage-nav:active:not(:disabled) { transform: translateY(1px); }
.view-page[data-view="home"] .home-course > small { font-size: 13px !important; letter-spacing: .04em !important; }
.view-page[data-view="home"] .home-course > b { font-size: 20px !important; }
.view-page[data-view="home"] .home-course > span { font-size: 12.5px !important; }
.view-page[data-view="home"] .home-course-progress {
  height: 8px !important;
  border-radius: 999px !important;
  background: #EEE9FA !important;
  overflow: hidden !important;
}
.view-page[data-view="home"] .home-course-progress i {
  border-radius: 999px !important;
  background: linear-gradient(90deg, #8F74F5, #6C4CE6) !important;
}
.view-page[data-view="home"] .home-course > button {
  border-radius: 14px !important;
  box-shadow: 0 10px 22px rgba(101, 74, 220, .26) !important;
}

/* ---- 1.3 路线图预览卡 ---- */
.home-road-card {
  border-radius: 24px !important;
  border: 1px solid #E9E4F5 !important;
  box-shadow: 0 12px 32px rgba(52, 43, 82, .05) !important;
}
.home-road-card-head button {
  transition: color .15s ease, transform .14s var(--v64-press) !important;
  border-radius: 10px !important;
}
.home-road-card-head button:hover { color: var(--v64-brand) !important; transform: translateX(2px); }
.home-road-card-head b { font-size: 16.5px !important; }

/* 路径绘制动画：每次渲染路径从无到有画出（组件级反馈，非页面切换动画） */
.home-preview-route .preview-route-main {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: v64RouteDraw .85s var(--v64-press) forwards;
}
@keyframes v64RouteDraw { to { stroke-dashoffset: 0; } }

/* 节点：可读字号 + 悬浮抬升 + 当前节点呼吸光环 */

.home-preview-node { transition: transform .18s var(--v64-press) !important; }
.home-preview-node:not(.locked):hover { transform: translate(-50%, calc(-42% - 4px)) !important; }
.home-preview-node:not(.locked):hover .home-preview-node-orb {
  box-shadow: 0 0 0 6px #EEE9FF, 0 16px 30px rgba(89, 66, 184, .26) !important;
}
.home-preview-node.current .home-preview-node-orb { animation: v64OrbPulse 2.6s ease-in-out infinite !important; }
@keyframes v64OrbPulse {
  0%, 100% { box-shadow: 0 0 0 6px #EEE9FF, 0 10px 24px rgba(89, 66, 184, .16); }
  50% { box-shadow: 0 0 0 12px rgba(238, 233, 255, .5), 0 12px 28px rgba(89, 66, 184, .22); }
}
.home-preview-node-copy b {
  font-size: 14px !important;
  line-height: 1.35 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  white-space: normal !important;
  text-overflow: clip !important;
}
.home-preview-node-copy small { font-size: 12px !important; }
.home-preview-foot {
  border-top: 1px solid #F1EDF9 !important;
  border-radius: 0 0 23px 23px !important;
}
.home-preview-foot > span { font-size: 12.5px !important; font-weight: 700 !important; color: var(--v64-brand) !important; }
.home-preview-foot > b { font-size: 12px !important; }
.home-preview-foot > em { font-size: 11.5px !important; }

/* ---- 1.4 成长小目标条 ---- */
.home-growth-strip { border-radius: 20px !important; border: 1px solid #EAE5F6 !important; }
.home-growth-strip b { font-size: 13.5px !important; }
.home-growth-strip small { font-size: 11.5px !important; }
.home-growth-strip > strong b { font-size: 15px !important; }
.home-growth-strip > span { transition: background-color .16s ease, transform .14s var(--v64-press) !important; border-radius: 14px !important; }
.home-growth-strip > span:hover { background: var(--v64-brand-wash) !important; transform: translateY(-2px) !important; }

/* ---- 1.5 右栏三卡 ---- */
#view:has(.view-page[data-view="home"].active) #sideStats,
#view:has(.view-page[data-view="home"].active) #sideLeague,
#view:has(.view-page[data-view="home"].active) #homeTasks {
  border-radius: 20px !important;
  border: 1px solid #E9E4F5 !important;
  box-shadow: 0 10px 26px rgba(52, 43, 82, .045) !important;
  transition: box-shadow .22s ease, transform .18s var(--v64-press), border-color .2s ease !important;
}
#view:has(.view-page[data-view="home"].active) #sideLeague {
  cursor: pointer !important;
}
#view:has(.view-page[data-view="home"].active) #sideLeague:hover {
  transform: translateY(-3px) !important;
  border-color: #C9B8F7 !important;
  box-shadow: 0 16px 36px rgba(84, 60, 160, .12) !important;
}
.section-subtitle b { font-size: 15.5px !important; }
.home-streak-days { font-size: 23px !important; }
.streak-week i {
  border-radius: 9px !important;
  transition: background-color .2s ease, color .2s ease, transform .14s var(--v64-press) !important;
}
.streak-week i.on { box-shadow: inset 0 -2px 0 rgba(226, 106, 58, .28) !important; }
.streak-week i.today { outline: 2px solid rgba(245, 130, 60, .5) !important; outline-offset: 1px !important; }
.side-assets span {
  border-radius: 12px !important;
  background: #F8F6FE !important;
  border: 1px solid #EFEBFA !important;
  transition: border-color .15s ease, transform .14s var(--v64-press) !important;
}
.side-assets span:hover { border-color: #D6C9F8 !important; transform: translateY(-1px) !important; }
.side-assets b { font-size: 15px !important; }
.home-league-medal { filter: drop-shadow(0 8px 14px rgba(69, 54, 126, .18)) !important; }
.home-league-copy .league-rank { font-size: 21px !important; }
.league-meta span { font-size: 12.5px !important; }
.league-meta small { font-size: 11.5px !important; }
.league-go {
  border-radius: 11px !important;
  font-size: 12px !important;
  background: var(--v64-brand-wash) !important;
  color: var(--v64-brand) !important;
}
.home-task-card-head b { font-size: 15.5px !important; }
.home-task-card-head small { font-size: 12px !important; }
.task-mini-v40 {
  border: 1px solid #ECE8F7 !important;
  border-radius: 13px !important;
  transition: border-color .16s ease, background-color .16s ease, transform .14s var(--v64-press) !important;
}
.task-mini-v40:hover {
  border-color: #D5CBFA !important;
  background: #FBFAFF !important;
  transform: translateY(-1px) !important;
}
.task-mini-title b { font-size: 12.5px !important; }
.task-mini-title small { font-size: 11.5px !important; }
.task-mini-main p { font-size: 11px !important; }
.task-mini-progress-row small { font-size: 10.5px !important; }
.task-mini-progress-row .progress { border-radius: 999px !important; background: #EFEBFA !important; }
.task-mini-progress-row .progress i { border-radius: 999px !important; background: linear-gradient(90deg, #8F74F5, #684CE7) !important; }
.home-task-reward { font-size: 10px !important; }
.home-side-task-more {
  border-radius: 11px !important;
  font-size: 12px !important;
  background: var(--v64-brand-wash) !important;
  color: var(--v64-brand) !important;
  transition: background-color .15s ease !important;
}
.home-side-task-more:hover { background: var(--v64-brand-soft) !important; }

/* ---- 1.6 路线展开层 / 阶段抽屉 ---- */
.home-road-classic-label b { font-size: 14px !important; }
.home-road-classic-label small { font-size: 11px !important; }
.home-road-classic-track .duo-slot .node-label b { font-size: 13px !important; }
.home-road-classic-track .duo-slot .node-label small { font-size: 11px !important; }
.home-road-classic-track .duo-node {
  transition: transform .16s var(--v64-press), box-shadow .18s ease !important;
}
.home-road-classic-track .duo-node:not(.locked):hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 6px 0 var(--section-dark), 0 14px 26px rgba(49, 35, 102, .22) !important;
}
.home-road-classic-track .duo-node:not(.locked):active { transform: translateY(1px) !important; }
.stage-drawer-item { border-radius: 14px !important; transition: border-color .15s ease, background-color .15s ease, transform .14s var(--v64-press) !important; }
.stage-drawer-item:hover { background: var(--v64-brand-wash) !important; transform: translateX(2px) !important; }

/* ============ §2 学习页 ============ */

/* ---- 2.1 顶栏 ---- */










.stp-bags i { transition: transform .18s var(--v64-press) !important; }


/* ---- 2.2 导师舞台 ---- */















/* ---- 2.3 今日训练目标卡 ---- */


#studyTarget { font-size: 23px !important; letter-spacing: .01em !important; }
#studyTargetMeta { font-size: 13.5px !important; line-height: 1.6 !important; }
.plan-adjust {
  border-radius: 999px !important;
  font-size: 12.5px !important;
  transition: background-color .15s ease, color .15s ease, transform .14s var(--v64-press) !important;
}
.plan-adjust:hover { background: var(--v64-brand-soft) !important; color: var(--v64-brand) !important; transform: translateY(-1px) !important; }



.study-start-button{
  min-height: 56px !important;
  height: 56px !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 26px rgba(118, 81, 236, .28) !important;
}
.study-start-button b{ font-size: 17px !important; letter-spacing: .04em !important; }
.study-start-button small{ font-size: 12px !important; }



/* ---- 2.4 SMART TRAINING 右栏 ---- */









/* 快捷入口：2×2 磁贴，图标瓦片 + 悬浮抬升 */








/* ---- 2.5 调整训练弹层 ---- */






.study-mode-options { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
.study-mode-choice {
  border-radius: 14px !important;
  border: 1.5px solid #ECE8F7 !important;
  transition: border-color .16s ease, background-color .16s ease, transform .14s var(--v64-press), box-shadow .18s ease !important;
}
.study-mode-choice:hover { border-color: #C9B8F7 !important; transform: translateY(-2px) !important; }
.study-mode-choice:active { transform: translateY(1px) !important; }
.study-mode-choice.active {
  border-color: var(--v64-brand) !important;
  background: var(--v64-brand-wash) !important;
  box-shadow: 0 8px 20px rgba(116, 89, 239, .14) !important;
}
.study-mode-choice b { font-size: 13.5px !important; }
.study-mode-choice small { font-size: 11.5px !important; }
.study-inline-options button {
  border-radius: 999px !important;
  font-size: 12.5px !important;
  border: 1.5px solid #E4DFF2 !important;
  transition: all .15s ease !important;
}
.study-inline-options button:hover { border-color: #C9B8F7 !important; color: var(--v64-brand) !important; }
.study-inline-options button.active {
  background: linear-gradient(135deg, #795EF2, #5C42E8) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(101, 74, 220, .24) !important;
}
.study-adjust-summary { grid-template-columns: 1fr 1fr !important; }
.study-adjust-summary small { font-size: 11.5px !important; }
.study-adjust-summary b { font-size: 13px !important; }


/* ============ §3 题库中心（qb） ============ */
.qb-head { border-radius: 18px !important; border: 1px solid #E9E4F5 !important; }
.qb-head-copy h2 { font-size: 20px !important; }
.qb-head-copy small { font-size: 12px !important; }

/* 入口网格：图标瓦片化 + 分色 + 悬浮抬升 */
.qb-grid { gap: 12px !important; }
.qb-grid button {
  border: 1px solid #ECE8F7 !important;
  border-radius: 15px !important;
  padding: 14px 12px !important;
  transition: border-color .16s ease, background-color .16s ease, transform .15s var(--v64-press), box-shadow .2s ease !important;
}
.qb-grid button:hover {
  transform: translateY(-3px) !important;
  border-color: #C9B8F7 !important;
  background: #FBFAFF !important;
  box-shadow: 0 12px 26px rgba(84, 60, 160, .1) !important;
}
.qb-grid button:active { transform: translateY(1px) !important; }
.qb-grid button > span {
  width: 44px !important;
  height: 44px !important;
  border-radius: 13px !important;
  color: #fff !important;
}
.qb-grid button b { font-size: 14px !important; }
.qb-grid button small { font-size: 11.5px !important; }
/* 五个训练入口分色（对齐 Flutter 分类色板循环） */
.qb-grid button:nth-child(4n/**/+1) > span { background: linear-gradient(145deg, #8F74F5, #684CE8) !important; }
.qb-grid button:nth-child(4n/**/+2) > span { background: linear-gradient(145deg, #18DCAB, #0FB98B) !important; }
.qb-grid button:nth-child(4n/**/+3) > span { background: linear-gradient(145deg, #FFB347, #F08A2C) !important; }
.qb-grid button:nth-child(4n/**/+4) > span { background: linear-gradient(145deg, #7FA8F0, #5C82E0) !important; }

.qb-level-section header b { font-size: 16px !important; }
.qb-level-section header small { font-size: 12px !important; }
.qb-cat-card {
  border: 1px solid #ECE8F7 !important;
  border-radius: 15px !important;
  transition: border-color .16s ease, transform .15s var(--v64-press), box-shadow .2s ease !important;
}
.qb-cat-card:hover {
  transform: translateY(-3px) !important;
  border-color: #C9B8F7 !important;
  box-shadow: 0 12px 26px rgba(84, 60, 160, .1) !important;
}
.qb-cat-card:active { transform: translateY(1px) !important; }
.qb-cat-info b { font-size: 15px !important; }
.qb-cat-info small { font-size: 12px !important; }
.qb-cat-progress { height: 6px !important; border-radius: 999px !important; background: #EFEBFA !important; }
.qb-cat-progress i { border-radius: 999px !important; background: linear-gradient(90deg, #8F74F5, #684CE7) !important; }
.qb-cat-meta span { font-size: 12px !important; }
.qb-cat-meta em {
  border-radius: 999px !important;
  font-size: 12px !important;
  padding: 5px 12px !important;
  transition: filter .15s ease !important;
}
.qb-cat-card:hover .qb-cat-meta em { filter: brightness(1.06) !important; }
.qb-loading { font-size: 13px !important; }

/* 骨架屏（questionbank.js loadHub 渲染） */
.qb-skeleton { display: flex; flex-direction: column; gap: 14px; }
.qb-sk-card { border: 1px solid #EFEBFA; border-radius: 16px; background: #fff; padding: 16px; }
.qb-sk-row { display: flex; align-items: center; gap: 12px; }
.qb-sk-chip { width: 120px; height: 16px; border-radius: 6px; }
.qb-sk-cta { margin-left: auto; width: 132px; height: 42px; border-radius: 12px; }
.qb-sk-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.qb-sk-grid i { height: 92px; border-radius: 14px; }
.qb-sk-head { width: 180px; height: 18px; border-radius: 6px; margin-bottom: 12px; }
.qb-sk-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qb-sk-cats i { height: 84px; border-radius: 14px; }
.qb-skeleton .qb-sk-chip, .qb-skeleton .qb-sk-cta, .qb-skeleton .qb-sk-grid i,
.qb-skeleton .qb-sk-head, .qb-skeleton .qb-sk-cats i {
  background: linear-gradient(100deg, #F1EEF9 30%, #FAF8FF 50%, #F1EEF9 70%);
  background-size: 200% 100%;
  animation: v64SkShimmer 1.3s ease-in-out infinite;
}
@keyframes v64SkShimmer { from { background-position: 120% 0; } to { background-position: -80% 0; } }

/* ============ §4 做题页（course 模式） ============ */

/* 运行台头部 */
.train-play-head { border-radius: 16px !important; }
.train-back-btn {
  border-radius: 12px !important;
  transition: background-color .15s ease, transform .12s var(--v64-press) !important;
}
.train-back-btn:hover { background: var(--v64-brand-soft) !important; transform: translateX(-1px) !important; }
.train-title-stack b { font-size: 17px !important; }
.train-play-meta { font-size: 12px !important; }
.train-turn-chip { border-radius: 999px !important; font-size: 12px !important; }

/* 面板主体 */
.course-panel {
  border-radius: 20px !important;
  border: 1px solid #E7E1F5 !important;
  box-shadow: 0 14px 34px rgba(52, 43, 82, .06) !important;
}
.course-coach-avatar {
  width: 52px !important;
  height: 52px !important;
  border-radius: 16px !important;
  object-fit: cover !important;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #DCD0FA !important;
}
.course-coach-copy span { font-size: 11px !important; letter-spacing: .1em !important; color: #8B7FD6 !important; }
.course-coach-copy b { font-size: 16.5px !important; }
.course-coach-copy small { font-size: 11.5px !important; }
.course-head-badges { gap: 6px !important; }
.course-vigor, .course-count {
  font-size: 11.5px !important;
  border-radius: 999px !important;
  padding: 4px 10px !important;
  background: #F4F1FC !important;
  border: 1px solid #E7E0F6 !important;
  color: var(--v64-ink-2) !important;
}

/* 连胜头标 */
.course-streak-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  border-radius: 999px !important;
  padding: 4px 11px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #C2500A !important;
  background: linear-gradient(135deg, #FFEFD6, #FFDCAD) !important;
  border: 1px solid #F5C88F !important;
}
.course-streak-chip svg { color: #F0742A !important; }
.course-streak-chip b { font-size: 13px !important; color: #B44406 !important; }
.course-streak-chip.pop { animation: v64ChipPop .45s var(--v64-press) !important; }
@keyframes v64ChipPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.22) rotate(-2deg); }
  100% { transform: scale(1); }
}

/* 进度条 */
.course-progress-track { height: 7px !important; border-radius: 999px !important; background: #EEE9FA !important; }
.course-progress-track i { border-radius: 999px !important; background: linear-gradient(90deg, #8F74F5, #684CE6) !important; }

/* 轮次徽章 */
.course-turn-badge { border-radius: 12px !important; }
.course-turn-badge span { font-size: 12.5px !important; }

.course-question-copy { background: #FAF9FE !important; border: 1px solid #F0ECF9 !important; border-radius: 14px !important; }
#coursePrompt { font-size: 15.5px !important; line-height: 1.7 !important; font-weight: 600 !important; color: var(--v64-ink) !important; }
#courseGuide { font-size: 12.5px !important; line-height: 1.6 !important; color: var(--v64-sub) !important; }

/* 反馈条：对错图标 + 入场动效 */
.course-feedback {
  min-height: 54px !important;
  border-radius: 13px !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 12px 14px !important;
  background: #F6F4FB !important;
  border: 1px solid #ECE7F6 !important;
  color: var(--v64-ink-2) !important;
}
.course-feedback::before {
  flex: none !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #fff !important;
  background: #A99FC4 !important;
  content: "" !important;
}
.course-feedback.correct { background: var(--v64-green-bg) !important; border-color: #BFE8CE !important; color: #1E6B41 !important; }
.course-feedback.correct::before { content: "✓" !important; background: var(--v64-green) !important; font-style: normal !important; font-family: inherit !important; }
.course-feedback.wrong { background: var(--v64-red-bg) !important; border-color: #F3C7C3 !important; color: #A63232 !important; }
.course-feedback.wrong::before { content: "✕" !important; background: var(--v64-red) !important; font-style: normal !important; font-family: inherit !important; }
.course-feedback.fx-in { animation: v64FeedbackIn .32s var(--v64-press) !important; }
@keyframes v64FeedbackIn {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 答错时棋盘轻震（组件级反馈） */
.train-board-wrap.fx-shake { animation: v64BoardShake .4s ease !important; }
@keyframes v64BoardShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  45% { transform: translateX(4px); }
  70% { transform: translateX(-2px); }
}

/* 工具按钮（提示/收藏/上报/声音） */
.course-side-actions { grid-template-columns: repeat(4, 1fr) !important; gap: 8px !important; }
.course-side-actions button {
  min-height: 42px !important;
  border-radius: 11px !important;
  font-size: 12px !important;
  background: #F4F2FB !important;
  border: 1px solid #E7E2F4 !important;
  color: var(--v64-ink-2) !important;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .12s var(--v64-press) !important;
}
.course-side-actions button:hover:not(:disabled) {
  border-color: #C9B8F7 !important;
  background: var(--v64-brand-wash) !important;
  color: var(--v64-brand) !important;
  transform: translateY(-1px) !important;
}
.course-side-actions button:active:not(:disabled) { transform: translateY(1px) !important; }
.course-side-actions button:disabled { opacity: .45 !important; }
.course-side-actions button.muted { color: #B0AABF !important; }

/* 答案 / 下一题 */
.course-next-row { gap: 10px !important; }
.course-answer-btn { height: 46px !important; border-radius: 13px !important; font-size: 13.5px !important; }
#courseNextBtn {
  height: 48px !important;
  border-radius: 13px !important;
  font-size: 14.5px !important;
  letter-spacing: .03em !important;
  box-shadow: 0 10px 22px rgba(101, 74, 220, .26) !important;
}
#courseNextBtn.auto-armed { animation: v64AutoPulse 1s ease-in-out infinite !important; }
@keyframes v64AutoPulse {
  0%, 100% { box-shadow: 0 10px 22px rgba(101, 74, 220, .26); }
  50% { box-shadow: 0 10px 22px rgba(101, 74, 220, .26), 0 0 0 6px rgba(143, 116, 245, .16); }
}

/* 自动下一题开关（iOS 风格 switch） */
.course-autonext {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 2px !important;
  cursor: pointer !important;
  user-select: none !important;
}
.course-autonext input { position: absolute !important; opacity: 0 !important; pointer-events: none !important; }
.course-autonext i {
  flex: none !important;
  width: 36px !important;
  height: 21px !important;
  border-radius: 999px !important;
  background: #DDD8EA !important;
  position: relative !important;
  transition: background-color .18s ease !important;
}
.course-autonext i::after {
  content: "" !important;
  position: absolute !important;
  top: 2.5px !important;
  left: 2.5px !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: 0 2px 5px rgba(30, 26, 47, .22) !important;
  transition: transform .18s var(--v64-press) !important;
}
.course-autonext input:checked + i { background: linear-gradient(135deg, #8F74F5, #684CE6) !important; }
.course-autonext input:checked + i::after { transform: translateX(15px) !important; }
.course-autonext input:focus-visible + i { outline: 2px solid #8F74F5 !important; outline-offset: 2px !important; }
.course-autonext span { font-size: 12.5px !important; color: var(--v64-sub) !important; }

/* 键盘提示 */
.course-kbd-hints {
  display: block !important;
  margin-top: 10px !important;
  font-size: 11px !important;
  color: #A29CB6 !important;
  text-align: center !important;
}
.course-kbd-hints kbd {
  display: inline-block !important;
  padding: 1px 7px !important;
  margin: 0 3px 0 1px !important;
  border-radius: 6px !important;
  background: #F1EEF9 !important;
  border: 1px solid #E2DCF0 !important;
  border-bottom-width: 2px !important;
  font-family: inherit !important;
  font-size: 10.5px !important;
  color: var(--v64-ink-2) !important;
}

/* AI 计算等待浮层：毛玻璃 */
.train-board-wait {
  border-radius: 18px !important;
  background: rgba(251, 250, 255, .72) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(233, 228, 245, .8) !important;
}
.train-board-wait b { font-size: 14px !important; }
.train-board-wait small { font-size: 12px !important; }

/* 闯关反馈卡（barrier）：对齐 APP ResultDialog 质感 */
.train-barrier-card {
  border-radius: 22px !important;
  box-shadow: 0 30px 80px rgba(30, 26, 47, .3) !important;
}
.train-barrier-mask.show .train-barrier-card { animation: v64BarrierIn .3s var(--v64-press) !important; }
@keyframes v64BarrierIn {
  from { opacity: 0; transform: translateY(16px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.train-barrier-mentor img { width: 96px !important; height: 96px !important; object-fit: contain !important; filter: drop-shadow(0 10px 18px rgba(74, 53, 151, .2)) !important; }
.train-barrier-copy span { font-size: 11px !important; letter-spacing: .16em !important; color: #8B7FD6 !important; }
.train-barrier-copy h3 { font-size: 19px !important; }
.train-barrier-copy p { font-size: 13px !important; line-height: 1.6 !important; }
.train-barrier-actions button { height: 46px !important; border-radius: 13px !important; font-size: 14px !important; }

/* ============ §5 连胜庆祝层（对齐 APP WinStreakEffect） ============ */
.course-streak-fx {
  position: fixed !important;
  inset: 0 !important;
  z-index: 96 !important;
  pointer-events: none !important;
  display: grid !important;
  place-items: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity .28s ease, visibility .28s ease !important;
  background: radial-gradient(circle at 50% 42%, rgba(52, 40, 12, .1), rgba(30, 26, 47, .3)) !important;
}
.course-streak-fx.show { opacity: 1 !important; visibility: visible !important; }
.csf-inner {
  position: relative !important;
  text-align: center !important;
  transform: scale(.55) !important;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) !important;
}
.course-streak-fx.show .csf-inner { transform: scale(1) !important; }
.csf-inner b {
  display: block !important;
  font-size: 60px !important;
  font-weight: 900 !important;
  letter-spacing: .05em !important;
  line-height: 1.1 !important;
  background: linear-gradient(180deg, #FFE27A 0%, #FFC22E 55%, #FF8A00 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  filter: drop-shadow(0 3px 0 rgba(150, 92, 12, .3)) drop-shadow(0 10px 26px rgba(255, 170, 40, .4)) !important;
}
.csf-inner small {
  display: inline-block !important;
  margin-top: 12px !important;
  padding: 6px 16px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #7A5A16 !important;
  background: rgba(255, 244, 214, .92) !important;
  border: 1px solid rgba(245, 200, 143, .8) !important;
}
.csf-confetti {
  position: absolute !important;
  top: -16px !important;
  left: var(--cx) !important;
  width: 9px !important;
  height: 13px !important;
  border-radius: 2px !important;
  opacity: 0 !important;
  background: #8F6BF2 !important;
  animation: v64ConfettiFall var(--cd) var(--cdl) cubic-bezier(.15, .55, .45, 1) forwards !important;
}
.csf-confetti:nth-child(4n/**/+2) { background: #FFC24B !important; }
.csf-confetti:nth-child(4n/**/+3) { background: #35C48F !important; }
.csf-confetti:nth-child(4n/**/+4) { background: #FF8A65 !important; }
@keyframes v64ConfettiFall {
  0% { opacity: 1; transform: translate3d(0, -10px, 0) rotate(0deg) scale(var(--cs)); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(calc((var(--cd) - 1.45) * 130px), 78vh, 0) rotate(calc(var(--cd) * 320deg + var(--cr))) scale(var(--cs)); }
}

/* ============ §6 响应式收敛 ============ */
@media (max-width: 1280px) {
  .view-page[data-view="home"] .home-hero .home-hero-art { right: 12px !important; }
  .qb-sk-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1080px) {
  .qb-sk-grid { grid-template-columns: repeat(2, 1fr); }
  .csf-inner b { font-size: 44px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .home-preview-route .preview-route-main,
  .home-preview-node.current .home-preview-node-orb,
  .course-streak-fx .csf-confetti,
  #courseNextBtn.auto-armed,
  .qb-skeleton .qb-sk-grid i,
  .qb-skeleton .qb-sk-chip,
  .qb-skeleton .qb-sk-cta,
  .qb-skeleton .qb-sk-head,
  .qb-skeleton .qb-sk-cats i { animation: none !important; }
}

/* ═══ §0 基线：缓动 / 滚动条 / 工具行按钮 ═══ */
.library-browser{
  --v65-press: cubic-bezier(.22,.9,.36,1);
  --v65-violet:#7860F0;
  --v65-violet-deep:#6744E9;
  --v65-gold:#B98E3E;
  --v65-gold-strong:#C9A227;
  --v65-ink:#37324E;
  --v65-muted:#8B85A3;
}
.library-panel .library-list::-webkit-scrollbar{width:8px}
.library-panel .library-list::-webkit-scrollbar-thumb{background:#e4ddcd;border-radius:8px;border:2px solid #fffbf6}
.library-panel .library-list::-webkit-scrollbar-thumb:hover{background:#d3c8ac}
.library-panel .library-list::-webkit-scrollbar-track{background:transparent}

.library-inner-head .library-back,
.library-inner-head .library-refresh{
  transition:transform .18s var(--v65-press),box-shadow .18s,border-color .18s,background .18s;
}
.library-inner-head .library-back:hover,
.library-inner-head .library-refresh:hover{
  transform:translateY(-1px);border-color:#cfc2f2;color:#684ee1;
  box-shadow:0 7px 16px rgba(90,70,180,.12);
}
.library-inner-head .library-back:active,
.library-inner-head .library-refresh:active{transform:translateY(1px);box-shadow:none}
.lib-list-toggle{transition:transform .18s var(--v65-press),background .16s,border-color .16s,box-shadow .16s}
.lib-list-toggle:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(104,78,225,.14)}
.lib-list-toggle:active{transform:translateY(1px);box-shadow:none}

/* ═══ §1 左列表：卡片精修（檀木暖纸 + 金选中 + 紫悬停） ═══ */
.lib-item-card{
  transition:transform .2s var(--v65-press),box-shadow .2s var(--v65-press),border-color .2s,background .2s;
}
.lib-item-card:hover{
  transform:translateY(-2px);
  border-color:#cfb26a;
  box-shadow:0 10px 24px rgba(70,54,31,.14);
}
.lib-item-card:active{transform:translateY(0)}
.lib-item-card.selected{
  border-color:var(--v65-gold-strong);
  background:linear-gradient(180deg,#fdf6e4,#faf0d9);
  box-shadow:0 8px 22px rgba(185,142,62,.22),inset 0 0 0 1px rgba(201,162,39,.28);
}
.lib-item-card.selected::before{width:4px;background:linear-gradient(180deg,var(--v65-gold-strong),var(--v65-gold))}
.lib-row-no{font-variant-numeric:tabular-nums;letter-spacing:.02em;transition:color .18s}
.lib-item-card:hover .lib-row-no{color:#a0782a}
.lib-item-card.selected .lib-row-no{color:var(--v65-gold-strong)}
.lib-row-chevron{transition:color .18s,transform .2s var(--v65-press)}
.lib-item-card:hover .lib-row-chevron{color:var(--v65-violet);transform:translateX(2px)}
.lib-item-card.selected .lib-row-chevron{color:var(--v65-gold-strong)}

/* 直播中状态：呼吸红点 */
.lib-item-status.live{position:relative;padding-left:14px}
.lib-item-status.live::before{
  content:"";position:absolute;left:5px;top:50%;width:5px;height:5px;margin-top:-2.5px;border-radius:50%;
  background:var(--lib-seal,#c1432e);animation:v65Pulse 1.6s ease-in-out infinite;
}
@keyframes v65Pulse{0%,100%{box-shadow:0 0 0 0 rgba(193,67,46,.45)}55%{box-shadow:0 0 0 5px rgba(193,67,46,0)}}

.lib-item-del{
  transition:transform .16s var(--v65-press),filter .16s,box-shadow .16s;
}
.lib-item-card:hover .lib-item-del:hover{transform:translateY(-1px);filter:brightness(1.06)}
.lib-item-card:hover .lib-item-del:active{transform:translateY(1px);box-shadow:none}

/* records 分类过滤胶囊 */
.lib-gtype-row button{transition:transform .16s var(--v65-press),background .16s,border-color .16s,color .16s,box-shadow .16s}
.lib-gtype-row button:hover{transform:translateY(-1px)}
.lib-gtype-row button:active{transform:translateY(1px)}
.lib-gtype-row button.active{
  background:linear-gradient(135deg,#7860F0,#6744E9);border-color:transparent;color:#fff;
  box-shadow:0 6px 15px rgba(104,78,225,.3);
}

/* 名家分组卡 */
.lib-member-card{transition:transform .2s var(--v65-press),box-shadow .2s,border-color .2s}
.lib-member-card:active{transform:translateY(0) scale(.99)}
.lib-member-card img{transition:transform .25s var(--v65-press)}
.lib-member-card:hover img{transform:scale(1.06)}

/* 加载更多 */
.lib-more{
  transition:transform .18s var(--v65-press),background .18s,color .18s,box-shadow .18s;
  box-shadow:0 4px 12px rgba(70,54,31,.08);
}
.lib-more:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(70,54,31,.14)}
.lib-more:active{transform:translateY(1px);box-shadow:none}

.lib-skeleton-list{display:grid;gap:10px;padding:4px 2px}
.lib-skeleton-card{
  display:grid;grid-template-columns:34px minmax(0,1fr);column-gap:10px;align-items:center;
  min-height:76px;padding:11px 12px;border:1px solid #ece4d2;border-radius:14px;background:#fffdf6;
}
.lib-skeleton-card i{width:26px;height:26px;border-radius:50%;grid-row:span 3}
.lib-skeleton-card b,.lib-skeleton-card small{height:12px;border-radius:6px;background:linear-gradient(100deg,#efe7d4 30%,#f9f3e4 50%,#efe7d4 70%);background-size:220% 100%;animation:v65Shimmer 1.3s linear infinite}
.lib-skeleton-card b{width:72%}
.lib-skeleton-card small{width:52%;margin-top:7px}
.lib-skeleton-card small.w60{width:38%;margin-top:9px;height:10px}
@keyframes v65Shimmer{0%{background-position:130% 0}100%{background-position:-90% 0}}
@media (prefers-reduced-motion:reduce){.lib-skeleton-card b,.lib-skeleton-card small,.lib-item-status.live::before{animation:none}}

/* ═══ §2 中央舞台：棋盘入场 / 手数标尺 / 导航 ═══ */
.library-browser-board.fx-in{animation:v65BoardIn .32s var(--v65-press)}
@keyframes v65BoardIn{from{opacity:.25;transform:scale(.985)}to{opacity:1;transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.library-browser-board.fx-in{animation:none}}

.library-stage-nav button{
  transition:transform .16s var(--v65-press),border-color .16s,background .16s,color .16s,box-shadow .16s;
}
.library-stage-nav button:hover{transform:translateY(-1.5px);box-shadow:0 6px 14px rgba(104,78,225,.16)}
.library-stage-nav button:active{transform:translateY(1px);box-shadow:none}
.library-stage-nav input[type=range]{
  background:linear-gradient(90deg,#e9e4f4,#e9e4f4) no-repeat center/100% 4px;height:20px;
}
.library-stage-nav input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;width:16px;height:16px;border-radius:50%;
  background:linear-gradient(145deg,#8F74F5,#6744E9);border:3px solid #fff;
  box-shadow:0 2px 7px rgba(103,68,233,.4);cursor:pointer;
}
.lib-stage-count{color:var(--v65-ink)}
.lib-stage-count b,.lib-stage-count{font-variant-numeric:tabular-nums}
.lib-stage-kbd-hint{
  flex:none;display:inline-flex;align-items:center;gap:4px;
  font-size:11px;color:#a49dba;white-space:nowrap;
}
.lib-stage-kbd-hint kbd{
  display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 4px;
  border:1px solid #e3dcec;border-bottom-width:2px;border-radius:5px;background:#fff;
  font-family:inherit;font-size:10px;color:#7c7590;font-variant-numeric:tabular-nums;
}

/* 手数标尺（设计稿05：底部手数导航条，当前手高亮） */
.lib-stage-ruler{
  flex:none;display:flex;align-items:center;height:30px;margin-top:7px;
  overflow-x:auto;overflow-y:hidden;scrollbar-width:none;
  border-top:1px solid #f1eff5;padding:0 2px;
}
.lib-stage-ruler::-webkit-scrollbar{display:none}
.lib-stage-ruler[hidden]{display:none}
.lib-stage-ruler button{
  flex:none;min-width:27px;height:23px;padding:0 4px;margin:0 1px;
  border:0;border-radius:7px;background:transparent;color:#9b93b4;
  font:700 11px/1 inherit;font-variant-numeric:tabular-nums;cursor:pointer;
  transition:background .13s,color .13s,transform .13s;
}
.lib-stage-ruler button:hover{background:#f0ecff;color:#684ee1}
.lib-stage-ruler button:active{transform:translateY(1px)}
.lib-stage-ruler button.milestone{color:#6e6788}
.lib-stage-ruler button.cur{
  background:linear-gradient(180deg,var(--v65-gold-strong),#b4841f);color:#fff;
  box-shadow:0 3px 9px rgba(184,132,31,.38);transform:translateY(-1px);
}

/* 空态：圆形图标底 + 呼吸 */
.library-stage-empty span{
  width:54px;height:54px;border-radius:50%;display:grid;place-items:center;
  background:#f3f0fa;color:#a9a1c2;margin-bottom:4px;
  animation:v65Float 2.6s ease-in-out infinite;
}
.library-stage-empty .ui-icon{width:25px;height:25px}
@keyframes v65Float{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@media (prefers-reduced-motion:reduce){.library-stage-empty span{animation:none}}

/* ═══ §3 右侧 Inspector 三卡 ═══ */
.lib-card{
  transition:box-shadow .2s,border-color .2s;
}
.lib-card.info header small{color:#7d6ee0}
.lib-card.ai header small{color:#b28a2e}
.lib-card.study header small{color:#3f9a56}
.lib-card.info{border-color:#efecf9}
.lib-card.ai{border-color:#f3ecd9}
.lib-card.study{border-color:#e7f1e9}
.lib-card .lib-inspector-players{background:#faf9fc;border:1px solid #f1eff6;border-radius:12px}
.lib-card .lib-inspector-players b{color:#2f2a44}
.lib-card .lib-inspector-players em{color:#b3adc2}
.lib-card .lib-inspector-players .stone.b{background:#1d1d24;box-shadow:inset 0 -2px 3px rgba(255,255,255,.22)}
.lib-card .lib-inspector-players .stone.w{background:#fdfcfa;box-shadow:inset 0 1px 2px rgba(0,0,0,.14)}
.lib-card .lib-inspector-meta span{background:#f8f7fb;border:1px solid #f1eff6;border-radius:10px}
.lib-card .lib-inspector-meta b{color:#3a3550}
.lib-card .lib-inspector-meta span:first-child b{color:var(--v65-gold-strong)}
.lib-inspector-tags span{letter-spacing:.02em}

/* 主按钮：紫渐变 + 物理按压（对齐 APP ReportButton / 全站按钮语言） */
.lib-inspector-open{
  background:linear-gradient(135deg,#7860F0,#6744E9);
  color:#fff;font-weight:800;letter-spacing:.02em;
  box-shadow:0 8px 20px rgba(104,78,225,.28);
  transition:transform .18s var(--v65-press),box-shadow .18s,filter .18s;
}
.lib-inspector-open:not(:disabled):hover{
  transform:translateY(-2px);filter:brightness(1.05);
  box-shadow:0 12px 26px rgba(104,78,225,.36);
}
.lib-inspector-open:not(:disabled):active{transform:translateY(1.5px);box-shadow:0 4px 10px rgba(104,78,225,.22)}
.lib-inspector-open:disabled{background:#dedbe6;color:#aaa5b2;box-shadow:none}

/* 学习助手：能力行 hover + 载入进度填充 */
.lib-study-features i{transition:background .16s,border-color .16s,transform .16s var(--v65-press)}
.lib-study-features i:hover{transform:translateY(-1px)}
.lib-study-progress i{transition:width .55s var(--v65-press)}

.library-browser[data-library-kind="tournament"] .lib-item-card{transition:transform .2s var(--v65-press),box-shadow .2s,border-color .2s,background .2s!important}
.library-browser[data-library-kind="tournament"] .lib-item-card:hover{transform:translateY(-2px)!important;box-shadow:0 10px 22px rgba(47,40,67,.12)!important;border-color:#cfb26a!important}
.library-browser[data-library-kind="tournament"] .lib-item-card.selected{border-color:var(--v65-gold-strong)!important;background:linear-gradient(180deg,#fdf6e4,#faf0d9)!important;box-shadow:0 8px 22px rgba(185,142,62,.22)!important}
/* 注意：显隐依赖 train.css 的全局 [hidden]{display:none!important} 兜底；
   禁止对本类用 display:flex!important 双写（会以 0,3,0 权重反杀 hidden 属性） */

/* ═══ §5 响应式收敛 ═══ */
@media (max-width:1300px){.lib-stage-kbd-hint{display:none}}
@media (max-width:1479px){
  .lib-skeleton-card{min-height:64px}
  .lib-stage-ruler button{min-width:25px;height:22px;font-size:10.5px}
}

/* ═══ §0 基线：缓动 / 焦点环 / 数字 ═══ */
.view-page[data-view="league"]{
  --v66-press: cubic-bezier(.22,.9,.36,1);
  --v66-violet:#7860F0;
  --v66-violet-deep:#6744E9;
  --v66-gold:#C9A227;
  --v66-ink:#211b49;
  --v66-muted:#817b94;
}
.view-page[data-view="league"] .league-history-btn:focus-visible,
.view-page[data-view="league"] .lq-history-back:focus-visible,
.view-page[data-view="league"] .league-match-slot:focus-visible{
  outline:2px solid #9d85f5;outline-offset:2px;border-radius:12px;
}

/* ═══ §1 页头：历史赛况按钮物理按压 ═══ */
.league-history-btn{
  transition:transform .18s var(--v66-press),box-shadow .18s,border-color .18s,background .18s;
}
.league-history-btn:hover{
  transform:translateY(-1px);border-color:#cfc2f2;color:#684ee1;
  box-shadow:0 7px 16px rgba(90,70,180,.12);
}
.league-history-btn:active{transform:translateY(1px);box-shadow:none}

/* ═══ §2 进度卡：进度条入场填充 + 数值质感 ═══ */
.league-fought b,.league-promotion b,.league-rank-chip b{
  font-variant-numeric:tabular-nums;letter-spacing:.01em;
}
.league-fought .progress i,.league-promotion .progress i{
  animation:v66Fill .55s var(--v66-press) both;
}
@keyframes v66Fill{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
.league-promotion-hint b{transition:color .18s}

/* ═══ §3 本周赛程时间轴：卡片按压 / 头像 / 当前节点呼吸 / 错峰入场 ═══ */
.league-match-slot .league-match-card{
  transition:transform .16s var(--v66-press),border-color .16s,box-shadow .16s;
}
.league-match-slot:active .league-match-card{
  transform:translateY(0) scale(.985);
}
.league-opponent-avatar-v44{overflow:hidden;border-radius:50%}
.league-opponent-avatar-v44 img,.league-opponent-avatar-v44 .mentor-portrait{
  transition:transform .22s var(--v66-press);
}
.league-match-slot:hover .league-opponent-avatar-v44 img,
.league-match-slot:hover .league-opponent-avatar-v44 .mentor-portrait{
  transform:scale(1.06);
}
/* 当前可挑战节点：紫色呼吸光环（提醒今日该出手） */
.league-match-slot.current .league-timeline-node{
  animation:v66NodePulse 2.4s ease-in-out infinite;
}
@keyframes v66NodePulse{
  0%,100%{box-shadow:0 0 0 4px #efeaff,0 5px 13px rgba(104,75,226,.20)}
  55%{box-shadow:0 0 0 4px #efeaff,0 0 0 9px rgba(115,86,237,.16),0 5px 13px rgba(104,75,226,.20)}
}
/* 状态结果胶囊轻微入场 */
.league-result-pill{animation:v66PillIn .3s var(--v66-press) both .12s}
@keyframes v66PillIn{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}

/* ═══ §4 战绩榜：行悬停 / 奖牌入场 / 自身行强调 ═══ */
.weekly-battle-rank-row-v44{
  transition:transform .18s var(--v66-press),border-color .18s,box-shadow .18s;
  animation:v66RowIn .3s var(--v66-press) both;
}
.weekly-battle-rank-row-v44:nth-child(1){animation-delay:.03s}
.weekly-battle-rank-row-v44:nth-child(2){animation-delay:.09s}
.weekly-battle-rank-row-v44:nth-child(3){animation-delay:.15s}
@keyframes v66RowIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.weekly-battle-rank-row-v44:hover{
  transform:translateY(-1px);border-color:#cfc4f5;
  box-shadow:0 8px 16px rgba(47,40,67,.06);
}
.weekly-battle-rank-row-v44.self{
  border-color:#8e75f4;
  box-shadow:inset 3px 0 0 0 var(--v66-violet);
}
.weekly-rank-medal{animation:v66MedalIn .34s var(--v66-press) both .1s}
@keyframes v66MedalIn{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}
.weekly-battle-rank-row-v44 strong{
  font-variant-numeric:tabular-nums;color:#2d2748;
}
.weekly-battle-rank-row-v44:hover strong{color:var(--v66-violet-deep)}

.lq-skeleton-progress{
  display:grid;grid-template-columns:210px 1fr 1fr 1.3fr;min-height:116px;align-items:center;
}
.lq-skeleton-progress>span{height:72px;display:flex;flex-direction:column;justify-content:center;gap:9px;padding:0 22px;border-right:1px solid #eeeaf6}
.lq-skeleton-progress>span:last-child{border-right:0}
.lq-sk-chip{flex-direction:row!important;align-items:center;gap:14px}
.lq-sk-chip i{width:54px;height:54px;border-radius:16px;flex:none}
.lq-sk-chip b{width:52px;height:20px}
.lq-sk-col b{width:46%;height:18px}
.lq-sk-col i{width:100%;height:7px;border-radius:999px}
.lq-sk-col.w b{width:64%}
.lq-skeleton-progress i,.lq-skeleton-progress b{
  border-radius:8px;background:linear-gradient(100deg,#efecf5 30%,#f8f6fc 50%,#efecf5 70%);
  background-size:220% 100%;animation:v66Shimmer 1.3s linear infinite;
}
.lq-skeleton-week{
  display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;padding:34px 0 0;
}
.lq-sk-match{
  display:grid;grid-template-rows:28px 38px 19px 1fr;align-items:center;justify-items:center;min-height:206px;
}
.lq-sk-match>span{width:34px;height:13px;border-radius:6px}
.lq-sk-match>i{width:23px;height:23px;border-radius:50%}
.lq-sk-match>b{
  width:86%;height:158px;border-radius:14px;
}
.lq-sk-match>small{width:60%;height:9px;border-radius:6px;margin-top:-10px}
.lq-skeleton-week i,.lq-skeleton-week span,.lq-skeleton-week b,.lq-skeleton-week small{
  background:linear-gradient(100deg,#efecf5 30%,#f8f6fc 50%,#efecf5 70%);
  background-size:220% 100%;animation:v66Shimmer 1.3s linear infinite;
}
.lq-skeleton-battle{display:grid;gap:10px;padding-top:6px}
.lq-sk-rank{
  display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;
  min-height:66px;padding:10px 12px;border:1px solid #e9e5f0;border-radius:13px;
}
.lq-sk-rank>i{width:24px;height:24px;border-radius:50%}
.lq-sk-rank b{display:block;width:40%;height:13px;border-radius:6px}
.lq-sk-rank small{display:block;width:56%;height:10px;border-radius:6px;margin-top:6px}
.lq-sk-rank>u{width:44px;height:14px;border-radius:6px}
.lq-skeleton-battle i,.lq-skeleton-battle b,.lq-skeleton-battle small,.lq-skeleton-battle u{
  background:linear-gradient(100deg,#efecf5 30%,#f8f6fc 50%,#efecf5 70%);
  background-size:220% 100%;animation:v66Shimmer 1.3s linear infinite;
}
@keyframes v66Shimmer{0%{background-position:130% 0}100%{background-position:-90% 0}}

/* ═══ §6 历史赛况：头部 + 返回本周 ═══ */
.weekly-history-head{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding:6px 10px;margin:0 0 12px;border:1px solid #e9e4f3;border-radius:12px;background:#f8f6fd;
}
.weekly-history-head b{font-size:14px;color:var(--v66-ink)}
.weekly-history-head small{flex:1 1 auto;min-width:120px}
.lq-history-back{
  height:30px;padding:0 13px;border-radius:9px;flex:none;cursor:pointer;
  border:1px solid #ddd6ef;background:#fff;color:#684ee1;font-weight:800;font-size:12px;
  transition:transform .16s var(--v66-press),border-color .16s,background .16s,box-shadow .16s;
}
.lq-history-back:hover{
  transform:translateY(-1px);border-color:#bda9f5;background:#f6f2ff;
  box-shadow:0 5px 12px rgba(104,78,225,.14);
}
.lq-history-back:active{transform:translateY(1px);box-shadow:none}

/* ═══ §7 对弈工作区：按钮物理按压 / 等待层 / 选手卡 ═══ */
.lq-duel-actions button{
  transition:transform .16s var(--v66-press),border-color .16s,background .16s,color .16s,box-shadow .16s;
}
.lq-duel-actions button:hover:not(:disabled){
  transform:translateY(-1px);box-shadow:0 6px 14px rgba(104,78,225,.12);
}
.lq-duel-actions button:active:not(:disabled){transform:translateY(1px);box-shadow:none}
.lq-duel-actions button.lq-danger:hover:not(:disabled){
  border-color:#e08a7d;background:#fff4f1;box-shadow:0 6px 14px rgba(208,90,70,.14);
}
.lq-duel-actions button.lq-danger:active:not(:disabled){transform:translateY(1px);box-shadow:none}
.lq-duel-toolbar .lq-duel-back{
  transition:transform .16s var(--v66-press),background .16s,box-shadow .16s;
}
.lq-duel-toolbar .lq-duel-back:hover{transform:translateX(-1px);box-shadow:0 5px 12px rgba(47,40,67,.10)}
.lq-duel-toolbar .lq-duel-back:active{transform:translateX(1px);box-shadow:none}
.lq-player-card{transition:transform .2s var(--v66-press),box-shadow .2s}
.lq-player-card.human.active,.lq-player-card.ai.active{
  transform:translateY(-2px);box-shadow:0 10px 22px rgba(47,40,67,.10);
}
.lq-duel-vs>b{font-variant-numeric:tabular-nums}
.lq-board-wait{
  backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);
  background:rgba(24,22,38,.52);
}
.lq-board-wait b{letter-spacing:.02em}
.lq-board-wait .train-board-wait-spinner{
  animation:v66Spin .9s linear infinite;
}
@keyframes v66Spin{to{transform:rotate(360deg)}}

/* ═══ §8 结算 modal：入场 / 指标错峰 / 按钮按压 ═══ */
.lq-result-card{animation:v66Pop .32s var(--v66-press)}
@keyframes v66Pop{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}
.lq-result-hero>span{animation:v66MedalIn .4s var(--v66-press) both .1s}
.lq-result-metrics article{animation:v66RowIn .3s var(--v66-press) both}
.lq-result-metrics article:nth-child(1){animation-delay:.08s}
.lq-result-metrics article:nth-child(2){animation-delay:.16s}
.lq-result-metrics article:nth-child(3){animation-delay:.24s}
.lq-result-metrics b{font-variant-numeric:tabular-nums}
.lq-result-promotion>i em{animation:v66Fill .6s var(--v66-press) both .15s}
.lq-result-actions button{
  transition:transform .16s var(--v66-press),border-color .16s,background .16s,box-shadow .16s;
}
.lq-result-actions button:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(47,40,67,.10)}
.lq-result-actions button:active{transform:translateY(1px);box-shadow:none}
.lq-result-actions button.primary{
  border-color:transparent;background:linear-gradient(135deg,#7860F0,#6744E9);
  box-shadow:0 8px 18px rgba(104,78,225,.28);
}
.lq-result-actions button.primary:hover{filter:brightness(1.05);box-shadow:0 10px 22px rgba(104,78,225,.34)}

/* ═══ §9 降级与响应式 ═══ */
@media (prefers-reduced-motion:reduce){
  .view-page[data-view="league"] .league-match-slot.current .league-timeline-node,
  .weekly-battle-rank-row-v44,.weekly-rank-medal,.league-result-pill,
  .league-fought .progress i,.league-promotion .progress i,.lq-result-card,
  .lq-result-metrics article,.lq-result-promotion>i em,.lq-result-hero>span,
  .lq-skeleton-progress i,.lq-skeleton-progress b,.lq-skeleton-week i,.lq-skeleton-week span,
  .lq-skeleton-week b,.lq-skeleton-week small,.lq-skeleton-battle i,.lq-skeleton-battle b,
  .lq-skeleton-battle small,.lq-skeleton-battle u,.lq-board-wait .train-board-wait-spinner{
    animation:none;
  }
}
@media (min-width:901px) and (max-width:1250px){
  .lq-skeleton-progress{grid-template-columns:180px 1fr 1fr 1.25fr}
  .lq-skeleton-progress>span{padding:0 15px}
  .lq-skeleton-week{gap:7px}
  .lq-sk-match{min-height:172px}
  .lq-sk-match>b{height:136px}
}

/* ═══ §0 基线：缓动 / 焦点环 / 数字 ═══ */
.view-page[data-view="mine"]{
  --v67-press: cubic-bezier(.22,.9,.36,1);
  --v67-violet:#7860F0;
  --v67-gold:#C9A227;
}
.view-page[data-view="mine"] .mine-quick-grid>button:focus-visible,
.view-page[data-view="mine"] .mine-services-grid>button:focus-visible,
.view-page[data-view="mine"] .mine-ach-claim:focus-visible,
.view-page[data-view="mine"] .mine-msg-entry:focus-visible,
.view-page[data-view="mine"] .mine-profile-open:focus-visible{
  outline:2px solid #9d85f5;outline-offset:2px;
}

/* ═══ §1 用户卡：消息入口 / 资料按钮物理按压 + 红点入场 ═══ */
.mine-msg-entry{
  transition:transform .16s var(--v67-press),border-color .16s,background .16s,color .16s,box-shadow .16s;
}
.mine-msg-entry:hover{
  transform:translateY(-1px);border-color:#cfc2f2;
  box-shadow:0 6px 14px rgba(90,70,180,.12)!important;
}
.mine-msg-entry:active{transform:translateY(1px);box-shadow:none}
.mine-msg-badge{animation:v67BadgePop .32s var(--v67-press)}
@keyframes v67BadgePop{from{transform:scale(.4);opacity:0}to{transform:scale(1);opacity:1}}
.mine-msg-badge[hidden]{display:none}
.mine-profile-open{
  transition:transform .16s var(--v67-press),border-color .16s,background .16s,box-shadow .16s;
}
.mine-profile-open:hover{transform:translateY(-1px);box-shadow:0 5px 12px rgba(47,40,67,.08)}
.mine-profile-open:active{transform:translateY(1px);box-shadow:none}

/* ═══ §2 资产行：瓦片悬停 + 图标微放大 + 数值质感 + 错峰入场 ═══ */
.mine-asset{
  transition:transform .18s var(--v67-press),border-color .18s,box-shadow .18s;
  animation:v67TileIn .3s var(--v67-press) both;
}
.mine-asset:nth-child(2){animation-delay:.05s}
.mine-asset:nth-child(3){animation-delay:.1s}
.mine-asset:nth-child(4){animation-delay:.15s}
@keyframes v67TileIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.mine-asset:hover{
  transform:translateY(-2px)!important;border-color:#d8cdf2!important;
  box-shadow:0 9px 20px rgba(70,55,140,.10)!important;
}
.mine-asset:hover img.asset-nec,.mine-asset:hover img.mine-shield{transform:scale(1.12)}
.mine-asset img.asset-nec,.mine-asset img.mine-shield{transition:transform .2s var(--v67-press)}
.mine-asset-copy b{font-variant-numeric:tabular-nums}
.mine-asset:hover .mine-asset-copy b{color:#5b47d6}

/* ═══ §3 快捷入口：六磁贴双色循环图标底 + 按压 + 箭头滑出 ═══ */
.mine-quick-grid>button{
  transition:transform .16s var(--v67-press),border-color .16s,background .16s,box-shadow .16s;
}
.mine-quick-grid>button:hover{
  transform:translateY(-1.5px);box-shadow:0 8px 18px rgba(78,60,149,.10);
}
.mine-quick-grid>button:active{transform:translateY(1px);box-shadow:none}
.mine-quick-grid>button>.ui-icon:first-child{transition:transform .18s var(--v67-press),background .16s}
.mine-quick-grid>button:hover>.ui-icon:first-child{transform:scale(1.06)}
.mine-quick-grid>button .arrow{transition:transform .18s var(--v67-press),color .18s}
.mine-quick-grid>button:hover .arrow{transform:translateX(3px);color:var(--v67-violet)}
/* 紫金交替瓦片底色（对齐学习页快捷入口语言） */
.mine-quick-grid>button:nth-child(2) .ui-icon:first-child{background:#fff2df;color:#df8d32}
.mine-quick-grid>button:nth-child(4) .ui-icon:first-child{background:#fff2df;color:#df8d32}
.mine-quick-grid>button:nth-child(6) .ui-icon:first-child{background:#fff2df;color:#df8d32}

/* ═══ §4 账户服务：卡按压 + 图标瓦片 hover 放大 ═══ */
.mine-services-grid>button{
  transition:transform .18s var(--v67-press),border-color .18s,background .18s,box-shadow .18s;
}
.mine-services-grid>button:hover{
  transform:translateY(-2px);border-color:#d8cdf2;
  box-shadow:0 10px 22px rgba(78,60,149,.10);
}
.mine-services-grid>button:active{transform:translateY(1px);box-shadow:none}
.mine-services-grid .svc-icon{transition:transform .2s var(--v67-press)}
.mine-services-grid>button:hover .svc-icon{transform:scale(1.08)}

/* ═══ §5 今日任务：真实进度环（conic）+ 任务行反馈 ═══ */
.mine-task-ring{
  position:relative;border:0;
  background:conic-gradient(from -90deg,#7459ef calc(var(--v67-pct,0)*1%),#eae3ff 0);
}
.mine-task-ring::before{
  content:"";position:absolute;inset:9px;border-radius:50%;background:#fff;
}
.mine-task-ring b,.mine-task-ring small{position:relative;z-index:1}
.mine-task-ring b{font-variant-numeric:tabular-nums}
.mine-task-item{
  transition:transform .16s var(--v67-press),border-color .16s,background .16s;
  animation:v67TileIn .3s var(--v67-press) both;
}
.mine-tasks .mine-task-item:nth-child(1){animation-delay:.03s}
.mine-tasks .mine-task-item:nth-child(2){animation-delay:.09s}
.mine-tasks .mine-task-item:nth-child(3){animation-delay:.15s}
.mine-task-item:hover{
  transform:translateY(-1px)!important;border-color:#d8cdf2!important;background:#faf9ff!important;
}
.mine-task-item.done:hover{background:#f0f9f3!important}
.mine-task-check{transition:background .16s,border-color .16s,transform .2s var(--v67-press)}
.mine-task-item.done .mine-task-check{animation:v67MedalIn .34s var(--v67-press) both .1s}
@keyframes v67MedalIn{from{transform:scale(.5);opacity:0}to{transform:scale(1);opacity:1}}
.mine-task-item .progress i{
  animation:v67Fill .55s var(--v67-press) both;
}
@keyframes v67Fill{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
.mine-task-row small,.mine-task-badge{font-variant-numeric:tabular-nums}
.mine-task-badge{animation:v67PillIn .3s var(--v67-press) both .12s}
@keyframes v67PillIn{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}

/* ═══ §6 成就墙：解锁金光 / 锁定 3D 质感 / 领取呼吸 / 悬停 ═══ */
.mine-ach-item{transition:transform .18s var(--v67-press)}
.mine-ach-item:hover{transform:translateY(-2px)}
.mine-ach-item .mine-ach-badge{transition:transform .2s var(--v67-press),box-shadow .2s,border-color .2s}
.mine-ach-item:hover .mine-ach-badge{transform:scale(1.05)}
.mine-ach-item.unlocked .mine-ach-badge{
  border:1px solid #e9d9a8!important;background:linear-gradient(160deg,#fffaf0,#fdf3d8)!important;
  box-shadow:0 6px 16px rgba(201,162,39,.22),inset 0 0 0 1px rgba(201,162,39,.18);
}
.mine-ach-item.locked .mine-ach-badge{
  filter:grayscale(1);
  background:linear-gradient(160deg,#f4f2f6,#e9e7ec)!important;
  box-shadow:inset 0 2px 4px rgba(80,72,110,.14),inset 0 -2px 3px rgba(255,255,255,.75);
}
.mine-ach-item.locked:hover .mine-ach-badge{opacity:.9}
.mine-ach-claim{
  transition:transform .16s var(--v67-press),box-shadow .16s,filter .16s;
  animation:v67ClaimPulse 2.1s ease-in-out infinite;
}
@keyframes v67ClaimPulse{
  0%,100%{box-shadow:0 3px 8px rgba(244,180,92,.35)}
  55%{box-shadow:0 3px 8px rgba(244,180,92,.35),0 0 0 5px rgba(244,180,92,.16)}
}
.mine-ach-claim:hover{transform:translateY(-1.5px);filter:brightness(1.04)}
.mine-ach-claim:active{transform:translateY(1px)}
.mine-ach-item small{font-variant-numeric:tabular-nums}

.mn-sk-assets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.mn-sk-asset{
  display:flex;align-items:center;gap:10px;min-height:72px;padding:12px 13px;
  border:1px solid #ece9f1;border-radius:14px;background:#fff;
}
.mn-sk-asset i{width:29px;height:29px;border-radius:50%;flex:none}
.mn-sk-asset b{display:block;width:44%;height:16px;border-radius:6px}
.mn-sk-asset small{display:block;width:60%;height:10px;border-radius:5px;margin-top:5px}
.mn-sk-tasks{display:grid;gap:8px}
.mn-sk-task{
  display:flex;align-items:center;gap:12px;min-height:63px;padding:10px;
  border:1px solid #ece9f1;border-radius:14px;background:#fff;
}
.mn-sk-task i{width:26px;height:26px;border-radius:50%;flex:none}
.mn-sk-task b{display:block;width:38%;height:13px;border-radius:6px}
.mn-sk-task span{display:block;width:100%;height:7px;border-radius:999px;margin-top:9px}
.mn-sk-achs{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:16px}
.mn-sk-ach{display:flex;flex-direction:column;align-items:center;gap:7px}
.mn-sk-ach i{width:76px;height:76px;border-radius:16px}
.mn-sk-ach u{width:56%;height:10px;border-radius:5px}
.mn-sk-asset i,.mn-sk-asset b,.mn-sk-asset small,.mn-sk-task i,.mn-sk-task b,.mn-sk-task span,
.mn-sk-ach i,.mn-sk-ach u{
  background:linear-gradient(100deg,#efecf5 30%,#f8f6fc 50%,#efecf5 70%);
  background-size:220% 100%;animation:v67Shimmer 1.3s linear infinite;
}
@keyframes v67Shimmer{0%{background-position:130% 0}100%{background-position:-90% 0}}

/* ═══ §8 降级 ═══ */
@media (prefers-reduced-motion:reduce){
  .view-page[data-view="mine"] .mine-msg-badge,.mine-asset,.mine-task-item,
  .mine-task-item.done .mine-task-check,.mine-task-item .progress i,.mine-task-badge,
  .mine-ach-claim,.mn-sk-asset i,.mn-sk-asset b,.mn-sk-asset small,.mn-sk-task i,
  .mn-sk-task b,.mn-sk-task span,.mn-sk-ach i,.mn-sk-ach u{
    animation:none;
  }
}

@media (min-width:901px) and (max-width:1099px){
  
  .web-view,
  #view:has(.view-page[data-view="home"].active){
    grid-template-areas:"nav main"!important;
    grid-template-columns:var(--pc-nav-w) minmax(0,1fr)!important;
  }
  
  .side-nav{
    flex-direction:column!important;
    overflow-x:visible!important;
    overflow-y:auto!important;
    border-right:1px solid #ebe9f0!important;
    border-bottom:0!important;
  }
  .side-nav-btn{
    width:100%!important;
    flex:0 0 auto!important;
    justify-content:flex-start!important;
  }
}

@media (max-width:1150px){
  .library-browser[data-library-kind="member"] .library-browser-body.member-root,
  .library-browser-body.member-root{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;grid-template-areas:"list"!important}
  .library-browser-body,
  .library-browser[data-library-kind] .library-browser-body{
    grid-template-columns:minmax(232px,282px) minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr) auto!important;
    grid-template-areas:"list stage" "insp insp"!important;
  }
  .library-browser-body.list-collapsed,
  .library-browser[data-library-kind] .library-browser-body.list-collapsed{
    grid-template-columns:0 minmax(0,1fr)!important;
  }
  .library-browser-body>.library-panel,
  .library-browser[data-library-kind] .library-browser-body>.library-panel{grid-area:list!important}
  .library-browser-body>.library-stage,
  .library-browser[data-library-kind] .library-browser-body>.library-stage{grid-area:stage!important}
  .library-browser-body>.library-inspector,
  .library-browser[data-library-kind] .library-browser-body>.library-inspector{
    grid-area:insp!important;
    flex-direction:row!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    max-height:36vh!important;
  }
  .library-browser-body>.library-inspector .lib-card,
  .library-browser[data-library-kind] .library-browser-body>.library-inspector .lib-card{
    flex:0 0 272px!important;
  }
}

/* 宏放棋盘可拖动手感 */
.go-board.board-zoomed{ cursor:grab; }
.go-board.board-zoomed:active{ cursor:grabbing; }

/* 题目视图工具放在右侧题目面板；不覆盖棋盘交点。 */
#courseViewBar{position:static;transform:none;display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0;padding:0;background:none;border:0;box-shadow:none;min-width:0}
#courseViewBar[hidden],#courseViewResetBtn[hidden]{display:none!important}
#courseViewBar button{min-height:44px;padding:8px 14px;border:1px solid #ded8fa;border-radius:999px;background:#faf8ff;color:#6552c7;font-size:13px;font-weight:700;line-height:1.25;white-space:nowrap;box-shadow:none;cursor:pointer}
#courseViewBar button:hover,#courseViewBar button[aria-pressed="true"]{background:#ede8ff}
#courseViewBar button:focus-visible{outline:2px solid #7560e5;outline-offset:2px}
#trainPlay[data-train-mode="course"] #trainBoard.board-zoomed:after{display:none}

/* —— 顶栏：只留返回；隐藏模式眉/副标题 meta/轮到谁 chip 与目标提示 —— */
#trainPlay[data-train-mode="course"] .train-play-head .train-mode-eyebrow,
#trainPlay[data-train-mode="course"] .train-play-head .train-play-meta,
#trainPlay[data-train-mode="course"] .train-play-head .train-head-state{
  display:none !important;
}
/* —— 棋盘下对弈长按钮排（手数/提子/AI妙手/查看形势/停一手/悔棋/认输/声音开关）做题态无用 -> 整排隐藏 —— */
#trainPlay[data-train-mode="course"] .train-controls{
  display:none !important;
}

/* —— 导师头顶部：隐藏连续答对连胜火角标与「轮到黑棋」turn 角标（chips） —— */
#trainPlay[data-train-mode="course"] .course-panel .course-streak-chip,
#trainPlay[data-train-mode="course"] .course-panel .course-turn-badge{
  display:none !important;
}

/* —— 低频运营因子：收藏/上报 做题态隐藏（只留 提示/声音 快捷作答入口） —— */
#trainPlay[data-train-mode="course"] #courseCollectBtn,
#trainPlay[data-train-mode="course"] #courseReportBtn{
  display:none !important;
}

/* —— 养成功效与桌面提示：自动下一题开关、键盘提示行 做题态移除 —— */
#trainPlay[data-train-mode="course"] .course-autonext,
#trainPlay[data-train-mode="course"] .course-kbd-hints{
  display:none !important;
}

/* —— 底部主按钮收敛：下一题为主按钮（保留），「查看答案」弱化为次级窄钮 —— */
#trainPlay[data-train-mode="course"] .course-panel .course-answer-btn{
  min-width:0; padding:9px 14px;
}
#trainPlay[data-train-mode="course"] .course-panel .course-next-row{
  justify-content:space-between; align-items:center;
}

/* —— 快捷作答（提示/声音）统一为紧凑圆润小按钮，不再撑满整行 —— */
#trainPlay[data-train-mode="course"] .course-panel .course-side-actions{
  justify-content:flex-start;
}
#trainPlay[data-train-mode="course"] .course-panel .course-side-actions button{
  flex:0 0 auto; min-width:96px;
}

#trainPlay[data-train-mode="course"]{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) clamp(340px,22vw,430px);
  gap:14px 20px;
  align-items:start;
  justify-items:center;
  padding:8px 4px 34px;
}
#trainPlay[data-train-mode="course"] .train-play-head{
  grid-column:1 / -1;justify-self:stretch;width:100%;margin-bottom:2px;
}
/* 左列：正方形棋盘，居中 */
#trainPlay[data-train-mode="course"] .train-board-column{
  grid-column:1;grid-row:2;width:100%;min-width:0;
  display:flex;flex-direction:column;align-items:center;gap:6px;
}
#trainPlay[data-train-mode="course"] .train-board-wrap{
  width:min(100%,calc(100vh - 238px),640px);max-width:100%;justify-self:center;
}
#trainPlay[data-train-mode="course"] .train-board-column{width:min(100%,calc(100vh - 238px),640px)}

/* 做题态隐藏：棋盘下对弈长按钮、教练状态条（信息已并入右侧卡） */
#trainPlay[data-train-mode="course"] .train-controls,
#trainPlay[data-train-mode="course"] .train-status{display:none !important}

#trainPlay[data-train-mode="course"] .train-side-stack{
  grid-column:2;grid-row:3;width:100%;justify-self:stretch;
  display:flex !important;flex-direction:column;gap:10px;
}

/* —— 右列：信息面板三卡 + 操作卡（宽度铺满右列） —— */
#trainPlay[data-train-mode="course"] .course-panel{
  grid-column:2;grid-row:2;width:100%;max-width:none;
  background:transparent;border:none;box-shadow:none;border-radius:0;padding:0;
  display:flex;flex-direction:column;gap:12px;align-items:stretch;
}

/* —— 卡基样式：白底 + 大圆角 + 弥散阴影 —— */
#trainPlay[data-train-mode="course"] .course-tutor-card,
#trainPlay[data-train-mode="course"] .course-prompt-card,
#trainPlay[data-train-mode="course"] .course-turn-card{
  background:rgba(255,255,255,.96);backdrop-filter:blur(6px);border:1px solid #efeafd;border-radius:18px;
  padding:14px 16px 14px;box-shadow:0 8px 24px rgba(86,64,184,.09),0 2px 6px rgba(96,72,200,.05);
}

/* —— ① 导师卡 —— */
#trainPlay[data-train-mode="course"] .course-tutor-card{
  background:linear-gradient(180deg,#ffffff 0%,#fbf9ff 100%);
}
#trainPlay[data-train-mode="course"] .course-coach-head{width:100%;display:flex;align-items:center;gap:11px}
#trainPlay[data-train-mode="course"] .course-coach-avatar{
  width:46px;height:46px;border-radius:14px;object-fit:cover;flex:0 0 auto;
  box-shadow:0 0 0 2px #fff,0 3px 8px rgba(96,72,200,.22);
}
#trainPlay[data-train-mode="course"] .course-coach-copy{flex:1;min-width:0}
#trainPlay[data-train-mode="course"] .course-coach-copy span{color:#8b7cf0;font-size:11px;font-weight:800;letter-spacing:.02em}
#trainPlay[data-train-mode="course"] .course-coach-copy b{display:block;font-size:16px;font-weight:800;color:#231b3d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#trainPlay[data-train-mode="course"] .course-coach-copy small{color:#9a93b8;font-size:12px;font-weight:600}
#trainPlay[data-train-mode="course"] .course-head-badges{display:flex;align-items:center;gap:6px;flex:0 0 auto}
#trainPlay[data-train-mode="course"] .course-vigor{
  display:inline-flex;align-items:center;gap:3px;padding:4px 9px;border-radius:999px;
  background:#f6f2ff;color:#7c5cfc;font-size:12px;font-weight:900;white-space:nowrap;
}
#trainPlay[data-train-mode="course"] .course-count{
  padding:4px 9px;border-radius:999px;background:#f2f0f6;color:#7a7391;font-size:12px;font-weight:900;white-space:nowrap;
}
#trainPlay[data-train-mode="course"] .course-progress-track{
  margin-top:12px;height:8px;border-radius:99px;background:#efeafd;overflow:hidden;
}
#trainPlay[data-train-mode="course"] .course-progress-track i{
  display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#8f7cf5,#6f4fe0);
  box-shadow:0 0 8px rgba(124,92,252,.45);transition:width .35s ease;
}

/* —— ② 题目描述卡 —— */
#trainPlay[data-train-mode="course"] .course-prompt-head{
  display:flex;align-items:center;gap:7px;margin-bottom:7px;
}
#trainPlay[data-train-mode="course"] .course-prompt-head .ui-icon{
  width:16px;height:16px;color:#7c5cfc;
}
#trainPlay[data-train-mode="course"] .course-prompt-head b{font-size:12px;color:#7c5cfc;font-weight:800;letter-spacing:.02em}
#trainPlay[data-train-mode="course"] .course-prompt{
  margin:0;font-size:14px;font-weight:700;line-height:1.6;color:#231b3d;
}
#trainPlay[data-train-mode="course"] .course-guide{
  margin:6px 0 0;font-size:12px;line-height:1.55;color:#9a93b8;font-weight:600;
}

/* —— ③ 提示卡（浅紫底）：轮到谁 + 即时反馈 —— */
#trainPlay[data-train-mode="course"] .course-turn-card{
  background:#f6f2ff;border-color:#ece4ff;
}

#trainPlay[data-train-mode="course"] #courseTurnBadge{display:flex !important}
#trainPlay[data-train-mode="course"] .course-turn-card .course-turn-badge{
  display:flex;align-items:center;gap:8px;margin:0 0 8px;
}
#trainPlay[data-train-mode="course"] .course-turn-card .course-turn-badge i{
  width:14px;height:14px;border-radius:50%;flex:0 0 auto;
  box-shadow:0 1px 3px rgba(0,0,0,.3);background:#7c5cfc;
}
#trainPlay[data-train-mode="course"] .course-turn-badge.black i{background:#3a3750}
#trainPlay[data-train-mode="course"] .course-turn-badge.white i{background:#fff;border:1px solid #dcd6ef}
#trainPlay[data-train-mode="course"] .course-turn-card .course-turn-badge span{
  font-size:14px;font-weight:800;color:#3a3750;
}
#trainPlay[data-train-mode="course"] .course-feedback{
  margin:0;font-size:12px;line-height:1.5;color:#544b78;font-weight:700;min-height:16px;
}
#trainPlay[data-train-mode="course"] .course-feedback.good{color:#22a35e}
#trainPlay[data-train-mode="course"] .course-feedback.bad{color:#d84d57}

/* —— ④ 操作卡：一行「提示 / 声音 / 查看答案 / 下一题(主)」 —— */
#trainPlay[data-train-mode="course"] .course-actions-card{
  display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding-top:2px;
}
#trainPlay[data-train-mode="course"] .course-side-actions{
  display:flex;gap:8px;flex:1 1 auto;min-width:0;justify-content:flex-start;
}
#trainPlay[data-train-mode="course"] .course-next-row{
  display:flex;gap:8px;flex:0 0 auto;
}
#trainPlay[data-train-mode="course"] .course-side-actions button,
#trainPlay[data-train-mode="course"] .course-next-row button{
  margin:0;padding:10px 14px;border-radius:12px;font-size:13px;font-weight:800;
  cursor:pointer;transition:transform .12s ease,box-shadow .12s ease;
}
#trainPlay[data-train-mode="course"] .course-side-actions button:active,
#trainPlay[data-train-mode="course"] .course-next-row button:active{transform:translateY(1px)}
#trainPlay[data-train-mode="course"] .course-side-actions button{
  background:#fff;color:#7a7391;border:1px solid #e4ddf7;
}
#trainPlay[data-train-mode="course"] .course-side-actions button:hover{border-color:#cfc3f4;color:#6f4fe0}
#trainPlay[data-train-mode="course"] #courseSoundBtn[aria-pressed="true"]{background:#f3efff;color:#7c5cfc;border-color:#e2d9ff}
#trainPlay[data-train-mode="course"] .course-next-row .course-answer-btn{
  background:#fff;color:#7a7391;border:1px solid #e4ddf7;
}
#trainPlay[data-train-mode="course"] .course-next-row .course-answer-btn:hover{border-color:#cfc3f4;color:#6f4fe0}
#trainPlay[data-train-mode="course"] .course-next-row #courseNextBtn{
  background:linear-gradient(135deg,#8f7cf5 0%,#6f4fe0 100%);
  color:#fff;border:none;box-shadow:0 6px 16px rgba(124,92,252,.32);
  padding:10px 22px;
}
#trainPlay[data-train-mode="course"] .course-next-row #courseNextBtn:hover{filter:brightness(1.04)}

/* —— 隐藏低频/养成功效：连胜火、收藏、上报、自动下一题、键盘提示 —— */
#trainPlay[data-train-mode="course"] .course-streak-chip,
#trainPlay[data-train-mode="course"] #courseCollectBtn,
#trainPlay[data-train-mode="course"] #courseReportBtn,
#trainPlay[data-train-mode="course"] .course-autonext,
#trainPlay[data-train-mode="course"] .course-kbd-hints{display:none !important}

/* —— 动效：进入做题态时右侧卡片依次淡入上移、下一题轻微下压 —— */
@keyframes courseCardIn{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
#trainPlay[data-train-mode="course"] .course-tutor-card{animation:courseCardIn .34s ease both}
#trainPlay[data-train-mode="course"] .course-prompt-card{animation:courseCardIn .38s ease both}
#trainPlay[data-train-mode="course"] .course-turn-card{animation:courseCardIn .42s ease both}
#trainPlay[data-train-mode="course"] .course-actions-card{animation:courseCardIn .46s ease both}
#trainPlay[data-train-mode="course"] .course-next-row #courseNextBtn:active{transform:translateY(1px) scale(.98)}

/* —— 窄屏降级：右栏收窄仍保两栏 —— */
@media (max-width:1180px){
  #trainPlay[data-train-mode="course"]{grid-template-columns:minmax(0,1fr) 320px !important}
}

/* =====================================================================
 * Web PC · 闯关做题页设计稿同步
 * ---------------------------------------------------------------------
 * 目标：大棋盘为视觉中心；右侧按「关卡概要 / 导师 / 题目 / 当前落子方 / 操作」
 * 分层；返回入口固定在棋盘左上锚点。仅作用于 course 做题模式。
 * ===================================================================== */
.course-level-number{display:none}

@media (min-width:901px){
  .view-page[data-view="train"]>.train-stage:has(#trainPlay[data-train-mode="course"]:not([hidden])){
    width:min(1560px,calc(100vw - 40px))!important;
    max-width:1560px!important;
    padding:24px 30px 34px 76px!important;
  }

  #trainPlay[data-train-mode="course"]{
    position:relative!important;
    width:100%!important;
    max-width:1480px!important;
    margin:0 auto!important;
    padding:4px 0 0!important;
    display:grid!important;
    grid-template-columns:minmax(600px,1.18fr) minmax(470px,.92fr)!important;
    grid-template-areas:"board side"!important;
    gap:36px!important;
    align-items:start!important;
    justify-content:center!important;
  }

  /* 返回 + 关卡序号：放在棋盘左上侧，不侵占棋盘和右侧信息区。 */
  #trainPlay[data-train-mode="course"] .train-play-head{
    position:absolute!important;
    z-index:35!important;
    left:-66px!important;
    top:2px!important;
    width:48px!important;
    min-height:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    gap:10px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  #trainPlay[data-train-mode="course"] .train-title-stack,
  #trainPlay[data-train-mode="course"] .train-head-state{
    display:none!important;
  }
  #trainPlay[data-train-mode="course"] .train-back-btn{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    display:grid!important;
    place-items:center!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #e6e0f6!important;
    border-radius:14px!important;
    background:rgba(255,255,255,.96)!important;
    color:#625a82!important;
    box-shadow:0 8px 22px rgba(79,61,147,.10)!important;
    transition:transform .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease!important;
  }
  #trainPlay[data-train-mode="course"] .train-back-btn:hover{
    transform:translateX(-2px)!important;
    color:#7154ed!important;
    border-color:#cfc3f7!important;
    box-shadow:0 10px 24px rgba(79,61,147,.14)!important;
  }
  #trainPlay[data-train-mode="course"] .train-back-btn .ui-icon{width:21px!important;height:21px!important}
  #trainPlay[data-train-mode="course"] .course-level-number{
    width:44px!important;
    height:44px!important;
    display:grid!important;
    place-items:center!important;
    border-radius:13px!important;
    background:linear-gradient(145deg,#a590ff,#8068f1)!important;
    color:#fff!important;
    font-size:16px!important;
    font-weight:900!important;
    letter-spacing:.02em!important;
    box-shadow:0 9px 20px rgba(111,82,230,.24)!important;
  }

  /* 左侧棋盘：始终保持完整正方形并尽量放大。 */
  #trainPlay[data-train-mode="course"] .train-board-column{
    grid-area:board!important;
    width:100%!important;
    min-width:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  #trainPlay[data-train-mode="course"] .train-board-wrap{
    width:min(100%,calc(100dvh - 136px),790px)!important;
    min-width:0!important;
    max-width:790px!important;
    aspect-ratio:1/1!important;
    margin:0 auto!important;
    padding:9px!important;
    overflow:hidden!important;
    border:1px solid rgba(164,98,34,.34)!important;
    border-radius:20px!important;
    background:linear-gradient(145deg,#d89443,#bc712d)!important;
    box-shadow:0 17px 36px rgba(92,56,17,.18),inset 0 1px 0 rgba(255,238,185,.55)!important;
  }
  #trainPlay[data-train-mode="course"] .train-board-wrap>.go-board,
  #trainPlay[data-train-mode="course"] #trainBoard{
    width:100%!important;
    height:100%!important;
    aspect-ratio:1/1!important;
    border-radius:13px!important;
    background:#e8bc69!important;
    box-shadow:inset 0 0 0 1px rgba(112,63,20,.16),inset 0 0 28px rgba(154,83,24,.06)!important;
  }
  #trainPlay[data-train-mode="course"] .train-controls,
  #trainPlay[data-train-mode="course"] .train-status{display:none!important}

  /* 右侧信息区。 */
  #trainPlay[data-train-mode="course"] .train-side-stack{
    grid-area:side!important;
    width:100%!important;
    min-width:0!important;
    display:block!important;
    margin:0!important;
    padding:0!important;
  }
  #trainPlay[data-train-mode="course"] .train-match-panel,
  #trainPlay[data-train-mode="course"] .train-auto-panel{display:none!important}
  #trainPlay[data-train-mode="course"] .course-panel{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    flex-direction:column!important;
    gap:14px!important;
    overflow:visible!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  #trainPlay[data-train-mode="course"] .course-summary-card,
  #trainPlay[data-train-mode="course"] .course-tutor-card,
  #trainPlay[data-train-mode="course"] .course-prompt-card,
  #trainPlay[data-train-mode="course"] .course-turn-card,
  #trainPlay[data-train-mode="course"] .course-actions-card{
    box-sizing:border-box!important;
    border:1px solid #ebe6f6!important;
    border-radius:19px!important;
    background:rgba(255,255,255,.96)!important;
    box-shadow:0 9px 24px rgba(75,57,139,.075)!important;
  }

  /* 关卡概要 */
  #trainPlay[data-train-mode="course"] .course-summary-card{
    position:relative!important;
    min-height:82px!important;
    display:grid!important;
    grid-template-columns:42px minmax(0,1fr) auto!important;
    grid-template-rows:auto auto!important;
    align-items:center!important;
    gap:3px 12px!important;
    padding:14px 18px 17px!important;
  }
  #trainPlay[data-train-mode="course"] .course-summary-icon{
    grid-column:1!important;
    grid-row:1 / span 2!important;
    width:38px!important;
    height:38px!important;
    display:grid!important;
    place-items:center!important;
    border-radius:12px!important;
    background:linear-gradient(145deg,#f1edff,#e8e0ff)!important;
    color:#795df0!important;
    box-shadow:inset 0 0 0 1px rgba(122,91,239,.08)!important;
  }
  #trainPlay[data-train-mode="course"] .course-summary-icon .ui-icon{width:20px!important;height:20px!important}
  #trainPlay[data-train-mode="course"] .course-summary-copy{grid-column:2!important;min-width:0!important}
  #trainPlay[data-train-mode="course"] .course-summary-copy b{
    display:block!important;
    overflow:hidden!important;
    color:#26203f!important;
    font-size:16px!important;
    font-weight:900!important;
    line-height:1.35!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  #trainPlay[data-train-mode="course"] .course-summary-copy small{
    display:block!important;
    margin-top:4px!important;
    color:#9992ad!important;
    font-size:10px!important;
    font-weight:650!important;
    line-height:1.3!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  #trainPlay[data-train-mode="course"] .course-head-badges{
    grid-column:3!important;
    grid-row:1 / span 2!important;
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
  }
  #trainPlay[data-train-mode="course"] .course-count,
  #trainPlay[data-train-mode="course"] .course-vigor{
    min-width:74px!important;
    height:34px!important;
    box-sizing:border-box!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    margin:0!important;
    padding:0 12px!important;
    border:1px solid #e4def5!important;
    border-radius:999px!important;
    background:#f8f6fd!important;
    color:#37304e!important;
    font-size:12px!important;
    font-weight:900!important;
    white-space:nowrap!important;
  }
  #trainPlay[data-train-mode="course"] .course-vigor{
    min-width:96px!important;
    color:#3e3659!important;
  }
  #trainPlay[data-train-mode="course"] .course-vigor .ui-icon{width:16px!important;height:16px!important;color:#7659f0!important;fill:currentColor!important}
  #trainPlay[data-train-mode="course"] .course-streak-chip{display:none!important}
  #trainPlay[data-train-mode="course"] .course-progress-track{
    position:absolute!important;
    left:18px!important;
    right:18px!important;
    bottom:7px!important;
    height:3px!important;
    margin:0!important;
    overflow:hidden!important;
    border-radius:999px!important;
    background:#f0edf7!important;
  }
  #trainPlay[data-train-mode="course"] .course-progress-track i{
    display:block!important;
    height:100%!important;
    border-radius:inherit!important;
    background:linear-gradient(90deg,#9a84fb,#7154ed)!important;
    box-shadow:none!important;
  }

  /* 导师场景 */
  #trainPlay[data-train-mode="course"] .course-tutor-card{
    height:212px!important;
    overflow:hidden!important;
    padding:0!important;
    background:linear-gradient(135deg,#fbf9ff 0%,#f6f3ff 100%)!important;
  }
  #trainPlay[data-train-mode="course"] .course-mentor-scene{
    position:relative!important;
    width:100%!important;
    height:100%!important;
    display:grid!important;
    grid-template-columns:46% 54%!important;
    align-items:center!important;
  }
  #trainPlay[data-train-mode="course"] .course-mentor-scene::before,
  #trainPlay[data-train-mode="course"] .course-mentor-scene::after{
    content:""!important;
    position:absolute!important;
    pointer-events:none!important;
  }
  #trainPlay[data-train-mode="course"] .course-mentor-scene::before{
    width:210px!important;height:210px!important;left:-44px!important;bottom:-98px!important;border-radius:50%!important;
    background:radial-gradient(circle,#eae3ff 0 30%,rgba(234,227,255,.18) 65%,transparent 70%)!important;
  }
  #trainPlay[data-train-mode="course"] .course-mentor-scene::after{
    width:170px!important;height:170px!important;right:-48px!important;top:-72px!important;border-radius:50%!important;
    background:radial-gradient(circle,rgba(224,216,255,.68),rgba(246,243,255,0) 68%)!important;
  }
  #trainPlay[data-train-mode="course"] .course-mentor-figure{
    position:relative!important;
    align-self:stretch!important;
    display:flex!important;
    align-items:flex-end!important;
    justify-content:center!important;
    overflow:hidden!important;
  }
  #trainPlay[data-train-mode="course"] .course-coach-avatar{
    position:relative!important;
    z-index:3!important;
    width:auto!important;
    height:196px!important;
    max-width:220px!important;
    margin:0!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    filter:drop-shadow(0 10px 12px rgba(83,54,154,.12))!important;
  }
  #trainPlay[data-train-mode="course"] .course-mentor-board{
    position:absolute!important;
    z-index:2!important;
    left:11%!important;
    right:5%!important;
    bottom:-6px!important;
    height:28px!important;
    border:1px solid rgba(151,93,32,.22)!important;
    border-radius:6px 6px 0 0!important;
    background:
      linear-gradient(90deg,rgba(108,68,28,.18) 1px,transparent 1px) 0 0/18px 100%,
      linear-gradient(rgba(108,68,28,.18) 1px,transparent 1px) 0 0/100% 12px,
      linear-gradient(180deg,#efc777,#d99a4d)!important;
    box-shadow:0 4px 10px rgba(112,66,21,.16)!important;
  }
  #trainPlay[data-train-mode="course"] .course-mentor-bubble{
    position:relative!important;
    z-index:4!important;
    width:calc(100% - 28px)!important;
    min-height:104px!important;
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    margin:0 20px 0 8px!important;
    padding:18px 22px!important;
    border:1px solid #e7e2f1!important;
    border-radius:18px!important;
    background:rgba(255,255,255,.92)!important;
    box-shadow:0 10px 22px rgba(67,51,122,.08)!important;
  }
  #trainPlay[data-train-mode="course"] .course-mentor-bubble::before{
    content:""!important;
    position:absolute!important;
    left:-13px!important;
    top:47%!important;
    width:24px!important;
    height:24px!important;
    border-left:1px solid #e7e2f1!important;
    border-bottom:1px solid #e7e2f1!important;
    background:#fff!important;
    transform:rotate(45deg)!important;
  }
  #trainPlay[data-train-mode="course"] .course-mentor-bubble span{
    position:relative!important;
    z-index:2!important;
    color:#8e82b1!important;
    font-size:10px!important;
    font-weight:800!important;
    letter-spacing:.03em!important;
  }
  #trainPlay[data-train-mode="course"] .course-mentor-bubble p{
    position:relative!important;
    z-index:2!important;
    margin:5px 0 0!important;
    color:#4b455e!important;
    font-size:15px!important;
    font-weight:750!important;
    line-height:1.7!important;
  }

  /* 题目说明 */
  #trainPlay[data-train-mode="course"] .course-prompt-card{
    min-height:112px!important;
    padding:17px 20px!important;
  }
  #trainPlay[data-train-mode="course"] .course-prompt-head{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    margin:0 0 8px!important;
  }
  #trainPlay[data-train-mode="course"] .course-prompt-head .ui-icon{
    width:20px!important;height:20px!important;color:#7558ef!important;fill:currentColor!important;
    padding:7px!important;border-radius:10px!important;background:#f0ecff!important;box-sizing:content-box!important;
  }
  #trainPlay[data-train-mode="course"] .course-prompt-head b{
    color:#867ca2!important;
    font-size:10px!important;
    font-weight:900!important;
    letter-spacing:.05em!important;
  }
  #trainPlay[data-train-mode="course"] .course-prompt{
    margin:0!important;
    color:#2c2543!important;
    font-size:15px!important;
    font-weight:900!important;
    line-height:1.55!important;
  }
  #trainPlay[data-train-mode="course"] .course-guide{
    margin:5px 0 0!important;
    color:#8a839d!important;
    font-size:11px!important;
    font-weight:600!important;
    line-height:1.55!important;
  }
  #trainPlay[data-train-mode="course"] .course-guide:empty{display:none!important}

  /* 当前落子提示 */
  #trainPlay[data-train-mode="course"] .course-turn-card{
    min-height:70px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    gap:4px!important;
    padding:12px 20px!important;
    background:rgba(255,255,255,.98)!important;
  }
  #trainPlay[data-train-mode="course"] #courseTurnBadge{
    min-height:0!important;
    display:flex!important;
    align-items:center!important;
    gap:12px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  #trainPlay[data-train-mode="course"] .course-turn-badge i{
    width:25px!important;
    height:25px!important;
    flex:0 0 25px!important;
    border-radius:50%!important;
    background:radial-gradient(circle at 30% 25%,#696872 0%,#29282e 58%,#0b0b0d 100%)!important;
    box-shadow:0 2px 4px rgba(0,0,0,.22)!important;
  }
  #trainPlay[data-train-mode="course"] .course-turn-badge.white i{
    border:1px solid #d4d0da!important;
    background:radial-gradient(circle at 30% 25%,#fff 0%,#f8f7f5 45%,#dbd8d4 100%)!important;
  }
  #trainPlay[data-train-mode="course"] .course-turn-badge span{
    color:#342d4d!important;
    font-size:14px!important;
    font-weight:900!important;
  }
  #trainPlay[data-train-mode="course"] .course-feedback{
    min-height:0!important;
    margin:0 0 0 37px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:#8b829f!important;
    font-size:10px!important;
    font-weight:650!important;
    line-height:1.4!important;
  }
  #trainPlay[data-train-mode="course"] .course-feedback.good{color:#219c62!important}
  #trainPlay[data-train-mode="course"] .course-feedback.bad{color:#d84d57!important}

  /* 操作区：上辅助、下主流程。 */
  #trainPlay[data-train-mode="course"] .course-actions-card{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:11px!important;
    padding:14px 16px 16px!important;
  }
  #trainPlay[data-train-mode="course"] .course-side-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    margin:0!important;
  }
  #trainPlay[data-train-mode="course"] #courseCollectBtn,
  #trainPlay[data-train-mode="course"] #courseReportBtn,
  #trainPlay[data-train-mode="course"] .course-autonext,
  #trainPlay[data-train-mode="course"] .course-kbd-hints{display:none!important}
  #trainPlay[data-train-mode="course"] .course-side-actions button{
    width:auto!important;
    min-width:116px!important;
    height:42px!important;
    flex:0 0 auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    margin:0!important;
    padding:0 16px!important;
    border:1px solid #ded8ef!important;
    border-radius:12px!important;
    background:#fff!important;
    color:#5a526f!important;
    font-size:12px!important;
    font-weight:850!important;
    box-shadow:0 3px 9px rgba(64,51,103,.03)!important;
  }
  #trainPlay[data-train-mode="course"] .course-side-actions button .ui-icon{width:18px!important;height:18px!important;color:#7558ef!important;fill:currentColor!important}
  #trainPlay[data-train-mode="course"] #courseSoundBtn[aria-pressed="true"]{background:#faf8ff!important;color:#584f72!important;border-color:#dcd5f3!important}
  #trainPlay[data-train-mode="course"] .course-side-actions button:hover{border-color:#c6baf1!important;color:#6749e5!important;background:#fbfaff!important}
  #trainPlay[data-train-mode="course"] .course-next-row{
    width:100%!important;
    display:grid!important;
    grid-template-columns:minmax(150px,.72fr) minmax(230px,1.55fr)!important;
    gap:12px!important;
    margin:0!important;
    padding:0!important;
  }
  #trainPlay[data-train-mode="course"] .course-next-row button{
    width:100%!important;
    height:54px!important;
    min-height:54px!important;
    margin:0!important;
    border-radius:13px!important;
    font-size:14px!important;
    font-weight:900!important;
  }
  #trainPlay[data-train-mode="course"] .course-next-row .course-answer-btn{
    border:1px solid #ded8ef!important;
    background:#fff!important;
    color:#443d58!important;
    box-shadow:none!important;
  }
  #trainPlay[data-train-mode="course"] .course-next-row #courseNextBtn{
    border:0!important;
    background:linear-gradient(105deg,#7053eb 0%,#7645f2 100%)!important;
    color:#fff!important;
    box-shadow:0 10px 22px rgba(105,71,224,.25)!important;
  }
  #trainPlay[data-train-mode="course"] .course-next-row #courseNextBtn:hover{filter:brightness(1.045)!important;box-shadow:0 12px 25px rgba(105,71,224,.29)!important}
  #trainPlay[data-train-mode="course"] .course-next-row button:active{transform:translateY(1px)!important}

  /* 设计稿同款轻背景：只做氛围，不干扰棋盘和文字。 */
  .view-page[data-view="train"]:has(#trainPlay[data-train-mode="course"]:not([hidden])){
    position:relative!important;
    overflow:hidden!important;
    background:
      radial-gradient(circle at 90% 24%,rgba(133,103,241,.08),transparent 24%),
      radial-gradient(circle at 8% 80%,rgba(160,137,244,.065),transparent 28%),
      linear-gradient(180deg,#fcfbff 0%,#f8f7fd 100%)!important;
  }
  .view-page[data-view="train"]:has(#trainPlay[data-train-mode="course"]:not([hidden]))::before,
  .view-page[data-view="train"]:has(#trainPlay[data-train-mode="course"]:not([hidden]))::after{
    content:""!important;
    position:absolute!important;
    z-index:0!important;
    pointer-events:none!important;
    opacity:.28!important;
    filter:saturate(.72)!important;
  }
  .view-page[data-view="train"]:has(#trainPlay[data-train-mode="course"]:not([hidden]))::before{
    left:-54px!important;bottom:8px!important;width:210px!important;height:200px!important;
    background:radial-gradient(ellipse at 42% 70%,#e5ddff 0 32%,transparent 33%),radial-gradient(circle at 62% 52%,#ddd4fb 0 10%,transparent 11%),radial-gradient(circle at 32% 42%,#eee9ff 0 15%,transparent 16%)!important;
  }
  .view-page[data-view="train"]:has(#trainPlay[data-train-mode="course"]:not([hidden]))::after{
    right:-34px!important;bottom:0!important;width:170px!important;height:220px!important;
    background:radial-gradient(ellipse at 58% 76%,#e8e1ff 0 35%,transparent 36%),radial-gradient(circle at 43% 49%,#ddd4fb 0 11%,transparent 12%),radial-gradient(circle at 72% 39%,#eee9ff 0 15%,transparent 16%)!important;
  }
  .view-page[data-view="train"]:has(#trainPlay[data-train-mode="course"]:not([hidden]))>.train-stage{position:relative!important;z-index:1!important}
}

@media (min-width:901px) and (max-width:1320px){
  .view-page[data-view="train"]>.train-stage:has(#trainPlay[data-train-mode="course"]:not([hidden])){
    width:calc(100vw - 28px)!important;
    padding:18px 18px 28px 62px!important;
  }
  #trainPlay[data-train-mode="course"]{
    grid-template-columns:minmax(520px,1fr) minmax(390px,.78fr)!important;
    gap:22px!important;
  }
  #trainPlay[data-train-mode="course"] .train-play-head{left:-54px!important}
  #trainPlay[data-train-mode="course"] .train-board-wrap{width:min(100%,calc(100dvh - 128px),690px)!important}
  #trainPlay[data-train-mode="course"] .course-tutor-card{height:185px!important}
  #trainPlay[data-train-mode="course"] .course-coach-avatar{height:172px!important;max-width:190px!important}
  #trainPlay[data-train-mode="course"] .course-summary-copy small{display:none!important}
  #trainPlay[data-train-mode="course"] .course-head-badges{gap:6px!important}
  #trainPlay[data-train-mode="course"] .course-count,
  #trainPlay[data-train-mode="course"] .course-vigor{min-width:66px!important;padding:0 9px!important;font-size:11px!important}
  #trainPlay[data-train-mode="course"] .course-vigor{min-width:84px!important}
  #trainPlay[data-train-mode="course"] .course-prompt-card{padding:14px 17px!important}
  #trainPlay[data-train-mode="course"] .course-actions-card{padding:12px!important}
}

@media (max-width:900px){
  .course-level-number{display:none!important}
}

@media (min-width:901px){
  #trainPlay[data-train-mode="course"] .course-feedback:empty{display:none!important}
  #trainPlay[data-train-mode="course"] .course-feedback.correct,
  #trainPlay[data-train-mode="course"] .course-feedback.wrong{
    display:block!important;
    width:fit-content!important;
    min-height:0!important;
    margin:7px 0 0 37px!important;
    padding:5px 9px!important;
    border:0!important;
    border-radius:8px!important;
    font-size:10px!important;
    font-weight:750!important;
    line-height:1.45!important;
  }
  #trainPlay[data-train-mode="course"] .course-feedback.correct{background:#edf9f2!important;color:#24754d!important}
  #trainPlay[data-train-mode="course"] .course-feedback.wrong{background:#fff0f1!important;color:#b84751!important}
  #trainPlay[data-train-mode="course"] .course-feedback.correct::before,
  #trainPlay[data-train-mode="course"] .course-feedback.wrong::before{display:none!important;content:none!important}
}

@media (min-width:901px) and (max-width:1100px){
  .view-page[data-view="train"]>.train-stage:has(#trainPlay[data-train-mode="course"]:not([hidden])){
    padding-left:56px!important;
  }
  #trainPlay[data-train-mode="course"]{
    grid-template-columns:minmax(470px,1fr) minmax(340px,.72fr)!important;
    gap:16px!important;
  }
  #trainPlay[data-train-mode="course"] .train-play-head{left:-50px!important}
  #trainPlay[data-train-mode="course"] .course-level-number,
  #trainPlay[data-train-mode="course"] .train-back-btn{width:40px!important;height:40px!important;min-width:40px!important}
  #trainPlay[data-train-mode="course"] .course-tutor-card{height:168px!important}
  #trainPlay[data-train-mode="course"] .course-coach-avatar{height:158px!important;max-width:170px!important}
  #trainPlay[data-train-mode="course"] .course-mentor-bubble{min-height:88px!important;padding:14px 16px!important}
  #trainPlay[data-train-mode="course"] .course-mentor-bubble p{font-size:13px!important}
  #trainPlay[data-train-mode="course"] .course-summary-card{grid-template-columns:36px minmax(0,1fr) auto!important;padding-inline:13px!important}
  #trainPlay[data-train-mode="course"] .course-summary-icon{width:34px!important;height:34px!important}
  #trainPlay[data-train-mode="course"] .course-summary-copy b{font-size:14px!important}
  #trainPlay[data-train-mode="course"] .course-count,
  #trainPlay[data-train-mode="course"] .course-vigor{min-width:58px!important;height:30px!important;padding-inline:7px!important;font-size:10px!important}
  #trainPlay[data-train-mode="course"] .course-vigor{min-width:74px!important}
  #trainPlay[data-train-mode="course"] .course-side-actions button{min-width:94px!important;height:38px!important;padding-inline:10px!important}
  #trainPlay[data-train-mode="course"] .course-next-row{grid-template-columns:125px minmax(180px,1fr)!important;gap:8px!important}
}

/* =====================================================================
 * Web PC · 关卡开始确认弹窗
 * 关卡确认不再占用独立 train 页面：来源页保持可见，确认后才进入运行台。
 * ===================================================================== */
body.train-confirm-open{overflow:hidden!important}
.train-confirm-mask{
  z-index:145!important;
  padding:24px!important;
  background:rgba(37,29,67,.32)!important;
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
}
.train-confirm-mask .train-confirm{
  width:min(640px,calc(100vw - 48px))!important;
  max-width:640px!important;
  max-height:calc(100vh - 48px)!important;
  overflow:auto!important;
  margin:0!important;
  padding:28px 30px 26px!important;
  border:1px solid rgba(224,219,238,.96)!important;
  border-radius:22px!important;
  background:
    radial-gradient(circle at 100% 0,rgba(116,89,239,.075),transparent 245px),
    #fff!important;
  box-shadow:0 28px 80px rgba(45,33,91,.20)!important;
  animation:train-confirm-pop .18s ease-out both;
}
@keyframes train-confirm-pop{
  from{opacity:0;transform:translateY(10px) scale(.985)}
  to{opacity:1;transform:none}
}
.train-confirm-mask .train-confirm-meta{
  min-height:27px!important;
  padding:0 10px!important;
  font-size:11px!important;
}
.train-confirm-mask .train-confirm h1{
  margin:13px 0 6px!important;
  font-size:30px!important;
  line-height:1.18!important;
}
.train-confirm-mask .train-confirm-desc{
  margin:0 0 18px!important;
  font-size:13px!important;
  line-height:1.65!important;
}
.train-confirm-mask .train-facts{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:9px!important;
  margin:0 0 14px!important;
}
.train-confirm-mask .train-facts span{
  min-height:62px!important;
  padding:10px 12px!important;
  border-radius:13px!important;
}
.train-confirm-mask .train-facts small{font-size:10px!important}
.train-confirm-mask .train-facts b{font-size:14px!important}
.train-confirm-mask .train-ai-note{
  margin:0!important;
  padding:10px 12px!important;
  border-radius:12px!important;
  font-size:12px!important;
  line-height:1.5!important;
}
.train-confirm-mask .train-confirm-actions{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 116px!important;
  gap:10px!important;
  margin-top:16px!important;
}
.train-confirm-mask .train-confirm-actions button{
  min-width:0!important;
  height:44px!important;
  min-height:44px!important;
  border-radius:12px!important;
  font-size:14px!important;
}
@media(max-width:700px){
  .train-confirm-mask{padding:14px!important;align-items:flex-end!important}
  .train-confirm-mask .train-confirm{
    width:100%!important;max-width:none!important;max-height:calc(100vh - 28px)!important;
    padding:22px 20px 20px!important;border-radius:20px!important;
  }
  .train-confirm-mask .train-confirm h1{font-size:26px!important}
  .train-confirm-mask .train-facts{grid-template-columns:1fr!important}
  .train-confirm-mask .train-facts span{min-height:auto!important}
  .train-confirm-mask .train-confirm-actions{grid-template-columns:1fr!important}
}

/* 训练过程弹窗只做轻度聚焦，不再把底层做题画面压成强模糊背景。 */
#trainBarrier.train-barrier-mask,
#trainSettle.modal-mask,
#trainConfirmMask.train-confirm-mask{
  background:rgba(36,28,58,.08)!important;
  backdrop-filter:blur(1.25px) saturate(.98)!important;
  -webkit-backdrop-filter:blur(1.25px) saturate(.98)!important;
}
#trainBarrier .train-barrier-card{
  box-shadow:0 22px 58px rgba(36,28,58,.18)!important;
}

/* 题目说明已并入导师气泡，旧的独立题目卡不再占纵向空间。 */
#trainPlay[data-train-mode="course"] .course-prompt-card{display:none!important}

@media (min-width:901px){
  #trainPlay[data-train-mode="course"] .course-tutor-card{
    height:226px!important;
  }
  #trainPlay[data-train-mode="course"] .course-mentor-scene{
    grid-template-columns:minmax(190px,43%) minmax(0,57%)!important;
  }
  #trainPlay[data-train-mode="course"] .course-mentor-figure{
    padding:8px 0 0 8px!important;
    overflow:visible!important;
  }
  #trainPlay[data-train-mode="course"] .course-coach-avatar{
    width:100%!important;
    height:210px!important;
    max-width:245px!important;
    object-fit:contain!important;
    object-position:center bottom!important;
  }
  /* 新资源自身已经包含棋盘，不再叠加旧的 CSS 假棋盘。 */
  #trainPlay[data-train-mode="course"] .course-mentor-board{display:none!important}
  #trainPlay[data-train-mode="course"] .course-mentor-bubble{
    width:calc(100% - 18px)!important;
    min-height:132px!important;
    margin:0 14px 0 0!important;
    padding:16px 18px 15px!important;
    justify-content:flex-start!important;
  }
  #trainPlay[data-train-mode="course"] .course-mentor-bubble-head{
    position:relative!important;
    z-index:2!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    min-height:18px!important;
  }
  #trainPlay[data-train-mode="course"] .course-mentor-bubble-head span{
    display:block!important;
    color:#8c7eb5!important;
    font-size:10px!important;
    font-weight:900!important;
    letter-spacing:.04em!important;
  }
  #trainPlay[data-train-mode="course"] .course-prompt-line{
    position:relative!important;
    z-index:2!important;
    display:flex!important;
    align-items:flex-start!important;
    gap:7px!important;
    margin-top:5px!important;
  }
  #trainPlay[data-train-mode="course"] .course-prompt-line .course-prompt{
    flex:1 1 auto!important;
    min-width:0!important;
    margin:0!important;
    color:#302842!important;
    font-size:15px!important;
    font-weight:760!important;
    line-height:1.68!important;
  }
  #trainPlay[data-train-mode="course"] .course-term{
    color:#6f50e8!important;
    font-weight:950!important;
    background:linear-gradient(180deg,transparent 58%,rgba(124,92,252,.13) 58%)!important;
  }
  #trainPlay[data-train-mode="course"] .course-tts-btn{
    flex:0 0 30px!important;
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    display:grid!important;
    place-items:center!important;
    padding:0!important;
    margin:-1px 0 0!important;
    border:1px solid #e4dcfa!important;
    border-radius:10px!important;
    background:#f5f1ff!important;
    color:#7658ef!important;
    box-shadow:none!important;
    cursor:pointer!important;
    transition:background .16s ease,border-color .16s ease,transform .12s ease!important;
  }
  #trainPlay[data-train-mode="course"] .course-tts-btn:hover{
    background:#eee8ff!important;
    border-color:#cfc2f8!important;
  }
  #trainPlay[data-train-mode="course"] .course-tts-btn:active{transform:scale(.94)!important}
  #trainPlay[data-train-mode="course"] .course-tts-btn.speaking{
    color:#fff!important;
    border-color:transparent!important;
    background:linear-gradient(135deg,#8a70f7,#6846df)!important;
    box-shadow:0 5px 12px rgba(108,74,226,.24)!important;
  }
  #trainPlay[data-train-mode="course"] .course-tts-btn .ui-icon{width:15px!important;height:15px!important;fill:currentColor!important}
  #trainPlay[data-train-mode="course"] .course-guide{
    position:relative!important;
    z-index:2!important;
    display:block!important;
    margin:7px 0 0!important;
    padding-top:7px!important;
    border-top:1px dashed #eee9f6!important;
    color:#766d8d!important;
    font-size:11.5px!important;
    font-weight:650!important;
    line-height:1.55!important;
  }
  #trainPlay[data-train-mode="course"] .course-guide:empty{display:none!important}
  #trainPlay[data-train-mode="course"] .course-guide em{
    display:inline-flex!important;
    align-items:center!important;
    margin-right:6px!important;
    padding:2px 6px!important;
    border-radius:999px!important;
    background:#f2edff!important;
    color:#7658ef!important;
    font-size:9px!important;
    font-style:normal!important;
    font-weight:900!important;
    vertical-align:1px!important;
  }
}

/* 1v1 单挑：对手角色优先展示用户提供的“坐在棋盘前” teach 形象。 */
#trainPlay[data-train-mode="aiChallenge"] .train-roster-side.single .train-role-card{
  grid-template-columns:60px minmax(0,1fr)!important;
  min-height:72px!important;
  padding:7px 9px!important;
}
#trainPlay[data-train-mode="aiChallenge"] .train-roster-side.single .train-role-avatar{
  width:56px!important;
  height:56px!important;
  border-radius:13px!important;
  background:linear-gradient(145deg,#f5f1ff,#fff8ec)!important;
}
#trainPlay[data-train-mode="aiChallenge"] .train-roster-side.single .train-role-avatar .train-role-seated{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center bottom!important;
}

@media (min-width:901px) and (max-width:1320px){
  #trainPlay[data-train-mode="course"] .course-tutor-card{height:204px!important}
  #trainPlay[data-train-mode="course"] .course-coach-avatar{height:188px!important;max-width:215px!important}
  #trainPlay[data-train-mode="course"] .course-mentor-bubble{min-height:122px!important;padding:14px 15px!important}
}
@media (min-width:901px) and (max-width:1100px){
  #trainPlay[data-train-mode="course"] .course-tutor-card{height:184px!important}
  #trainPlay[data-train-mode="course"] .course-coach-avatar{height:170px!important;max-width:190px!important}
  #trainPlay[data-train-mode="course"] .course-mentor-bubble{min-height:106px!important;padding:12px 13px!important}
  #trainPlay[data-train-mode="course"] .course-prompt-line .course-prompt{font-size:13px!important;line-height:1.58!important}
  #trainPlay[data-train-mode="course"] .course-guide{font-size:10.5px!important}
}

.library-stage-head-tip{margin-left:auto;color:#918a9d;font-size:10.5px;font-style:normal;white-space:nowrap}
@media(max-width:1180px){.library-stage-head-tip{display:none}}

/* ---------- G-01：棋谱库顶栏图标按钮（拍照/记谱/刷新）恢复线性图标 ---------- */
.feed-edge .ui-icon,.feed-library-entry .ui-icon{
  fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
}
.feed-edge{transition:var(--t)}
.feed-edge:hover{transform:translateY(-1px);box-shadow:var(--shadow-sm)}

/* ---------- L-02：棋谱库分类 Tab 胶囊化 ---------- */
.library-page-v13 .feed-category-tabs{background:var(--line-2);border-radius:999px;padding:3px}
.library-page-v13 .feed-category-tabs button{border-radius:999px!important;transition:var(--t)}
.library-page-v13 .feed-category-tabs button.active{background:#fff!important;box-shadow:0 2px 8px rgba(78,60,139,.16)!important}
.library-page-v13 .feed-category-tabs button:not(.active):hover{color:var(--ink)!important;background:rgba(255,255,255,.72)!important}

/* ---------- L-03：棋谱详情面板与浏览区滚动条 ---------- */
.library-inspector,.library-browser-body{scrollbar-width:thin;scrollbar-color:#dcd8ea transparent}

/* ---------- S-02：导师卡片"拥有/未解锁"徽章（原为白圈白图标不可见） ---------- */





/* ---------- Q-02：题库训练卡 · 图标四色体系 ---------- */
.qb-grid button:nth-child(4n/**/+2)>span{background:#fff2df!important;color:#df8d32!important}
.qb-grid button:nth-child(4n/**/+3)>span{background:#e9f7ee!important;color:#3db263!important}
.qb-grid button:nth-child(4n)>span{background:#eaf3ff!important;color:#3d7ef0!important}
.qb-grid button{transition:var(--t)}
.qb-grid button:hover{transform:translateY(-2px);box-shadow:var(--shadow-sm)}
.qb-hero-stats b,.qb-hero-copy h3{letter-spacing:.2px}

/* ---------- B7-T02：落子标记柔化（方块→圆角环，全局棋盘一致） ---------- */
.go-board .board-marker.square{
  border:2.5px solid rgba(216,77,87,.85);border-radius:50%;
  box-shadow:0 0 0 2px rgba(255,255,255,.65);
}
.go-board .board-marker.last{
  border:2px solid #e5a62d;border-radius:50%;
  box-shadow:0 0 0 2px rgba(255,255,255,.72),0 1px 3px rgba(47,29,11,.18);
}

@media (min-width:901px){

  /* ---------- H-01：首页阶段横幅 · 空间重新配比 + 关卡区纵向堆叠 ---------- */
  /* 大屏断点下装饰环列收窄，把宽度让给关卡信息；关卡区按钮改为全宽置底，
     标题/进度/元信息各占整行，不再出现“防守计…”式截断。 */
  .view-page[data-view="home"] .stage-banner{
    grid-template-columns:42px minmax(250px,300px) minmax(96px,128px) minmax(0,1fr) 42px!important;
  }
  .view-page[data-view="home"] .stage-banner::after{left:352px!important}
  .home-course{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"kicker" "title" "bar" "meta" "button"!important;
    row-gap:6px!important;justify-items:stretch!important;
  }
  .home-course>small{font-size:12px!important}
  .home-course>b{
    font-size:19px!important;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;
    -webkit-line-clamp:2;text-overflow:clip;overflow:hidden;line-height:1.3;
  }
  .home-course-progress{margin-top:2px!important}
  .home-course>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .home-course>button{
    width:100%!important;min-width:0!important;height:46px!important;margin-top:8px!important;
    justify-content:center!important;
  }

  /* ---------- H-02：首页成长小目标 · 文案完整可读 ---------- */
  .home-growth-strip{min-height:96px;padding:0 12px!important}
  .home-growth-strip>strong>span,.home-growth-strip>span{
    gap:9px!important;padding:10px 12px!important;border-right:1px solid #eeeaf4}
  .home-growth-strip>strong>span,.home-growth-strip>span>i{
    width:36px!important;height:36px!important;border-radius:12px!important}
  .home-growth-strip>span>i .learning-node-icon{width:22px!important;height:22px!important}
  .home-growth-strip b{font-size:12.5px;white-space:nowrap;line-height:1.3}
  .home-growth-strip small{font-size:10.5px;white-space:nowrap;line-height:1.45;margin-top:2px}
  .home-growth-strip>strong>span .ui-icon,.home-growth-strip>span>i .ui-icon{
    fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

  /* ---------- S-01：学习页 SMART 推荐卡 · 告别巨型气泡 ---------- */
  
  
  
  
  
  
  

  /* ---------- LG-01：联赛游客态赛程卡空状态 ---------- */
  .league-week #weekChallenge:empty::before{
    content:"登录后生成你的 7 位 AI 对手每周赛程";
    display:flex;align-items:center;justify-content:center;
    min-height:300px;border-radius:16px;color:var(--ink-3);
    font-size:13px;font-weight:600;letter-spacing:.02em;
    background:radial-gradient(120% 130% at 50% 0%,var(--brand-50) 0%,transparent 72%);
  }
  .league-week .league-section-head small:empty{display:none}

  /* ---------- LG-04：联赛进度条刻度（已战 7 段 / 胜场 4 段） ---------- */
  .league-fought .progress,.league-promotion .progress{position:relative;background:var(--line-2)}
  .league-fought .progress::after{
    content:"";position:absolute;inset:0;pointer-events:none;
    background:repeating-linear-gradient(90deg,transparent 0 calc(14.2857% - 1px),rgba(255,255,255,.92) calc(14.2857% - 1px) 14.2857%);
  }
  .league-promotion .progress::after{
    content:"";position:absolute;inset:0;pointer-events:none;
    background:repeating-linear-gradient(90deg,transparent 0 calc(25% - 1px),rgba(255,255,255,.92) calc(25% - 1px) 25%);
  }

  /* ---------- M-01：我的页用户卡 · 三个动作区各占一行，不再互相覆盖 ---------- */
  .mine-overview .mine-user-card{
    grid-template-areas:"avatar copy msg" "avatar copy profile" "avatar copy guest"!important;
    row-gap:5px!important;
  }
  .mine-overview .mine-guest-actions{grid-area:guest!important;margin:0!important;align-self:start!important}
  .mine-overview .mine-msg-entry{align-self:center!important}
  .mine-overview .mine-profile-open{align-self:center!important}

  /* ---------- M-03：成就墙未解锁徽章层次 ---------- */
  .mine-achievements .ach-item.locked img{filter:grayscale(1);opacity:.5;border-style:dashed}
}

/* ---------- 全局卡片交互统一（160ms 过滤 + 上浮反馈） ---------- */
.view-page .card{transition:box-shadow var(--t),border-color var(--t)}

/* ---------- 战绩榜积分显示（本周赛程 1 人 + 7 导师积分循环榜） ---------- */
.weekly-battle-rank-row-v44 strong{font-variant-numeric:tabular-nums}
.weekly-battle-rank-row-v44 strong small{font-size:10px;font-weight:700;color:var(--ink-3);margin-left:2px;font-style:normal}

/* ---------- 战绩榜 8 行完整显示：紧凑单行榜（与左侧赛程卡等高对齐） ---------- */
@media (min-width:901px){
  .league-battle{gap:10px!important}
  .league-battle .league-section-head{min-height:40px!important;padding:0 2px 9px!important}
  .weekly-battle-list{gap:6px!important;padding-top:10px!important}
  .weekly-battle-rank-row-v44{
    min-height:38px!important;
    grid-template-columns:24px minmax(0,1fr) auto!important;
    gap:8px!important;
    padding:4px 10px!important;
    border-radius:10px!important;
  }
  .weekly-rank-medal{font-size:15px;line-height:1}
  .weekly-rank-copy{display:flex;align-items:baseline;gap:7px;min-width:0}
  .weekly-rank-copy b{font-size:12px;flex:0 0 auto;max-width:96px}
  .weekly-rank-copy small{margin:0;font-size:10px;white-space:nowrap;color:#9891a6}
  .weekly-battle-rank-row-v44 strong{font-size:13.5px}
  .weekly-battle-rank-row-v44 strong small{font-size:9.5px}
}

/* ---------- 联赛页排版收紧：去掉固定最小高度撑出的松散空白，内容贴合卡片 ---------- */
@media (min-width:901px){
  /* 页头 */
  .league-header{min-height:0!important;padding:0 4px 4px!important;align-items:center!important}
  .league-header-icon{width:44px!important;height:44px!important;border-radius:13px!important}
  .league-header-copy h2{font-size:23px!important}
  .league-header-copy p{font-size:11px!important}
  .league-history-btn{min-height:34px!important;padding:0 12px!important}
  /* 段位/进度四格 */
  .league-progress{padding:8px 12px!important}
  .league-progress-row{grid-template-columns:150px 1fr 1fr minmax(230px,1.15fr)!important}
  .league-rank-chip,.league-fought,.league-promotion,.league-promotion-hint{min-height:50px!important;padding:4px 12px!important}
  .league-rank-icon{width:40px!important;height:40px!important;border-radius:12px!important}
  .league-rank-chip b{font-size:18px!important}
  .league-fought b,.league-promotion b{font-size:15px!important}
  /* 本周赛程卡：高度贴合内容 */
  .league-week{min-height:0!important;padding:16px 18px 14px!important}
  .league-week .league-section-head{min-height:0!important;padding:0 2px 0!important}
  .league-opponents{margin-top:32px!important}
  .league-opponent{min-height:0!important;padding:26px 6px 10px!important}
  .league-opponent-avatar-v4{width:64px!important;height:64px!important}
  /* 战绩榜卡：与赛程卡同规则贴合内容 */
  .league-lower,.league-battle{min-height:0!important}
  .league-battle{height:auto!important}
}

/* ---------- 段位进度卡：解除 9612 块的固定 76px/120px 高度，压缩至内容高度 ---------- */
@media (min-width:901px){
  .league-progress-row{min-height:0!important;height:auto!important}
  .league-rank-chip,.league-fought,.league-promotion,.league-promotion-hint{
    height:auto!important;min-height:0!important;padding:4px 14px!important;
  }
  .league-rank-chip{justify-content:flex-start!important;gap:10px!important}
  .league-rank-icon{width:40px!important;height:40px!important;border-radius:12px!important}
  .league-rank-icon .ui-icon{width:20px!important;height:20px!important}
  .league-fought,.league-promotion{gap:3px!important}
  .league-fought .progress,.league-promotion .progress{height:6px!important;margin-top:1px!important}
}

/* =====================================================================
 * 联赛页定稿构图（页头保持原样，不动）：
 *   第 1 行：页头（标题 + 历史赛况）
 *   第 2 行：本周赛程                 + 战绩榜（跨 2~3 行）
 *   第 3 行：段位统计条（赛程卡下方）  + 战绩榜
 * 进度条与战绩榜同处末行，底边由网格轨道精确对齐。
 * ===================================================================== */
@media (min-width:901px){
  .league-page{
    grid-template-columns:minmax(0,1fr) 315px!important;
    grid-template-areas:"head head" "week battle" "progress battle"!important;
    grid-template-rows:auto auto auto!important;
    align-items:start!important;
  }
  .league-header{grid-area:head!important}
  /* 战绩榜：跨赛程 + 统计条两行，内部 8 行均匀分布，底边与统计条对齐 */
  .league-lower{grid-area:battle!important;align-self:stretch!important;height:auto!important}
  .league-battle{height:100%!important}
  .league-battle>#weeklyBattleRanking{flex:1 1 auto!important;min-height:0!important}
  .league-battle>#weeklyBattleRanking .weekly-battle-list{
    height:100%!important;align-content:space-between!important;gap:8px!important;
  }
  .weekly-battle-rank-row-v44{min-height:40px!important}

  /* 段位统计条：与赛程卡同宽（左列末行），单行 KPI 条，右端为晋级强调块 */
  .league-progress{
    grid-area:progress!important;
    justify-self:stretch!important;width:auto!important;max-width:none!important;
    margin:0!important;padding:11px 12px!important;border-radius:16px!important;
  }
  .league-progress-row{
    display:flex!important;align-items:center!important;
    min-height:0!important;height:auto!important;gap:0!important;
  }
  .league-rank-chip,.league-fought,.league-promotion{
    height:auto!important;min-height:0!important;flex:0 0 auto!important;
    padding:2px 24px!important;border-right:1px solid #ece8f4!important;
  }
  .league-rank-chip{padding-left:10px!important}
  .league-rank-chip b{font-size:19px!important}
  .league-fought,.league-promotion{gap:4px!important}
  .league-fought small,.league-promotion small{margin:0!important}
  .league-fought b,.league-promotion b{margin:0!important;line-height:1.25!important}
  .league-fought .progress,.league-promotion .progress{width:128px!important;height:6px!important;margin-top:2px!important}
  /* 晋级提示：条内右端的品牌强调块 */
  .league-promotion-hint{
    margin-left:auto!important;flex:0 0 auto!important;
    height:auto!important;min-height:0!important;padding:8px 16px!important;
    border:1px solid var(--brand-100,#efeaff)!important;border-radius:12px!important;
    background:linear-gradient(120deg,var(--brand-50,#f6f3ff),#fff)!important;
    text-align:left!important;
  }
  .league-promotion-hint b{font-size:13px!important;white-space:nowrap}
  .league-promotion-hint small{font-size:10px!important;white-space:nowrap}
}

/* ---------- 段位条拉伸填满末行轨道，与战绩榜底边逐像素对齐 ---------- */
@media (min-width:901px){
  .league-progress{align-self:stretch!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
  .league-progress .league-progress-row{width:100%!important}
}

/* ---------- 段位条高度 100% 填充末行，底边与战绩榜严格对齐 ---------- */
@media (min-width:901px){
  .league-page{align-items:stretch!important}
  .league-header{align-self:start!important}
  .league-week{align-self:start!important}
  .league-progress{align-self:auto!important;height:100%!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
}

/* ---------- 战绩榜列取消 sticky 偏移（top:12px 导致右列整体下移 12px） ---------- */
@media (min-width:901px){
  .league-lower{position:static!important;top:auto!important}
}

@media (min-width:901px){
  /* 仅激活态接管显示方式；非激活态保持 .view-page 的 display:none（否则联赛内容会常驻显示在首页下方） */
  .view-page[data-view="league"].active{display:flex!important;flex-direction:column!important}
  .league-page{
    flex:1 1 auto!important;
    min-height:0!important;
    padding:16px 12px 22px!important;
    grid-template-columns:minmax(0,1fr) 330px!important;
    grid-template-areas:
      "head head"
      "progress battle"
      "week battle"!important;
    grid-template-rows:auto minmax(232px,auto) minmax(auto,1fr)!important;
    row-gap:14px!important;
    column-gap:18px!important;
    align-items:stretch!important;
  }

  /* ---- 段位卡：竖排英雄卡 ---- */
  .league-progress{
    grid-area:progress!important;
    min-height:232px!important;
    padding:20px 22px!important;
    border-radius:20px!important;
  }
  .league-progress-row{
    display:grid!important;
    grid-template-columns:minmax(196px,.7fr) minmax(0,1.3fr)!important;
    grid-template-areas:"rank fought" "rank promotion" "hint hint"!important;
    gap:13px 26px!important;
    height:100%!important;
    align-items:center!important;
  }
  .league-rank-chip{
    grid-area:rank!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    gap:12px!important;
    min-height:0!important;
    align-self:stretch!important;
    padding:0 26px 0 6px!important;
    border-right:1px solid #ebe7f3!important;
  }
  .league-rank-icon{width:62px!important;height:62px!important;border-radius:17px!important}
  .league-rank-icon .ui-icon{width:30px!important;height:30px!important}
  .league-rank-chip small{font-size:12px!important}
  .league-rank-chip b{font-size:32px!important;line-height:1!important}
  .league-fought,.league-promotion{
    grid-auto-rows:min-content!important;
    min-height:0!important;
    border-right:0!important;
    padding:0!important;
    justify-content:center!important;
    gap:7px!important;
  }
  .league-fought{grid-area:fought!important}
  .league-promotion{grid-area:promotion!important}
  .league-fought b,.league-promotion b{font-size:19px!important}
  .league-promotion-hint{
    grid-area:hint!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:12px!important;
    min-height:0!important;
    padding:11px 16px!important;
    border:1px dashed #ddd3f8!important;
    border-radius:13px!important;
    background:#faf8ff!important;
  }
  .league-promotion-hint b{font-size:14px!important;flex:0 0 auto!important}
  .league-promotion-hint small{font-size:11px!important;white-space:nowrap!important;margin-left:auto!important}

  /* ---- 战绩榜：跨两行撑满，行距均匀分布 ---- */
  .league-lower{grid-area:battle!important;min-height:0!important;align-self:stretch!important;height:auto!important}
  .league-battle{height:100%!important;min-height:0!important}
  .league-battle>#weeklyBattleRanking{flex:1 1 auto!important;min-height:0!important;display:flex!important;flex-direction:column!important}
  .league-battle>#weeklyBattleRanking .weekly-battle-list{flex:1 1 auto!important;height:100%!important;align-content:space-between!important}

  /* ---- 赛程时间轴：占底部主区，卡片内容在加高的卡内垂直居中 ---- */
  .league-week{
    grid-area:week!important;
    min-height:0!important;
    align-self:stretch!important;
    justify-content:center!important;
  }
  .league-week .league-section-head{flex:0 0 auto!important}
}

/* 小笔记本（≤1240）：右列收窄，段位卡两列比例微调，其余沿用上方重排 */
@media (min-width:901px) and (max-width:1240px){
  .league-page{grid-template-columns:minmax(0,1fr) 290px!important}
  .league-progress-row{grid-template-columns:minmax(180px,.78fr) minmax(0,1.22fr)!important}
}

/* ---------- 段位卡重排修正：进度条通栏、晋级提示占满整行、视口高度含内边距 ---------- */
@media (min-width:901px){
  /* 页面占满可视区：扣除顶栏 60 + main-col 上下内边距 48，避免出现 60px 滚动 */
  .view-page[data-view="league"]{min-height:calc(100vh - 118px)!important}
  .league-fought,.league-promotion{
    display:flex!important;flex-direction:column!important;
    align-items:flex-start!important;justify-content:center!important;
    grid-template-rows:none!important;align-content:start!important;
  }
  .league-fought .progress,.league-promotion .progress{width:100%!important;max-width:250px!important}
  .league-promotion-hint{margin:0!important;width:100%!important;justify-self:stretch!important}
  .league-promotion-hint small{margin-left:0!important}
}

/* ---------- 联赛页垂直收边：削减内边距与时间轴上边距，整页恰好占满视口不出滚动条 ---------- */
@media (min-width:901px){
  #view:has(.view-page[data-view="league"].active) .main-col{padding:14px 30px 16px!important}
  .league-page{padding:8px 12px 12px!important;row-gap:12px!important}
  .league-week{padding:14px 18px 12px!important}
  .league-opponents-v44{margin-top:30px!important}
  .league-opponents-v44::before{top:0!important}
  .league-opponent::before{top:-36px!important}
}

/* =====================================================================
 * 联赛页大屏增强（≥1440px）：用内容填满空间而不是留白
 * - 页面铺至 1560px；段位卡升级为三区横排英雄卡（段位 | 进度 | 晋级竖块）
 * - 赛程时间轴头像/卡片放大一档；战绩榜行距收紧、行高加大
 * ===================================================================== */
@media (min-width:1440px){
  .league-page{
    max-width:1560px!important;width:min(100%,1560px)!important;
    grid-template-columns:minmax(0,1fr) 358px!important;
  }
  /* ---- 段位卡：三区横排 ---- */
  .league-progress{min-height:216px!important;padding:20px 26px!important}
  .league-progress-row{
    grid-template-columns:minmax(216px,.6fr) minmax(0,1fr) minmax(248px,.72fr)!important;
    grid-template-areas:"rank fought hint" "rank promotion hint"!important;
    column-gap:34px!important;row-gap:16px!important;
  }
  .league-rank-chip{padding-right:30px!important}
  .league-rank-icon{width:70px!important;height:70px!important;border-radius:19px!important}
  .league-rank-chip b{font-size:36px!important}
  .league-rank-chip small{font-size:12.5px!important}
  .league-fought,.league-promotion{justify-content:center!important}
  .league-fought b,.league-promotion b{font-size:21px!important}
  .league-fought small,.league-promotion small{font-size:12px!important}
  .league-fought .progress,.league-promotion .progress{max-width:340px!important}
  .league-promotion-hint{
    grid-area:hint!important;
    flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;
    gap:7px!important;margin:0!important;height:100%!important;
    padding:16px 22px!important;
    border:1px solid #e4dcfa!important;border-radius:15px!important;
    background:linear-gradient(135deg,#f4f0ff,#fff 70%)!important;
  }
  .league-promotion-hint b{font-size:16.5px!important;white-space:nowrap}
  .league-promotion-hint small{font-size:11px!important;white-space:normal!important;line-height:1.6!important;margin:0!important}
  /* ---- 赛程时间轴：内容放大一档 ---- */
  .league-opponents-v44{margin-top:26px!important}
  .league-opponent-avatar-v44{width:86px!important;height:86px!important}
  .league-match-card{min-height:174px!important}
  .league-match-card b{font-size:13.5px!important}
  .league-day-label{font-size:12.5px!important}
  .league-result-pill{font-size:11px!important}
  /* ---- 战绩榜：行距收紧、行体加高，密度与可读性平衡 ---- */
  .league-battle .league-section-head{min-height:46px!important}
  .weekly-battle-rank-row-v44{min-height:56px!important}
  .weekly-rank-copy b{font-size:13.5px!important}
  .weekly-rank-copy small{font-size:11px!important}
  .weekly-rank-medal{font-size:17px!important}
  .weekly-battle-rank-row-v44 strong{font-size:14px!important}
}

@media (min-width:1480px){
  .library-page-v13 .feed-focus-layout-v19{grid-template-columns:clamp(290px,23.5vw,420px) minmax(560px,1fr) minmax(380px,410px)!important}
  .library-page-v13 #feedFeaturedHost .feed-content{grid-template-columns:minmax(560px,1fr) minmax(380px,410px)!important}
}
@media (min-width:1181px) and (max-width:1479px){
  .library-page-v13 .feed-focus-layout-v19{grid-template-columns:clamp(240px,21vw,300px) minmax(470px,1fr) minmax(300px,340px)!important}
  .library-page-v13 #feedFeaturedHost .feed-content{grid-template-columns:minmax(470px,1fr) minmax(300px,340px)!important}
}

/* ---- 队列项：标题单行省略，来源改为彩色标签 + 赛事名 ---- */
.library-page-v13 .feed-queue-item > div{min-width:0}
.library-page-v13 .feed-queue-item b{white-space:nowrap!important;text-overflow:ellipsis!important;-webkit-line-clamp:unset!important;display:block!important}
.library-page-v13 .feed-queue-item small{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;overflow:hidden!important}
.feed-queue-tag{flex:0 0 auto;font-style:normal;font-size:10px;font-weight:800;line-height:1.5;padding:1.5px 8px;border-radius:999px;white-space:nowrap}
.feed-queue-event{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.feed-queue-item .tq-master{background:#f3edff;color:#7a4df1;box-shadow:inset 0 0 0 1px #e3d7fc}
.feed-queue-item .tq-tournament{background:#fff0e4;color:#d97a2b;box-shadow:inset 0 0 0 1px #f6ddc2}
.feed-queue-item .tq-live{background:#fdeaea;color:#d64545;box-shadow:inset 0 0 0 1px #f6cccc}
.feed-queue-item .tq-mine{background:#e8f3fe;color:#3a7fd0;box-shadow:inset 0 0 0 1px #cfe4fa}
.feed-queue-item .tq-world{background:#e5f6f0;color:#2f9e77;box-shadow:inset 0 0 0 1px #c8eadd}
.feed-queue-item .tq-recommend{background:#eef1f8;color:#5f6b8a;box-shadow:inset 0 0 0 1px #dfe4f0}

/* ---- 右侧信息面板：奶油纸底 + 螺旋装订（借鉴设计效果图右侧资源） ---- */
.library-page-v13 .feed-info-v20{
  position:relative!important;
  background:linear-gradient(175deg,#fbf9f5 0%,#f7f3ec 62%,#f3efe7 100%)!important;
  border:1px solid #ece5d8!important;
  border-radius:16px!important;
  box-shadow:0 10px 28px rgba(88,74,58,.05)!important;
}
.library-page-v13 .feed-info-v20::before{
  content:"";
  position:absolute;
  left:8px;top:12px;bottom:12px;
  width:24px;
  background:url("/web/assets/brand/generated/notebook-rings-tile.png") left 18px / 22px auto repeat-y;
  opacity:.92;
  pointer-events:none;
}
.library-page-v13 .feed-info-v20 > *{position:relative;z-index:1}
.library-page-v13 .feed-info-v20{padding-left:34px!important}

/* 信息面板内容为螺旋装订环带让位（提高优先级覆盖 .feed-card-featured .feed-info 的内边距） */
@media (min-width:901px){
  .library-page-v13 .feed-card-featured .feed-info-v20{padding-left:38px!important}
  .library-page-v13 .feed-card-featured .feed-info{padding-left:38px!important}
}

/* 修正：#feedFeaturedHost .feed-info（ID 选择器）的内边距压过了 class 规则，
   必须同样带 ID 才能真正为螺旋装订环带让位；环带首簇下移至 64px 对齐设计图比例 */
@media (min-width:901px){
  .library-page-v13 #feedFeaturedHost .feed-info-v20,
  .library-page-v13 #feedFeaturedHost .feed-info{
    padding:24px 20px 18px 46px!important;
  }
  .library-page-v13 .feed-info-v20::before{
    background-position:left 64px;
  }
}

@media (min-width:901px){
  .library-page-v13 .feed-info-v20::before{content:""!important}
}

@media (min-width:901px){
  .library-page-v13 .feed-info-v20::after{content:none!important;display:none!important}
}

@media (min-width:1480px){
  .library-page-v13 .feed-board-stage-v20 .feed-board-frame{
    inline-size:min(100%,calc(100dvh - 196px))!important;
    max-inline-size:none!important;
  }
  .library-page-v13 .feed-focus-layout-v19{grid-template-columns:clamp(280px,20.5vw,380px) minmax(0,1fr) minmax(360px,398px)!important}
  .library-page-v13 #feedFeaturedHost .feed-content{grid-template-columns:minmax(0,1fr) minmax(360px,398px)!important}
  /* 让卡片高度跟随 zone（zone 已按视口拉伸），棋盘垂直居中 */
  .library-page-v13 .feed-card-featured .feed-board-frame{margin:10px!important}
}

/* 棋谱库整屏高度跟随视口（旧规则 min(760px,…) 在高屏上留下大片底部空白）；
   队列/信息面板同步拉伸，棋盘按上一条规则放大后正好填满 */
@media (min-width:1480px){
  .library-feed-screen,
  .library-hub,
  .library-browser{
    height:min(calc(100dvh - 112px),1800px)!important;
    min-height:640px!important;
  }
}

/* zone 高度旧规则 min(710px,…) 在高屏上不再封顶：由屏幕网格行（1fr）拉伸填满 */
@media (min-width:1480px){
  .library-feed-screen > .feed-zone-v13{height:auto!important;min-height:0!important}
}

/* 棋盘尺寸同样被 #feedFeaturedHost（ID 选择器）的 700px 上限压制，须带 ID 覆盖：
   棋盘 = min(中列宽, 视口高-196px)，大屏随高度放大、不出视口 */
@media (min-width:1480px){
  .library-page-v13 #feedFeaturedHost .feed-board-frame{
    /* 270px = 顶栏+页边距+栏目条+卡片内边距等固定开销（870/1200 高度实测校准），
       保证 width 不超过可用高度 → aspect-ratio 恒为正方形，且不小于旧版 600px */
    width:min(100%,calc(100dvh - 270px))!important;
    max-width:none!important;
  }
}

@media (min-width:901px){
  .view-page[data-view="library"] .library-page-v13::before{
    inset:0;
    height:auto!important;
    border-radius:24px!important;
    background:
      linear-gradient(100deg,rgba(255,255,255,.94) 0%,rgba(255,255,255,.86) 38%,rgba(255,255,255,.5) 68%,rgba(255,255,255,.3) 100%),
      var(--pc-art-library) right -40px top / auto 132% no-repeat!important;
    opacity:1!important;
  }
  .library-page-v13 .feed-zone-v13{
    background:rgba(255,255,255,.58)!important;
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
  }
  .library-page-v13 .feed-queue{
    background:rgba(251,250,254,.74)!important;
    backdrop-filter:blur(5px);
    -webkit-backdrop-filter:blur(5px);
  }
  .library-page-v13 .feed-card-featured{
    background:rgba(255,255,255,.6)!important;
    backdrop-filter:blur(7px);
    -webkit-backdrop-filter:blur(7px);
  }
  .library-page-v13 .feed-category-tabs{
    background:rgba(248,247,251,.8)!important;
    backdrop-filter:blur(4px);
    -webkit-backdrop-filter:blur(4px);
  }
  .library-page-v13 .feed-focus-layout-v19{gap:20px!important}
  .library-page-v13 .library-feed-screen{gap:16px!important}
}

/* 复盘教学重点快进动画：棋盘左上角的进行提示徽标 */
.lib-fast-play-chip{
  position:absolute;top:12px;left:12px;z-index:6;
  background:rgba(41,34,74,.82);color:#fff;
  font-size:11px;font-weight:800;letter-spacing:.02em;
  padding:4px 11px;border-radius:999px;
  box-shadow:0 4px 12px rgba(41,34,74,.25);
  pointer-events:none;
  animation:libFastPlayIn .18s ease both;
}
@keyframes libFastPlayIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

@media (min-width:901px){
  .league-fought,.league-promotion{
    display:flex!important;flex-direction:row!important;align-items:center!important;
    justify-content:flex-start!important;gap:14px!important;
  }
  .league-kpi-icon{width:44px!important;height:44px!important;flex:0 0 44px!important;border-radius:13px!important;display:grid!important;place-items:center!important}
  .league-kpi-icon .ui-icon{width:22px!important;height:22px!important}
  .league-kpi-icon.fought{background:#efeaff!important;color:#6d50ea!important}
  .league-kpi-icon.promotion{background:#f7f5fb!important;color:#e8a23c!important}
  .league-kpi-body{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important;min-width:0!important;flex:1 1 auto!important}
  .league-fought b,.league-promotion b{font-size:19px!important}
  .league-fought .progress,.league-promotion .progress{max-width:none!important;width:100%!important}
  .league-promotion-hint{
    display:flex!important;flex-direction:row!important;align-items:center!important;gap:12px!important;
  }
  .league-hint-icon{flex:0 0 auto;display:grid!important;place-items:center!important;color:#6d50ea!important}
  .league-hint-icon .ui-icon{width:24px!important;height:24px!important}
  .league-hint-body{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important;min-width:0!important}
  .league-promotion-hint b{white-space:nowrap!important}
  .league-promotion-hint small{white-space:normal!important;margin-left:0!important}
  /* 时间轴节点：设计稿中胜、负均显示绿色对勾（负局由对手卡「负」pill 区分） */
  .league-match-slot.done .league-timeline-node{background:#27ad68!important;box-shadow:0 4px 11px rgba(39,173,104,.22)!important}
  /* 时间轴虚线右端的浅灰箭头收尾（设计稿细节） */
  .league-opponents-v44::after{
    content:"";position:absolute;right:3.4%;top:0;transform:translateY(-50%);
    width:7px;height:7px;border-top:2px solid #cfcadb;border-right:2px solid #cfcadb;
    rotate:45deg;pointer-events:none;
  }
}

/* =====================================================================
 * GoPower WebPC · 联赛赛程时间轴：最终对齐参考图
 * ---------------------------------------------------------------------
 * 将横向虚线钉在与 7 个状态圆点「圆心相等」的水平线上，并贯穿所有圆点
 * （圆点压在虚线之上），右端保留浅灰箭头收尾。此前该虚线因历史规则将
 * ::before/::after 的 top 覆盖为 0 而错位到容器顶部，这里作为 pc.css 末尾
 * 的最终强制覆盖统一修正，仅改呈现、不改赛程状态与交互。
 * 节点圆心 = 容器 padding-top(40px) + 星期标签行(30px) + 状态节点半高(18.5px)
 *          ≈ 88px。
 * ===================================================================== */
@media (min-width:901px){
  .league-opponents-v44{
    position:relative!important;
  }
  .league-opponents-v44::before{
    content:"";position:absolute!important;
    top:88px!important;left:2.6%!important;right:2.6%!important;
    height:0!important;border:0!important;
    border-top:2px dashed #dad6e2!important;
    background:none!important;opacity:1!important;
    z-index:0!important;pointer-events:none!important;
  }
  .league-opponents-v44::after{
    content:"";position:absolute!important;right:2.6%!important;top:88px!important;
    transform:translateY(-50%)!important;width:7px!important;height:7px!important;
    border-top:2px solid #cfcadb!important;border-right:2px solid #cfcadb!important;
    rotate:45deg!important;pointer-events:none!important;
  }
}

/* =====================================================================
 * GoPower WebPC · 联赛角色头像：强制正圆
 * ---------------------------------------------------------------------
 * 确保赛程卡片头像无论在哪个断点、内嵌图片是横是竖，都被裁成真正的
 * 圆。此前部分断点上容器仅覆盖了 width/height，圆裁/定位/裁切所依赖的
 * display:grid + overflow:hidden + border-radius:50% 可能被较高规则挤掉，
 * 或角色图按自然宽高比拉伸，导致最终看成一枚椭圆。这里作为 pc.css 末尾
 * 的最终强制覆盖，用 aspect-ratio:1/1 + object-fit:cover 兜底为正圆。
 * 仅影响呈现，不影响头像尺寸的响应式变化与悬停缩放。
 * ===================================================================== */
.league-opponent-avatar-v44{
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  border-radius:50%!important;
  aspect-ratio:1/1!important;
}
.league-opponent-avatar-v44>*,
.league-opponent-avatar-v44 img{
  max-width:100%!important;max-height:100%!important;
}
.league-opponent-avatar-v44 img{
  width:100%!important;height:100%!important;
  object-fit:cover!important;object-position:center!important;
  border-radius:50%!important;display:block!important;
}
.league-opponent-avatar-v44 .mentor-portrait{
  width:100%!important;height:100%!important;
  object-fit:cover!important;border-radius:50%!important;
}

#trainSettle.unified-game-settle{
  background:rgba(34,28,50,.30)!important;
  backdrop-filter:blur(8px);
}
#trainSettle.unified-game-settle .train-settle-card{
  width:min(720px,calc(100vw - 40px))!important;
  max-height:min(88vh,820px)!important;
  overflow:auto!important;
  padding:24px 26px 22px!important;
  border:1px solid #e5e0ef!important;
  border-radius:24px!important;
  box-shadow:0 30px 80px rgba(39,30,68,.22)!important;
}
#trainSettle.unified-game-settle .login-title{
  margin:0 0 14px!important;
  font-size:20px!important;
  font-weight:900!important;
  letter-spacing:-.01em!important;
  color:#282230!important;
}
#trainSettle .train-settle-head.unified-result{
  position:relative;
  display:grid;
  justify-items:center;
  gap:4px;
  padding:20px 20px 18px!important;
  border:1px solid #ebe6f5;
  border-radius:18px!important;
  background:linear-gradient(145deg,#f7f4ff 0%,#fff 68%)!important;
  overflow:hidden;
}
#trainSettle .train-settle-head.unified-result.win{
  border-color:#dceee4;
  background:linear-gradient(145deg,#f1faf5 0%,#fff 70%)!important;
}
#trainSettle .train-settle-head.unified-result.loss{
  border-color:#eee3e3;
  background:linear-gradient(145deg,#fbf5f5 0%,#fff 70%)!important;
}
#trainSettle .train-settle-head.unified-result .train-settle-kicker{
  color:#756b83;
  font-size:12px;
  font-weight:850;
  letter-spacing:.08em;
}
#trainSettle .train-settle-head.unified-result .train-settle-icon{
  width:54px!important;
  height:54px!important;
  margin:2px auto 3px!important;
  border-radius:17px!important;
  background:linear-gradient(145deg,#7257e8,#5d41cf)!important;
  box-shadow:0 8px 20px rgba(101,75,211,.20);
}
#trainSettle .train-settle-head.unified-result.win .train-settle-icon{
  background:linear-gradient(145deg,#2fa96f,#27865b)!important;
  box-shadow:0 8px 20px rgba(43,151,100,.18);
}
#trainSettle .train-settle-head.unified-result.loss .train-settle-icon{
  background:linear-gradient(145deg,#7b7283,#615a68)!important;
  box-shadow:none;
}
#trainSettle .train-settle-head.unified-result .train-settle-icon .ui-icon{
  width:28px!important;
  height:28px!important;
}
#trainSettle .train-settle-head.unified-result h3{
  margin:0!important;
  color:#282230!important;
  font-size:26px!important;
  line-height:1.2!important;
  font-weight:950!important;
  letter-spacing:-.02em;
}
#trainSettle .train-settle-head.unified-result p{
  margin:4px 0 0!important;
  max-width:520px;
  color:#706978!important;
  font-size:13.5px!important;
  line-height:1.55!important;
  font-weight:650;
}
#trainSettle .train-settle-result-code{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  margin-top:4px;
  padding:4px 10px;
  border-radius:999px;
  background:#f0edf7;
  color:#5f5868;
  font-size:12px;
  font-style:normal;
  font-weight:850;
}
#trainSettle .train-settle-metrics.unified{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  margin:12px 0 0!important;
  max-width:none!important;
}
#trainSettle .train-settle-metrics.unified article{
  min-height:84px!important;
  padding:10px 12px!important;
  border-radius:14px!important;
  background:#faf9fc!important;
}
#trainSettle .train-settle-metrics.unified article.result.win{background:#f2faf6!important;border-color:#dceee4!important}
#trainSettle .train-settle-metrics.unified article.result.loss{background:#faf6f6!important;border-color:#eee4e4!important}
#trainSettle .train-settle-metrics.unified small{
  font-size:11.5px!important;
  font-weight:750;
}
#trainSettle .train-settle-metrics.unified b{
  font-size:19px!important;
  font-weight:950;
}
#trainSettle .train-settle-reward-panel,
#trainSettle .train-settle-tasks{
  margin-top:12px;
  padding:12px 14px;
  border:1px solid #ece8f1;
  border-radius:15px;
  background:#fff;
}
#trainSettle .train-settle-reward-panel>header,
#trainSettle .train-settle-tasks>header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:9px;
}
#trainSettle .train-settle-reward-panel>header b,
#trainSettle .train-settle-tasks>header b{
  color:#342d3d;
  font-size:13.5px;
  font-weight:900;
}
#trainSettle .train-settle-reward-panel>header small,
#trainSettle .train-settle-tasks>header small{
  color:#8a8291;
  font-size:11px;
  font-weight:700;
}
#trainSettle .train-settle-tasks>header>div{
  display:flex;
  align-items:center;
  gap:7px;
}
#trainSettle .train-settle-tasks>header>div>span{
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  border-radius:8px;
  color:#6650d8;
  background:#f1edff;
}
#trainSettle .train-settle-tasks>header .ui-icon{width:14px;height:14px}
#trainSettle .train-settle-rewards.unified{
  display:flex!important;
  flex-wrap:wrap;
  gap:8px!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
}
#trainSettle .train-settle-rewards.unified>span{
  flex:0 1 auto!important;
  min-width:145px!important;
  min-height:42px;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:8px 12px;
  border:1px solid #f0dfb8;
  border-radius:12px;
  background:#fff9e9;
  color:#7b5d20!important;
  font-size:12px!important;
  font-weight:850!important;
}
#trainSettle .train-settle-rewards.unified>span small{
  padding-left:2px;
  color:#9a7d3d;
  font-size:10.5px;
  font-weight:750;
}
#trainSettle .train-settle-rewards.unified>span.achievement{
  border-color:#e3daf7;
  background:#f8f5ff;
  color:#6650c8!important;
}
#trainSettle .train-settle-no-reward{
  margin:0;
  color:#8c8493;
  font-size:12px;
}
#trainSettle .train-settle-task-list{
  display:grid;
  gap:7px;
}
#trainSettle .train-settle-task-list article{
  display:grid;
  grid-template-columns:30px minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  min-height:48px;
  padding:7px 9px;
  border:1px solid #eeeaf2;
  border-radius:11px;
  background:#fbfafc;
}
#trainSettle .train-settle-task-list article.just-done{
  border-color:#cfe9da;
  background:#f3faf6;
}
#trainSettle .train-settle-task-list .task-check{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:9px;
  color:#7966d5;
  background:#f1edff;
}
#trainSettle .train-settle-task-list article.done .task-check{color:#27845a;background:#e9f7ef}
#trainSettle .train-settle-task-list .task-check .ui-icon{width:15px;height:15px}
#trainSettle .train-settle-task-list article>div{min-width:0}
#trainSettle .train-settle-task-list p{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin:0 0 5px;
}
#trainSettle .train-settle-task-list p b{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#403848;
  font-size:12px;
  font-weight:850;
}
#trainSettle .train-settle-task-list p small{
  flex:0 0 auto;
  color:#827a8a;
  font-size:10.5px;
  font-weight:750;
}
#trainSettle .train-settle-task-list p em{
  margin-left:4px;
  color:#2b8d61;
  font-style:normal;
  font-weight:900;
}
#trainSettle .train-settle-task-list i{
  display:block;
  height:5px;
  overflow:hidden;
  border-radius:999px;
  background:#ebe8ef;
}
#trainSettle .train-settle-task-list i u{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#7861e6,#9a84ef);
  text-decoration:none;
}
#trainSettle .train-settle-task-list article.done i u{background:linear-gradient(90deg,#36a873,#65c391)}
#trainSettle .train-settle-task-list article>strong{
  padding:3px 7px;
  border-radius:999px;
  background:#e9f7ef;
  color:#27845a;
  font-size:10px;
  white-space:nowrap;
}
#trainSettle .train-settle-sync{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
  padding:10px;
  border:1px solid #dcebe2;
  border-radius:14px;
  background:#f5faf7;
}
#trainSettle .train-settle-sync>span{
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:6px;
  min-width:0;
}
#trainSettle .train-settle-sync>span>.ui-icon{
  grid-row:1/3;
  width:20px;
  height:20px;
  color:#2d9566;
}
#trainSettle .train-settle-sync b{
  color:#34624d;
  font-size:11.5px;
  font-weight:900;
}
#trainSettle .train-settle-sync small{
  color:#789083;
  font-size:9.5px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#trainSettle .train-settle-actions.unified-actions{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px!important;
  margin-top:14px!important;
}
#trainSettle .train-settle-actions.unified-actions>button{
  min-width:0!important;
  min-height:44px!important;
  font-size:13px!important;
  font-weight:850!important;
}
#trainSettle.unified-game-settle .stage-settle-eval{
  margin-top:12px;
  margin-bottom:0;
}
#trainSettle.unified-game-settle .stage-settle-rating small,
#trainSettle.unified-game-settle .stage-settle-rating span,
#trainSettle.unified-game-settle .stage-settle-flow small,
#trainSettle.unified-game-settle .stage-settle-eval>p{
  font-size:11px!important;
}
#trainSettle.unified-game-settle .stage-settle-flow b{font-size:18px!important}
@media(max-width:700px){
  #trainSettle.unified-game-settle .train-settle-card{width:min(94vw,620px)!important;padding:18px!important}
  #trainSettle .train-settle-head.unified-result h3{font-size:23px!important}
  #trainSettle .train-settle-metrics.unified{grid-template-columns:1fr 1fr 1fr!important;gap:7px!important}
  #trainSettle .train-settle-metrics.unified article{min-height:76px!important;padding:8px!important}
  #trainSettle .train-settle-sync{grid-template-columns:1fr!important}
  #trainSettle .train-settle-actions.unified-actions{grid-template-columns:1fr!important}
  #trainSettle .train-settle-reward-panel>header,#trainSettle .train-settle-tasks>header{align-items:flex-start;flex-direction:column;gap:3px}
}

.master-view-switch{display:inline-flex;align-items:center;padding:3px;border:1px solid #e4defa;border-radius:999px;background:#f7f5ff;gap:2px}.master-view-switch[hidden]{display:none!important}.master-view-switch button{height:30px;min-width:52px;padding:0 12px;border:0;border-radius:999px;background:transparent;color:#736b86;font-size:12px;font-weight:800;cursor:pointer}.master-view-switch button.active{color:#fff;background:#7456ef;box-shadow:0 4px 12px rgba(116,86,239,.2)}
.hub-member-avatar.hub-member-initial,.lib-member-initial{display:grid;place-items:center;flex:0 0 auto;border-radius:14px;color:#644ce1;background:linear-gradient(145deg,#f1edff,#e7e0ff);font-weight:900;letter-spacing:-.02em;box-shadow:inset 0 0 0 1px rgba(116,86,239,.10)}.hub-member-avatar.hub-member-initial{width:38px;height:38px;font-size:17px}.lib-member-initial{width:46px;height:46px;font-size:20px}.hub-preview-master-initial{display:grid!important;place-items:center;width:54px!important;height:54px!important;border-radius:18px!important;color:#664ee4!important;background:linear-gradient(145deg,#f1edff,#e3dcff)!important;font-size:23px!important;font-weight:900!important}.library-filter-bar .master-filter-note{margin-left:8px;color:#918a9d;font-size:11px}.library-browser[data-library-kind="member"] .library-filter-bar{gap:6px}.library-browser[data-library-kind="member"] .library-filter-bar>button{min-width:88px}.lib-member-card>span:nth-child(2){min-width:0}.lib-member-card>span:nth-child(2) small{margin-top:4px}.library-hub-workbench-list.is-master-directory .hub-workbench-main small{color:#6d5f8a;font-weight:700}

#trainPlay[data-train-mode="course"] #trainBoard .board-stone.trial-stone{box-shadow:0 0 0 2px rgba(117,88,239,.68),0 3px 7px rgba(27,24,53,.22)!important}
#trainPlay[data-train-mode="course"] .course-trial-trigger.active{color:#fff!important;background:#6b56e7!important;border-color:#6b56e7!important}
#trainPlay[data-train-mode="course"] .course-trial-bar{display:flex;align-items:center;gap:8px;margin:8px 0 4px;padding:7px 9px;min-height:38px;border-radius:11px;background:linear-gradient(135deg,#35333f,#514a67);color:#fff;box-shadow:0 6px 14px rgba(38,31,72,.14)}
#trainPlay[data-train-mode="course"] .course-trial-bar[hidden]{display:none!important}
#trainPlay[data-train-mode="course"] .course-trial-bar .trial-dot{width:7px;height:7px;border-radius:50%;background:#ffe09a;box-shadow:0 0 7px #ffe09a;flex:none}
#trainPlay[data-train-mode="course"] .course-trial-bar b{margin-right:auto;font-size:10.5px;white-space:nowrap}
#trainPlay[data-train-mode="course"] .course-trial-bar button{height:28px;padding:0 9px;border:0;border-radius:999px;background:rgba(255,255,255,.13);color:#fff;font-size:9.5px;font-weight:850;cursor:pointer}
#trainPlay[data-train-mode="course"] .course-trial-bar button.exit{background:#ffdc83;color:#302d48}
#trainPlay[data-train-mode="course"] .course-trial-bar button:disabled{opacity:.34;cursor:default}
#trainPlay[data-train-mode="course"] .course-feedback.trial{color:#6655d9!important;background:#f5f2ff!important;border-color:#ddd6fb!important}
@media (hover:hover) and (pointer:fine){
  /* V130：题目棋盘使用原生自定义光标，不再隐藏鼠标，也不再绘制跟随式预落子 DOM。 */
  .go-board.board-placement-hover.board-placement-black{
    cursor:url('/web/assets/cursors/go-place-black.png') 19 9, pointer!important;
  }
  .go-board.board-placement-hover.board-placement-white{
    cursor:url('/web/assets/cursors/go-place-white.png') 19 9, pointer!important;
  }
}

#trainPlay[data-train-mode="course"] .course-next-row.has-redo{grid-template-columns:minmax(105px,.72fr) minmax(105px,.72fr) minmax(160px,1.2fr)!important}
#trainPlay[data-train-mode="course"] .course-next-row .course-redo-btn{border:1px solid #ded9ed!important;color:#665a7c!important;background:#fff!important}
#trainPlay[data-train-mode="course"] .course-next-row .course-redo-btn:hover{border-color:#cfc3f4!important;color:#6f4fe0!important;background:#faf8ff!important}
#trainPlay[data-train-mode="course"] .course-next-row .course-redo-btn.attention{border-color:#c9b8ff!important;background:#f6f2ff!important;color:#6847dc!important;box-shadow:0 0 0 3px rgba(111,79,224,.08)!important}

/* =====================================================================
 * V128 · 正式闯关做题（Flutter 关卡流程）
 * 只对 freeTrain=false + levelType=6 生效；普通题库训练保持原工具栏。
 * 固定“查看答案 / 下一题 / 重做本题 / 正误统计 / 试下”等训练工具不得混入闯关。
 * ===================================================================== */
@media (min-width:901px){
  #trainPlay[data-train-mode="course"] .course-panel.official-level-mode .course-ability-score,
  #trainPlay[data-train-mode="course"] .course-panel.official-level-mode .course-next-row,
  #trainPlay[data-train-mode="course"] .course-panel.official-level-mode #courseAnswerBtn,
  #trainPlay[data-train-mode="course"] .course-panel.official-level-mode #courseNextBtn,
  #trainPlay[data-train-mode="course"] .course-panel.official-level-mode #courseRedoBtn,
  #trainPlay[data-train-mode="course"] .course-panel.official-level-mode #courseTrialBtn,
  #trainPlay[data-train-mode="course"] .course-panel.official-level-mode #courseCollectBtn,
  #trainPlay[data-train-mode="course"] .course-panel.official-level-mode #courseReportBtn,
  #trainPlay[data-train-mode="course"] .course-panel.official-level-mode .course-trial-bar,
  #trainPlay[data-train-mode="course"] .course-panel.official-level-mode .course-autonext,
  #trainPlay[data-train-mode="course"] .course-panel.official-level-mode .course-kbd-hints,
  #trainPlay[data-train-mode="course"] .course-panel.official-level-mode .course-streak-chip{
    display:none!important;
  }

  /* 正式闯关只保留当前规则允许的“提示”和低频声音开关；题目推进由 barrier 完成。 */
  #trainPlay[data-train-mode="course"] .course-panel.official-level-mode .course-actions-card{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:8px!important;
    min-height:0!important;
    margin:0!important;
    padding:4px 0 0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  #trainPlay[data-train-mode="course"] .course-panel.official-level-mode .course-side-actions{
    width:auto!important;
    flex:0 0 auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:8px!important;
    margin:0!important;
  }
  #trainPlay[data-train-mode="course"] .course-panel.official-level-mode .course-side-actions button[hidden]{display:none!important}
  #trainPlay[data-train-mode="course"] .course-panel.official-level-mode .course-side-actions button{
    width:auto!important;
    min-width:86px!important;
    height:36px!important;
    min-height:36px!important;
    flex:0 0 auto!important;
    padding:0 12px!important;
    border:1px solid #e1dbee!important;
    border-radius:11px!important;
    background:#fff!important;
    color:#665d78!important;
    font-size:11px!important;
    font-weight:850!important;
    box-shadow:0 3px 9px rgba(64,51,103,.025)!important;
  }
  #trainPlay[data-train-mode="course"] .course-panel.official-level-mode .course-side-actions button .ui-icon{
    width:15px!important;
    height:15px!important;
  }
  #trainPlay[data-train-mode="course"] .course-panel.official-level-mode #courseHintBtn:not([hidden]){
    border-color:#d8cdf8!important;
    background:#f9f7ff!important;
    color:#694be0!important;
  }
  #trainPlay[data-train-mode="course"] .course-panel.official-level-mode #courseSoundBtn[aria-pressed="true"]{
    border-color:#ded7f0!important;
    background:#fbfaff!important;
    color:#615873!important;
  }
}
/* V128 · 无论视口宽度都尊重正式闯关的控件隔离，避免基础 CSS 覆盖 hidden。 */
.course-panel.official-level-mode .course-ability-score,
.course-panel.official-level-mode .course-next-row,
.course-panel.official-level-mode #courseAnswerBtn,
.course-panel.official-level-mode #courseNextBtn,
.course-panel.official-level-mode #courseRedoBtn,
.course-panel.official-level-mode #courseTrialBtn,
.course-panel.official-level-mode #courseCollectBtn,
.course-panel.official-level-mode #courseReportBtn,
.course-panel.official-level-mode .course-trial-bar,
.course-panel.official-level-mode .course-autonext,
.course-panel.official-level-mode .course-kbd-hints,
.course-panel.official-level-mode .course-streak-chip{display:none!important}
.course-panel.official-level-mode .course-side-actions button[hidden]{display:none!important}

/* Flutter 路径道具入口：经验宝与跳关卡。 */
.node-exp-boost,.node-skip-entry{position:absolute;z-index:9;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;font-weight:800;box-shadow:0 4px 12px rgba(30,35,50,.12)}
.node-exp-boost{right:-24px;top:2px;min-width:32px;height:24px;padding:0 6px;border-radius:999px;background:#fff;color:#7459ef;border:1px solid rgba(116,89,239,.25);font-size:11px}
.node-exp-boost.active{background:#7459ef;color:#fff;border-color:#7459ef}
.node-skip-entry{left:50%;top:82px;transform:translateX(-50%);padding:5px 9px;border-radius:999px;background:#fff7e6;color:#a86411;border:1px solid #f3c87a;font-size:11px}

/* Flutter BarrierCompleteView · 正式学习路径结算弹窗 */
#trainSettle.flutter-barrier-complete{
  background:rgba(56,49,86,.18)!important;
  backdrop-filter:blur(7px) saturate(.95)!important;
  -webkit-backdrop-filter:blur(7px) saturate(.95)!important;
}
#trainSettle.flutter-barrier-complete .train-settle-card{
  width:min(720px,calc(100vw - 48px))!important;
  max-width:720px!important;
  max-height:min(92vh,820px)!important;
  overflow:auto!important;
  padding:0!important;
  border:1px solid rgba(229,226,241,.96)!important;
  border-radius:30px!important;
  background:linear-gradient(180deg,#fbfbff 0%,#f7f6fc 100%)!important;
  box-shadow:0 34px 90px rgba(45,35,78,.24)!important;
}
#trainSettle.flutter-barrier-complete .login-title{display:none!important}
#trainSettle.flutter-barrier-complete #trainSettleBody{padding:0!important}
.pc-flutter-complete{
  min-height:650px;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:34px 56px 34px;
  text-align:center;
  box-sizing:border-box;
}
.pc-flutter-hero{
  position:relative;
  width:250px;
  height:258px;
  display:grid;
  place-items:center;
  animation:pcFlutterHeaderIn .49s cubic-bezier(.22,.85,.32,1) both;
}
.pc-flutter-hero>img{
  position:relative;
  z-index:2;
  width:100%;
  height:100%;
  object-fit:contain;
  filter:drop-shadow(0 16px 20px rgba(77,58,166,.14));
  animation:pcFlutterFloat 2.5s ease-in-out .55s infinite;
}
.pc-flutter-shadow{
  position:absolute;
  z-index:1;
  left:50%;bottom:5px;
  width:86px;height:16px;
  border-radius:50%;
  background:rgba(78,69,111,.09);
  filter:blur(4px);
  transform:translateX(-50%);
}
.pc-flutter-complete>h2{
  margin:4px 0 22px;
  color:#f2a63d;
  font-size:34px;
  line-height:1.2;
  font-weight:850;
  letter-spacing:.08em;
  background:linear-gradient(180deg,#ffca61,#efa035);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:pcFlutterTitleIn .46s ease-out .12s both;
}
.pc-flutter-complete>h2:before,.pc-flutter-complete>h2:after{
  content:'';
  display:inline-block;
  width:22px;height:4px;
  margin:0 14px 9px;
  border-radius:99px;
  background:#f8c35b;
  transform:rotate(20deg);
  box-shadow:9px -8px 0 -1px #ffd98b;
}
.pc-flutter-complete>h2:after{transform:rotate(-20deg);box-shadow:-9px -8px 0 -1px #ffd98b}
.pc-flutter-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  width:min(510px,100%);
  margin:0 auto 28px;
}
.pc-flutter-stat{
  position:relative;
  aspect-ratio:122/131;
  min-width:0;
  animation:pcFlutterCardIn .49s cubic-bezier(.17,.89,.32,1.28) both;
}
.pc-flutter-stat:nth-child(1){animation-delay:.35s}.pc-flutter-stat:nth-child(2){animation-delay:.49s}.pc-flutter-stat:nth-child(3){animation-delay:.63s}
.pc-flutter-stat>img{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
.pc-flutter-stat>small,.pc-flutter-stat>b{position:absolute;z-index:1;left:7%;right:7%;display:block;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc-flutter-stat>small{top:39%;color:#66616d;font-size:14px;font-weight:650}
.pc-flutter-stat>b{top:61%;color:#23202a;font-size:32px;line-height:1;font-weight:520;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
#trainSettle.flutter-barrier-complete .pc-flutter-continue{
  width:min(510px,100%)!important;
  min-height:60px!important;
  margin-top:auto!important;
  border:0!important;
  border-radius:18px!important;
  color:#fff!important;
  background:linear-gradient(105deg,#746cf2,#5d55dd)!important;
  box-shadow:0 5px 0 #4b44bd,0 13px 26px rgba(80,66,190,.20)!important;
  font-size:18px!important;
  font-weight:900!important;
  animation:pcFlutterButtonIn .49s ease-out .91s both;
}
#trainSettle.flutter-barrier-complete .pc-flutter-continue:active{transform:translateY(4px);box-shadow:0 1px 0 #4b44bd,0 7px 15px rgba(80,66,190,.16)!important}
.pc-flutter-confetti{position:absolute;z-index:3;inset:7% -17% 8%;pointer-events:none}
.pc-flutter-confetti span{position:absolute;width:15px;height:8px;border-radius:4px;opacity:.92;animation:pcFlutterConfetti 2.8s ease-in-out infinite}
.pc-flutter-confetti .c1{left:3%;top:26%;background:#f8c550;transform:rotate(42deg)}.pc-flutter-confetti .c2{right:5%;top:21%;background:#ffc14f;transform:rotate(-32deg);animation-delay:.18s}.pc-flutter-confetti .c3{left:1%;top:62%;background:#f58db8;transform:rotate(54deg);animation-delay:.36s}.pc-flutter-confetti .c4{right:0;top:55%;background:#71c8ef;transform:rotate(-18deg);animation-delay:.54s}.pc-flutter-confetti .c5{left:17%;top:9%;background:#8e82ee;transform:rotate(22deg);animation-delay:.7s}.pc-flutter-confetti .c6{right:17%;top:72%;background:#82d27c;transform:rotate(33deg);animation-delay:.86s}.pc-flutter-confetti .c7{left:15%;top:79%;background:#f2a25b;transform:rotate(-45deg);animation-delay:1s}.pc-flutter-confetti .c8{right:22%;top:5%;background:#f5a0b9;transform:rotate(18deg);animation-delay:1.12s}
@keyframes pcFlutterHeaderIn{from{opacity:0;transform:translateY(-18px)}to{opacity:1;transform:none}}
@keyframes pcFlutterTitleIn{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:none}}
@keyframes pcFlutterCardIn{from{opacity:0;transform:translateY(24px) scale(.68)}to{opacity:1;transform:none}}
@keyframes pcFlutterButtonIn{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes pcFlutterFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes pcFlutterConfetti{0%,100%{translate:0 0;rotate:0deg}50%{translate:0 -8px;rotate:8deg}}
@media(max-height:760px){
  #trainSettle.flutter-barrier-complete .train-settle-card{max-height:94vh!important}
  .pc-flutter-complete{min-height:560px;padding:20px 44px 24px}
  .pc-flutter-hero{width:205px;height:210px}
  .pc-flutter-complete>h2{margin:0 0 16px;font-size:30px}
  .pc-flutter-metrics{width:min(470px,100%);gap:14px;margin-bottom:20px}
  .pc-flutter-stat>b{font-size:28px}
  #trainSettle.flutter-barrier-complete .pc-flutter-continue{min-height:54px!important}
}
@media(max-width:700px){
  #trainSettle.flutter-barrier-complete{padding:12px!important}
  #trainSettle.flutter-barrier-complete .train-settle-card{width:min(96vw,620px)!important;border-radius:24px!important}
  .pc-flutter-complete{min-height:0;padding:22px 18px 22px}
  .pc-flutter-hero{width:190px;height:198px}
  .pc-flutter-complete>h2{font-size:27px;margin:0 0 15px}
  .pc-flutter-metrics{gap:8px;margin-bottom:18px}
  .pc-flutter-stat>small{font-size:11px}.pc-flutter-stat>b{font-size:23px}
}
@media(prefers-reduced-motion:reduce){.pc-flutter-hero,.pc-flutter-hero>img,.pc-flutter-complete>h2,.pc-flutter-stat,.pc-flutter-continue,.pc-flutter-confetti span{animation:none!important}}


/* V131.2.4 · Flutter BarrierFailPage parity for formal AI barriers. */
#trainSettle.flutter-barrier-fail{backdrop-filter:blur(7px);background:rgba(79,73,107,.26)!important}
#trainSettle.flutter-barrier-fail .train-settle-card{width:min(92vw,560px)!important;min-height:610px!important;border-radius:28px!important;background:#f7f6fc!important;border:1px solid rgba(110,99,177,.12)!important;box-shadow:0 28px 70px rgba(61,51,113,.22)!important;overflow:hidden}
#trainSettle.flutter-barrier-fail .login-title{display:none!important}
#trainSettle.flutter-barrier-fail #trainSettleBody{padding:0!important}
.pc-flutter-fail{min-height:610px;padding:34px 54px 40px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;text-align:center}
.pc-flutter-fail>img{width:286px;height:286px;object-fit:contain;margin:auto auto 8px;filter:drop-shadow(0 16px 22px rgba(63,49,129,.12));animation:pcBarrierFailIn .38s cubic-bezier(.22,.82,.3,1) both}
.pc-flutter-fail>p{margin:0 0 26px;color:#797287;font-size:14px;line-height:1.55}
#trainSettle.flutter-barrier-fail .pc-flutter-fail-button{width:100%;min-height:58px!important;border-radius:17px!important;background:#e85656!important;color:#fff!important;box-shadow:0 5px 0 #bd3f3f,0 12px 24px rgba(184,55,55,.17)!important;font-size:18px!important;font-weight:800!important;border:0!important}
#trainSettle.flutter-barrier-fail .pc-flutter-fail-button:active{transform:translateY(4px);box-shadow:0 1px 0 #bd3f3f,0 7px 14px rgba(184,55,55,.14)!important}
@keyframes pcBarrierFailIn{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:none}}
@media(max-height:760px){#trainSettle.flutter-barrier-fail .train-settle-card{min-height:540px!important}.pc-flutter-fail{min-height:540px;padding:24px 44px 28px}.pc-flutter-fail>img{width:240px;height:240px}}
@media(max-width:700px){#trainSettle.flutter-barrier-fail .train-settle-card{width:min(96vw,520px)!important;min-height:0!important}.pc-flutter-fail{min-height:520px;padding:24px 24px 28px}.pc-flutter-fail>img{width:230px;height:230px}}
@media(prefers-reduced-motion:reduce){.pc-flutter-fail>img{animation:none!important}}

#trainCountContinue.danger{background:#e85656!important;border-color:#e85656!important;color:#fff!important;box-shadow:0 4px 0 #bd3f3f,0 8px 16px rgba(184,55,55,.16)!important}

/* =====================================================================
 * V131.2.14 · Web PC responsive detail audit
 * Narrow desktop / tablet / long text / coarse-pointer interaction fixes.
 * ===================================================================== */

/* Long account / stage / competition names must not expand the topbar or cards. */
.topbar,.topbar-user,.user-chip,.main-col,.view-page{min-width:0!important}
#topName{
  display:block!important;
  max-width:clamp(76px,14vw,180px)!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.user-chip{max-width:min(230px,24vw)!important}
.view-page h1,.view-page h2,.view-page h3,.panel-card h1,.panel-card h2,.panel-card h3{
  overflow-wrap:anywhere;
  word-break:break-word;
}
.home-user,.stage-info,.home-course,.league-header-copy,.mine-user-copy,
.library-page-v13 .feed-info-v20,.library-page-v13 .feed-queue-item>div{
  min-width:0!important;
}

/* 901~1099px was the main narrow-window hole: an older fallback correctly
   switched to a horizontal nav, but later PC polish reintroduced body min-width
   1080px and a fixed sidebar, causing horizontal clipping at 901~1079px. */
@media (min-width:901px) and (max-width:1099px){
  body{min-width:0!important;overflow-x:hidden!important}
  .web-shell{min-width:0!important;overflow:hidden!important}
  .topbar{
    min-width:0!important;
    padding-inline:14px!important;
    gap:10px!important;
  }
  .topbar .brand{width:auto!important;min-width:0!important;flex:0 1 auto!important}
  .topbar .brand-wordmark img{width:92px!important;max-width:92px!important}
  .topbar .brand-tag{display:none!important}
  .topbar-user{margin-left:auto!important;flex:0 1 auto!important}
  .topbar-logout{padding-inline:10px!important}

  .web-view,
  #view:has(.view-page[data-view="home"].active){
    grid-template-areas:"nav" "main"!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto minmax(0,1fr)!important;
    min-width:0!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
  .side-nav{
    grid-area:nav!important;
    position:sticky!important;
    top:0!important;
    z-index:25!important;
    width:100%!important;
    height:56px!important;
    min-height:56px!important;
    max-height:56px!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:5px!important;
    padding:7px 12px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    border-right:0!important;
    border-bottom:1px solid var(--pc-border)!important;
    background:rgba(255,255,255,.97)!important;
    scrollbar-width:none;
    overscroll-behavior-x:contain;
  }
  .side-nav::-webkit-scrollbar{display:none}
  .side-nav::before,.home-sidebar-tip{display:none!important}
  .side-nav-btn{
    width:auto!important;
    flex:0 0 auto!important;
    min-height:42px!important;
    padding:0 13px!important;
    justify-content:center!important;
    gap:7px!important;
    font-size:12px!important;
    white-space:nowrap!important;
  }
  .side-nav-btn span{display:inline!important}
  .side-nav-btn .ui-icon{width:17px!important;height:17px!important}
  .main-col{
    grid-area:main!important;
    min-width:0!important;
    padding:14px 14px 24px!important;
    overflow-x:hidden!important;
  }
  .right-panel{display:none!important}

  /* Home / study: eliminate fixed desktop columns that cannot fit this width. */
  .view-page[data-view="home"] .home-main{width:100%!important;max-width:100%!important}
  .view-page[data-view="home"] .home-hero{grid-template-columns:minmax(0,1fr) 180px auto!important}
  .view-page[data-view="home"] .stage-banner{grid-template-columns:34px minmax(210px,.8fr) minmax(0,1.2fr) 34px!important}
  .home-course{padding-left:14px!important;column-gap:10px!important}
  .home-course>button{min-width:110px!important}
  .study-mode-options{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .study-adjust-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  /* Library: keep board primary; move the info card below rather than forcing
     220 + 460 + 310px columns into a ~1000px viewport. */
  .library-page-v13 .feed-focus-layout-v19{
    grid-template-columns:minmax(190px,230px) minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr) auto!important;
    gap:10px!important;
    height:auto!important;
    min-width:0!important;
  }
  .library-page-v13 #feedQueueHost.feed-queue{grid-column:1!important;grid-row:1 / span 2!important;min-width:0!important}
  .library-page-v13 .feed-board-stage-v20{grid-column:2!important;grid-row:1!important;min-width:0!important}
  .library-page-v13 .feed-info-v20{grid-column:2!important;grid-row:2!important;height:auto!important;min-height:0!important}
  .library-page-v13 .feed-board-stage-v20 .feed-board-frame{
    width:min(100%,calc(100dvh - 260px),520px)!important;
    max-width:520px!important;
  }

  /* League / Mine: late desktop rules reintroduced 3-wide fixed columns. */
  .league-page{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"head" "progress" "week" "battle"!important}
  .league-header{grid-area:head!important}.league-progress{grid-area:progress!important}.league-week{grid-area:week!important}.league-lower,.league-battle{grid-area:battle!important}
  .league-progress-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .league-opponents{overflow-x:auto!important;overscroll-behavior-x:contain!important;padding-bottom:6px!important}
  .league-opponent{min-width:104px!important}
  .mine-page{display:flex!important;flex-direction:column!important;max-width:100%!important}
  .mine-overview{grid-template-columns:1fr!important;min-width:0!important}
  .mine-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))!important;min-width:0!important}
  .mine-dashboard>.mine-card{min-width:0!important}
  .mine-dashboard>.mine-card:last-child{grid-column:1/-1!important}
}

/* Very narrow PC browser windows: keep navigation usable and stop accidental
   horizontal page scrolling. This is not a mobile redesign; it is a safe fallback. */
@media (max-width:900px){
  html,body,.web-shell{min-width:0!important;max-width:100vw!important;overflow-x:hidden!important}
  .topbar{padding-inline:10px!important;gap:8px!important}
  .topbar .brand-tag{display:none!important}
  .topbar .brand-wordmark img{width:86px!important;max-width:86px!important}
  .topbar-logout{display:none!important}
  #topName{max-width:96px!important}
  .main-col{min-width:0!important;padding:12px 10px 22px!important;overflow-x:hidden!important}
  .side-nav{scrollbar-width:none!important;overscroll-behavior-x:contain!important}
  .side-nav::-webkit-scrollbar{display:none!important}
  .view-page,.card,.panel-card{max-width:100%!important;min-width:0!important}
  .library-page-v13 .feed-focus-layout-v19{grid-template-columns:minmax(0,1fr)!important;height:auto!important}
  .library-page-v13 #feedQueueHost.feed-queue{display:none!important}
  .library-page-v13 .feed-board-stage-v20,.library-page-v13 .feed-info-v20{grid-column:1!important;grid-row:auto!important}
  .mine-dashboard{grid-template-columns:1fr!important}
  .league-progress-row{grid-template-columns:1fr!important}
}

/* Tablet/touch usage of Web PC: increase only the controls that are visibly
   smaller than a finger target without changing normal mouse density. */
@media (pointer:coarse){
  .topbar-settings,.user-chip,.topbar-logout,.side-nav-btn,
  .library-header-actions button,.library-surface-switch button,
  .library-page-v13 .feed-category-tabs button,.library-page-v13 .feed-nav-buttons button,
  .library-page-v13 .feed-social button,.library-context-nav button,
  .library-detail-playback-v20 button,.library-detail-control-card-v20 .lib-preview-actions button,
  .study-inline-options button,.home-road-card-head>button,.home-sidebar-tip button,
  .train-controls>button,.course-side-actions button,.course-next-row button,
  .memory-actions button,.lq-duel-actions button,.master-view-switch button{
    min-height:44px!important;
  }
  .topbar-settings,.library-page-v13 .feed-nav-buttons button,
  .library-detail-playback-v20 button{
    min-width:44px!important;
  }
}

/* V131.2.14 narrow-library correction: .feed-focus-layout has two direct children
   (queue + featured article); board/info are nested in #feedFeaturedHost .feed-content. */
@media (min-width:901px) and (max-width:1099px){
  .library-page-v13 .feed-focus-layout-v19{
    grid-template-columns:minmax(190px,230px) minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr)!important;
  }
  .library-page-v13 #feedQueueHost.feed-queue{
    grid-column:auto!important;grid-row:auto!important;min-width:0!important;
  }
  .library-page-v13 #feedFeaturedHost{
    min-width:0!important;min-height:0!important;
  }
  .library-page-v13 #feedFeaturedHost .feed-content{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    height:auto!important;
    min-height:0!important;
  }
  .library-page-v13 .feed-board-stage-v20,
  .library-page-v13 .feed-info-v20{
    grid-column:auto!important;grid-row:auto!important;
  }
  .library-page-v13 .feed-info-v20{
    max-height:none!important;
    overflow:visible!important;
    padding:14px 14px 12px 38px!important;
  }
}
@media (max-width:900px){
  .library-page-v13 #feedFeaturedHost .feed-content{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    height:auto!important;
  }
}
@media (pointer:coarse){
  .topbar-settings{min-width:44px!important}
}

/* V131.2.101 · formal barrier completion: immediate visible saving state, final result no longer waits on home refresh. */
#trainSettle.settle-pending{background:rgba(48,41,78,.16)!important;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
#trainSettle.settle-pending .train-settle-card{width:min(480px,calc(100vw - 44px))!important;padding:0!important;border-radius:28px!important;overflow:hidden;background:linear-gradient(180deg,#fbfaff,#f7f5ff)!important}
#trainSettle.settle-pending .login-title{display:none!important}
#trainSettle.settle-pending #trainSettleBody{padding:0!important}
.train-settle-pending-view{min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:34px 42px;box-sizing:border-box}
.train-settle-pending-check{width:68px;height:68px;display:grid;place-items:center;border-radius:50%;color:#fff;background:linear-gradient(145deg,#6bd79b,#33b66a);box-shadow:0 13px 30px rgba(51,178,105,.22)}
.train-settle-pending-check .ui-icon{width:32px;height:32px}
.train-settle-pending-view h2{margin:17px 0 5px;color:#2d2740;font-size:26px}
.train-settle-pending-view p{margin:0;color:#6f677c;font-size:13px;font-weight:800}
.train-settle-pending-bar{width:238px;max-width:82%;height:5px;margin:25px 0 11px;border-radius:999px;overflow:hidden;background:#e9e5f7}
.train-settle-pending-bar i{display:block;width:42%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#8b75f2,#5a47d9);animation:pcSettleSaving 1.05s ease-in-out infinite}
.train-settle-pending-view small{color:#9890a5;font-size:10px}
@keyframes pcSettleSaving{0%{transform:translateX(-105%)}55%{transform:translateX(92%)}100%{transform:translateX(245%)}}
@media(max-height:680px){.train-settle-pending-view{min-height:260px;padding:24px 36px}.train-settle-pending-check{width:58px;height:58px}.train-settle-pending-view h2{font-size:22px;margin-top:13px}.train-settle-pending-bar{margin-top:18px}}
@media(prefers-reduced-motion:reduce){.train-settle-pending-bar i{animation:none;width:100%;opacity:.7}}
