/* =====================================================================
 * GoPower · Web PC 版 账户体系样式 (web/css/account.css)
 * ---------------------------------------------------------------------
 * 批次2：连胜记录 / 魂珀商店 / 我的道具（panel modal）+ 自由记谱
 * （全屏 modal）+ 成就领取按钮。功能权威源 static/app/app.js
 * （openStreak L2530 / openStore L1175 / openItems L1170 / openPractice
 * L1462 / claimAchievement L2482）；仅布局按 PC modal 形态适配。
 * ===================================================================== */

/* ============ 连胜记录 ============ */
.streak-hero{position:relative;display:flex;align-items:center;gap:16px;padding:16px 20px;border-radius:16px;
  background:linear-gradient(120deg,#fff4e0,#ffe3ea);overflow:hidden}
.streak-hero-flag{width:64px;height:64px;object-fit:contain;flex:0 0 auto}
.streak-hero-copy{display:flex;align-items:baseline;gap:10px;min-width:0}
.streak-hero-days{font-size:44px;line-height:1;color:#e0622d}
.streak-hero-unit{font-size:15px;font-weight:900;color:#c9552a}
.streak-hero > small{margin-left:auto;max-width:180px;font-size:12px;color:#9c6a4a;line-height:1.6}

.streak-card{padding:14px 18px;background:var(--bg);border:1px solid var(--line);border-radius:14px;
  display:flex;flex-direction:column;gap:10px}
.streak-card-head{display:flex;align-items:center;gap:8px}
.streak-card-head img{width:26px;height:26px;object-fit:contain}
.streak-card-head b{font-size:15px;color:var(--ink)}
.streak-card-foot{margin:0;font-size:12px;color:var(--ink-2)}

.streak-goal-bar{position:relative;height:12px;border-radius:999px;background:var(--line)}
.streak-goal-fill{position:absolute;inset:0 auto 0 0;border-radius:999px;
  background:linear-gradient(90deg,#ffb35c,#e0622d)}
.streak-goal-pin{position:absolute;top:50%;width:16px;height:16px;border-radius:50%;background:#fff;
  border:3px solid #e0622d;transform:translate(-50%,-50%);box-sizing:border-box}
.streak-goal-end{position:absolute;right:0;top:-22px;display:flex;align-items:center;gap:4px}
.streak-goal-end i{width:2px;height:34px;background:#e0622d;border-radius:2px}
.streak-goal-end b{font-size:12px;color:#e0622d;white-space:nowrap}

.streak-shield-des{margin:0;font-size:12.5px;color:var(--ink-2);line-height:1.6}
.streak-shield-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.streak-shield-row em{flex:1;font-style:normal;font-size:13px;color:var(--ink)}
.streak-shield-row em b{color:#e0622d}
.streak-shield-buy,.streak-shield-use{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:999px;
  font-size:13px;font-weight:800;background:linear-gradient(135deg,#ffe7ad,#f4b45c);color:#7d5c1c;transition:.15s}
.streak-shield-buy:hover,.streak-shield-use:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(244,180,92,.4)}
.streak-shield-buy .ui-icon{width:14px;height:14px}
.streak-aim-row{display:flex;flex-wrap:wrap;gap:8px}
.streak-aim-row button{padding:7px 14px;border-radius:999px;font-size:12.5px;font-weight:800;
  background:var(--card);border:1.5px solid var(--line);color:var(--ink-2);transition:.15s}
.streak-aim-row button:hover{border-color:var(--brand);color:var(--brand)}
.streak-aim-row button.active{background:var(--brand-soft);border-color:var(--brand);color:var(--brand)}

.streak-cal-head{display:flex;align-items:center;justify-content:space-between}
.streak-cal-head b{font-size:15px;color:var(--ink)}
.streak-cal-nav{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;
  background:var(--card);border:1px solid var(--line);font-size:18px;color:var(--ink-2)}
.streak-cal-nav:hover{border-color:var(--brand);color:var(--brand)}
.streak-cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.streak-cal-grid em{font-style:normal;text-align:center;font-size:11px;color:var(--ink-2);padding:3px 0}
.streak-cal-grid .day{position:relative;height:40px;display:grid;place-items:center;border-radius:10px;
  background:var(--card);border:1px solid var(--line);font-size:13px;color:var(--ink-2)}
.streak-cal-grid .day.checked{background:linear-gradient(135deg,#ffe3c2,#ffd2a8);border-color:#f4b45c;color:#8a4d12;font-weight:800}
.streak-cal-grid .day.checked.freeze{background:linear-gradient(135deg,#d9ecff,#c2e0ff);border-color:#4fb7ea;color:#1d5e8f}
.streak-cal-grid .day.today{border-color:var(--brand);color:var(--brand);font-weight:800}
.streak-cal-grid .day.checked.today{box-shadow:inset 0 0 0 1px var(--brand)}
.streak-cal-grid .day.future{opacity:.45}
.day-tick{position:absolute;bottom:2px;font-style:normal;font-size:9px;line-height:1;color:#fff;
  background:rgba(0,0,0,.28);padding:1px 4px;border-radius:999px}
.day.checked.freeze .day-tick{background:rgba(79,183,234,.85)}

/* ============ 魂珀商店 ============ */
.store-hero{display:flex;align-items:center;gap:14px;padding:14px 18px;border-radius:16px;
  background:linear-gradient(120deg,#f4f0ff,#ffe9d6)}
.store-title{flex:1;display:flex;align-items:baseline;gap:8px}
.store-title span{font-size:13px;font-weight:900;color:var(--brand)}
.store-title b{font-size:22px;color:var(--ink)}
.store-title small{font-size:12px;color:var(--ink-2)}
.store-mascot{position:relative;display:flex;align-items:center;gap:8px}
.store-mascot .mascot-img{width:56px;height:56px;object-fit:contain}
.store-mascot i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;
  background:#ffe7ad;color:#c9932f}
.store-owned{display:flex;flex-direction:column;gap:8px}
.store-owned h2{margin:0;font-size:14px;color:var(--ink)}
.store-owned > div{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.store-owned button{display:flex;align-items:center;gap:8px;padding:9px 11px;border-radius:12px;
  background:var(--bg);border:1px solid var(--line);text-align:left;transition:.15s}
.store-owned button:hover{border-color:var(--brand)}
.store-owned strong{flex:1;font-size:12.5px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.store-owned small{font-size:11.5px;color:var(--ink-2)}

.store-section{display:flex;flex-direction:column;gap:10px}
.store-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.store-section-title h2{margin:0;font-size:15px;color:var(--ink)}
.store-section-title span{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:800;color:#c9932f}
.store-section-title span .ui-icon{width:14px;height:14px}
.store-section.amber .store-section-title span{color:#b07818}
.store-section.amber{padding:12px 14px;background:linear-gradient(135deg,#fff9ec,#fff3d9);border-radius:14px}

.store-row{display:flex;align-items:center;gap:12px;padding:11px 13px;
  background:var(--bg);border:1px solid var(--line);border-radius:13px}
.store-row.amber{background:rgba(255,255,255,.7)}
.store-row > div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.store-row b{font-size:13.5px;color:var(--ink)}
.store-row p{margin:0;font-size:11.5px;color:var(--ink-2);line-height:1.45}
.store-row button,.store-buy-btn{display:inline-flex;align-items:center;gap:5px;padding:8px 14px;border-radius:999px;
  font-size:13px;font-weight:800;background:linear-gradient(135deg,#8b7cf6,#5a4cd8);color:#fff;transition:.15s;white-space:nowrap}
.store-row button:hover,.store-buy-btn:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(106,78,238,.35)}
.store-row button .ui-icon{width:14px;height:14px}
.store-row button.amber{background:linear-gradient(135deg,#ffe7ad,#f4b45c);color:#7d5c1c}

/* 道具视觉：复用 core.js 输出的类名兜底。 */
.inventory-detail-v6{display:flex;flex-direction:column;gap:10px}
.item-visual{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;flex:0 0 auto;
  background:var(--brand-soft);color:var(--brand);overflow:hidden}
.item-visual img{width:100%;height:100%;object-fit:contain}

/* ============ 我的道具 ============ */
.items-hero{display:flex;align-items:center;gap:14px;padding:14px 18px;border-radius:16px;
  background:linear-gradient(120deg,#eef6ff,#f4f0ff)}
.items-hero > div{flex:1;display:flex;align-items:baseline;gap:8px}
.items-hero small{font-size:12px;color:var(--ink-2)}
.items-hero b{font-size:26px;color:var(--brand)}
.items-hero span{font-size:12px;color:var(--ink-2)}
.items-hero i{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;
  background:#fff;color:var(--brand)}
.section-heading{display:flex;align-items:baseline;gap:8px;margin-bottom:8px}
.section-heading h2{margin:0;font-size:14.5px;color:var(--ink)}
.section-heading span{font-size:11.5px;color:var(--ink-2)}
.owned-items-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.owned-items-grid button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 8px;
  border-radius:13px;background:var(--bg);border:1px solid var(--line);transition:.15s}
.owned-items-grid button:hover{border-color:var(--brand);transform:translateY(-1px)}
.owned-items-grid b{font-size:12.5px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.owned-items-grid small{font-size:11.5px;color:var(--brand);font-weight:800}

.inventory-row{display:flex;align-items:center;gap:12px;padding:11px 13px;
  background:var(--bg);border:1px solid var(--line);border-radius:13px}
.inventory-row.owned{border-color:rgba(124,93,250,.4)}
.inventory-row > div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.inventory-row b{font-size:13.5px;color:var(--ink)}
.inventory-row p{margin:0;font-size:11.5px;color:var(--ink-2);line-height:1.45}
.inventory-row small{font-size:11px;color:var(--ink-2)}
.inventory-row em{font-style:normal;font-size:11.5px;color:var(--ink-2)}
.inventory-row span{display:flex;gap:6px}
.inventory-row span button{padding:7px 13px;border-radius:999px;font-size:12px;font-weight:800}
.inventory-row span button[data-use-item]{background:var(--brand-soft);color:var(--brand)}
.inventory-row span button[data-use-item]:hover{background:var(--brand);color:#fff}
.inventory-row span button[data-delete-item]{background:#fdeeec;color:#e0533d}
.inventory-row span button[data-delete-item]:hover{background:#e0533d;color:#fff}

.item-history{border:1px solid var(--line);border-radius:13px;padding:10px 14px;background:var(--bg)}
.item-history summary{cursor:pointer;font-size:13px;font-weight:800;color:var(--ink)}
.item-history h3{margin:10px 0 6px;font-size:12px;color:var(--ink-2)}
.item-history .detail-row{display:flex;align-items:center;gap:10px;padding:6px 0;border-bottom:1px dashed var(--line)}
.item-history .detail-row:last-child{border-bottom:none}
.item-history .detail-row span{flex:1;font-size:12.5px;color:var(--ink);min-width:0}
.item-history .detail-row span small{color:var(--ink-2)}
.item-history .detail-row b{font-size:13px;color:var(--brand)}
.item-history .detail-row p{margin:0}

/* ============ 自由记谱 · PC 工作台 ============ */
/* 全屏工作台不需要 backdrop-filter。此前 AI progress 频繁更新时，整层毛玻璃会触发大面积重合成，
   在部分 Chromium / 集显环境表现为整页发白或闪烁。 */
.practice-mask{z-index:80;padding:0;background:#f8f8fb!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.practice-card{width:100%;max-width:none;height:100vh;height:100dvh;border-radius:0;display:flex;flex-direction:column;
  background:linear-gradient(180deg,#fff 0,#fbfbfe 100%);animation:none!important;box-shadow:none!important;overflow:hidden;contain:layout paint style}
.practice-head{height:64px;flex:0 0 64px;display:flex;align-items:center;gap:14px;padding:0 24px;border-bottom:1px solid #ebe9f3;background:#fff}
.practice-title{display:flex;align-items:center;gap:11px;min-width:0}
.practice-title-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(145deg,#f0ecff,#e6ddff);color:var(--brand)}
.practice-title-icon .ui-icon{width:18px;height:18px}
.practice-title>b{font-size:20px;letter-spacing:.2px;color:#17132a;white-space:nowrap}
.practice-title>small{font-size:12px;color:#918aa4;white-space:nowrap;margin-left:3px}
.practice-size-btn{padding:5px 12px;border-radius:999px;font-size:12px;font-weight:850;background:var(--brand-soft);color:var(--brand);cursor:pointer;user-select:none;transition:var(--t)}
.practice-size-btn:hover{background:var(--brand);color:#fff}
.practice-head-sp{flex:1}
.practice-turn-badge{height:34px;display:inline-flex;align-items:center;gap:8px;padding:0 12px;border-radius:999px;background:#f6f5fa;border:1px solid #ece9f3;color:#393247}
.practice-turn-badge i{width:12px;height:12px;border-radius:50%;display:block;background:#17171b;box-shadow:inset 0 1px 2px rgba(255,255,255,.35),0 1px 3px rgba(20,20,30,.15)}
.practice-turn-badge.white i{background:linear-gradient(145deg,#fff,#e7e7ea);border:1px solid #c8c8ce}
.practice-turn-badge b{font-size:12.5px}.practice-turn-badge.editing{border-color:#d8d0ff;background:#f7f4ff;color:#5d48cf}
.practice-close{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#f6f5fa;color:#716a82;transition:var(--t)}
.practice-close:hover{background:#fdeeec;color:#e0533d}.practice-close .ui-icon{width:17px;height:17px}

/* 三栏不再让中间列无限吃掉宽度：棋盘按可用高度定尺，左右栏紧贴棋盘；多出来的空间均匀留在页面两侧。 */
#practiceMask .practice-main{--practice-board-size:min(810px,calc(100dvh - 92px),calc(100vw - 740px));flex:1;min-height:0;display:grid;
  grid-template-columns:292px var(--practice-board-size) 372px;justify-content:center;gap:14px;padding:12px 18px 16px;align-items:stretch;overflow:hidden;max-width:none!important;width:100%!important;margin:0!important}
.practice-left,.practice-analysis{min-width:0;min-height:0;display:flex;flex-direction:column;gap:12px}
.practice-panel{background:#fff;border:1px solid #e9e6f2;border-radius:16px;box-shadow:0 7px 24px rgba(58,42,100,.045)}
.practice-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:14px 14px 10px;border-bottom:1px solid #f0edf5}
.practice-panel-head>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.practice-panel-head b{font-size:14px;color:#262034}.practice-panel-head small{font-size:11px;color:#9a93a7}
.practice-panel-head.compact{padding-bottom:9px;border-bottom:0}

.practice-record-panel{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.practice-caps{display:flex;gap:6px;flex:0 0 auto}.practice-caps span{height:27px;display:inline-flex;align-items:center;gap:5px;padding:0 7px;border-radius:9px;background:#f8f7fb;border:1px solid #efedf4;font-size:10.5px;color:#756e82}
.practice-caps b{font-size:10.5px;color:#514a5d}.stone-dot{width:13px;height:13px;border-radius:50%;display:inline-block;vertical-align:-2px;flex:0 0 auto}
.stone-dot.black{background:linear-gradient(145deg,#3b3b42,#050507);box-shadow:inset 0 1px 2px rgba(255,255,255,.28)}
.stone-dot.white{background:linear-gradient(145deg,#fff,#e9e9ed);border:1px solid #c8c8ce}

.practice-history-state{height:37px;flex:0 0 37px;display:flex;align-items:center;gap:8px;padding:0 11px;border-bottom:1px solid #f1eef5;background:#fcfbfe;color:#7e7789;font-size:10.5px}
.practice-history-state>span{min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.practice-history-state>span b{color:#5647bd}
.practice-history-state button{height:25px;padding:0 8px;border-radius:8px;border:1px solid #dcd4ff;background:#f5f2ff;color:#6551d6;font-size:10px;font-weight:850;white-space:nowrap}
.practice-history-state button:hover{background:#ece6ff}

.practice-record-columns{height:30px;display:grid;grid-template-columns:36px 46px 1fr;align-items:center;padding:0 12px;color:#aaa4b3;font-size:10px;font-weight:750;background:#faf9fc;border-bottom:1px solid #f2eff6}
.practice-move-list{flex:1;min-height:110px;overflow:auto;padding:5px 7px 7px;scrollbar-width:thin;scrollbar-color:#dcd7e8 transparent}
.practice-move-list::-webkit-scrollbar{width:6px}.practice-move-list::-webkit-scrollbar-thumb{background:#ddd8e9;border-radius:999px}
.practice-move-row{display:grid;grid-template-columns:36px 46px 1fr;align-items:center;min-height:33px;padding:0 6px;border-radius:9px;font-size:12px;color:#554e63;cursor:pointer;position:relative;transition:background .1s,color .1s,opacity .1s}
.practice-move-row:nth-child(even){background:#fcfbfe}.practice-move-row:hover{background:#f5f2ff}.practice-move-row.future{opacity:.74}
.practice-move-row.viewing{background:linear-gradient(90deg,#ece7ff,#f7f5ff);color:#4f3cc4;font-weight:850;box-shadow:inset 3px 0 #7258ef}
.practice-move-row.latest:not(.viewing)::after{content:"";position:absolute;right:7px;width:5px;height:5px;border-radius:50%;background:#bcb4cc}
.practice-move-row.editing-target{background:#fff8e9!important;box-shadow:inset 3px 0 #e8a52e;color:#6c4b12;font-weight:850;opacity:1}
.practice-move-row>span:first-child{font-size:11px;color:#9b94a7}.practice-move-row.viewing>span:first-child{color:#7459ef}.practice-move-row.editing-target>span:first-child{color:#ba7914}
.practice-move-stone{display:flex;align-items:center}.practice-move-stone .stone-dot{width:16px;height:16px}.practice-move-coord{font-weight:760;letter-spacing:.15px}
.practice-empty-record{height:100%;min-height:135px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;color:#aaa4b4}.practice-empty-record .ui-icon{width:28px;height:28px;color:#c8c1da}.practice-empty-record b{font-size:13px;color:#81798e}.practice-empty-record small{font-size:11px}

.practice-edit-banner{flex:0 0 auto;margin:0 8px 7px;padding:9px 10px;border:1px solid #ead8a9;border-radius:10px;background:#fffaf0;display:flex;align-items:center;gap:8px}
.practice-edit-banner[hidden]{display:none!important}.practice-edit-banner>span{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}.practice-edit-banner b{font-size:11.5px;color:#76521a}.practice-edit-banner small{font-size:9.8px;line-height:1.35;color:#9b7845}
.practice-edit-banner button{height:26px;padding:0 8px;border-radius:8px;background:#fff;border:1px solid #ead8a9;color:#8b6326;font-size:10px;font-weight:800}
.practice-record-tools{flex:0 0 auto;display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:0 8px 9px}
.practice-record-tools button{min-height:31px;border:1px solid #ebe7f2;border-radius:9px;background:#faf9fc;color:#5f5869;font-size:10.5px;font-weight:800;line-height:1.2;padding:5px 6px}
.practice-record-tools button:hover:not(:disabled){border-color:#d4c9ff;background:#f5f2ff;color:#604bd5}
.practice-record-tools button:disabled{opacity:.42;cursor:not-allowed}

.practice-actions-panel{flex:0 0 auto}.practice-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:0 11px 9px}.practice-action-grid button{min-height:38px;border-radius:10px;font-size:11.5px;font-weight:780;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.practice-action-grid .btn-ghost{border:1px solid #e9e6ef;background:#faf9fc;color:#514a5e}.practice-action-grid .btn-ghost:hover{border-color:#cfc5ff;background:#f5f1ff;color:#604bd5}
.practice-action-grid .ui-icon{width:14px;height:14px}.practice-import-btn,.practice-save-btn{grid-column:1/-1}.practice-save-btn{box-shadow:0 7px 16px rgba(116,89,239,.22)}
.practice-tip{margin:0;padding:0 12px 11px;font-size:10px;color:#9a93a7;line-height:1.45}

.practice-board-wrap{width:var(--practice-board-size);min-width:0;min-height:0;height:100%;display:flex;align-items:center;justify-content:center;padding:0;overflow:hidden}
.practice-board{position:relative;width:100%;max-width:none;aspect-ratio:1/1;border-radius:13px;box-shadow:0 10px 28px rgba(79,55,24,.13);overflow:hidden;background:#e8bd69;contain:layout paint style}
.practice-board .board-marker.practice-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}
.practice-board .board-marker.practice-ai-candidate.rank-2{background:#22c55e!important}.practice-board .board-marker.practice-ai-candidate.rank-3{background:#eab308!important}.practice-board .board-marker.practice-ai-candidate.rank-4{background:#f97316!important}
.practice-board .board-label.practice-ai-rank{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;border:0!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}
.practice-board .board-marker.stage-last{width:8px;height:8px;border-radius:50%;background:#f04444;box-shadow:0 0 0 2px rgba(255,255,255,.9);z-index:7}

.practice-analysis{overflow:hidden}.practice-analysis-panel{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;contain:layout paint style}
.practice-analysis-head{display:flex;align-items:center;gap:10px;padding:13px 14px;border-bottom:1px solid #efecf5;background:#fff}
.practice-analysis-title{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.practice-analysis-title>span{width:31px;height:31px;border-radius:10px;display:grid;place-items:center;background:#f0ecff;color:#6d55e8}.practice-analysis-title .ui-icon{width:16px;height:16px}
.practice-analysis-title>div{display:flex;flex-direction:column;gap:2px;min-width:0}.practice-analysis-title b{font-size:14.5px;color:#241e32}.practice-analysis-title small{font-size:10.5px;color:#9a93a7;white-space:nowrap}
.practice-analysis-toggle{height:30px;padding:0 9px;border-radius:999px;display:inline-flex;align-items:center;gap:6px;border:1px solid #e5e1ed;background:#f7f6fa;color:#7a7386;font-size:10.5px;font-weight:800;white-space:nowrap}.practice-analysis-toggle i{width:8px;height:8px;border-radius:50%;background:#aaa4b0}.practice-analysis-toggle.on{border-color:#dbeee1;background:#f1fbf4;color:#338d55}.practice-analysis-toggle.on i{background:#34bb68;box-shadow:0 0 0 3px rgba(52,187,104,.08)}.practice-analysis-toggle:disabled{opacity:.62;cursor:not-allowed}
/* 工作态只换小圆点颜色，不加 spinner / shimmer / pulse，避免频繁合成。 */
.practice-analysis-status{height:36px;min-height:36px;display:flex;align-items:center;gap:8px;padding:0 14px;border-bottom:1px solid #f0edf5;background:#fbfafe;color:#7d758b;font-size:10.5px;contain:layout paint}
.practice-analysis-status>i{width:7px;height:7px;border-radius:50%;background:#a8a2ae;flex:0 0 auto}.practice-analysis-status.loading>i,.practice-analysis-status.running>i{background:#6c55e5}.practice-analysis-status.ready>i{background:#35b866}.practice-analysis-status.error>i{background:#dc6655}.practice-analysis-status.off>i{background:#aaa}
.practice-analysis-status span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.practice-analysis-status button{font-size:10px;font-weight:800;color:#654ee0;padding:4px 8px;border-radius:8px;background:#f0ecff}

.practice-eval-card,.practice-candidates-card{margin:10px 10px 0;border:1px solid #ece8f3;border-radius:13px;background:#fff}.practice-eval-card{padding:11px}.practice-eval-card.is-stale{opacity:1}
.practice-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.practice-section-title>div{display:flex;flex-direction:column;gap:2px}.practice-section-title b{font-size:12.5px;color:#30293b}.practice-section-title small{font-size:9.8px;color:#9d96aa}.practice-section-title>small,.practice-section-title>span{font-size:10.5px;color:#6b5bd7;font-weight:800;white-space:nowrap}
.practice-winrate-row{display:grid;grid-template-columns:1fr;gap:7px}.practice-winrate-row>div:first-child,.practice-winrate-row>div:last-child{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#6f687b}.practice-winrate-row>div:first-child span,.practice-winrate-row>div:last-child span{display:flex;align-items:center;gap:6px}.practice-winrate-row>div:first-child b,.practice-winrate-row>div:last-child b{font-size:14px;color:#262031;font-variant-numeric:tabular-nums}.practice-winrate-track{height:8px;border-radius:999px;overflow:hidden;background:linear-gradient(90deg,#2c2c36 0 50%,#ebe9ef 50% 100%);position:relative}.practice-winrate-track>i{position:absolute;inset:0 auto 0 0;width:50%;background:#353441;transition:width .12s linear}.practice-winrate-track::after{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background:rgba(255,255,255,.75)}

.practice-candidates-card{min-height:0;display:flex;flex-direction:column;overflow:hidden;flex:1}.practice-candidates-card>.practice-section-title{padding:11px 11px 8px;margin:0}.practice-candidate-head{height:29px;display:grid;grid-template-columns:32px minmax(48px,1fr) 54px 62px 66px;align-items:center;column-gap:4px;padding:0 9px;background:#faf9fc;color:#aaa4b1;font-size:9.4px;font-weight:800;border-top:1px solid #f1eef5;border-bottom:1px solid #f1eef5}.practice-candidate-head span:nth-child(n+3){text-align:right}
.practice-candidate-list{min-height:0;overflow:auto;padding:5px 6px 7px;contain:layout paint}.practice-candidate-list.is-stale .practice-candidate-row{opacity:1}.practice-candidate-row{height:42px;display:grid;grid-template-columns:32px minmax(48px,1fr) 54px 62px 66px;align-items:center;column-gap:4px;padding:0 5px;border-bottom:1px solid #f2eff6;border-radius:8px;transition:opacity .1s,background .1s}.practice-candidate-row.best{background:#fbf9ff}.practice-candidate-row:last-child{border-bottom:0}.practice-candidate-rank{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#eeeafb;color:#6552d8;font-size:10px;font-weight:900}.practice-candidate-row:first-child .practice-candidate-rank{background:#6e57e7;color:#fff;box-shadow:0 3px 9px rgba(101,82,216,.2)}.practice-candidate-coord{font-size:13.5px;font-weight:850;color:#292334}.practice-candidate-visits{text-align:right;font-size:10.5px;font-weight:760;color:#7f7889;font-variant-numeric:tabular-nums}.practice-candidate-rate,.practice-candidate-lead{text-align:right;font-size:11.5px;font-weight:820;color:#433b50;font-variant-numeric:tabular-nums}.practice-candidate-lead{color:#6552d8}
.practice-ai-empty{height:100%;min-height:130px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;color:#aaa3b2}.practice-ai-empty b{font-size:12px;color:#81798d}.practice-ai-empty small{max-width:235px;font-size:10px;line-height:1.45}.practice-ai-empty.error b{color:#b8564a}
.practice-analysis-foot{display:flex;align-items:flex-start;gap:7px;margin:9px 11px 11px;color:#9a93a7;font-size:9.6px;line-height:1.45}.practice-analysis-foot .ui-icon{width:14px;height:14px;flex:0 0 auto;margin-top:1px}

@media (max-width:1420px){
  #practiceMask .practice-main{--practice-board-size:min(760px,calc(100dvh - 88px),calc(100vw - 695px));grid-template-columns:268px var(--practice-board-size) 342px;gap:11px;padding-left:11px;padding-right:11px}
  .practice-title>small{display:none}.practice-panel-head{padding-left:11px;padding-right:11px}.practice-record-tools{padding-left:7px;padding-right:7px}
}
@media (max-width:1180px){
  #practiceMask .practice-main{--practice-board-size:min(700px,calc(100dvh - 82px),calc(100vw - 545px));grid-template-columns:218px var(--practice-board-size) 294px;gap:8px;padding:9px}
  .practice-caps{display:none}.practice-analysis-title small,.practice-analysis-foot{display:none}.practice-history-state{padding-left:8px;padding-right:8px}.practice-history-state>span{font-size:9.8px}
  .practice-record-tools{grid-template-columns:1fr}.practice-record-tools button:first-child{grid-column:auto}.practice-action-grid{grid-template-columns:1fr;padding-left:8px;padding-right:8px}.practice-import-btn,.practice-save-btn{grid-column:auto}
  .practice-candidate-head,.practice-candidate-row{grid-template-columns:29px minmax(44px,1fr) 46px 54px 58px;column-gap:2px}
}
@media (max-height:760px){
  .practice-head{height:56px;flex-basis:56px}.practice-title>b{font-size:18px}
  #practiceMask .practice-main{--practice-board-size:min(700px,calc(100dvh - 74px),calc(100vw - 700px));padding-top:8px;padding-bottom:8px}
  .practice-panel-head{padding-top:10px;padding-bottom:7px}.practice-analysis-head{padding-top:9px;padding-bottom:9px}.practice-eval-card,.practice-candidates-card{margin-top:7px}
  .practice-actions-panel .practice-tip{display:none}.practice-action-grid button{min-height:34px}.practice-analysis-foot{margin-top:6px;margin-bottom:7px}.practice-move-row{min-height:30px}.practice-record-tools button{min-height:28px}
}

#practiceMask .practice-main{column-gap:12px!important;row-gap:12px!important}
#practiceMask .practice-main>*{margin-left:0!important;margin-right:0!important}
.practice-analysis-panel{overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;contain:layout paint style}
.practice-analysis-head{gap:8px;padding:11px 12px;border-bottom:1px solid #efecf5;position:sticky;top:0;z-index:4;background:#fff}
.practice-analysis-title{gap:8px}.practice-analysis-title>span{width:30px;height:30px;border-radius:9px}.practice-analysis-title b{font-size:14px}.practice-analysis-title small{font-size:10px}
.practice-analysis-state-pill{height:24px;padding:0 8px;border-radius:999px;display:inline-flex;align-items:center;gap:5px;background:#e9f7ee;color:#258a50;font-size:9.8px;font-weight:850;white-space:nowrap}
.practice-analysis-state-pill i{width:7px;height:7px;border-radius:50%;background:#32bc68}.practice-analysis-state-pill.running{background:#eef8f1;color:#2a8d53}.practice-analysis-state-pill.off{background:#f2f0f5;color:#8d8798}.practice-analysis-state-pill.off i{background:#aaa4b0}.practice-analysis-state-pill.error{background:#fff0ed;color:#b75b50}.practice-analysis-state-pill.error i{background:#d86659}
.practice-analysis-toggle{height:28px;padding:0 9px;border-radius:8px;background:#fff;border:1px solid #ddd8ea;color:#514a5e;font-size:10.5px;font-weight:800}.practice-analysis-toggle:hover{border-color:#c8bcf4;color:#5e49d4;background:#faf8ff}.practice-analysis-toggle i{display:none}
.practice-analysis-status{height:30px;min-height:30px;padding:0 12px;font-size:9.8px;background:#fcfbfe;position:sticky;top:53px;z-index:3}.practice-analysis-status>i{width:6px;height:6px}

.practice-eval-card,.practice-move-review-card,.practice-candidates-card,.practice-trend-card{margin:10px 10px 0;border:1px solid #e9e5f1;border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(56,42,92,.025)}
.practice-position-card{padding:12px}.practice-position-title{margin-bottom:8px}.practice-position-title b{font-size:13px}.practice-position-title small{color:#807895;font-size:10px;font-weight:760}
.practice-position-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:9px}.practice-position-summary>small{font-size:10px;color:#736c83;font-weight:700;white-space:nowrap}
.practice-verdict{height:25px;padding:0 11px;border-radius:999px;display:inline-flex;align-items:center;background:#f0ecff;color:#624bd9;font-size:11.5px;font-weight:900;white-space:nowrap}
.practice-verdict.balanced{background:#f0ecff;color:#624bd9}.practice-verdict.black,.practice-verdict.black-soft{background:#ececf0;color:#31313b}.practice-verdict.white,.practice-verdict.white-soft{background:#f5f4f8;color:#65606f;border:1px solid #e4e1e9}.practice-verdict.muted{background:#f5f3f8;color:#8d8699}
.practice-winrate-row.compact{gap:6px}.practice-winrate-row.compact .practice-winrate-track{height:9px;background:#ebe8f1}.practice-winrate-row.compact .practice-winrate-track>i{background:linear-gradient(180deg,#3a3943,#202029)}
.practice-winrate-labels{display:flex!important;align-items:center!important;justify-content:space-between!important}.practice-winrate-labels span{font-size:10.5px!important;color:#4f485b!important;font-weight:750}.practice-winrate-labels b{font-size:11.5px!important;color:#272231!important}

.practice-move-review-card{padding:12px}.practice-move-review-card[hidden]{display:none!important}.practice-move-review-card .practice-section-title{margin-bottom:8px}.practice-review-tag{padding:3px 9px;border-radius:999px;font-size:9.8px;font-weight:900;white-space:nowrap}.practice-review-tag.good{background:#e4f6e9;color:#238852}.practice-review-tag.info{background:#e7f2ff;color:#2672af}.practice-review-tag.warm{background:#fff1dd;color:#a96b16}.practice-review-tag.neutral{background:#f1eff4;color:#777081}.practice-review-tag.muted{background:#f3f1f6;color:#8d8797}
.practice-move-review-grid{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px}.practice-move-review-grid>div{min-width:0;padding:9px 7px;border-radius:10px;background:#f8f6fc;text-align:center;display:flex;flex-direction:column;gap:2px}.practice-move-review-grid small{font-size:9.5px;color:#9992a5}.practice-move-review-grid b{font-size:13px;color:#282234;white-space:nowrap}.practice-move-review-grid>i{font-style:normal;font-size:9px;font-weight:900;color:#b0a9bc}.practice-move-review-card>p{margin:8px 1px 0;font-size:9.6px;line-height:1.45;color:#8a8394}

.practice-candidates-card{flex:0 0 auto;min-height:0;overflow:hidden}.practice-candidates-card>.practice-section-title{padding:11px 12px 8px}.practice-candidate-head{height:27px;grid-template-columns:30px minmax(116px,1fr) 64px;padding:0 10px;column-gap:5px;background:#faf9fc}.practice-candidate-head span:nth-child(3){text-align:center}
.practice-candidate-list{min-height:132px;max-height:210px;padding:4px 6px 6px;overflow:auto}.practice-candidate-row{min-height:45px;height:auto;grid-template-columns:30px minmax(116px,1fr) 64px;column-gap:5px;padding:5px 6px;border-bottom:1px solid #f0edf4;border-radius:9px}.practice-candidate-row.best{background:#fbf9ff}.practice-candidate-rank{width:21px;height:21px;border-radius:50%;font-size:9.5px;color:#fff;background:#8f83c8}.practice-candidate-rank.r1{background:#7258e8;box-shadow:0 3px 8px rgba(98,75,216,.2)}.practice-candidate-rank.r2{background:#3c94d8}.practice-candidate-rank.r3{background:#e49a1d}.practice-candidate-rank.r4{background:#aaa5b4}
.practice-candidate-coord{min-width:0;display:flex;flex-direction:column;gap:1px}.practice-candidate-coord b{font-size:12.5px;color:#292334}.practice-candidate-meta{font-size:8.9px;color:#90899b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.practice-candidate-share{text-align:center;font-size:10.5px;font-weight:800;color:#4d4658;font-variant-numeric:tabular-nums}
.practice-candidate-tag{font-style:normal;justify-self:center;padding:3px 8px;border-radius:999px;font-size:9.2px;font-weight:900;white-space:nowrap}.practice-candidate-tag.good{background:#e3f6e9;color:#218951}.practice-candidate-tag.info{background:#e4f1ff;color:#276da6}.practice-candidate-tag.warm{background:#fff0dc;color:#ae6c12}.practice-candidate-tag.muted{background:#f0eef4;color:#7e7789}

.practice-trend-card{padding:11px 12px 10px;flex:0 0 auto}.practice-trend-card .practice-section-title{margin-bottom:3px}.practice-trend-body{min-height:78px}.practice-trend-svg{width:100%;height:66px;display:block}.practice-trend-line{fill:none;stroke:#6b50ee;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.practice-trend-mid{stroke:#e4dff0;stroke-width:1;stroke-dasharray:3 3;vector-effect:non-scaling-stroke}.practice-trend-dot{fill:#6b50ee;stroke:#fff;stroke-width:2;vector-effect:non-scaling-stroke}.practice-trend-legend{display:flex;align-items:center;justify-content:space-between;margin-top:2px}.practice-trend-legend span{font-size:9.3px;color:#9790a3}.practice-trend-legend b{font-size:10px;color:#654ddb}.practice-trend-empty{min-height:78px;display:flex;align-items:center;justify-content:center;text-align:center;color:#a19aaa;font-size:9.6px;line-height:1.45}
.practice-analysis-foot{margin:8px 11px 10px;padding-top:0;color:#9a93a7;font-size:9.1px}

@media (min-width:1421px){#practiceMask .practice-main{--practice-board-size:min(900px,calc(100dvh - 90px),calc(100vw - 730px));grid-template-columns:292px var(--practice-board-size) 366px}}
@media (max-width:1420px){.practice-analysis-state-pill{display:none}.practice-candidate-head,.practice-candidate-row{grid-template-columns:28px minmax(100px,1fr) 58px}}
@media (max-height:820px){.practice-analysis-head{padding-top:8px;padding-bottom:8px}.practice-analysis-status{top:47px}.practice-eval-card,.practice-move-review-card,.practice-candidates-card,.practice-trend-card{margin-top:7px}.practice-position-card,.practice-move-review-card{padding:9px 10px}.practice-candidate-list{max-height:165px}.practice-trend-svg{height:48px}.practice-trend-body,.practice-trend-empty{min-height:58px}.practice-analysis-foot{display:none}}

/* SGF 导入弹窗 */
.sgf-import-card{max-width:480px;text-align:left}
.sgf-import-card p{text-align:left}
.sgf-import-file-row{display:flex;align-items:center;gap:10px;margin:2px 0 12px}
.sgf-import-file-row small{color:var(--ink-2,#5c6470);font-size:12px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sgf-import-card textarea{width:100%;border:1px solid #e3e6ec;border-radius:10px;padding:10px 12px;font:12px/1.6 Consolas,Menlo,monospace;color:var(--ink,#1f2430);background:#fafbfc;resize:vertical;margin-bottom:14px}
.sgf-import-card textarea:focus{outline:none;border-color:#b9a8f2;background:#fff}

/* ============ 成就领取按钮（mine.js 成就墙） ============ */
.mine-ach-claim{margin-top:4px;padding:4px 12px;border-radius:999px;font-size:11px;font-weight:800;
  background:linear-gradient(135deg,#ffe7ad,#f4b45c);color:#7d5c1c;box-shadow:0 3px 8px rgba(244,180,92,.35)}
.mine-ach-claim:hover{transform:translateY(-1px)}

/* ============ 入口按钮（M4 题库中心 / 批次2 账户服务卡） ============ */
.study-qb-entry{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto}
.mine-svc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.mine-svc-grid button{display:flex;flex-direction:column;align-items:center;gap:5px;padding:14px 8px;
  border-radius:13px;background:var(--bg);border:1px solid var(--line);transition:.16s}
.mine-svc-grid button:hover{border-color:var(--brand);background:var(--brand-soft);transform:translateY(-1px)}
.mine-svc-grid button .ui-icon{width:20px;height:20px;color:var(--brand)}
.mine-svc-grid button b{font-size:13px;color:var(--ink)}
.mine-svc-grid button small{font-size:11px;color:var(--ink-2)}
@media (max-width:1280px){
  .mine-svc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ============ 三视口适配 ============ */
@media (max-width:1280px){
  .store-owned > div{grid-template-columns:repeat(2,1fr)}
}

#practiceMask .practice-move-review-card{display:none!important}
#practiceMask .practice-candidate-list{max-height:360px}
#practiceMask .practice-board .board-marker.practice-ai-candidate.rank-5,
#practiceMask .practice-board .board-marker.practice-ai-candidate.rank-6,
#practiceMask .practice-board .board-marker.practice-ai-candidate.rank-7,
#practiceMask .practice-board .board-marker.practice-ai-candidate.rank-8{background:#8f88a8!important;opacity:.88}
#practiceMask .practice-candidate-rank.r5,
#practiceMask .practice-candidate-rank.r6,
#practiceMask .practice-candidate-rank.r7,
#practiceMask .practice-candidate-rank.r8{background:#918ba2;color:#fff}
@media (max-height:820px){#practiceMask .practice-candidate-list{max-height:285px}}

#practiceMask .practice-board .board-marker.practice-ai-candidate.rank-1{background:#2fa36b!important;opacity:.96}
#practiceMask .practice-board .board-marker.practice-ai-candidate.rank-2,
#practiceMask .practice-board .board-marker.practice-ai-candidate.rank-3{background:#d59a26!important;opacity:.92}
#practiceMask .practice-board .board-marker.practice-ai-candidate.rank-4,
#practiceMask .practice-board .board-marker.practice-ai-candidate.rank-5,
#practiceMask .practice-board .board-marker.practice-ai-candidate.rank-6,
#practiceMask .practice-board .board-marker.practice-ai-candidate.rank-7,
#practiceMask .practice-board .board-marker.practice-ai-candidate.rank-8{background:#5b82b2!important;opacity:.88}

#practiceMask .practice-candidate-rank.r1{background:#2fa36b;color:#fff;box-shadow:0 3px 8px rgba(47,163,107,.18)}
#practiceMask .practice-candidate-rank.r2,
#practiceMask .practice-candidate-rank.r3{background:#d59a26;color:#fff}
#practiceMask .practice-candidate-rank.r4,
#practiceMask .practice-candidate-rank.r5,
#practiceMask .practice-candidate-rank.r6,
#practiceMask .practice-candidate-rank.r7,
#practiceMask .practice-candidate-rank.r8{background:#5b82b2;color:#fff}

#practiceMask .practice-board .board-marker.practice-ai-candidate.rank-1{background:#6f52e5!important;opacity:.97}
#practiceMask .practice-board .board-marker.practice-ai-candidate.rank-2,
#practiceMask .practice-board .board-marker.practice-ai-candidate.rank-3{background:#d59a26!important;opacity:.91}
#practiceMask .practice-board .board-marker.practice-ai-candidate.rank-4,
#practiceMask .practice-board .board-marker.practice-ai-candidate.rank-5,
#practiceMask .practice-board .board-marker.practice-ai-candidate.rank-6,
#practiceMask .practice-board .board-marker.practice-ai-candidate.rank-7,
#practiceMask .practice-board .board-marker.practice-ai-candidate.rank-8{background:#6484aa!important;opacity:.86}

#practiceMask .practice-candidate-rank.r1{background:#6f52e5;color:#fff;box-shadow:0 3px 8px rgba(111,82,229,.22)}
#practiceMask .practice-candidate-rank.r2,
#practiceMask .practice-candidate-rank.r3{background:#d59a26;color:#fff}
#practiceMask .practice-candidate-rank.r4,
#practiceMask .practice-candidate-rank.r5,
#practiceMask .practice-candidate-rank.r6,
#practiceMask .practice-candidate-rank.r7,
#practiceMask .practice-candidate-rank.r8{background:#6484aa;color:#fff}

#practiceMask .practice-board-wrap{
  width:var(--practice-board-size)!important;
  height:var(--practice-board-size)!important;
  min-width:var(--practice-board-size)!important;
  min-height:var(--practice-board-size)!important;
  max-width:var(--practice-board-size)!important;
  max-height:var(--practice-board-size)!important;
  aspect-ratio:1/1!important;
  align-self:center!important;
  justify-self:center!important;
  flex:none!important;
  overflow:visible!important;
}
#practiceMask #practiceBoard.practice-board{
  width:var(--practice-board-size)!important;
  height:var(--practice-board-size)!important;
  min-width:var(--practice-board-size)!important;
  min-height:var(--practice-board-size)!important;
  max-width:var(--practice-board-size)!important;
  max-height:var(--practice-board-size)!important;
  aspect-ratio:1/1!important;
  flex:none!important;
  box-sizing:border-box!important;
}

#practiceMask .practice-analysis-panel{
  overflow:hidden!important;
  scrollbar-gutter:auto!important;
}
#practiceMask .practice-analysis-head{
  position:relative!important;
  top:auto!important;
  flex:0 0 auto!important;
  min-height:50px!important;
  padding:9px 11px!important;
}
#practiceMask .practice-analysis-title small,
#practiceMask .practice-analysis-status,
#practiceMask .practice-analysis-foot{
  display:none!important;
}
#practiceMask .practice-analysis-title b{font-size:14px!important}
#practiceMask .practice-analysis-state-pill{height:23px!important;padding-inline:7px!important}
#practiceMask .practice-analysis-toggle{height:28px!important}

#practiceMask .practice-position-card{
  flex:0 0 auto!important;
  margin:8px 8px 0!important;
  padding:10px 11px!important;
}
#practiceMask .practice-position-title{margin-bottom:6px!important}
#practiceMask .practice-position-summary{margin-bottom:7px!important;gap:7px!important}
#practiceMask .practice-position-summary>small{font-size:10px!important}
#practiceMask .practice-verdict{height:23px!important;padding-inline:9px!important;font-size:10.5px!important}
#practiceMask .practice-winrate-row.compact{gap:5px!important}
#practiceMask .practice-winrate-row.compact .practice-winrate-track{height:8px!important}

#practiceMask .practice-candidates-card{
  flex:1 1 auto!important;
  min-height:0!important;
  margin:8px 8px 0!important;
  overflow:hidden!important;
}
#practiceMask .practice-candidates-card>.practice-section-title{
  min-height:38px!important;
  padding:8px 10px 6px!important;
  align-items:center!important;
}
#practiceMask .practice-candidates-card>.practice-section-title>b{font-size:12.5px!important}
#practiceMask #practiceCandidateState{
  min-width:0!important;
  max-width:70%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:9.8px!important;
}
#practiceMask .practice-candidate-head{
  flex:0 0 26px!important;
  height:26px!important;
  padding-inline:8px!important;
}
#practiceMask .practice-candidate-list{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
  padding:2px 5px 5px!important;
}
#practiceMask .practice-candidate-row{
  height:40px!important;
  min-height:40px!important;
  padding:3px 5px!important;
}
#practiceMask .practice-candidate-coord b{font-size:12px!important}
#practiceMask .practice-candidate-meta{font-size:9.8px!important}
#practiceMask .practice-candidate-share{font-size:10.5px!important}
#practiceMask .practice-candidate-tag{padding:3px 7px!important;font-size:9.3px!important}

#practiceMask .practice-trend-card{
  flex:0 0 auto!important;
  margin:8px 8px 8px!important;
  padding:8px 10px 7px!important;
}
#practiceMask .practice-trend-card[hidden]{display:none!important}
#practiceMask .practice-trend-card .practice-section-title{margin-bottom:2px!important}
#practiceMask .practice-trend-body{min-height:60px!important}
#practiceMask .practice-trend-svg{height:48px!important}
#practiceMask .practice-trend-legend{margin-top:0!important}

/* 低高度 PC：优先保住当前局面 + Top8；趋势作为次级信息自动收起。 */
@media (max-height:820px){
  #practiceMask .practice-analysis-head{min-height:46px!important;padding:7px 9px!important}
  #practiceMask .practice-position-card{margin-top:6px!important;padding:8px 9px!important}
  #practiceMask .practice-candidates-card{margin-top:6px!important;margin-bottom:7px!important}
  #practiceMask .practice-candidate-row{height:36px!important;min-height:36px!important;padding-block:2px!important}
  #practiceMask .practice-trend-card{display:none!important}
}

/* V131.2.85: candidate variation lives in side panels, not above/below the board. */
#practiceMask [hidden]{display:none!important}
#practiceMask.practice-trial-mode .practice-tip{display:none}
#practiceMask .pc-rec-trial-nav{padding:8px 10px;border-bottom:1px solid #eee9f7;flex:0 0 auto}
#practiceMask #practiceTrialCounter{display:block;text-align:center;font-size:12px;font-weight:750;color:#625777;margin-bottom:6px;font-variant-numeric:tabular-nums}
#practiceMask .pc-rec-trial-range-row{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;align-items:center;gap:7px}
#practiceMask .pc-rec-trial-range-row button,#practiceMask .pc-rec-trial-actions button{height:36px;min-width:0;display:flex;align-items:center;justify-content:center;border:1px solid #dfd7fa;border-radius:10px;background:#fff;color:#6c54d8;cursor:pointer}
#practiceMask #practiceTrialRange{width:100%;height:32px;min-width:0;margin:0;accent-color:#7860e5;cursor:pointer}
#practiceMask .pc-rec-trial-actions{display:flex;flex-direction:column;gap:8px;padding:0 10px 10px}
#practiceMask .pc-rec-trial-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#practiceMask .pc-rec-trial-commit{display:flex;justify-content:flex-end;gap:8px}
#practiceMask .pc-rec-trial-commit #practiceTrialApply{flex:1;background:#7860e5;color:#fff;font-weight:800}
#practiceMask .pc-rec-trial-commit [data-action="practice-trial-exit"]{flex:0 0 38px}
#practiceMask .pc-rec-trial-actions button:disabled,#practiceMask .pc-rec-trial-range-row button:disabled{opacity:.4;cursor:default}
#practiceMask .practice-move-row:disabled{cursor:default;opacity:.65}
#practiceMask #practiceCandidateList{overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable}
#practiceMask #practiceCandidateList button.practice-candidate-row{width:100%;box-sizing:border-box;text-align:left;border:1px solid transparent;border-bottom-color:#f0edf4;box-shadow:none;color:inherit;background:#fff;cursor:pointer;font-family:inherit}
#practiceMask #practiceCandidateList button.practice-candidate-row.best{background:#fbf8ff}
#practiceMask #practiceCandidateList button.practice-candidate-row.selected{background:#f3efff;border-color:#9276f3;box-shadow:inset 0 0 0 1px #9276f3}
#practiceMask #practiceCandidateList button.practice-candidate-row:disabled{cursor:default;opacity:.6}
#practiceMask button:focus-visible,#practiceMask #practiceTrialRange:focus-visible{outline:2px solid #8a71ee;outline-offset:2px}
#practiceMask .practice-board .board-stone-number{font-style:normal;pointer-events:none}
#practiceMask #practiceBoard.practice-board .board-marker.practice-ai-candidate.rank-1,#practiceMask #practiceCandidateList .practice-candidate-rank.r1{background:#3b82f6!important;opacity:1;color:#fff!important}
#practiceMask #practiceBoard.practice-board .board-marker.practice-ai-candidate.rank-2,#practiceMask #practiceCandidateList .practice-candidate-rank.r2{background:#22c55e!important;opacity:1;color:#fff!important}
#practiceMask #practiceBoard.practice-board .board-marker.practice-ai-candidate.rank-3,#practiceMask #practiceCandidateList .practice-candidate-rank.r3{background:#eab308!important;opacity:1;color:#3b2b06!important}
#practiceMask #practiceBoard.practice-board .board-marker.practice-ai-candidate.rank-4,#practiceMask #practiceCandidateList .practice-candidate-rank.r4{background:#f97316!important;opacity:1;color:#fff!important}
#practiceMask #practiceBoard.practice-board .board-marker.practice-ai-candidate.rank-5,#practiceMask #practiceCandidateList .practice-candidate-rank.r5{background:#a855f7!important;opacity:1;color:#fff!important}
#practiceMask #practiceBoard.practice-board .board-marker.practice-ai-candidate.rank-6,#practiceMask #practiceCandidateList .practice-candidate-rank.r6{background:#06b6d4!important;opacity:1;color:#fff!important}
#practiceMask #practiceBoard.practice-board .board-marker.practice-ai-candidate.rank-7,#practiceMask #practiceCandidateList .practice-candidate-rank.r7{background:#ec4899!important;opacity:1;color:#fff!important}
#practiceMask #practiceBoard.practice-board .board-marker.practice-ai-candidate.rank-8,#practiceMask #practiceCandidateList .practice-candidate-rank.r8{background:#64748b!important;opacity:1;color:#fff!important}
#practiceMask #practiceBoard.practice-board .board-label.practice-ai-rank{font-size:clamp(8px,calc(var(--practice-board-size) / var(--n) * .28),12px)!important;pointer-events:none}
#practiceMask #practiceBoard.practice-board .board-label.practice-ai-rank.rank-3{color:#3b2b06!important;text-shadow:none!important}

#practiceMask .practice-main-range{flex:1;min-width:36px;max-width:90px;margin:0;accent-color:#7860e5}
