.statgen-container{-webkit-backdrop-filter:blur(16px);background:#1d1d299e;border:1px solid #ffffff14;border-radius:16px;max-width:1200px;margin:0 auto;padding:1.5rem 1rem}.statgen-layout{grid-template-columns:320px 1fr;align-items:start;gap:1.5rem;display:grid}@media (width<=900px){.statgen-layout{grid-template-columns:1fr}}.statgen-sidebar{flex-direction:column;gap:1rem;display:flex}.statgen-panel{backdrop-filter:blur(4px);background:#ffffff0f;border:1px solid #ffffff1a;border-radius:12px;padding:1rem}.statgen-section-title{color:#ffffffe6;letter-spacing:-.01em;margin-bottom:.75rem;font-size:.9rem;font-weight:700}.statgen-mode-tabs{background:#ffffff0a;border-radius:8px;grid-template-columns:repeat(4,1fr);gap:4px;margin-bottom:1rem;padding:4px;display:grid}.statgen-mode-tab{color:#ffffff80;cursor:pointer;background:0 0;border:none;border-radius:6px;flex-direction:column;align-items:center;gap:4px;padding:.5rem .25rem;font-size:.7rem;font-weight:600;transition:all .15s;display:flex}.statgen-mode-tab:hover{color:#fffc;background:#ffffff14}.statgen-mode-tab.active{color:#c4b5fd;background:#8b5cf640;box-shadow:inset 0 0 12px #8b5cf626}.statgen-mode-icon{width:18px;height:18px}.statgen-mode-content{position:relative}.statgen-mode-panel{display:none}.statgen-mode-panel.active{display:block}.statgen-form-group{margin-bottom:.75rem}.statgen-label{color:#fff9;margin-bottom:.35rem;font-size:.78rem;font-weight:600;display:block}.statgen-input{color:#fff;box-sizing:border-box;background:#ffffff0f;border:1px solid #ffffff1f;border-radius:8px;outline:none;width:100%;padding:.5rem .75rem;font-size:.85rem;transition:border-color .15s}.statgen-input:focus{border-color:#8b5cf680;box-shadow:0 0 0 2px #8b5cf626}.statgen-input-error{border-color:#ef444480!important;box-shadow:0 0 0 2px #ef444426!important}.statgen-input-sm{color:#fff;text-align:center;background:#ffffff0f;border:1px solid #ffffff1f;border-radius:6px;outline:none;width:52px;padding:.3rem .4rem;font-size:.82rem;transition:border-color .15s}.statgen-input-sm:focus{border-color:#8b5cf680}.statgen-input-center{text-align:center}.statgen-select{color:#fff;cursor:pointer;box-sizing:border-box;appearance:none;background:#ffffff0f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right .75rem center no-repeat;border:1px solid #ffffff1f;border-radius:8px;outline:none;width:100%;padding:.5rem 2rem .5rem .75rem;font-size:.82rem;transition:border-color .15s}.statgen-select:focus{border-color:#8b5cf680}.statgen-select option{color:#fff;background:#1e1e2e}.statgen-select-sm{color:#fff;text-align:center;cursor:pointer;appearance:none;background:#ffffff0f;border:1px solid #ffffff1f;border-radius:6px;outline:none;width:100%;padding:.35rem .4rem;font-size:.82rem;transition:border-color .15s}.statgen-select-sm:focus{border-color:#8b5cf680}.statgen-select-sm option{color:#fff;background:#1e1e2e}.statgen-form-actions{gap:.5rem;display:flex}.statgen-btn{cursor:pointer;border:none;border-radius:8px;justify-content:center;align-items:center;gap:.4rem;padding:.5rem 1rem;font-size:.82rem;font-weight:600;transition:all .15s;display:inline-flex}.statgen-btn-primary{color:#c4b5fd;background:linear-gradient(135deg,#8b5cf666,#8b5cf640);border:1px solid #8b5cf64d}.statgen-btn-primary:hover{background:linear-gradient(135deg,#8b5cf680,#8b5cf659);box-shadow:0 4px 16px #8b5cf633}.statgen-btn-ghost{color:#fff9;background:#ffffff0f;border:1px solid #ffffff1a}.statgen-btn-ghost:hover{color:#ffffffe6;background:#ffffff1a}.statgen-btn-danger{color:#f87171;background:#ef444426;border:1px solid #ef444433}.statgen-btn-danger:hover{background:#ef444440}.statgen-btn-xs{padding:.25rem .5rem;font-size:.72rem}.statgen-btn-icon{width:16px;height:16px}.statgen-btn-icon-sm{width:14px;height:14px}.statgen-btn-secondary{color:#ffffffb3;background:#ffffff14;border:1px solid #ffffff1f}.statgen-btn-secondary:hover{color:#ffffffe6;background:#ffffff24}.statgen-btn-full{width:100%}.statgen-btn-danger-text{color:#f87171!important}.statgen-btn-danger-text:hover{background:#f871711a!important}.statgen-hint{color:#ffffff73;font-size:.78rem;line-height:1.5}.statgen-array-info{color:#c4b5fd;text-align:center;background:#8b5cf61a;border:1px solid #8b5cf633;border-radius:8px;margin-bottom:.75rem;padding:.6rem .8rem;font-size:.82rem;font-weight:600}.statgen-pb-header{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.75rem;display:flex}.statgen-pb-remaining{color:#fff9;font-size:.82rem}.statgen-pb-value{color:#34d399;font-size:1rem;font-weight:700}.statgen-pb-value.over-budget{color:#f87171}.statgen-pb-rules-toggle{margin-bottom:.5rem}.statgen-checkbox-label{color:#c4b5fd;cursor:pointer;align-items:center;gap:.5rem;font-size:.8rem;display:flex}.statgen-checkbox-label input[type=checkbox]{accent-color:#8b5cf6;width:15px;height:15px}.statgen-pb-custom-panel{background:#ffffff08;border:1px solid #ffffff14;border-radius:8px;margin-top:.75rem;padding:.75rem}.statgen-pb-costs-header{color:#fff6;text-align:center;grid-template-columns:1fr 1fr 1fr 30px;gap:.5rem;margin-bottom:.5rem;font-size:.72rem;font-weight:600;display:grid}.statgen-pb-costs-list{flex-direction:column;gap:4px;max-height:200px;margin-bottom:.5rem;display:flex;overflow-y:auto}.statgen-pb-cost-row{text-align:center;color:#ffffffb3;grid-template-columns:1fr 1fr 1fr 30px;align-items:center;gap:.5rem;font-size:.78rem;display:grid}.statgen-pb-cost-row input{color:#fff;text-align:center;background:#ffffff0f;border:1px solid #ffffff1a;border-radius:4px;outline:none;width:100%;padding:.2rem;font-size:.78rem}.statgen-pb-cost-row .pb-delete-btn{color:#ffffff4d;cursor:pointer;background:0 0;border:none;padding:0;font-size:.8rem}.statgen-pb-cost-row .pb-delete-btn:hover{color:#f87171}.statgen-pb-actions{gap:.4rem;margin-top:.5rem;display:flex}.statgen-pb-rules-actions{flex-wrap:wrap;gap:.35rem;margin-top:.5rem;display:flex}.statgen-number-input{align-items:center;gap:4px;display:flex}.statgen-number-btn{color:#ffffffb3;cursor:pointer;background:#ffffff0f;border:1px solid #ffffff1f;border-radius:6px;justify-content:center;align-items:center;width:28px;height:28px;font-size:1rem;transition:all .15s;display:flex}.statgen-number-btn:hover{color:#fff;background:#ffffff1f}.statgen-asi-rows{flex-direction:column;gap:.5rem;margin-top:.5rem;display:flex}.statgen-asi-row{background:#ffffff08;border:1px solid #ffffff0f;border-radius:8px;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.5rem;display:flex}.statgen-asi-row-label{color:#ffffff80;white-space:nowrap;font-size:.75rem;font-weight:600}.statgen-asi-row-abilities{flex:1;gap:4px;display:flex}.statgen-asi-ability-btn{color:#fff6;cursor:pointer;background:#ffffff0a;border:1px solid #ffffff14;border-radius:6px;justify-content:center;align-items:center;width:36px;height:36px;font-size:.7rem;font-weight:700;transition:all .15s;display:flex;position:relative}.statgen-asi-ability-btn:hover{color:#c4b5fd;background:#8b5cf626;border-color:#8b5cf64d}.statgen-asi-ability-btn.selected{color:#c4b5fd;background:#8b5cf640;border-color:#8b5cf666}.statgen-asi-ability-btn .asi-count{color:#fff;background:#8b5cf6;border-radius:50%;justify-content:center;align-items:center;width:14px;height:14px;font-size:.55rem;display:flex;position:absolute;top:-4px;right:-4px}.statgen-feat-ability-btn{color:#34d39980;cursor:pointer;background:#34d3990f;border:1px solid #34d39926;border-radius:6px;justify-content:center;align-items:center;width:36px;height:36px;font-size:.7rem;font-weight:700;transition:all .15s;display:flex;position:relative}.statgen-feat-ability-btn:hover{color:#34d399;background:#34d39926;border-color:#34d3994d}.statgen-feat-ability-btn.selected{color:#34d399;background:#34d39933;border-color:#34d39966}.statgen-feat-ability-btn .asi-count{color:#fff;background:#34d399;border-radius:50%;justify-content:center;align-items:center;width:14px;height:14px;font-size:.55rem;display:flex;position:absolute;top:-4px;right:-4px}.statgen-ability-info{color:#ffffff80;margin-top:.35rem;font-size:.75rem;line-height:1.5}.statgen-ability-info span{color:#34d399;font-weight:600}.statgen-ability-set-selector{margin-bottom:.35rem}.statgen-ability-set-selector select{color:#c4b5fd;cursor:pointer;background:#8b5cf614;border:1px solid #8b5cf633;border-radius:6px;outline:none;width:100%;padding:.3rem .5rem;font-size:.75rem}.statgen-ability-set-selector select option{color:#c4b5fd;background:#1e1e2e}.statgen-bonus-static{color:#34d399;background:#34d3991a;border:1px solid #34d39933;border-radius:6px;margin-bottom:.35rem;padding:.3rem .5rem;font-size:.78rem}.statgen-bonus-choose{background:#fbbf2414;border:1px solid #fbbf2426;border-radius:6px;margin-bottom:.35rem;padding:.3rem .5rem}.statgen-bonus-choose-label{color:#fbbf24cc;margin-bottom:.25rem;font-size:.72rem;font-weight:600;display:block}.statgen-bonus-checkbox{color:#fff9;cursor:pointer;align-items:center;gap:.25rem;margin-right:.5rem;font-size:.72rem;display:inline-flex}.statgen-bonus-checkbox input[type=checkbox]{accent-color:#fbbf24;width:13px;height:13px}.statgen-bonus-weighted{background:#60a5fa14;border:1px solid #60a5fa26;border-radius:6px;margin-bottom:.35rem;padding:.3rem .5rem}.statgen-bonus-weighted-label{color:#60a5facc;margin-bottom:.25rem;font-size:.72rem;font-weight:600;display:block}.statgen-weighted-row{flex-wrap:wrap;gap:.35rem;display:flex}.statgen-weighted-select{color:#fff;cursor:pointer;appearance:none;background:#ffffff0f;border:1px solid #ffffff1f;border-radius:4px;outline:none;padding:.2rem .4rem;font-size:.72rem}.statgen-weighted-select option{color:#fff;background:#1e1e2e}.statgen-roll-results{flex-wrap:wrap;gap:.35rem;margin:.5rem 0;display:flex}.statgen-roll-value{color:#c4b5fd;background:#8b5cf626;border:1px solid #8b5cf640;border-radius:6px;justify-content:center;align-items:center;min-width:32px;height:32px;padding:0 .35rem;font-size:.85rem;font-weight:700;display:inline-flex}.statgen-roll-total{color:#ffffff80;margin-bottom:.5rem;font-size:.78rem}.statgen-td-species,.statgen-td-background{color:#34d399;font-size:.82rem;font-weight:600}.statgen-td-total.over-cap{color:#f87171;cursor:help}.statgen-main{min-width:0}.statgen-table-wrap{backdrop-filter:blur(4px);background:#ffffff0f;border:1px solid #ffffff1a;border-radius:12px;padding:1.25rem;overflow-x:auto}.statgen-table{border-collapse:separate;border-spacing:0;width:100%}.statgen-th{color:#ffffff80;text-align:center;letter-spacing:.05em;border-bottom:1px solid #ffffff14;padding:.5rem .25rem;font-size:.78rem;font-weight:700}.statgen-th-label{width:60px}.statgen-td{text-align:center;vertical-align:middle;padding:.4rem .25rem}.statgen-td-label{color:#ffffff80;text-align:right;white-space:nowrap;padding-right:.75rem;font-size:.75rem;font-weight:600}.statgen-td-total-label{color:#fffc}.statgen-td-total{color:#fff;background:#ffffff08;border-radius:6px;font-size:1.1rem;font-weight:700}.statgen-td-mod{color:#ffffffb3;font-size:.85rem;font-weight:600}.statgen-td-mod.positive{color:#34d399}.statgen-td-mod.negative{color:#f87171}.statgen-row-base td:first-child,.statgen-row-user td:first-child{border-bottom:1px solid #ffffff0a}.statgen-actions-bar{justify-content:flex-end;gap:.5rem;margin-top:1rem;display:flex}.statgen-search-input{margin-bottom:.4rem;padding:.35rem .6rem;font-size:.82rem}.statgen-tasha-toggle{background:#8b5cf60f;border:1px solid #8b5cf626;border-radius:8px;margin-top:.6rem;padding:.5rem .7rem}.statgen-tasha-info{color:#ffffff73;margin-top:.4rem;font-size:.72rem;line-height:1.4}.statgen-bonus-tasha{background:#8b5cf614;border:1px solid #8b5cf633;border-radius:6px;margin-bottom:.35rem;padding:.4rem .6rem}.statgen-bonus-tasha-label{color:#c4b5fd;margin-bottom:.4rem;font-size:.78rem;display:block}.statgen-tasha-row{flex-wrap:wrap;gap:.4rem;display:flex}.statgen-tasha-item{align-items:center;gap:.2rem;display:flex}.statgen-tasha-value{color:#c4b5fd;text-align:center;min-width:40px;font-size:.75rem}.statgen-tasha-btn{color:#c4b5fd;cursor:pointer;background:#8b5cf61a;border:1px solid #8b5cf64d;border-radius:4px;justify-content:center;align-items:center;width:22px;height:22px;font-size:.85rem;transition:all .15s;display:flex}.statgen-tasha-btn:hover{background:#8b5cf640;border-color:#8b5cf680}.statgen-asi-mode-toggle{gap:.25rem;margin-right:.5rem;display:flex}.statgen-asi-mode-btn{color:#ffffff80;cursor:pointer;background:0 0;border:1px solid #ffffff1a;border-radius:4px;padding:.2rem .5rem;font-size:.7rem;transition:all .15s}.statgen-asi-mode-btn.active{color:#c4b5fd;background:#8b5cf633;border-color:#8b5cf666}.statgen-asi-mode-btn:hover{border-color:#8b5cf64d}.statgen-asi-feat-pick,.statgen-feat-pick{white-space:nowrap;text-overflow:ellipsis;max-width:120px;overflow:hidden}.statgen-feats-info{margin-top:.5rem}.statgen-feat-group{margin-bottom:.35rem}.statgen-feat-static{background:#60a5fa14;border:1px solid #60a5fa26;border-radius:6px;padding:.3rem .5rem}.statgen-feat-static-name{color:#60a5fae6;font-size:.75rem;font-weight:600}.statgen-feat-choose{background:#fbbf240f;border:1px solid #fbbf241f;border-radius:6px;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.3rem .5rem;display:flex}.statgen-feat-choose-label{color:#fbbf24cc;font-size:.72rem;font-weight:600}.statgen-dialog-overlay{z-index:10000;backdrop-filter:blur(4px);background:#0009;justify-content:center;align-items:center;width:100%;height:100%;display:none;position:fixed;top:0;left:0}.statgen-dialog{background:#1e1e2e;border:1px solid #ffffff1f;border-radius:12px;flex-direction:column;min-width:320px;max-width:500px;max-height:80vh;padding:1.25rem;display:flex;box-shadow:0 20px 60px #00000080}.statgen-dialog-feat-picker{max-width:600px;max-height:85vh}.statgen-dialog-header{margin-bottom:.75rem}.statgen-dialog-title{color:#ffffffe6;font-size:.95rem;font-weight:700}.statgen-dialog-body{flex:1;margin-bottom:.75rem;overflow-y:auto}.statgen-dialog-message{color:#ffffffb3;margin-bottom:.5rem;font-size:.85rem;line-height:1.5}.statgen-dialog-textarea{color:#fff;resize:vertical;box-sizing:border-box;background:#ffffff0f;border:1px solid #ffffff1f;border-radius:8px;outline:none;width:100%;padding:.5rem;font-family:monospace;font-size:.82rem}.statgen-dialog-textarea:focus{border-color:#8b5cf680}.statgen-dialog-footer{justify-content:flex-end;gap:.5rem;display:flex}.statgen-dialog-search{color:#fff;box-sizing:border-box;background:#ffffff0f;border:1px solid #ffffff1f;border-radius:8px;outline:none;width:100%;margin-bottom:.5rem;padding:.5rem .75rem;font-size:.82rem}.statgen-dialog-search:focus{border-color:#8b5cf680}.statgen-feat-list{max-height:400px;overflow-y:auto}.statgen-feat-item{cursor:pointer;border-radius:6px;align-items:center;gap:.5rem;padding:.5rem .6rem;transition:background .1s;display:flex}.statgen-feat-item:hover{background:#8b5cf626}.statgen-feat-name{color:#ffffffd9;flex:1;font-size:.82rem;font-weight:600}.statgen-feat-category{color:#fbbf24b3;background:#fbbf241a;border-radius:3px;padding:.1rem .35rem;font-size:.68rem}.statgen-feat-source{color:#ffffff59;font-size:.68rem}@media (width<=600px){.statgen-mode-tabs{grid-template-columns:repeat(2,1fr)}.statgen-table-wrap{padding:.75rem}.statgen-th,.statgen-td{padding:.3rem .15rem}.statgen-td-total{font-size:.95rem}.statgen-select-sm{padding:.25rem;font-size:.72rem}.statgen-input-sm{width:42px;font-size:.72rem}.statgen-dialog{min-width:280px;margin:1rem}}.animate-slide-up{animation:.25s cubic-bezier(.16,1,.3,1) forwards slideUp}.animate-slide-down{animation:.2s cubic-bezier(.16,1,.3,1) forwards slideDown}.page-header.is-fixed{z-index:1000;border-bottom:1px solid #ffffff0f;border-radius:0 0 18px 18px;width:calc(100% - 32px);max-width:1400px;margin-bottom:0;padding-top:12px;padding-bottom:14px;top:0;left:50%;transform:translate(-50%);box-shadow:0 4px 24px #00000059,0 0 0 1px #ffffff0a,inset 0 1px #ffffff0a;position:fixed!important}.page-header .mobile-search-btn{display:none}.search-box-wrapper .search-dropdown{-webkit-backdrop-filter:blur(20px);z-index:1000;opacity:0;background:linear-gradient(#0f172af2,#0f1e2dfa);border:1px solid #ffffff1a;border-radius:.5rem;max-height:340px;margin-top:.5rem;transition:all .2s ease-out;display:none;position:absolute;top:100%;left:0;right:0;overflow-y:auto;transform:translateY(-.5rem);box-shadow:0 10px 30px #0000004d}.search-box-wrapper .search-dropdown.is-open{opacity:1;display:block;transform:translateY(0)}.search-box-wrapper .autocomplete-list{margin:0;padding:.375rem;list-style:none}.search-box-wrapper .autocomplete-item{cursor:pointer;border:1px solid #0000;border-radius:.5rem;flex-direction:column;gap:.2rem;padding:.65rem .85rem;transition:all .18s;display:flex}.search-box-wrapper .autocomplete-item:hover,.search-box-wrapper .autocomplete-item.selected{background:#22d3ee14;border-color:#22d3ee33}.search-box-wrapper .autocomplete-item.selected{background:#22d3ee1f}.search-box-wrapper .autocomplete-item-content{flex-direction:column;gap:.15rem;display:flex}.search-box-wrapper .autocomplete-item-name{color:#ffffffeb;font-size:.92rem;font-weight:600}.search-box-wrapper .autocomplete-item-name mark{color:#22d3eeeb;background:#22d3ee1f;border-radius:.25rem;padding:0 .18rem}.search-box-wrapper .autocomplete-item-meta{color:#ffffff7a;font-size:.78rem}@media (width<=767px){.page-header .mobile-search-btn{display:flex}.page-header .search-box-wrapper{display:none}.page-header .search-box-wrapper.is-mobile-active{width:100%;animation:.2s cubic-bezier(.16,1,.3,1) forwards slideDown;display:block}}