*,:before,:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;overflow:hidden}body{color:#e2e8f0;background:#0f1117;font-family:system-ui,Segoe UI,Roboto,sans-serif}#root{flex-direction:column;align-items:center;width:100%;height:100vh;display:flex;overflow:hidden}.root-layout{flex-direction:column;width:100%;height:100vh;display:flex;overflow:hidden}.top-bar{background:#1e2333;border-bottom:1px solid #334155;flex-shrink:0;align-items:center;gap:12px;width:100%;height:8vh;padding:0 16px;display:flex}.top-bar-logo{height:80%}.discord-btn{-webkit-backdrop-filter:blur(8px);background:#ffffff12;border:1px solid #ffffff2e;border-radius:999px;align-items:center;gap:10px;margin-left:auto;margin-right:2rem;padding:5px 5px 5px 16px;text-decoration:none;transition:background .2s,border-color .2s;display:flex}.discord-btn:hover{background:#ffffff21;border-color:#ffffff52}.discord-btn-icon{background:#ffffff26;border:1.5px solid #ffffff80;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:46px;height:46px;display:flex;overflow:visible}.discord-btn-icon img{width:120%;height:120%}.discord-btn-text{color:#ffffffd9;max-width:320px;font-size:.9rem;font-weight:500;line-height:1.3}.bottom-bar{background:#1e2333;border-top:1px solid #334155;flex-direction:column;flex-shrink:0;justify-content:center;align-items:center;gap:2px;width:100%;height:8vh;display:flex}.bottom-bar-credit{color:#fff;letter-spacing:.02em;font-size:1.3rem;font-weight:700}.bottom-bar-version{color:#64748b;letter-spacing:.03em;font-size:.65rem}.app{flex-direction:row;flex:1;justify-content:center;width:100%;padding:0 16px;display:flex;overflow:hidden}.left-panel{flex-direction:column;flex-shrink:0;width:30%;height:100%;margin-right:16px;display:flex;overflow:hidden}.side-panel{border:none;border-left:1px solid #334155;border-radius:0;flex-direction:column;flex-shrink:0;width:30%;height:100%;display:flex;overflow:hidden}.panel-top{border-bottom:1px solid #2d3554;flex-direction:column;flex-shrink:0;gap:10px;padding:16px;display:flex}.shop-header{justify-content:space-between;align-items:center;gap:8px;display:flex}.btn-save-shop{color:#93c5fd;cursor:pointer;white-space:nowrap;background:#1e3a5f;border:1px solid #3b82f6;border-radius:6px;flex-shrink:0;padding:4px 12px;font-size:.8rem;font-weight:600}.btn-save-shop:hover:not(:disabled){color:#fff;background:#2563eb}.btn-save-shop:disabled{opacity:.4;cursor:default}.panel-title{color:#f1f5f9;font-size:1rem;font-weight:700}.panel-input{color:#f1f5f9;background:#111827;border:1px solid #334155;border-radius:8px;outline:none;width:100%;padding:8px 12px;font-size:.88rem;transition:border-color .2s}.panel-input:focus{border-color:#6366f1}.panel-hint{text-align:center;color:#64748b;margin-top:32px;font-size:.88rem;list-style:none}.panel-current{flex-direction:column;display:flex;overflow:hidden}.current-list{flex-direction:column;flex:1;gap:6px;padding:12px;list-style:none;display:flex;overflow-y:auto}.current-list::-webkit-scrollbar{width:6px}.current-list::-webkit-scrollbar-track{background:#1e2333;border-radius:3px}.current-list::-webkit-scrollbar-thumb{background:#334155;border-radius:3px}.current-list::-webkit-scrollbar-thumb:hover{background:#6366f1}.current-item-wrapper{background:#1a1f2e;border:1px solid #2d3554;border-radius:8px;flex-direction:column;display:flex;overflow:hidden}.current-item{align-items:center;gap:8px;padding:6px 8px;display:flex}.btn-remove{color:#f87171;cursor:pointer;background:#3b1a1a;border:none;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:26px;height:26px;margin-left:auto;font-size:1rem;transition:background .15s;display:flex}.btn-remove:hover{color:#fff;background:#7f1d1d}.save-header{border-bottom:2px solid #2d3554;flex-direction:row;flex-shrink:0;gap:10px;max-height:48%;padding:14px;display:flex;overflow:hidden}.save-header-left{flex-direction:column;flex-shrink:0;gap:8px;width:50%;display:flex}.save-header-right{border-left:1px solid #2d3554;flex-direction:column;flex:1;gap:6px;padding-left:10px;display:flex;overflow:hidden}.save-header-list{flex-direction:column;flex:1;gap:6px;max-height:148px;display:flex;overflow-y:auto}.save-header-list::-webkit-scrollbar{width:4px}.save-header-list::-webkit-scrollbar-track{background:#1e2333}.save-header-list::-webkit-scrollbar-thumb{background:#334155;border-radius:3px}.current-section{flex-direction:column;flex:1;display:flex;overflow:hidden}.current-top{border-bottom:1px solid #2d3554;flex-shrink:0;justify-content:space-between;align-items:center;padding:8px 12px;display:flex}.panel-shop{flex-direction:column;display:flex;overflow:hidden}.save-form{gap:8px;display:flex}.load-form-label{color:#94a3b8;text-transform:uppercase;letter-spacing:.05em;margin-top:4px;font-size:.8rem;font-weight:700}.save-form .panel-input{flex:1}.btn-save{color:#fff;cursor:pointer;white-space:nowrap;background:#6366f1;border:none;border-radius:8px;flex-shrink:0;padding:8px 16px;font-size:.85rem;font-weight:700;transition:background .15s}.btn-save:hover:not(:disabled){background:#4f46e5}.btn-save:disabled{color:#64748b;cursor:not-allowed;background:#334155}.saved-body{flex-direction:column;flex:1;gap:8px;padding:12px;display:flex;overflow-y:auto}.saved-body::-webkit-scrollbar{width:6px}.saved-body::-webkit-scrollbar-track{background:#1e2333;border-radius:3px}.saved-body::-webkit-scrollbar-thumb{background:#334155;border-radius:3px}.saved-body::-webkit-scrollbar-thumb:hover{background:#6366f1}.saved-entry{background:#1a1f2e;border:1px solid #2d3554;border-radius:10px;flex-direction:column;gap:8px;padding:10px 12px;display:flex}.saved-name{color:#f1f5f9;font-size:.9rem;font-weight:600}.saved-actions{gap:6px;display:flex}.btn-action{cursor:pointer;color:#93c5fd;background:#1e3a5f;border:none;border-radius:6px;padding:5px 12px;font-size:.78rem;font-weight:600;transition:background .15s,color .15s}.btn-action:hover{color:#fff;background:#1d4ed8}.btn-delete{color:#f87171;background:#3b1a1a}.btn-delete:hover{color:#fff;background:#7f1d1d}.multiplier-row{align-items:center;gap:10px;display:flex}.mult-label{color:#94a3b8;flex-shrink:0;font-size:.85rem}.mult-input{color:#f1f5f9;background:#111827;border:1px solid #334155;border-radius:8px;outline:none;width:80px;padding:6px 10px;font-size:.9rem;transition:border-color .2s}.mult-input:focus{border-color:#6366f1}.current-materials{border-top:1px solid #2d3554;flex-direction:column;gap:4px;padding:6px 8px;list-style:none;display:flex}.current-item .mat-name{flex:1}.qntd-label{color:#f1f5f9;white-space:nowrap;flex-shrink:0;font-size:.88rem;font-weight:700}.mult-unit{color:#6366f1;font-size:1rem;font-weight:700}.shop-list{flex-direction:column;flex:1;gap:4px;padding:12px;list-style:none;display:flex;overflow-y:auto}.shop-list::-webkit-scrollbar{width:6px}.shop-list::-webkit-scrollbar-track{background:#1e2333;border-radius:3px}.shop-list::-webkit-scrollbar-thumb{background:#334155;border-radius:3px}.shop-list::-webkit-scrollbar-thumb:hover{background:#6366f1}.shop-item{cursor:default;background:#1a1f2e;border:1px solid #0000;border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:6px 8px;transition:background .15s,border-color .15s;display:flex}.shop-left{align-items:center;gap:6px;min-width:0;display:flex}.shop-right{flex-shrink:0;align-items:center;gap:6px;display:flex}.shop-item:hover{background:#151d2e}.shop-item.have-enough{background:#1f1710;border-color:#c2610c}.shop-item.have-enough:hover{background:#261a0a}.shop-divider{color:#64748b;flex-shrink:0;font-size:1.15rem;font-weight:800;line-height:1}.shop-qty{text-align:right;color:#94a3b8;font-variant-numeric:tabular-nums;white-space:nowrap;flex-shrink:0;min-width:7ch;font-size:.88rem;display:inline-block}.have-input{color:#f1f5f9;font-variant-numeric:tabular-nums;text-align:right;background:#111827;border:1px solid #334155;border-radius:6px;flex-shrink:0;width:calc(7ch + 20px);padding:3px 6px;font-size:.8rem}.have-input:focus{border-color:#6366f1;outline:none}.shop-item.have-enough .have-input{border-color:#c2610c}.craft-checkbox{appearance:none;cursor:pointer;background:#111827;border:2px solid #334155;border-radius:5px;flex-shrink:0;width:20px;height:20px;margin-left:auto;margin-right:1rem;transition:border-color .15s,background .15s;position:relative}.craft-checkbox:checked{background:#6366f1;border-color:#6366f1}.craft-checkbox:checked:after{content:"";border:2px solid #fff;border-top:none;border-left:none;width:5px;height:9px;position:absolute;top:2px;left:5px;transform:rotate(45deg)}.craft-checkbox:hover{border-color:#6366f1}.header{text-align:center;flex-shrink:0;padding:32px 0 20px}.header h1{color:#f8fafc;margin-bottom:6px;font-size:2rem;font-weight:700}.subtitle{color:#94a3b8;margin-bottom:20px;font-size:.95rem}.mode-tabs{justify-content:center;gap:8px;margin-bottom:16px;display:flex}.mode-tab{color:#94a3b8;cursor:pointer;background:#1e2333;border:1px solid #334155;border-radius:20px;padding:7px 20px;font-size:.88rem;font-weight:600;transition:background .15s,color .15s,border-color .15s}.mode-tab:hover{color:#e2e8f0;border-color:#6366f1}.mode-tab.active{color:#fff;background:#6366f1;border-color:#6366f1}.search{color:#f1f5f9;background:#1e2333;border:1px solid #334155;border-radius:10px;outline:none;width:100%;padding:12px 18px;font-size:1rem;transition:border-color .2s}.search:focus{border-color:#6366f1}.hint{text-align:center;color:#64748b;margin-top:48px}.count{color:#94a3b8;margin-bottom:16px;font-size:.85rem}.results{flex-direction:column;flex:1;gap:12px;padding-bottom:24px;padding-right:4px;display:flex;overflow-y:auto}.results::-webkit-scrollbar{width:6px}.results::-webkit-scrollbar-track{background:#1e2333;border-radius:3px}.results::-webkit-scrollbar-thumb{background:#334155;border-radius:3px}.results::-webkit-scrollbar-thumb:hover{background:#6366f1}.card{text-align:left;background:#1a1f2e;border:1px solid #2d3554;border-radius:12px;padding:16px}.card.checked{background:#1f1710;border-color:#c2610c}.card-header{cursor:default;text-align:left;align-items:center;gap:12px;width:100%;padding:0;display:flex}.chevron{color:#fff;letter-spacing:.04em;cursor:pointer;white-space:nowrap;background:#6366f1;border:none;border-radius:8px;flex-shrink:0;padding:8px 18px;font-size:.85rem;font-weight:700;transition:background .15s}.chevron:hover{background:#4f46e5}.card-header+.materials{margin-top:12px}.craft-img{object-fit:contain;flex-shrink:0;width:40px;height:40px}.card-info{flex-direction:column;gap:4px;display:flex}.craft-name{color:#f1f5f9;font-size:1rem;font-weight:600}.badges{flex-wrap:wrap;gap:6px;display:flex}.badge{text-transform:uppercase;letter-spacing:.05em;border-radius:20px;padding:2px 8px;font-size:.7rem;font-weight:600}.badge.rank{color:#a5b4fc;background:#312e81}.badge.prof{color:#86efac;background:#14532d}.badge.skill{color:#fcd34d;background:#3b2f00}.badge.time{color:#93c5fd;background:#1e3a5f}.materials{flex-direction:column;gap:4px;list-style:none;display:flex}.mat{background:#111827;border-radius:7px;align-items:center;gap:8px;padding:5px 8px;display:flex}.mat:hover{background:#151d2e}.card.checked .mat{background:#1c1208}.card.checked .mat:hover{background:#261a0a}.tooltip{z-index:1000;pointer-events:none;background:#0d1117;border:1px solid #334155;border-radius:10px;min-width:180px;max-width:300px;padding:10px 12px;position:fixed;box-shadow:0 8px 24px #00000080}.tooltip-title{color:#6366f1;text-transform:uppercase;letter-spacing:.06em;margin-bottom:8px;font-size:.72rem;font-weight:700;display:block}.tooltip-empty{color:#64748b;font-size:.8rem}.tooltip-hint{color:#94a3b8;font-size:.82rem;line-height:1.45}.tooltip-list{flex-direction:column;gap:5px;max-height:180px;padding-right:2px;list-style:none;display:flex;overflow-y:hidden}.tooltip-source{align-items:center;gap:7px;display:flex}.tooltip-creature-img{object-fit:contain;width:28px;height:28px;image-rendering:pixelated;flex-shrink:0}.tooltip-creature-name{color:#cbd5e1;white-space:nowrap;text-overflow:ellipsis;font-size:.82rem;overflow:hidden}.mat.highlighted{background:#1c2d1a;border:1px solid #22c55e44}.mat-img{object-fit:contain;flex-shrink:0;width:24px;height:24px}.mat-qty{color:#94a3b8;min-width:36px;font-size:.82rem}.mat-name{color:#cbd5e1;font-size:.88rem}.mat.highlighted .mat-name{color:#86efac;font-weight:600}
