:root[data-theme=light]{--manual-text-primary:#1C1C1E;--manual-text-secondary:#8E8E93;--manual-border-light:#E5E5EA;--manual-border-dark:#D1D1D6;--manual-hover-bg:#F5F5F7;--manual-placeholder-border:#C7C7CC}:root[data-theme=dark]{--manual-text-primary:#F5F5F7;--manual-text-secondary:#A1A1A6;--manual-border-light:#424245;--manual-border-dark:#3A3A3F;--manual-hover-bg:#2C2C31;--manual-placeholder-border:#6C6C70}.manual-simulation-container{display:flex;flex-direction:column;gap:var(--spacing-md,1rem);height:100%;overflow:hidden}.consumption-stats{background:var(--manual-hover-bg);border-radius:var(--radius-lg,12px);padding:var(--spacing-sm,.5rem) var(--spacing-md,1rem);box-shadow:0 2px 8px rgba(0,0,0,.05);flex-shrink:0}[data-theme=dark] .consumption-stats{box-shadow:0 2px 8px rgba(0,0,0,.3)}.stats-title{margin:0 0 var(--spacing-sm,.5rem) 0;font-size:1rem;color:var(--manual-text-primary);font-weight:600}.stats-content{padding:var(--spacing-sm,.5rem);background:var(--bg-primary,#fff);border-radius:var(--radius-md,8px);border:1px solid var(--manual-border-light);min-height:40px;display:flex;flex-direction:column;gap:var(--spacing-sm,.5rem);align-items:flex-start;justify-content:flex-start}[data-theme=dark] .stats-content{background:#1c1c1e}.stats-empty{color:var(--manual-text-secondary);font-size:.875rem}.consumption-category-row{display:flex;flex-wrap:wrap;gap:var(--spacing-sm,.5rem);align-items:center;justify-content:flex-start;width:100%;padding-top:.5rem;border-top:1px solid var(--affix-border,rgba(0,0,0,.1))}.consumption-category-row:first-child{padding-top:0;border-top:none}.consumption-item-with-image{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;background:var(--manual-hover-bg);border:1px solid var(--manual-border-light);border-radius:var(--radius-sm,4px);transition:.2s;cursor:pointer}.consumption-item-with-image:hover{background:var(--manual-hover-bg);border-color:var(--accent-blue,#007aff);box-shadow:0 2px 8px rgba(0,122,255,.2);transform:scale(1.05)}[data-theme=dark] .consumption-item-with-image{background:var(--manual-hover-bg);border-color:var(--manual-border-light)}[data-theme=dark] .consumption-item-with-image:hover{background:#3a3a3f}.consumption-item-img{width:100%;height:100%;object-fit:contain;padding:2px}.consumption-count-badge{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;background:linear-gradient(135deg,#5ac8fa 0,#007aff 100%);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.65rem;font-weight:700;border:2px solid #fff;box-shadow:0 2px 6px rgba(0,122,255,.3);padding:0 4px}.consumption-item-text{font-size:.7rem;color:var(--text-secondary)}.consumption-item-count{font-size:.875rem;font-weight:600;color:var(--text-primary);margin-left:.25rem}.simulation-process{background:var(--manual-hover-bg);border-radius:var(--radius-lg,12px);padding:var(--spacing-md,1rem);box-shadow:0 2px 8px rgba(0,0,0,.05);display:flex;flex-direction:column;overflow:hidden;flex-shrink:0;height:300px}[data-theme=dark] .simulation-process{box-shadow:0 2px 8px rgba(0,0,0,.3)}.process-title{margin:0 0 var(--spacing-sm,.5rem) 0;padding:0;font-size:1rem;color:var(--manual-text-primary);font-weight:600;flex-shrink:0;z-index:10}.process-log{flex:1;overflow-y:auto;overflow-x:hidden;padding:var(--spacing-sm,.5rem);background:var(--bg-primary,#fff);border-radius:var(--radius-md,8px);border:1px solid var(--manual-border-light);min-height:0}[data-theme=dark] .process-log{background:#1c1c1e}.log-empty{color:var(--manual-text-secondary);text-align:center;padding:var(--spacing-lg,1.5rem);font-size:.875rem}.log-item{transition:.2s;background:var(--manual-hover-bg);color:var(--manual-text-primary)}[data-theme=dark] .log-item{background:#2c2c2e}.log-item.log-item-active{background:var(--accent-blue,#007aff);color:#fff}.log-item:hover{transform:translateX(2px);box-shadow:0 2px 8px rgba(0,0,0,.1)}[data-theme=dark] .log-item:hover{box-shadow:0 2px 8px rgba(255,255,255,.1)}.log-item .log-remove-text{color:#ef4444}.log-item.log-item-active .log-remove-text{color:rgba(255,255,255,.9)}.log-item .log-add-text{color:#10b981}.log-item.log-item-active .log-add-text{color:rgba(255,255,255,.9)}.log-item .log-lock-text{color:#f59e0b}.log-item.log-item-active .log-lock-text{color:rgba(255,255,255,.9)}.affix-item-new.ruptured .affix-description{color:#f59e0b!important}.bottom-actions{background:var(--manual-hover-bg);border-radius:var(--radius-lg,12px);padding:var(--spacing-sm,.5rem) var(--spacing-md,1rem);box-shadow:0 2px 8px rgba(0,0,0,.05);display:flex;justify-content:space-between;align-items:center;gap:var(--spacing-md,1rem);flex-shrink:0}[data-theme=dark] .bottom-actions{box-shadow:0 2px 8px rgba(0,0,0,.3)}.extra-buttons,.history-buttons{display:flex;gap:var(--spacing-sm,.5rem)}.action-btn{padding:var(--spacing-sm,.5rem) var(--spacing-md,1rem);background:var(--bg-primary,#fff);border:2px solid var(--manual-border-light);border-radius:var(--radius-md,8px);cursor:pointer;transition:.2s;font-size:.875rem;font-weight:500;color:var(--manual-text-primary);min-width:80px;-webkit-tap-highlight-color:transparent;touch-action:manipulation;user-select:none}[data-theme=dark] .action-btn{background:#2c2c2e}.action-btn:hover{background:var(--manual-hover-bg);transform:translateY(-1px)}.action-btn:active{transform:translateY(0)}.action-btn.btn-reset{background:#fef2f2;border:1.5px solid #f9a8a8;color:#e85a5a;border-radius:12px}.action-btn.btn-reset:hover{background:#fee2e2;border-color:#f87171;opacity:1}.action-btn.btn-reset:active{background:#fecaca}[data-theme=dark] .action-btn.btn-reset{background:rgba(248,113,113,.15);border-color:rgba(248,113,113,.5);color:#f87171}[data-theme=dark] .action-btn.btn-reset:hover{background:rgba(248,113,113,.25);border-color:#f87171}.action-btn.btn-extra{min-width:auto;padding:var(--spacing-sm,.5rem) var(--spacing-md,1rem);font-size:.875rem;font-weight:600;white-space:nowrap;background:#e8f8eb;border:1.5px solid #86d993;color:#5ab469;border-radius:12px}.action-btn.btn-extra:hover{background:#d4f0da;border-color:#6bc77a;transform:translateY(-1px)}.action-btn.btn-extra:active{background:#c5eacd;transform:translateY(0)}[data-theme=dark] .action-btn.btn-extra{background:rgba(134,217,147,.15);border-color:rgba(134,217,147,.5);color:#86d993}[data-theme=dark] .action-btn.btn-extra:hover{background:rgba(134,217,147,.25);border-color:#86d993}.currency-grid-container{background:var(--bg-primary,#fff);border-radius:0;padding:0;overflow-y:auto;flex:1;min-height:400px}[data-theme=dark] .currency-grid-container{background:#1c1c1e}.currency-grid-wrapper{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:0}.currency-category{background:0 0;border-radius:0;padding:var(--spacing-lg,1.5rem) var(--spacing-md,1rem);border:none;border-right:1px solid var(--manual-border-light)}.currency-category:last-child{border-right:none}.category-header{font-size:.925rem;font-weight:600;color:var(--manual-text-secondary);text-transform:uppercase;letter-spacing:.5px;padding:0;text-align:center;border:none;margin-bottom:var(--spacing-md,1rem);background:0 0;border-radius:0}.currency-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--spacing-md,1rem)}.currency-btn{aspect-ratio:1;background:0 0;border:none;border-radius:3px;cursor:pointer;transition:.25s cubic-bezier(.4, 0, .2, 1);display:flex;align-items:center;justify-content:center;font-size:1.5rem;color:var(--manual-text-secondary);box-shadow:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation;user-select:none}[data-theme=dark] .currency-btn{background:0 0;box-shadow:none}.currency-btn:hover{background:var(--manual-hover-bg);transform:translateY(-2px) scale(1.02);box-shadow:0 4px 12px rgba(0,0,0,.08)}[data-theme=dark] .currency-btn:hover{background:rgba(255,255,255,.12);box-shadow:0 4px 12px rgba(255,255,255,.05)}.currency-btn:active{transform:translateY(0) scale(.98);box-shadow:0 1px 2px rgba(0,0,0,.06)}.currency-btn.selected{background:var(--accent-blue,#007aff);color:#fff;box-shadow:0 2px 8px rgba(0,122,255,.3)}.currency-btn[data-category=omen].selected{background:#c33;box-shadow:0 2px 8px rgba(204,51,51,.4)}.currency-btn[data-category=catalyst].selected{background:var(--accent-blue,#007aff);box-shadow:0 2px 8px rgba(0,122,255,.3)}.currency-icon{font-size:1.2rem}.currency-grid-container::-webkit-scrollbar,.process-log::-webkit-scrollbar{width:4px}.currency-grid-container::-webkit-scrollbar-track,.process-log::-webkit-scrollbar-track{background:0 0}.currency-grid-container::-webkit-scrollbar-thumb,.process-log::-webkit-scrollbar-thumb{background:rgba(0,0,0,.15);border-radius:2px}[data-theme=dark] .currency-grid-container::-webkit-scrollbar-thumb,[data-theme=dark] .process-log::-webkit-scrollbar-thumb{background:rgba(255,255,255,.2)}.currency-grid-container::-webkit-scrollbar-thumb:hover,.process-log::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.25)}[data-theme=dark] .currency-grid-container::-webkit-scrollbar-thumb:hover,[data-theme=dark] .process-log::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.3)}@media (max-width:1200px){.currency-grid-wrapper{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}}@media (max-width:768px){.manual-simulation-container{gap:.375rem;padding:0}.consumption-stats{padding:.5rem;border-radius:var(--radius-md,8px);margin:0 .375rem}.stats-title{font-size:.875rem;margin-bottom:.375rem}.stats-content{padding:.375rem;gap:.375rem;min-height:50px}.consumption-category-row{gap:.375rem;padding-top:.375rem}.consumption-item-with-image{width:40px;height:40px}.consumption-item-img{padding:2px}.consumption-count-badge{top:-6px;right:-6px;min-width:18px;height:18px;font-size:.625rem;border-width:1.5px}.simulation-process{padding:.5rem;height:200px;border-radius:var(--radius-md,8px);margin:0 .375rem}.process-title{font-size:.875rem;margin-bottom:.375rem}.process-log{padding:.375rem;font-size:.8125rem;line-height:1.4}.log-item{padding:.5rem;margin-bottom:.25rem;border-radius:var(--radius-sm,4px);font-size:.8125rem}.log-empty{padding:1rem;font-size:.8125rem}.bottom-actions{flex-direction:column;gap:.375rem;padding:.5rem .375rem;flex-wrap:nowrap}.extra-buttons,.history-buttons{display:flex;gap:.375rem;width:100%;justify-content:center}.action-btn{flex:1;min-width:64px;min-height:40px;padding:.5rem .75rem;font-size:.875rem;font-weight:500;white-space:nowrap;border-radius:10px}.action-btn.btn-extra{font-size:.8125rem;padding:.5rem .625rem;min-height:40px;flex:1;border-radius:10px}.action-btn.btn-reset{border-radius:10px}.currency-grid-container{padding:0;min-height:auto;background:var(--bg-primary,#fff);border-radius:0}.currency-grid-wrapper{display:flex!important;flex-direction:column!important;gap:0}.currency-category{width:100%;padding:1rem .5rem;box-sizing:border-box;border-right:none;border-bottom:1px solid var(--manual-border-light,rgba(0,0,0,.08));background:0 0}.currency-category:last-child{border-bottom:none}.category-header{font-size:.8125rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;padding:0;margin-bottom:.75rem;color:var(--manual-text-secondary,#8e8e93);text-align:center}.currency-buttons{display:grid!important;grid-template-columns:repeat(6,1fr)!important;gap:.5rem}.currency-btn{aspect-ratio:1;width:100%;height:auto;font-size:0;border-radius:var(--radius-sm,4px);min-height:56px;background:var(--manual-hover-bg,#f5f5f7);border:1px solid var(--manual-border-light,#e5e5ea);padding:4px}.currency-btn img{width:100%;height:100%;object-fit:contain}.currency-icon{font-size:1.5rem}.currency-btn.selected{background:var(--accent-blue,#007aff);border-color:var(--accent-blue,#007aff);box-shadow:0 2px 8px rgba(0,122,255,.3)}.currency-btn[data-category=omen].selected{background:#c33;border-color:#c33;box-shadow:0 2px 8px rgba(204,51,51,.4)}}@media (max-width:480px){.consumption-stats{padding:.375rem .5rem;margin:0 .25rem}.process-title,.stats-title{font-size:.8125rem}.stats-content{padding:.25rem;min-height:45px}.consumption-item-with-image{width:36px;height:36px}.consumption-count-badge{min-width:16px;height:16px;font-size:.5625rem;border-width:1px}.simulation-process{height:180px;padding:.375rem .5rem;margin:0 .25rem}.process-log{font-size:.75rem;padding:.25rem;line-height:1.3}.log-item{padding:.375rem;font-size:.75rem;margin-bottom:.2rem}.bottom-actions{flex-direction:column;padding:.375rem .25rem;gap:.25rem}.extra-buttons,.history-buttons{gap:.25rem;width:100%;justify-content:center}.action-btn{flex:1;min-width:56px;min-height:36px;padding:.375rem .5rem;font-size:.8125rem;border-radius:8px}.action-btn.btn-extra{font-size:.75rem;min-height:36px;flex:1;padding:.375rem .5rem;border-radius:8px}.action-btn.btn-reset{border-radius:8px}.currency-grid-container{padding:0}.currency-category{padding:.75rem .375rem}.category-header{font-size:.75rem;letter-spacing:.4px;margin-bottom:.625rem}.currency-buttons{grid-template-columns:repeat(6,1fr)!important;gap:.375rem}.currency-btn{aspect-ratio:1;width:100%;height:auto;font-size:0;border-radius:var(--radius-sm,4px);min-height:50px;padding:3px}.currency-icon{font-size:1.25rem}}@media (max-width:768px) and (orientation:landscape){.consumption-stats{padding:.375rem .5rem}.process-title,.stats-title{font-size:.8125rem;margin-bottom:.25rem}.simulation-process{height:150px;padding:.375rem .5rem}.process-log{font-size:.75rem}.bottom-actions{padding:.375rem .5rem}.currency-grid-container{min-height:auto}.currency-category{padding:.75rem .5rem}.currency-buttons{grid-template-columns:repeat(10,1fr)!important;gap:.375rem}.category-header{font-size:.75rem;margin-bottom:.5rem}.currency-btn{aspect-ratio:1;width:100%;height:auto;font-size:0;border-radius:var(--radius-sm,4px);min-height:48px;padding:3px}.currency-icon{font-size:1.25rem}}.probability-preview-modal{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:10000;opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}.probability-preview-modal.visible{opacity:1;visibility:visible}.probability-preview-container{background:var(--bg-primary,#fff);border-radius:var(--radius-lg,12px);box-shadow:0 20px 60px rgba(0,0,0,.3);width:90%;max-width:680px;max-height:80vh;display:flex;flex-direction:column;overflow:hidden;transform:scale(.95);transition:transform .2s,max-width .2s}.probability-preview-container.has-delete-panel{max-width:950px}.probability-preview-modal.visible .probability-preview-container{transform:scale(1)}[data-theme=dark] .probability-preview-container{background:#1c1c1e;box-shadow:0 20px 60px rgba(0,0,0,.6)}.probability-preview-header{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;border-bottom:1px solid var(--manual-border-light,#e5e5ea);background:var(--manual-hover-bg,#f5f5f7)}[data-theme=dark] .probability-preview-header{background:#2c2c31;border-color:#424245}.preview-currency-icon{width:36px;height:36px;object-fit:contain;flex-shrink:0}.preview-title{font-size:.95rem;font-weight:600;color:var(--manual-text-primary,#1c1c1e);flex:1}.preview-close-btn{width:32px;height:32px;border:none;background:0 0;font-size:1.5rem;color:var(--manual-text-secondary,#8e8e93);cursor:pointer;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:.2s;flex-shrink:0}.preview-close-btn:hover{background:rgba(0,0,0,.1);color:var(--manual-text-primary,#1c1c1e)}[data-theme=dark] .preview-close-btn:hover{background:rgba(255,255,255,.1)}.preview-active-modifiers{display:flex;align-items:center;gap:6px;flex-shrink:0;margin-left:auto;margin-right:.5rem}.preview-modifiers-separator{font-size:1rem;font-weight:600;color:var(--manual-text-secondary,#8e8e93);margin:0 2px}.preview-modifier-icon{width:36px;height:36px;flex-shrink:0}.preview-modifier-icon img{width:100%;height:100%;object-fit:contain}.probability-preview-body{display:flex;flex:1;overflow:hidden}.existing-affixes-panel{display:flex;flex-direction:column;width:240px;min-width:200px;max-width:280px;border-right:1px solid var(--manual-border-light,#e5e5ea);background:var(--bg-secondary,#f2f2f7);flex-shrink:0}[data-theme=dark] .existing-affixes-panel{background:#1c1c1e;border-color:#424245}.existing-affixes-header{padding:.6rem .75rem;border-bottom:1px solid var(--manual-border-light,#e5e5ea);background:var(--manual-hover-bg,#f5f5f7)}[data-theme=dark] .existing-affixes-header{background:#2c2c31;border-color:#424245}.existing-affixes-title{font-size:.85rem;font-weight:600;color:#ff3b30}.existing-affixes-list{flex:1;overflow-y:auto;padding:.5rem}.no-affixes-hint{text-align:center;padding:1.5rem .5rem;color:var(--manual-text-secondary,#8e8e93);font-size:.8rem}.existing-affix-item{display:flex;align-items:flex-start;gap:.4rem;padding:.5rem .6rem;margin-bottom:.35rem;border-radius:var(--radius-sm,4px);cursor:pointer;transition:.15s;border:2px solid transparent;background:var(--bg-primary,#fff)}[data-theme=dark] .existing-affix-item{background:#2c2c31}.existing-affix-item:hover{background:var(--manual-hover-bg,#f5f5f7);border-color:var(--manual-border-light,#e5e5ea)}[data-theme=dark] .existing-affix-item:hover{background:#3a3a3f;border-color:#424245}.existing-affix-item.selected{background:rgba(255,59,48,.1);border-color:#ff3b30}[data-theme=dark] .existing-affix-item.selected{background:rgba(255,59,48,.2)}.affix-type-tag{flex-shrink:0;font-size:.65rem;font-weight:600;padding:2px 5px;border-radius:3px;margin-top:1px}.affix-type-tag.prefix-tag{background:rgba(0,122,255,.15);color:#007aff}.affix-type-tag.suffix-tag{background:rgba(52,199,89,.15);color:#34c759}.existing-affix-item .affix-desc{flex:1;font-size:.75rem;line-height:1.4;color:var(--manual-text-primary,#1c1c1e);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.affix-req-level{flex-shrink:0;font-size:.7rem;font-weight:500;color:var(--manual-text-secondary,#8e8e93);min-width:24px;text-align:right}.existing-affix-item.selected .affix-desc{color:#ff3b30;font-weight:500}.existing-affix-item.to-be-deleted .affix-desc{text-decoration:line-through;text-decoration-color:#FF3B30;text-decoration-thickness:2px}.existing-affix-item.to-be-deleted .affix-req-level{color:#ff3b30;text-decoration:line-through;text-decoration-thickness:1px}.existing-affix-item.force-delete{background:rgba(255,59,48,.1);border-color:#ff3b30}.existing-affix-item.force-delete:hover{background:rgba(255,59,48,.1);transform:none}.existing-affix-item.force-delete.selected{background:rgba(255,59,48,.15);border-color:#ff3b30}.probability-preview-sidebar{display:flex;flex-direction:column;gap:.5rem;padding:.75rem;border-right:1px solid var(--manual-border-light,#e5e5ea);background:var(--manual-hover-bg,#f5f5f7);min-width:130px;flex-shrink:0}[data-theme=dark] .probability-preview-sidebar{background:#2c2c31;border-color:#424245}.prob-tab{padding:.6rem .8rem;border:1px solid var(--manual-border-light,#e5e5ea);background:var(--bg-primary,#fff);border-radius:12px;font-size:.8rem;color:var(--manual-text-secondary,#8e8e93);cursor:pointer;white-space:nowrap;transition:.2s;text-align:center}[data-theme=dark] .prob-tab{background:#1c1c1e;border-color:#424245}.prob-tab:hover:not(.disabled){background:var(--manual-hover-bg,#f5f5f7);border-color:var(--accent-blue,#007aff);transform:scale(1.02)}[data-theme=dark] .prob-tab:hover:not(.disabled){background:#3a3a3f}.prob-tab.active{background:var(--accent-blue,#007aff);border-color:var(--accent-blue,#007aff);color:#fff;font-weight:500}.prob-tab.active:hover{background:var(--accent-blue-hover,#0056cc);border-color:var(--accent-blue-hover,#0056cc);color:#fff;transform:scale(1.02)}.prob-tab.disabled{opacity:.5;cursor:not-allowed}.probability-preview-content{flex:1;overflow-y:auto;padding:.75rem;background:var(--bg-primary,#fff)}[data-theme=dark] .probability-preview-content{background:#1c1c1e}.probability-list{display:flex;flex-direction:column;gap:.35rem}.prob-empty{text-align:center;padding:3rem 1rem;color:var(--manual-text-secondary,#8e8e93);font-size:.95rem}.mother-affix-item{border:1px solid var(--manual-border-light,#e5e5ea);border-radius:var(--radius-md,8px);overflow:hidden;background:var(--bg-primary,#fff)}[data-theme=dark] .mother-affix-item{background:#2c2c31;border-color:#424245}.mother-affix-item.expanded{border-color:var(--accent-blue,#007aff)}.mother-affix-header{display:flex;align-items:center;gap:.4rem;padding:.5rem .75rem;cursor:pointer;transition:background .15s;position:relative;z-index:1}.mother-affix-header::before{content:'';position:absolute;left:0;top:0;height:100%;width:var(--prob-width,0);background:rgba(0,122,255,.15);z-index:-1;transition:width .3s}[data-theme=dark] .mother-affix-header::before{background:rgba(0,122,255,.22)}.mother-affix-header:hover{background:var(--manual-hover-bg,#f5f5f7)}[data-theme=dark] .mother-affix-header:hover{background:#3a3a3f}.mother-name{flex:1;font-size:.85rem;color:var(--manual-text-primary,#1c1c1e);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.element-tags{display:flex;gap:2px;flex-shrink:0}.element-tag{font-size:.625rem;padding:1px 4px;border-radius:2px;white-space:nowrap}.element-tag.tag-fire{background:rgba(255,59,48,.15);color:#ff3b30}.element-tag.tag-cold{background:rgba(0,122,255,.15);color:#007aff}.element-tag.tag-lightning{background:rgba(255,204,0,.15);color:#ff9500}.element-tag.tag-chaos{background:rgba(175,82,222,.15);color:#af52de}.element-tag.tag-life{background:rgba(255,45,85,.15);color:#ff2d55}.element-tag.tag-physical{background:rgba(142,142,147,.15);color:#8e8e93}.element-tag.tag-attack{background:rgba(255,149,0,.15);color:#ff9500}.element-tag.tag-caster{background:rgba(90,200,250,.15);color:#5ac8fa}.element-tag.tag-speed{background:rgba(52,199,89,.15);color:#34c759}.element-tag.tag-defence{background:rgba(88,86,214,.15);color:#5856d6}.element-tag.tag-minion{background:rgba(0,199,190,.15);color:#00c7be}.element-tag.tag-attribute{background:rgba(255,214,10,.15);color:#ffd60a}.element-tag.tag-essence{background:rgba(191,90,242,.15);color:#bf5af2}.element-tag.tag-gem{background:rgba(48,209,88,.15);color:#30d158}.element-tag.tag-aura{background:rgba(94,92,230,.15);color:#5e5ce6}.element-tag.tag-curse{background:rgba(255,55,95,.15);color:#ff375f}.element-tag.tag-abyss{background:rgba(64,156,255,.15);color:#409cff}.mother-weight{font-size:.8rem;font-weight:600;color:#34c759;min-width:50px;text-align:right;flex-shrink:0}.mother-prob{font-size:.8rem;font-weight:600;color:var(--accent-blue,#007aff);min-width:55px;text-align:right;flex-shrink:0}.mother-prob-formula{font-size:.75rem;color:var(--accent-blue,#007aff)}.mother-prob-result{font-size:.85rem;font-weight:700;color:var(--accent-blue,#007aff);text-align:right}.category-total-weight{display:flex;align-items:center;gap:.75rem;padding:.6rem 1rem;background:var(--bg-primary,#fff);border:1px solid rgba(0,122,255,.2);border-radius:var(--radius-md,8px);margin-bottom:.75rem;position:relative;z-index:1;overflow:hidden}.category-total-weight::before{content:'';position:absolute;left:0;top:0;height:100%;width:var(--prob-width,0);background:rgba(0,122,255,.18);z-index:-1}[data-theme=dark] .category-total-weight{background:#2c2c31;border-color:rgba(0,122,255,.3)}[data-theme=dark] .category-total-weight::before{background:rgba(0,122,255,.25)}.total-weight-label{font-size:.85rem;font-weight:500;color:var(--manual-text-primary,#1c1c1e)}[data-theme=dark] .total-weight-label{color:#e5e5ea}.total-weight-value{font-size:1rem;font-weight:700;color:#34c759;margin-left:auto}.total-weight-prob{font-size:1rem;font-weight:700;color:var(--accent-blue,#007aff)}.sub-affixes-container{border-top:1px solid var(--manual-border-light,#e5e5ea);background:var(--manual-hover-bg,#f5f5f7);padding:.25rem .5rem}[data-theme=dark] .sub-affixes-container{background:#1c1c1e;border-color:#424245}.sub-affix-item{display:grid;grid-template-columns:28px 1fr 40px 45px 50px;gap:.3rem;padding:.35rem .5rem;border-radius:var(--radius-sm,4px);font-size:.75rem;transition:background .15s;align-items:center;position:relative;z-index:1}.sub-affix-item::before{content:'';position:absolute;left:0;top:0;height:100%;width:var(--prob-width,0);background:rgba(0,122,255,.12);border-radius:var(--radius-sm,4px);z-index:-1}[data-theme=dark] .sub-affix-item::before{background:rgba(0,122,255,.18)}.sub-affix-item:hover{background:rgba(0,122,255,.08)}.sub-tier{color:#ff9500;font-weight:600}.sub-desc{color:var(--manual-text-primary,#1c1c1e);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sub-level{color:var(--manual-text-secondary,#8e8e93);text-align:center}.sub-prob{color:var(--accent-blue,#007aff);font-weight:600;font-size:.75rem;text-align:right}.sub-weight{color:#34c759;font-size:.75rem;font-weight:600;text-align:right}.resize-handle{position:absolute;bottom:0;right:0;width:20px;height:20px;cursor:se-resize;background:linear-gradient(135deg,transparent 50%,var(--manual-text-secondary,#8e8e93) 50%);opacity:.5;border-radius:0 0 var(--radius-lg,12px) 0;transition:opacity .2s}.resize-handle:hover{opacity:.8}.resize-handle::before{content:'';position:absolute;bottom:4px;right:4px;width:8px;height:8px;border-right:2px solid var(--manual-text-secondary,#8e8e93);border-bottom:2px solid var(--manual-text-secondary,#8e8e93)}.probability-preview-modal.dragging,.probability-preview-modal.resizing{user-select:none}.probability-preview-modal.dragging .probability-preview-container,.probability-preview-modal.resizing .probability-preview-container{transition:none}@media (max-width:600px){.probability-preview-container{width:95%;max-height:85vh}.probability-preview-body{flex-direction:column}.existing-affixes-panel{width:100%;max-width:none;min-width:unset;max-height:120px;border-right:none;border-bottom:1px solid var(--manual-border-light,#e5e5ea)}.existing-affixes-list{display:flex;flex-wrap:wrap;gap:.25rem;padding:.4rem}.existing-affix-item{flex:0 0 auto;padding:.3rem .5rem;margin-bottom:0}.existing-affix-item .affix-desc{font-size:.7rem;max-width:70px}.affix-req-level{font-size:.6rem;min-width:20px}.probability-preview-sidebar{flex-direction:row;min-width:unset;border-right:none;border-bottom:1px solid var(--manual-border-light,#e5e5ea);padding:.5rem;overflow-x:auto}.prob-tab{padding:.4rem .6rem;font-size:.7rem;flex-shrink:0}.mother-affix-header{padding:.4rem .5rem}.mother-name{font-size:.8rem}.sub-affix-item{grid-template-columns:25px 1fr 35px 40px 40px;font-size:.65rem;padding:.25rem .4rem}}.excluded-affix .mother-name{text-decoration:line-through;color:var(--text-muted,#6c757d);opacity:.6}.excluded-affix .mother-prob,.excluded-affix .mother-weight{color:var(--text-muted,#6c757d);opacity:.6}.excluded-affix .mother-affix-header{background:var(--bg-tertiary,#2d2d2d)!important}.excluded-affix .mother-affix-header::before{display:none}.excluded-affix .element-tag{opacity:.5}.excluded-label{color:var(--warning-color,#ffc107)!important;font-style:italic;font-size:.75rem}.excluded-sub-affix .sub-desc{text-decoration:line-through;color:var(--text-muted,#6c757d);opacity:.6}.excluded-sub-affix .sub-prob,.excluded-sub-affix .sub-weight{color:var(--text-muted,#6c757d);opacity:.6}.filtered-sub-affix{opacity:.6}.filtered-sub-affix .sub-desc,.filtered-sub-affix .sub-level,.filtered-sub-affix .sub-tier{text-decoration:line-through;color:var(--text-muted,#6c757d)}.filtered-sub-affix .sub-prob{color:var(--danger,#dc3545)}