@charset "UTF-8";
@media(min-width:761px){.choice-section .cards{grid-template-columns:minmax(0,1fr)!important}}
:root{font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",sans-serif;color:#26314a;background:#f3f5f9;font-size:16px;line-height:1.65;--navy:#1d263d;--mint:#7cf0df;--pink:#e969c8;--line:#e3e7ef;--muted:#79839a}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,select{cursor:pointer}button{border:0}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #1cafaa;outline-offset:3px}.topbar{height:94px;padding:0 36px;display:flex;align-items:center;justify-content:space-between;background:var(--navy);color:white}.brand{display:flex;align-items:center;gap:14px}.brand-mark{font-size:42px;color:var(--mint)}.brand strong{font-size:23px;display:block;letter-spacing:.05em}.brand span:not(.brand-mark){font-size:13px;color:#bbc8df;display:block}.header-actions{display:flex;gap:24px;align-items:center}.model-tag{font-size:13px;color:#bbcadc}.quiet{background:transparent;color:inherit;border:1px solid #ffffff38;border-radius:8px;padding:9px 16px;font-size:14px}.workspace{max-width:1640px;display:grid;grid-template-columns:280px minmax(0,1fr);gap:26px;margin:auto;padding:28px 32px}.sidebar{background:white;border:1px solid var(--line);border-radius:12px;align-self:start;overflow:hidden}.section{padding:23px 22px;border-bottom:1px solid var(--line)}.section:last-child{border:0}.eyebrow{font-size:12px;letter-spacing:.1em;color:#8b95a8;font-weight:700;margin-bottom:12px}.control-label{display:block;font-size:14px;margin-bottom:7px}select,input[type=search]{border:1px solid #dbe0e9;background:#fff;border-radius:7px;color:inherit;padding:9px 11px;min-height:43px}#hero{width:100%;font-size:18px;font-weight:600}.star-row{display:flex;justify-content:space-between;align-items:center;margin:16px 0;font-size:14px}.star-row strong{font-size:24px;letter-spacing:4px;color:#e4b153}.star-row i{color:#cdd3df;font-style:normal}.point-grid{display:grid;grid-template-columns:repeat(4,1fr);background:#f6f8fb;border-radius:7px;padding:10px 4px;font-size:12px;text-align:center;color:var(--muted)}.point-grid strong{display:block;font-size:18px;color:var(--navy);line-height:1.5}.schools{display:flex;flex-wrap:wrap;gap:7px;margin-top:16px;font-size:13px}.schools>span{background:#f4f6fa;padding:4px 9px;border-radius:5px;color:var(--muted)}.action-hint{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 14px}.action-option{display:flex;align-items:center;justify-content:space-between;text-align:left;width:100%;padding:13px 12px;margin-bottom:8px;background:#fff;border:1px solid var(--line);border-radius:8px;color:var(--navy)}.action-option b{font-size:15px;font-weight:600;display:block}.action-option small{font-size:12px;color:var(--muted);display:block;margin-top:2px}.action-option:hover:not(:disabled){border-color:#86c7c5}.action-option.active{background:#ecfaf7;border-color:#56bfb4;box-shadow:inset 3px 0 #279e96}.option-arrow{font-size:24px;color:#b2bccb}.task-heading{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin:21px 0 10px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px}h1,h2,p{margin-top:0}h1{font-size:26px;line-height:1.4;margin-bottom:0;font-weight:650}h2{font-size:19px;margin-bottom:0;font-weight:600}.section-title>.eyebrow{margin:0}.empty-small{font-size:13px;color:var(--muted);margin:12px 0 0}.main-column{min-width:0}.draw-section,.prob-section{background:white;border:1px solid var(--line);border-radius:12px}.draw-section{padding:25px 28px 0;border-top:3px solid #58c8bf;margin-bottom:24px}.draw-section .eyebrow{margin-bottom:3px}.draw-badge{font-size:13px;background:#f0ecf9;color:#8870b3;padding:5px 11px;border-radius:6px}.ready-panel{min-height:200px;display:flex;align-items:center;justify-content:center;gap:26px;background:linear-gradient(135deg,#f7fafc,#f4f6fb);border:1px dashed #dce2ed;border-radius:10px;margin:24px 0}.ready-star{font-size:58px;color:#87c8ca}.ready-panel h2{font-size:22px;margin-bottom:10px}.ready-panel p{font-size:14px;color:var(--muted);margin:0}.draw-footer{border-top:1px solid var(--line);padding:18px 0;display:flex;align-items:center;justify-content:space-between;gap:14px}.draw-footer>span{font-size:13px;color:var(--muted)}.primary{background:var(--navy);color:white;border-radius:8px;padding:11px 22px;min-height:46px;font-weight:600;white-space:nowrap}.primary:hover:not(:disabled){background:#344260}.status{font-size:14px;padding-bottom:10px;color:#a74b5b}.status:empty{display:none}.prob-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 26px 0}.prob-heading .eyebrow{margin:0 0 4px}.prob-heading h2{font-size:22px}.prob-heading p{font-size:13px;color:var(--muted);margin:6px 0 0}.calc-status{font-size:12px;color:#648680;white-space:nowrap}.prob-controls{padding:20px 26px;display:flex;gap:10px;align-items:center;border-bottom:1px solid var(--line);flex-wrap:wrap}.search-wrap{display:flex;align-items:center;position:relative;flex:1;min-width:170px}.search-wrap span{position:absolute;left:12px;font-size:24px;color:#8490a6}.search-wrap input{width:100%;padding-left:40px;font-size:14px}.prob-controls select{font-size:14px}.toggle{font-size:13px;white-space:nowrap;display:flex;gap:5px;align-items:center}.toggle input{accent-color:#299b93;width:16px;height:16px}.table-scroll{overflow:auto;max-height:760px}table{width:100%;border-collapse:collapse;font-size:14px;white-space:nowrap}th{font-weight:500;color:#7b8497;background:#f8f9fc;text-align:left;font-size:12px;position:sticky;top:0;z-index:1}th,td{padding:13px 16px;border-bottom:1px solid #edf0f5}th:first-child,td:first-child{padding-left:26px}th:nth-child(n+3):not(:last-child),td:nth-child(n+3):not(:last-child){text-align:right;font-variant-numeric:tabular-nums}th button{padding:0;background:none;color:inherit;font:inherit}.initial-message{height:190px;text-align:center!important;color:var(--muted)}.table-summary{padding:13px 26px;color:var(--muted);font-size:12px;background:#fafbfd;border-radius:0 0 12px 12px}.model-notes{margin-top:20px;color:#7c8699;font-size:13px}.model-notes summary{cursor:pointer}.model-notes p{margin:12px 0}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}.relic-card{position:relative;border:1px solid #cfd9ed;border-top:3px solid var(--quality,#72aee0);border-radius:10px;background:linear-gradient(180deg,var(--tint,#f1f7fc),white 65%);text-align:left;padding:20px 17px 16px;display:flex;flex-direction:column;min-height:295px;color:var(--navy)}.relic-card:hover{transform:translateY(-3px);box-shadow:0 8px 22px #18294a12}.relic-card img{width:96px;height:96px;object-fit:contain;align-self:center;margin:8px 0 13px}.relic-card .relic-title{font-weight:600;font-size:17px;line-height:1.5}.relic-card .desc{font-size:13px;color:#6f7d92;white-space:normal;margin:10px 0;flex:1}.relic-card .take{display:block;text-align:center;padding:6px 0;background:#eef2f7;border-radius:6px;font-size:14px}.quality-tag{font-size:12px;color:var(--quality);display:flex;justify-content:space-between}.item-cell{display:flex;align-items:center;gap:10px}.item-cell img{width:37px;height:37px;object-fit:contain}.item-name{display:block;color:var(--quality,#33415b);font-size:14px;font-weight:600}.item-cell small{font-size:11px;color:var(--muted);display:block}.school-tag{font-size:12px;padding:3px 8px;background:#f2f4f8;border-radius:5px;color:#7a859b}.row-zero{opacity:.55}.reason{font-size:12px;color:#929aad}.prob-number{font-weight:600;color:#234b64}.prob-bar{height:3px;background:#eaf1f3;border-radius:4px;overflow:hidden;min-width:80px;margin-top:5px}.prob-bar i{height:100%;background:#6abbba;display:block}.owned-item{display:flex;align-items:center;gap:9px;border-top:1px solid #f0f2f7;padding:11px 0;font-size:13px}.owned-item img{height:32px;width:32px;object-fit:contain}.owned-item small{font-size:11px;color:var(--muted);display:block}.owned-item:first-child{margin-top:13px}.school-治愈{background:#e5f5ef!important;color:#3f937a!important}.school-星光{background:#fdf2dc!important;color:#ac8534!important}.school-标记{background:#fce8ed!important;color:#bd5a7b!important}.school-充能{background:#eeeafb!important;color:#8c6dba!important}.refresh-note{font-size:14px;color:#738397;margin:0 0 15px}.asset-fallback{width:40px;height:40px;display:inline-grid;place-items:center;background:#eaf0f7;border-radius:8px;color:#8c97a9;font-size:14px}.relic-card .asset-fallback{width:96px;height:96px;align-self:center;margin:8px 0 13px;font-size:25px}.drawing .cards{opacity:.4}.action-option.done{background:#f6f7f9}.card-growth{font-size:12px;color:#80899d;margin:0 0 10px}.blocked-note{font-size:14px;color:#ab6556;padding:16px;background:#fff5ed;border-radius:8px}
@media(min-width:1440px){.workspace{grid-template-columns:300px minmax(0,1fr);gap:32px}}@media(max-width:1050px){.workspace{padding:20px;gap:18px;grid-template-columns:248px minmax(0,1fr)}.topbar{padding:0 24px}.draw-section{padding:22px 20px 0}.cards{gap:10px}.relic-card{padding:16px 12px}.prob-heading,.prob-controls{padding-left:20px;padding-right:20px}.model-tag{display:none}.draw-footer{flex-wrap:wrap}.draw-footer .primary{margin-left:auto}}@media(max-width:760px){.topbar{height:auto;min-height:82px;padding:15px 18px;gap:12px}.brand strong{font-size:18px}.brand span:not(.brand-mark){font-size:11px}.brand-mark{font-size:30px}.quiet{padding:7px 9px;white-space:nowrap;font-size:12px}.workspace{display:block;padding:16px}.sidebar{margin-bottom:18px}.sidebar .section{padding:18px}.sidebar .section:first-child{display:grid;grid-template-columns:1fr 1fr;gap:9px 16px}.sidebar .section:first-child .eyebrow,.sidebar .section:first-child .control-label{display:none}#hero{grid-column:1}.star-row{grid-column:2;margin:0}.point-grid{grid-column:1;margin:0}.schools{grid-column:2;margin:0;align-items:center}#actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.action-option{margin:0}.task-heading{grid-column:1/-1;margin:7px 0 0}.owned-section{max-height:230px;overflow:auto}.owned-section:has(.empty-small){display:none}.draw-section{padding:19px 16px 0}.ready-panel{min-height:165px;gap:17px}.ready-star{font-size:38px}.ready-panel h2{font-size:18px}.draw-section h1{font-size:22px}.cards{gap:9px}.relic-card{padding:13px 9px;min-height:285px}.relic-card img,.relic-card .asset-fallback{width:70px;height:70px}.relic-card .relic-title{font-size:14px}.relic-card .desc{font-size:12px}.card-growth{font-size:11px}.quality-tag{font-size:11px}.prob-heading{padding:20px 16px 0;align-items:flex-start}.prob-heading h2{font-size:19px}.prob-heading p{font-size:12px}.prob-controls{padding:16px;gap:8px}.prob-controls select{flex:1;font-size:13px}.search-wrap{flex-basis:100%}.calc-status{display:none}.table-scroll{max-height:570px}.draw-footer>span{font-size:12px}.draw-footer .primary{width:100%}.model-notes{font-size:12px}.table-summary{padding:12px 16px}.draw-badge{font-size:12px}}@media(prefers-reduced-motion:no-preference){.relic-card,button{transition:background .15s,border-color .15s,transform .15s,box-shadow .15s}}
/* Two-column working surface: operations left, the live matrix right. */
.simulator-layout{max-width:1800px;grid-template-columns:370px minmax(0,1fr);gap:24px;padding:24px}.operation-panel{align-self:start;background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.operation-panel>section{padding:20px;border-bottom:1px solid var(--line)}.player-top{display:flex;gap:22px;align-items:center}.player-top label{flex:1;font-size:13px;color:var(--muted)}.player-top select{margin-top:5px}.player-top .star-row{flex-direction:column;gap:4px;align-items:flex-start;white-space:nowrap}.player-section .point-grid{margin-top:16px}.source-section h2,.choice-section h2,.inventory-section h2{font-size:16px}.small-note{color:var(--muted);font-size:12px}.major-actions,.task-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.major-actions{margin-top:14px}.source-btn{background:#f0f5f9;border:1px solid #dce4ef;color:var(--navy);padding:12px 10px;border-radius:8px;text-align:left}.source-btn:first-child{background:#eaf9f5;border-color:#b6e4d9}.source-btn b{font-size:15px;display:block;font-weight:600}.source-btn small{font-size:12px;color:#8390a4;display:block;margin-top:3px}.source-btn:hover:not(:disabled){border-color:#52b9af;box-shadow:0 2px 9px #2c808410}.task-btn{background:#fff;border:1px solid var(--line);padding:9px 11px;border-radius:7px;text-align:left;color:#3b4963;font-size:13px}.task-btn span{display:block;font-size:12px;color:var(--muted)}.task-btn.done{background:#f6f8fa}.waiting{display:flex;align-items:center;gap:17px;justify-content:center;min-height:150px;color:#91a0b8}.waiting>span{font-size:45px;color:#aad5d4}.waiting p{font-size:14px;margin:0}.refresh-btn{width:100%;background:#243149;color:white;border-radius:7px;padding:10px 13px;text-align:left;font-size:14px;display:flex;align-items:center;justify-content:space-between;gap:8px}.refresh-btn span{font-size:11px;color:#b7c4d6}.choice-section .status{margin:10px 0 0;padding:0;font-size:13px}.operation-panel .model-notes{padding:17px 20px;margin:0;font-size:12px}.choice-section .cards{display:flex;flex-direction:column;gap:10px;margin:15px 0}.choice-section .relic-card{display:grid;grid-template-columns:64px minmax(0,1fr);column-gap:12px;padding:11px 12px;min-height:unset;border-top-width:1px;border-left:3px solid var(--quality);background:linear-gradient(100deg,var(--tint),#fff 80%)}.choice-section .relic-card img,.choice-section .relic-card>.asset-fallback{grid-column:1;grid-row:1/5;width:60px;height:60px;margin:0;align-self:center}.choice-section .relic-card .quality-tag{grid-column:2;font-size:11px;line-height:1.4}.choice-section .relic-card .relic-title{grid-column:2;font-size:15px;line-height:1.6}.choice-section .relic-card .desc{grid-column:2;font-size:12px;margin:3px 0;color:#7e899b;line-height:1.5}.choice-section .relic-card .card-growth{grid-column:2;margin:3px 0 0;font-size:11px}.choice-section .relic-card .take{display:none}.choice-section .relic-card.previewed{box-shadow:0 0 0 2px #3baea4}.inventory-section #owned{display:grid;grid-template-columns:1fr;max-height:310px;overflow:auto}.inventory-section .owned-item:first-child{margin-top:10px}.matrix-panel{min-width:0;overflow:hidden;align-self:start}.matrix-panel .prob-heading{padding:25px 25px 0}.matrix-panel h1{font-size:24px}.preview-banner{margin:20px 25px 0;padding:12px 15px;border-left:3px solid #b6c4d7;background:#f2f5fa;display:flex;align-items:center;gap:16px;min-height:52px}.preview-banner #preview-label{font-size:14px;font-weight:600;white-space:nowrap}.preview-banner #preview-detail{font-size:12px;color:#7b879c}.preview-banner.is-preview{background:#eaf9f5;border-color:#2aac99}.preview-banner.refresh-preview{background:#f3eefe;border-color:#a27bce}.target-bar{padding:17px 25px 0;display:flex;align-items:center;justify-content:space-between;gap:12px}.target-bar strong{font-size:14px;color:#b48c3e;margin-right:14px}.target-bar span{font-size:12px;color:var(--muted)}.target-bar button{font-size:12px;color:#8491a8;background:none;padding:3px}.matrix-panel .prob-controls{gap:9px;padding:16px 25px}.matrix-scroll{overflow:auto;max-height:calc(100vh - 340px);min-height:430px}.matrix-scroll th:first-child,.matrix-scroll td:first-child{padding:10px 5px 10px 15px;text-align:center;width:40px}.matrix-scroll th:nth-child(2),.matrix-scroll td:nth-child(2){padding-left:8px;min-width:155px;text-align:left}.matrix-scroll th,.matrix-scroll td{padding:12px 11px}.matrix-scroll th:nth-child(n+3),.matrix-scroll td:nth-child(n+3){text-align:right;min-width:99px}.matrix-scroll th{font-size:12px;padding-top:13px;padding-bottom:13px}.matrix-scroll th small{display:block;color:#a0a9b8;font-weight:400;font-size:11px}.matrix-scroll th button{color:inherit;line-height:1.65;white-space:nowrap}.matrix-scroll .fav{font-size:22px;color:#c0c9d6;background:none;padding:0 2px;line-height:1}.matrix-scroll .fav.is-target{color:#d6a83c}.matrix-scroll tr.is-target{background:#fffdf7}.matrix-scroll .item-name{font-size:14px;max-width:210px;white-space:normal;line-height:1.4}.matrix-scroll .item-cell img{width:31px;height:31px}.matrix-scroll .item-cell small{font-size:11px;line-height:1.6}.matrix-scroll td{font-size:14px}.matrix-scroll .prob-number{font-weight:500;color:#33485f}.prob-delta{display:block;font-size:11px;height:16px;font-variant-numeric:tabular-nums;line-height:16px}.prob-delta.up{color:#17947e}.prob-delta.down{color:#c46777}.prob-delta.flat{color:transparent}.matrix-scroll .cell-zero{color:#b1b9c6}.matrix-scroll .preview-col{background:#eefaf7}.matrix-scroll .refresh-col{background:#f8f4fe}.matrix-scroll .cell-disabled{color:#b7becc;font-size:12px}.owned-tag{font-size:10px;color:#789;display:inline-block;margin-left:4px}.simulator-layout .status:empty{display:none}.matrix-panel .table-summary{font-size:12px;line-height:1.6}.item-cell .asset-fallback{width:31px;height:31px;font-size:12px}.target-count-zero{color:#8390a4}.operation-panel .schools{min-height:29px}.initial-message{white-space:normal}.preview-loading{opacity:.72}
@media(min-width:1600px){.simulator-layout{grid-template-columns:410px minmax(0,1fr);gap:30px;padding:28px 32px}.matrix-scroll th:nth-child(n+3),.matrix-scroll td:nth-child(n+3){min-width:115px}.matrix-scroll .item-name{font-size:15px}.choice-section .relic-card{padding:15px}.matrix-scroll td{font-size:15px}}
@media(max-width:1100px){.simulator-layout{grid-template-columns:310px minmax(0,1fr);gap:16px;padding:18px}.operation-panel>section{padding:16px}.matrix-panel .prob-heading{padding:20px 18px 0}.matrix-panel h1{font-size:21px}.preview-banner{margin:16px 18px 0;display:block}.preview-banner #preview-detail{display:block;margin-top:4px}.target-bar{padding-left:18px;padding-right:18px}.target-bar>div span{display:block}.matrix-panel .prob-controls{padding-left:18px;padding-right:18px}.matrix-scroll th:nth-child(n+3),.matrix-scroll td:nth-child(n+3){min-width:88px}.choice-section .relic-card{grid-template-columns:50px 1fr;gap:0 8px}.choice-section .relic-card img{width:48px;height:48px}.refresh-btn{flex-wrap:wrap}}
@media(max-width:760px){.simulator-layout{display:flex;flex-direction:column;padding:12px;gap:14px}.operation-panel,.matrix-panel{width:100%}.operation-panel>section{padding:16px}.operation-panel .player-section{padding-bottom:14px}.player-top label{max-width:60%}.player-top .star-row{margin-left:auto}.player-section .point-grid{display:flex;justify-content:space-around}.operation-panel .source-section{padding-top:14px;padding-bottom:14px}.operation-panel .eyebrow{margin-bottom:6px}.task-grid{grid-template-columns:repeat(4,1fr);gap:6px}.task-btn{padding:8px;font-size:12px}.choice-section .cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.choice-section .relic-card{display:flex;flex-direction:column;min-height:215px;padding:12px 8px;gap:0;border-left-width:1px;border-top:3px solid var(--quality)}.choice-section .relic-card img{width:55px;height:55px;margin:5px 0 8px}.choice-section .relic-card .relic-title{font-size:13px}.choice-section .relic-card .desc{font-size:11px}.choice-section .relic-card .quality-tag{font-size:10px;display:block}.choice-section .relic-card .card-growth{font-size:10px}.refresh-btn{justify-content:center;gap:16px}.waiting{min-height:100px}.inventory-section #owned{grid-template-columns:1fr 1fr;gap:0 12px;max-height:210px}.owned-item{font-size:12px}.matrix-scroll{max-height:650px;min-height:300px}.matrix-panel .prob-heading{padding:19px 16px 0}.matrix-panel .prob-heading p{font-size:12px}.matrix-panel .prob-controls{padding:14px 16px}.preview-banner{margin:16px 16px 0}.target-bar{padding:14px 16px 0}.matrix-scroll th,.matrix-scroll td{padding:12px 9px}.matrix-scroll th:nth-child(2),.matrix-scroll td:nth-child(2){min-width:140px}.matrix-scroll th:nth-child(n+3),.matrix-scroll td:nth-child(n+3){min-width:95px}.matrix-panel .calc-status{display:none}}
.target-total-row{background:#fff8e6!important;position:sticky;top:68px;z-index:2}.target-total-row td{background:#fff8e6!important;border-bottom:1px solid #ede2bd;padding-top:13px!important;padding-bottom:13px!important}.target-total-row td:first-child{color:#c19635}.target-total-row b{font-size:13px;color:#8d753d}.target-total-row small{display:block;font-size:11px;color:#ae9865;font-weight:400}.target-total-row strong{font-size:18px;color:#9d7d2e;font-variant-numeric:tabular-nums;font-weight:600}.matrix-scroll thead>tr:first-child th{z-index:3}.matrix-scroll .target-total-row td:nth-child(2){min-width:165px}
.prob-comparison{display:flex;align-items:center;justify-content:flex-end;gap:6px;white-space:nowrap;font-variant-numeric:tabular-nums;line-height:1.5}.prob-before{font-size:11px;color:#849299}.prob-arrow{font-size:12px;color:#80999a}.prob-comparison strong{font-size:16px;font-weight:650}.change-badge{display:inline-block;font-size:11px;line-height:1.65;padding:2px 5px;border-radius:4px;margin-top:5px;white-space:nowrap;font-weight:600}.change-badge.up{background:#ccefe4;color:#08745a}.change-badge.down{background:#fadbe0;color:#b03e58}.matrix-scroll td.change-up,.target-total-row td.change-up{background:#eaf8f2!important;border-bottom-color:#d6ebe3}.matrix-scroll td.change-down,.target-total-row td.change-down{background:#fff0f1!important;border-bottom-color:#f2d9dd}.change-up .prob-comparison strong{color:#087e61}.change-down .prob-comparison strong{color:#b43753}.no-change{display:block;color:#aab1be;font-size:11px;margin-top:4px}.target-probability{font-size:18px;font-weight:650;color:#9d7d2e}.target-total-row .prob-before{font-size:11px;color:#879399}.target-total-row .prob-comparison strong{font-size:18px}.matrix-scroll:has(.change-badge) th:nth-child(n+3),.matrix-scroll:has(.change-badge) td:nth-child(n+3){min-width:138px}.matrix-scroll:has(.change-badge) th:first-child,.matrix-scroll:has(.change-badge) td:first-child{position:sticky;left:0;z-index:2;background:#fff}.matrix-scroll:has(.change-badge) th:nth-child(2),.matrix-scroll:has(.change-badge) td:nth-child(2){position:sticky;left:40px;z-index:2;background:#fff}.matrix-scroll:has(.change-badge) .target-total-row td:nth-child(-n+2){background:#fff8e6!important}.matrix-scroll:has(.change-badge) thead>tr:first-child th:nth-child(-n+2){z-index:4;background:#f8f9fc}.preview-banner.is-preview{border-left-width:4px}.preview-banner.is-preview #preview-label{font-size:15px;color:#187863}.preview-banner.refresh-preview #preview-label{color:#8a62a9}
/* Fixed geometry prevents hover previews and refreshes from moving controls. */
.preview-banner{height:70px;min-height:70px}.matrix-scroll table{table-layout:fixed;width:1020px;min-width:100%}.matrix-scroll th:first-child,.matrix-scroll td:first-child{width:40px;min-width:40px;max-width:40px}.matrix-scroll th:nth-child(2),.matrix-scroll td:nth-child(2){width:200px;min-width:200px;max-width:200px}.matrix-scroll th:nth-child(n+3),.matrix-scroll td:nth-child(n+3),.matrix-scroll:has(.change-badge) th:nth-child(n+3),.matrix-scroll:has(.change-badge) td:nth-child(n+3){width:130px;min-width:130px;max-width:130px}.matrix-scroll tbody tr,.matrix-scroll tbody td{height:82px}.matrix-scroll thead>tr:first-child{height:68px}.matrix-scroll .target-total-row,.matrix-scroll .target-total-row td{height:85px}.matrix-scroll td{vertical-align:middle}.prob-comparison{gap:3px}.prob-comparison strong{font-size:15px}.change-badge{font-size:11px;padding:2px 3px;letter-spacing:-.2px}.no-change{height:23px;line-height:23px;margin-top:4px}.matrix-scroll tbody tr .item-name{line-height:1.45}.choice-section .cards{display:grid;grid-template-rows:repeat(3,138px);gap:10px;margin:15px 0}.choice-section .relic-card{height:138px;min-height:138px;max-height:138px;overflow:hidden;grid-template-columns:64px minmax(0,1fr);grid-template-rows:16px 25px minmax(0,1fr) 17px;column-gap:10px}.choice-section .relic-card .desc{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:18px;max-height:36px;min-height:36px;margin:3px 0}.choice-section .relic-card .relic-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:25px}.choice-section .relic-card .card-growth{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:17px;margin:0}.choice-section .relic-card:hover{transform:none}.refresh-btn{height:46px;min-height:46px;max-height:46px;flex-wrap:nowrap}.choice-section .section-title{height:29px}.choice-section .status{height:37px;min-height:37px;margin:7px 0 0;padding:0;font-size:12px;line-height:18px;overflow:hidden;display:block!important}.choice-section .status:empty{visibility:hidden}.chip-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:39px;height:39px;box-sizing:border-box;border:2.5px solid var(--quality);border-radius:50%;background:white;padding:4px;overflow:hidden;box-shadow:0 0 0 2px color-mix(in srgb,var(--quality) 13%,transparent)}.chip-icon img{display:block!important;width:100%!important;height:100%!important;object-fit:contain;margin:0!important}.quality-1{--quality:#438cdd!important}.quality-2{--quality:#a678dc!important}.quality-3{--quality:#e2b441!important}.choice-section .relic-card>.chip-icon{grid-column:1;grid-row:1/5;width:62px;height:62px;align-self:center;border-width:3px;padding:7px;margin:0}.matrix-scroll .chip-icon{width:35px;height:35px;border-width:2px;padding:4px}.owned-item>.chip-icon{width:37px;height:37px;border-width:2px;padding:4px}.chip-icon .asset-fallback{height:100%!important;width:100%!important;background:none}.inventory-section #owned:empty{min-height:40px}
@media(max-width:760px){.preview-banner{height:80px;min-height:80px}.choice-section .cards{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:245px}.choice-section .relic-card{height:245px;min-height:245px;max-height:245px;display:flex;padding:10px 8px}.choice-section .relic-card>.chip-icon{width:61px;height:61px;margin:3px 0 10px}.choice-section .relic-card .relic-title{white-space:normal;line-height:19px;height:38px;min-height:38px}.choice-section .relic-card .desc{line-height:16px;max-height:48px;min-height:48px;-webkit-line-clamp:3}.choice-section .relic-card .card-growth{white-space:normal;font-size:10px;line-height:14px;max-height:28px}.choice-section .relic-card .quality-tag{min-height:15px}.refresh-btn{font-size:13px}.refresh-btn span{font-size:10px}.matrix-scroll table{min-width:1020px}}
/* Use the three original FairyGUI quality-frame sprites, without redrawing. */
.chip-icon,.choice-section .relic-card>.chip-icon,.matrix-scroll .chip-icon,.owned-item>.chip-icon{position:relative;border:0!important;background:none!important;padding:0!important;border-radius:0;box-shadow:none;overflow:visible}.chip-icon>.quality-frame{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:0;object-fit:contain}.chip-icon>.chip-art{position:absolute!important;left:13%!important;top:13%!important;width:74%!important;height:74%!important;z-index:1;object-fit:contain}.inventory-section #owned{display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px;max-height:200px;min-height:50px;padding-top:14px;overflow:auto}.owned-icon{display:block;width:46px;height:46px;cursor:help;border-radius:50%;flex:0 0 46px}.owned-icon>.chip-icon{width:46px;height:46px}.owned-icon:focus-visible{outline:2px solid #2d9c91;outline-offset:3px}.owned-icon .chip-icon{pointer-events:none}.inventory-section #owned>.empty-small{margin:0;font-size:12px;line-height:1.65}.matrix-scroll .quality-frame{padding:0!important}.matrix-scroll .chip-icon{width:37px;height:37px}
/* Evidence status is permanent; hover previews keep the same geometry. */
.accuracy-note{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:18px 26px 0;padding:14px 16px;background:#fff9ed;border:1px solid #eadfc5;border-radius:9px;color:#705a32;font-size:12px;line-height:1.65}.accuracy-note strong{font-size:13px;font-weight:600}.accuracy-note p{margin:3px 0 0;max-width:780px}.accuracy-note a{flex:0 0 auto;color:#71613d;text-decoration:underline;text-underline-offset:3px}.model-tag{color:#f3d49b}@media(max-width:1000px){.accuracy-note{align-items:flex-start;flex-direction:column;gap:8px}}@media(max-width:760px){.accuracy-note{margin:14px 16px 0}}

/* Refresh information reserves its space, so previews do not move controls. */
.source-section .source-btn:not(:disabled),.source-section .task-btn:not(:disabled){background:#e6f6ef;border-color:#a6d8c5;color:#216c55;opacity:1}.source-section .source-btn:not(:disabled) small,.source-section .task-btn:not(:disabled) span{color:#5e927f}.source-section .source-btn:not(:disabled):hover,.source-section .task-btn:not(:disabled):hover{background:#d8efe4;border-color:#63b293}.source-section .source-btn:disabled,.source-section .task-btn:disabled{background:#eff1f4;border-color:#dfe3e9;color:#929aa6;opacity:1;box-shadow:none}.source-section .source-btn:disabled small,.source-section .task-btn:disabled span{color:#a0a7b2}
.refresh-insight{margin:16px 25px 0;border:1px solid #d9e8e4;background:#f7fbfa;border-radius:9px;padding:14px 16px;height:177px;box-sizing:border-box;overflow:hidden}.refresh-overview{display:flex;justify-content:space-between;align-items:center;gap:12px;height:53px}.refresh-overview strong{display:block;font-size:13px;color:#39786f}.refresh-overview span{display:block;font-size:11px;color:#85968f;margin-top:3px}.refresh-metric{text-align:right;min-width:220px;font-variant-numeric:tabular-nums}.refresh-metric>b{display:block;font-size:25px;color:#276b63;line-height:1.15}.refresh-metric small{display:block;font-size:11px;color:#899a96;white-space:nowrap;margin-top:5px}.refresh-metric small.up{color:#08745a}.refresh-metric small.down{color:#b03e58}.pool-changes{display:grid;grid-template-columns:1fr 1fr;gap:16px;border-top:1px solid #e1ebe8;padding-top:9px;margin-top:10px}.pool-changes>div{display:flex;align-items:center;gap:10px;min-width:0;height:32px}.pool-label{font-size:11px;color:#7c8e8b;white-space:nowrap}.pool-list{display:flex;align-items:center;gap:8px;min-width:0}.pool-chip{display:inline-flex;width:30px;height:30px;flex:0 0 30px;cursor:help}.pool-chip .chip-icon{width:30px;height:30px}.pool-empty{font-size:11px;color:#a0aaa8;white-space:nowrap}.refresh-insight>p{font-size:11px;color:#8b9691;line-height:18px;margin:10px 0 0}.matrix-scroll td.source-preview-col{background:#eaf8f2!important;box-shadow:inset 2px 0 #b0dcd1,inset -2px 0 #b0dcd1}.header-actions{gap:14px}.header-actions .quiet{white-space:nowrap}.topbar{gap:20px}.preview-banner{overflow:hidden}.preview-banner #preview-detail{line-height:18px}.preview-banner #preview-label{max-width:50%;overflow:hidden;text-overflow:ellipsis}.matrix-scroll th:nth-child(-n+2),.matrix-scroll td:nth-child(-n+2){position:sticky;z-index:2;background:#fff}.matrix-scroll th:first-child,.matrix-scroll td:first-child{left:0}.matrix-scroll th:nth-child(2),.matrix-scroll td:nth-child(2){left:40px}.matrix-scroll thead>tr:first-child th:nth-child(-n+2){z-index:4;background:#f8f9fc}.matrix-scroll .target-total-row td:nth-child(-n+2){background:#fff8e6!important}.matrix-scroll tr.is-target>td:nth-child(-n+2){background:#fffdf7}
@media(max-width:1100px){.refresh-insight{margin-left:18px;margin-right:18px}.refresh-metric{min-width:190px}.refresh-overview strong{font-size:12px}.pool-changes{gap:8px}.pool-changes>div{gap:6px}.pool-list{gap:4px}.pool-label{font-size:10px}.pool-empty{white-space:normal;font-size:10px}}
@media(max-width:760px){.topbar{height:auto;min-height:100px;padding:18px;align-items:flex-start;flex-wrap:wrap;gap:12px}.header-actions{gap:10px;flex-wrap:wrap}.header-actions .model-tag{width:100%;font-size:11px}.header-actions .quiet{padding:7px 12px;font-size:12px}.refresh-insight{margin-left:16px;margin-right:16px;height:188px;padding:12px}.refresh-overview{gap:6px}.refresh-overview strong{font-size:12px}.refresh-metric{min-width:165px}.refresh-metric small{font-size:9px}.refresh-insight>p{font-size:10px}.preview-banner #preview-label{max-width:100%}}

/* The charge counter has a fixed footprint across rolls and exhaustion. */
.refresh-budget{display:flex;justify-content:space-between;align-items:center;gap:8px;height:30px;margin:0 0 6px;font-size:12px;font-variant-numeric:tabular-nums}.refresh-budget strong{font-size:14px;color:#39786f}.refresh-budget strong.empty{color:#8f97a2}.refresh-budget>span{font-size:11px;color:#8b95a4}.refresh-btn:disabled{background:#eff1f4;color:#929aa6;border-color:#dfe3e9;opacity:1}.refresh-btn:disabled span{color:#a0a7b2}

/* Replay targets keep statistical evidence separate from draw probabilities. */
.target-bar .target-actions{display:flex;flex-direction:row;align-items:center;gap:10px}.target-actions select{font-size:12px;min-height:34px;padding:5px 9px;color:#426b61;background:#f4faf7;border-color:#cce1d8}.recommendation-details{margin:0 25px 14px;padding:0 14px;background:#f7faf8;border:1px solid #e0e9e4;border-radius:8px;font-size:12px;color:#72867d}.recommendation-details>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;list-style:none}.recommendation-details>summary::-webkit-details-marker{display:none}.recommendation-details>summary>b{font-weight:500;color:#3d7967;white-space:nowrap}.recommendation-details>summary>b:after{content:' ＋'}.recommendation-details[open]>summary>b:after{content:' −'}.recommendation-details>p{font-size:11px;line-height:1.8;margin:10px 0;color:#89938d}.recommendation-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 12px}.recommendation-item{display:flex;gap:9px;align-items:flex-start;min-width:0;padding:11px 9px;background:#fff;border:1px solid #e4ebe7;border-radius:7px;min-height:116px}.recommendation-item>.chip-icon{width:34px;height:34px;flex:0 0 34px;margin-top:4px}.recommendation-item>.recommendation-info{min-width:0}.recommendation-item strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#3a534b;font-size:12px;font-weight:600}.recommendation-item small,.recommendation-item .recommendation-info>span{display:block;font-size:10px;line-height:1.8;white-space:nowrap}.recommendation-item small{color:#9aaba2;margin-bottom:4px}.recommendation-item b{font-weight:600;color:#557168}.matrix-scroll .recommend-tag{font-size:10px;color:#42816b;white-space:nowrap}@media(max-width:1200px){.recommendation-list{grid-template-columns:repeat(2,minmax(0,1fr))}.target-bar{flex-wrap:wrap;gap:8px}.recommendation-details>summary{flex-wrap:wrap;gap:0;padding:8px 0}.recommendation-details>summary>b{font-size:11px}}@media(max-width:760px){.recommendation-details{margin-left:16px;margin-right:16px}.target-bar .target-actions{flex-wrap:wrap}.recommendation-list{grid-template-columns:1fr}.recommendation-item{min-height:100px}}

.target-bar{flex-wrap:wrap;gap:10px}.target-bar .target-actions{flex-wrap:wrap}.target-actions select:disabled{opacity:.55;cursor:not-allowed}




.matrix-panel .calc-status{max-width:230px;min-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-notes a{color:#638575;text-underline-offset:3px}



/* Five-run practice and one-time loop reward. */
[hidden]{display:none!important}.loop-btn{width:100%;margin-top:10px}.inventory-section h2 #owned-hero{color:#337f73;font-size:14px;margin-left:8px}.series-panel{background:linear-gradient(125deg,#eaf6f1,#f4f7fc)}.series-panel h2{margin:0;font-size:17px;color:#305f54}.series-panel .section-title strong{font-size:13px;color:#6b9085}.series-dots{display:flex;gap:5px;margin:14px 0}.series-dots span{flex:1;border-radius:6px;text-align:center;font-size:11px;padding:6px 0;background:#e4e9ee;color:#8b96a4;white-space:nowrap}.series-dots .complete{color:#308368;background:#d8f0e4}.series-dots .current{background:#2f7968;color:white}.series-panel p{font-size:12px;color:#658175;line-height:1.8;margin:8px 0}.series-panel p.series-rule{color:#88968f;font-size:11px}.series-primary,.series-secondary{padding:11px 16px;border-radius:8px;font-size:14px;text-align:center;text-decoration:none;display:inline-block}.series-primary{background:#2e7966;color:white}.series-primary:disabled{background:#e0e6e6;color:#929b9a;opacity:1}.series-secondary{border:1px solid #92bbad;background:white;color:#306e5c}.series-panel .series-primary,.series-panel .series-secondary{width:100%}.series-leave{display:block;margin:8px auto 0;background:none;color:#929d99;font-size:12px;text-decoration:underline;text-underline-offset:4px}.series-panel #series-next-hint{font-size:11px;min-height:20px}.series-dialog{border:0;border-radius:16px;padding:28px;max-width:min(560px,calc(100vw - 28px));color:#334155;box-shadow:0 20px 100px #12213744}.series-dialog::backdrop{background:#14223599}.series-dialog h2{font-size:23px;margin:0 0 14px}.series-dialog p{font-size:14px;color:#758298;line-height:1.9}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:25px}.dialog-actions>button:not(.series-primary){background:#eff2f6;color:#6b7b91;padding:10px 18px;border-radius:8px}.export-dialog{max-width:min(1100px,calc(100vw - 24px));width:1100px;max-height:92dvh;overflow:auto}.export-heading{display:flex;justify-content:space-between;align-items:start}.export-heading h2{margin-bottom:0}.export-heading p{margin:5px 0 18px}.export-heading button{padding:8px 14px;color:#66748a;background:#edf1f5;border-radius:8px}.export-dialog img{display:block;width:100%;height:auto;border-radius:9px;margin-bottom:15px}.export-dialog>a{width:100%;position:sticky;bottom:0;box-shadow:0 3px 12px #213c3240}.mobile-views{display:none}
@media(max-width:760px){
 .simulator-layout{gap:10px;padding:10px}.topbar{padding:14px 16px;min-height:unset;gap:10px}.topbar .brand{gap:8px}.topbar .brand strong{font-size:19px}.header-actions{width:100%;display:flex;gap:8px}.header-actions .quiet{flex:1;font-size:12px;min-height:38px;padding:7px 8px}.header-actions .model-tag{width:100%;font-size:10px}.mobile-views{display:flex;position:sticky;top:0;z-index:10;background:#e8edf3;padding:5px;border-radius:10px;width:100%;gap:5px;box-shadow:0 5px 14px #2431490a}.mobile-views button{flex:1;padding:10px 6px;border-radius:7px;background:transparent;color:#8590a1;font-size:14px}.mobile-views button[aria-pressed=true]{background:white;color:#317463;font-weight:600;box-shadow:0 2px 7px #3344550c}
 body[data-mobile-view=operations] .matrix-panel,body[data-mobile-view=probabilities] .operation-panel{display:none}.operation-panel>section{padding:15px}.player-section .eyebrow{display:none}.player-top .star-row{margin:0}.player-section .point-grid{margin-top:10px;padding:6px 0}.point-grid strong{font-size:16px}.operation-panel .schools{margin-top:10px}.task-grid{grid-template-columns:repeat(2,1fr);gap:8px}.task-btn{font-size:13px;padding:10px}.source-btn{padding:10px}.source-btn b{font-size:14px}.source-btn small{font-size:11px}.loop-btn{margin-top:8px}.source-section .section-title{margin-bottom:0}.major-actions{margin-top:10px}.choice-section .cards{grid-template-columns:1fr;grid-template-rows:repeat(3,124px);gap:8px;margin:12px 0}.choice-section .relic-card{display:grid;grid-template-columns:60px minmax(0,1fr);grid-template-rows:16px 24px 1fr 15px;height:124px;min-height:124px;max-height:124px;column-gap:12px;padding:10px 12px;border-top-width:1px;border-left:3px solid var(--quality)}.choice-section .relic-card>.chip-icon{grid-column:1;grid-row:1/5;margin:0;width:60px;height:60px;align-self:center}.choice-section .relic-card .relic-title{font-size:15px;line-height:24px;height:24px;min-height:24px;white-space:nowrap}.choice-section .relic-card .quality-tag{font-size:11px;line-height:16px}.choice-section .relic-card .desc{font-size:12px;line-height:18px;min-height:36px;max-height:36px;margin:1px 0;-webkit-line-clamp:2}.choice-section .relic-card .card-growth{font-size:10px;white-space:nowrap;line-height:15px;height:15px;min-height:15px}.choice-section #draw-title{scroll-margin-top:66px;font-size:15px}.choice-section .refresh-btn{height:48px;max-height:48px;min-height:48px;justify-content:space-between;font-size:14px}.inventory-section #owned{gap:10px;max-height:none}.matrix-panel h1{font-size:20px}.matrix-scroll{max-height:65dvh;min-height:300px}.matrix-panel .prob-controls{padding:12px;gap:8px}.prob-controls select{min-width:0;flex-basis:calc(33% - 8px);font-size:12px}.target-bar .target-actions{gap:6px}.target-bar .target-actions select{font-size:11px}.series-dialog{padding:22px}.export-dialog{padding:14px}.export-dialog h2{font-size:20px}
}
/* Unlimited practice keeps its results compact beside the ordinary controls. */
.unlimited-panel{border-color:#93c9f8;background:#f1f8ff}
.unlimited-panel .section-title strong{font-size:12px;color:#176caa}
.unlimited-panel p{font-size:12px;line-height:1.6}
.unlimited-records{padding:14px;border-top:1px solid #dce5ee}
.unlimited-records summary{cursor:pointer;font-size:14px;font-weight:700;color:#243b53}
.unlimited-records summary span{font-size:12px;color:#607b91;margin-left:6px}
.unlimited-records>p{font-size:12px;color:#708397;line-height:1.5}
.unlimited-result{padding:10px 0;border-top:1px solid #e3ebf2}
.unlimited-result>div:first-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px}
.unlimited-result b{margin-left:auto;color:#176caa}
.unlimited-result small{width:100%;color:#75869a}
.unlimited-chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:7px}
.unlimited-chips .chip-icon{width:34px;height:34px}
.unlimited-chips>span:not(.owned-icon){font-size:12px;color:#778493}

/* Pin the whole summary row above the frozen chip columns while scrolling. */
.matrix-scroll .target-total-row{position:static;z-index:auto}
.matrix-scroll .target-total-row>td{position:sticky;top:68px;z-index:4}
.matrix-scroll .target-total-row>td:nth-child(-n+2),.matrix-scroll:has(.change-badge) .target-total-row>td:nth-child(-n+2){z-index:5}
.matrix-scroll thead>tr:first-child th{z-index:6}
.matrix-scroll thead>tr:first-child th:nth-child(-n+2),.matrix-scroll:has(.change-badge) thead>tr:first-child th:nth-child(-n+2){z-index:7}

/* One prospective gold offer, including every finite refresh in its budget. */
.matrix-scroll th.all-refresh-col:nth-child(n+3),.matrix-scroll td.all-refresh-col:nth-child(n+3),.matrix-scroll:has(.change-badge) th.all-refresh-col,.matrix-scroll:has(.change-badge) td.all-refresh-col{width:158px;min-width:158px;max-width:158px;border-left:1px solid #c7e6df;border-right:1px solid #c7e6df;background:#f0faf6}
.matrix-scroll th.all-refresh-col{color:#197960;background:#e6f6ef;font-weight:600}
.matrix-scroll th.all-refresh-col small{color:#568878}
.matrix-scroll .all-refresh-col .prob-number,.matrix-scroll .all-refresh-col .target-probability{color:#197960;font-weight:650}
.matrix-scroll .target-total-row>td.all-refresh-col{box-shadow:inset 0 3px #3ba688}

/* Recommended chips toggle saved manual targets. */
.recommendation-list>button.recommendation-item{width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;transition:background .15s,border-color .15s}
.recommendation-item>.recommendation-info{display:block;flex:1}
.recommendation-list>button.recommendation-item:hover{border-color:#61a68e;background:#f4fcf8}
.recommendation-list>button.recommendation-item:focus-visible{outline:3px solid #217c65;outline-offset:2px}
.recommendation-list>button.recommendation-item.is-manual-target{border-color:#249474;background:#e7f7ee;box-shadow:inset 0 0 0 1px #249474}
.recommendation-item .recommendation-info>.recommendation-action{margin-top:5px;font-size:11px;font-weight:600;color:#247b61;white-space:normal}
.recommendation-details>#recommendation-feedback{margin:0 0 10px;color:#247b61;font-size:12px}

/* Keep every probability column visible on desktop. */
.matrix-scroll table{width:100%;min-width:0;table-layout:fixed}
.matrix-scroll th,.matrix-scroll td{padding-left:6px;padding-right:6px}
.matrix-scroll th:first-child,.matrix-scroll td:first-child,.matrix-scroll:has(.change-badge) th:first-child,.matrix-scroll:has(.change-badge) td:first-child{width:32px;min-width:32px;max-width:32px;padding-left:4px;padding-right:4px}
.matrix-scroll th:nth-child(2),.matrix-scroll td:nth-child(2),.matrix-scroll .target-total-row td:nth-child(2),.matrix-scroll:has(.change-badge) th:nth-child(2),.matrix-scroll:has(.change-badge) td:nth-child(2){width:176px;min-width:176px;max-width:176px;left:32px}
.matrix-scroll th:nth-child(n+3),.matrix-scroll td:nth-child(n+3),.matrix-scroll:has(.change-badge) th:nth-child(n+3),.matrix-scroll:has(.change-badge) td:nth-child(n+3),.matrix-scroll th.all-refresh-col:nth-child(n+3),.matrix-scroll td.all-refresh-col:nth-child(n+3),.matrix-scroll:has(.change-badge) th.all-refresh-col,.matrix-scroll:has(.change-badge) td.all-refresh-col{width:auto;min-width:0;max-width:none}
.matrix-scroll thead>tr:first-child{height:90px}
.matrix-scroll thead>tr:first-child th{padding-top:6px;padding-bottom:6px}
.matrix-scroll th button{display:block;width:100%;white-space:normal;overflow-wrap:anywhere;font-size:12px}
.matrix-scroll th small{font-size:10px;line-height:1.5;margin-top:2px}
.matrix-scroll .target-total-row>td{top:var(--prob-header-height,90px)}
.matrix-scroll td{font-size:14px}
.matrix-scroll .item-cell{gap:6px}
.matrix-scroll .item-name{font-size:13px}
.matrix-scroll .prob-comparison{display:grid;grid-template-columns:minmax(0,1fr) 10px;justify-items:end;gap:0 2px;white-space:nowrap}
.matrix-scroll .prob-comparison .prob-before{font-size:10px;line-height:1.3}
.matrix-scroll .prob-comparison .prob-arrow{font-size:10px;line-height:1.3}
.matrix-scroll .prob-comparison strong{grid-column:1/-1;font-size:15px;line-height:1.5}
.matrix-scroll .change-badge{max-width:100%;font-size:10px;line-height:1.4;margin-top:3px;white-space:normal;overflow-wrap:anywhere}
@media(min-width:761px) and (max-width:1299px){.matrix-scroll td{font-size:13px}.matrix-scroll th button{font-size:11px}.matrix-scroll .prob-comparison strong{font-size:13px}.matrix-scroll th:nth-child(2),.matrix-scroll td:nth-child(2),.matrix-scroll .target-total-row td:nth-child(2),.matrix-scroll:has(.change-badge) th:nth-child(2),.matrix-scroll:has(.change-badge) td:nth-child(2){width:156px;min-width:156px;max-width:156px}}
@media(max-width:760px){.matrix-scroll table{width:1050px;min-width:1050px}.matrix-scroll thead>tr:first-child{height:68px}.matrix-scroll .target-total-row>td{top:var(--prob-header-height,68px)}.matrix-scroll th:nth-child(2),.matrix-scroll td:nth-child(2),.matrix-scroll .target-total-row td:nth-child(2),.matrix-scroll:has(.change-badge) th:nth-child(2),.matrix-scroll:has(.change-badge) td:nth-child(2){width:160px;min-width:160px;max-width:160px}}

/* Preserve readable numeric space on smaller desktop screens. */
@media(min-width:1101px) and (max-width:1399px){.simulator-layout{grid-template-columns:260px minmax(0,1fr);gap:16px;padding:16px}}
@media(min-width:761px) and (max-width:1399px){.matrix-scroll .target-probability,.matrix-scroll .target-total-row strong,.matrix-scroll .target-total-row .prob-comparison strong{font-size:14px}.matrix-scroll td{white-space:normal}.matrix-scroll td:nth-child(n+3){font-variant-numeric:tabular-nums}}

/* Stack the two panels when a desktop window is narrow. */
@media(min-width:761px) and (max-width:1100px){.simulator-layout{display:flex;flex-direction:column}.operation-panel,.matrix-panel{width:100%}.choice-section .cards{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Editable unlimited refresh budget. */
.unlimited-refresh-editor{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:7px 0 10px;font-size:12px;color:#365c51}.unlimited-refresh-editor input{width:76px;min-width:0;min-height:36px;box-sizing:border-box;padding:6px;border:1px solid #88b9a7;border-radius:5px;font-size:16px;color:#176b52;background:#fff}.unlimited-refresh-editor>span{width:100%;font-size:11px;color:#78918a}.unlimited-refresh-editor[hidden]{display:none}

/* Selected columns keep the default footprint; many columns scroll inside. */
.matrix-scroll table{min-width:var(--prob-table-min-width,0px)}
.probability-columns{margin:0 25px 14px;border:1px solid #dbe4e9;border-radius:8px;background:#f8fbfd;padding:0 12px;font-size:12px;color:#536b80}
.probability-columns summary{cursor:pointer;padding:11px 0;font-weight:600;color:#36566d}
.probability-columns summary>span{float:right;font-weight:400;color:#8394a3}
.probability-columns-heading{display:flex;align-items:center;gap:8px;justify-content:space-between}
.probability-columns-heading p{margin:0;font-size:11px;color:#8494a2}
.probability-columns-heading button{white-space:nowrap;border:1px solid #c0d7cd;border-radius:5px;background:white;color:#31765f;padding:6px 10px;font-size:12px}
.probability-column-options{display:grid;grid-template-columns:1fr 1fr .75fr;gap:15px;margin:8px 0 14px}
.probability-column-options fieldset{min-width:0;border:0;padding:0;margin:0}
.probability-column-options legend{font-size:12px;font-weight:600;margin-bottom:7px;color:#516c82}
.probability-column-options fieldset>div{display:grid;grid-template-columns:1fr 1fr;gap:8px 6px}
.probability-column-options fieldset:last-child>div{grid-template-columns:1fr}
.probability-column-options label{display:flex;align-items:center;gap:5px;font-size:11px;cursor:pointer;line-height:1.4}
.probability-column-options input{margin:0;accent-color:#22836a;flex:0 0 14px;width:14px;height:14px}
.refresh-actions{display:flex;gap:7px;align-items:stretch}
.refresh-actions .refresh-btn{flex:1;min-width:0;margin:0}
.cheat-btn{border:1px solid #dca6aa;background:#fff3f3;color:#af333e;border-radius:6px;flex:0 0 80px;padding:6px;font-size:13px;font-weight:600}
.cheat-btn span{display:block;font-size:10px;font-weight:400;margin-top:3px}
.cheat-btn:disabled{opacity:.5;cursor:not-allowed}
.cheated-owned{position:relative;border-radius:5px;outline:2px solid #e03746;outline-offset:1px;background:#fff0f0}
.cheated-owned:after{content:'作弊';position:absolute;bottom:-4px;left:50%;transform:translateX(-50%);background:#cf2437;color:white;padding:0 3px;border-radius:3px;font-size:9px;line-height:13px;white-space:nowrap}
.cheat-dialog{width:960px;max-width:calc(100vw - 26px);max-height:90dvh;box-sizing:border-box;overflow:auto;border:1px solid #e3d3d5;border-radius:14px;background:#fff;padding:20px;color:#334155;box-shadow:0 20px 90px #17233655}
.cheat-dialog::backdrop{background:#18253999}
.cheat-heading{display:flex;justify-content:space-between;gap:12px;align-items:start}
.cheat-heading h2{font-size:21px;margin:0;color:#b33443}
.cheat-heading p{font-size:12px;color:#8b6b75;margin:7px 0 14px;line-height:1.6}
.cheat-heading button{padding:8px 13px;border-radius:6px;background:#f2f4f7;color:#657c8e;white-space:nowrap}
.cheat-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:13px}
.cheat-filters input{flex:1;min-width:200px;font-size:14px;padding:10px;border:1px solid #d8e0e7;border-radius:7px}
.cheat-filters select{font-size:12px;min-height:38px;border-radius:7px}
.cheat-filters>span{font-size:11px;color:#8492a0}
.cheat-grid{overflow:auto;border:1px solid #dfe6ed;border-radius:8px}
.cheat-grid table{width:100%;table-layout:fixed;border-collapse:collapse}
.cheat-grid th{font-size:12px;background:#f2f6fa;color:#536d81;text-align:center;padding:10px 5px}
.cheat-grid th:first-child{width:85px}
.cheat-grid td{border-top:1px solid #e3eaf0;border-left:1px solid #e3eaf0;padding:6px;vertical-align:middle}
.cheat-cell{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.cheat-chip{padding:2px;background:transparent;border:1px solid transparent;border-radius:6px;display:flex;align-items:center;gap:9px;color:#365166;text-align:left}
.cheat-chip .chip-icon{width:32px;height:32px;flex:0 0 32px}
.cheat-chip:hover:not(:disabled){background:#fff0f1;border-color:#df6572}
.cheat-chip:focus-visible{outline:3px solid #b53545;outline-offset:1px}
.cheat-chip:disabled{opacity:.25;cursor:not-allowed;filter:grayscale(.7)}
.cheat-empty{color:#bdc6d0;text-align:center;flex:1;font-size:12px}
.cheat-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.cheat-chip.with-name{border-color:#e1e7ed;padding:9px}
.cheat-chip.with-name>span:not(.chip-icon){min-width:0}
.cheat-chip.with-name b{display:block;font-size:12px;overflow-wrap:anywhere}
.cheat-chip.with-name small{display:block;font-size:10px;color:#8798a6;margin-top:4px}
.cheat-footnote{font-size:11px;line-height:1.6;color:#9a8a91;margin:10px 0 0}
/* Small classification labels and plain-language chip rules. */
.matrix-scroll .item-cell .chip-classification{display:grid;grid-template-columns:minmax(0,1fr);row-gap:1px;white-space:normal;line-height:1.5;max-width:210px}.chip-classification>span{display:block;min-height:1.5em}.matrix-scroll .item-cell .chip-availability{color:#a07665;font-size:10px}
.chip-mechanism-help{font-size:12px;line-height:1.65;color:#68778e;background:#f8fafd}.chip-mechanism-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.chip-mechanism-heading strong{font-size:14px;color:#40516d}.chip-mechanism-heading span{font-size:11px;white-space:nowrap;color:#8c97a8}.chip-mechanism-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 22px;list-style:none;padding:0;margin:0}.chip-mechanism-list li{min-width:0}.chip-mechanism-list b{display:block;margin-bottom:3px;color:#495c76;font-weight:600}.chip-mechanism-list span{display:block}.chip-probability-help{margin-top:14px;padding-top:10px;border-top:1px solid #e6edf4}.chip-probability-help summary{cursor:pointer;color:#358d84;font-weight:600}.chip-probability-help p{margin:9px 0 0}.chip-mechanism-limit{margin:12px 0 0;font-size:11px;color:#8a95a6}.chip-quality-rates{margin-top:9px;width:min(100%,450px);font-size:12px;white-space:normal}.chip-quality-rates th,.chip-quality-rates td{position:static;text-align:center!important;padding:5px 8px!important;min-width:0;border:1px solid #e4eaf2}.chip-quality-rates th{font-size:12px;background:#eff4f8}.chip-quality-rates tbody th{font-weight:400;color:#62728c}.chip-quality-rates td{color:#536782}
@media(max-width:760px){.chip-mechanism-list{grid-template-columns:1fr;gap:12px}.chip-mechanism-help{padding:14px 13px}.chip-mechanism-heading{align-items:baseline}.matrix-scroll .item-cell .chip-classification{font-size:10px}.chip-mechanism-limit{font-size:11px}.chip-quality-rates{font-size:11px}.chip-quality-rates th,.chip-quality-rates td{font-size:11px}}
@media(max-width:1100px){.probability-column-options{grid-template-columns:1fr 1fr}.probability-column-options fieldset:last-child>div{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.matrix-scroll table{width:var(--prob-table-mobile-width,1050px);min-width:var(--prob-table-mobile-width,1050px)}.probability-columns{margin-left:12px;margin-right:12px}.probability-column-options{grid-template-columns:1fr;gap:14px}.probability-column-options label{font-size:12px}.cheat-dialog{padding:13px;max-height:92dvh}.cheat-heading h2{font-size:18px}.cheat-heading p{font-size:11px}.cheat-filters{gap:6px}.cheat-filters input{min-width:0;width:100%;flex-basis:100%;font-size:16px}.cheat-grid table{min-width:620px}.cheat-grid th:first-child{width:65px}.cheat-results{grid-template-columns:repeat(2,minmax(0,1fr))}.cheat-chip.with-name{padding:6px}.cheat-chip.with-name .chip-icon{width:32px;height:32px;flex-basis:32px}.cheat-filters>span{margin-left:auto}}

/* The map and probability toggle stay available above both working views. */
.simulator-toolbar{grid-column:1/-1;display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:14px 18px;background:#fff;border:1px solid var(--line);border-radius:10px;position:sticky;top:0;z-index:5}
.map-setting{display:flex;align-items:center;gap:14px;flex-shrink:0}.map-setting label{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600}.map-setting select{width:170px;font-weight:400}.map-details{display:flex;flex-direction:column;gap:4px;font-size:11px;color:var(--muted)}.map-details strong{font-size:12px;font-weight:500;color:#42647a}
.map-chip-list{display:flex;gap:12px;flex-wrap:wrap;flex:1;min-width:0}.map-chip{display:flex;align-items:center;gap:5px;font-size:12px;color:#50677e}.map-chip .chip-icon{width:28px;height:28px;flex:none}.map-chip .chip-icon img{width:100%;height:100%}.map-chip .chip-icon .chip-art{width:74%;height:74%}
#probability-toggle{margin-left:auto;min-height:42px;padding:10px 16px;border:1px solid #83c9bc;border-radius:7px;background:#edf9f5;color:#166e62;font-size:14px;font-weight:600;white-space:nowrap}
.map-recommendation-note{margin:10px 25px 0;font-size:12px;color:#8b7444}
@media(min-width:761px){
  .simulator-layout{max-width:1920px;grid-template-columns:clamp(380px,32vw,480px) minmax(0,1fr);gap:20px}
  body[data-probability-view=hidden] .simulator-layout{grid-template-columns:minmax(0,1fr);max-width:1200px}
  body[data-probability-view=hidden] .matrix-panel{display:none}
  body[data-probability-view=hidden] .operation-panel{display:grid;grid-template-columns:1fr 1fr;gap:0;width:100%}
  body[data-probability-view=hidden] .operation-panel>.series-panel,body[data-probability-view=hidden] .operation-panel>.choice-section,body[data-probability-view=hidden] .operation-panel>.inventory-section,body[data-probability-view=hidden] .operation-panel>details{grid-column:1/-1}
  body[data-probability-view=hidden] .operation-panel>.player-section{border-right:1px solid var(--line)}
  body[data-probability-view=hidden] .operation-panel>.source-section{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;align-content:start}
  body[data-probability-view=hidden] .source-section>.section-title{grid-column:1/-1}
  body[data-probability-view=hidden] .source-section>.major-actions{grid-column:1;grid-row:2;margin:0;grid-template-columns:1fr}
  body[data-probability-view=hidden] .source-section>.loop-btn{grid-column:1;grid-row:3;margin:0;padding:8px 10px}
  body[data-probability-view=hidden] .source-section>.task-heading{grid-column:2;grid-row:2;margin:0;align-self:start}
  body[data-probability-view=hidden] .source-section>.task-grid{grid-column:2;grid-row:2/4;padding-top:26px;align-content:start;grid-template-columns:1fr 1fr;gap:6px}
  body[data-probability-view=hidden] .source-section .task-btn{padding:7px 9px}
  body[data-probability-view=hidden] .choice-section .cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:auto;gap:14px}
  body[data-probability-view=hidden] .choice-section .relic-card{display:flex;align-items:flex-start;padding:18px;gap:3px;height:auto;min-height:220px;max-height:none;border-left-width:1px;border-top:3px solid var(--quality)}
  body[data-probability-view=hidden] .choice-section .relic-card .chip-icon{width:76px;height:76px;align-self:center;margin-bottom:12px}
  body[data-probability-view=hidden] .choice-section .relic-card .chip-icon img{width:100%;height:100%}
  body[data-probability-view=hidden] .choice-section .relic-card .chip-icon .chip-art{width:74%;height:74%}
  body[data-probability-view=hidden] .choice-section .refresh-actions{max-width:560px;margin-left:auto;margin-right:auto}
}
@media(max-width:1100px) and (min-width:761px){.simulator-layout{grid-template-columns:360px minmax(0,1fr)}.map-setting{flex-shrink:1}.map-details{max-width:220px}}
@media(max-width:760px){.simulator-toolbar{width:100%;padding:12px;gap:10px;position:static}.map-setting{width:100%;gap:8px;flex-wrap:wrap}.map-setting label{flex:1}.map-setting select{flex:1;min-width:0;max-width:220px}.map-details{width:100%;gap:3px}.map-chip-list{gap:8px}.map-chip{font-size:11px}.map-chip .chip-icon{width:24px;height:24px}#probability-toggle{display:none}.map-recommendation-note{margin-left:16px;margin-right:16px}}
