.alchemy-intro,.alchemy-toolbar,.alchemy-tier,.alchemy-recipe,.alchemy-simple,.alchemy-cache{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.alchemy-intro{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1rem;padding:1.2rem 1.3rem;background:linear-gradient(120deg,rgba(51,255,167,.1),var(--surface) 56%)}
.alchemy-intro h2{margin:.1rem 0 .35rem;font-size:1.45rem}.alchemy-intro p{margin:0;color:var(--text-muted)}.alchemy-intro__link{white-space:nowrap;color:var(--accent);font-weight:750;text-decoration:none}.alchemy-intro__link span{margin-left:.4rem;font-size:1.3em}
.alchemy-tiers{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.55rem;margin-bottom:1rem}.alchemy-tier{display:grid;gap:.8rem;padding:.75rem}.alchemy-tier p,.alchemy-tier h3,.alchemy-tier span,.alchemy-tier__sigil em{margin:0}.alchemy-tier p{font-size:.68rem;color:var(--accent);font-weight:800;letter-spacing:.08em;text-transform:uppercase}.alchemy-tier h3{font-size:.95rem}.alchemy-tier>div>span{font-size:.75rem;color:var(--text-muted)}.alchemy-tier__sigil{display:grid;gap:.35rem}.alchemy-tier__sigil em{font-size:.72rem;color:var(--text-muted);font-style:normal}
.alchemy-toolbar{display:grid;gap:.75rem;margin-bottom:1rem;padding:.75rem;min-width:0}.alchemy-tabs,.alchemy-toolbar__filters{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem;min-width:0}.alchemy-chips{display:flex;align-items:center;flex-wrap:nowrap;gap:.4rem;width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}.alchemy-chips::-webkit-scrollbar{display:none}.alchemy-tab,.alchemy-chip{flex:0 0 auto;white-space:nowrap;border:1px solid var(--border);border-radius:999px;background:transparent;color:var(--text-muted);padding:.42rem .75rem;font:inherit;font-size:.84rem;font-weight:700;cursor:pointer}.alchemy-tab.is-active,.alchemy-chip.is-active{border-color:rgba(51,255,167,.55);background:rgba(51,255,167,.12);color:var(--accent)}.alchemy-search{flex:1 1 15rem}.alchemy-search input{box-sizing:border-box;width:100%;min-height:2.25rem;padding:.4rem .65rem;border:1px solid var(--border);border-radius:.5rem;background:rgba(0,0,0,.2);color:var(--text);font:inherit}.alchemy-summary{margin:0 0 0 auto;color:var(--text-muted);font-size:.82rem}
.alchemy-recipe-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));gap:.7rem}.alchemy-recipe{overflow:hidden}.alchemy-recipe>header{display:flex;justify-content:space-between;gap:.8rem;padding:.75rem;border-bottom:1px solid var(--border)}.alchemy-recipe>header>div{display:flex;gap:.55rem;min-width:0}.alchemy-recipe>header>strong{color:var(--accent);font-size:1.1rem;text-align:right}.alchemy-recipe>header>strong small{display:block;font-size:.65rem;font-weight:500;color:var(--text-muted)}.alchemy-tier-mark{display:inline-flex;align-items:center;align-self:start;padding:.13rem .38rem;border-radius:.35rem;background:rgba(51,255,167,.12);color:var(--accent);font-size:.68rem;font-weight:850}.alchemy-recipe__flow{display:grid;grid-template-columns:1fr auto 1fr;gap:.65rem;padding:.75rem}.alchemy-recipe__flow>div{display:grid;gap:.35rem}.alchemy-recipe__flow p,.alchemy-cache>p{margin:0;color:var(--text-muted);font-size:.73rem;font-weight:750}.alchemy-arrow{align-self:center;color:var(--accent);font-size:1.2rem}.alchemy-recipe footer{padding:.55rem .75rem;border-top:1px solid var(--border);color:var(--text-muted);font-size:.77rem}
.alchemy-item{display:flex;align-items:center;gap:.38rem;min-width:0;color:inherit;text-decoration:none}.alchemy-item:hover b{color:var(--accent)}.alchemy-item img{width:28px;height:28px;object-fit:contain}.alchemy-item span{min-width:0}.alchemy-item b,.alchemy-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.alchemy-item b{font-size:.82rem}.alchemy-item small{margin-top:.08rem;color:var(--text-muted);font-size:.67rem;font-weight:500}
.alchemy-simple-grid,.alchemy-cache-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,245px),1fr));gap:.6rem}.alchemy-simple{display:flex;align-items:start;gap:.55rem;padding:.7rem}.alchemy-section+.alchemy-section{margin-top:1.2rem}.alchemy-section h3{margin:0 0 .6rem;font-size:1rem}.alchemy-cache{padding:.75rem}.alchemy-cache header{display:flex;justify-content:space-between;gap:.5rem}.alchemy-cache>p{margin-top:.75rem}.alchemy-cache__contents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;margin:.4rem 0 .7rem}.alchemy-cache details{border-top:1px solid var(--border);padding-top:.55rem}.alchemy-cache summary{cursor:pointer;color:var(--accent);font-weight:700;font-size:.82rem}.alchemy-cache summary b{margin-left:.25rem}.alchemy-cache ul{display:grid;gap:.35rem;margin:.55rem 0 0;padding:0;list-style:none}.alchemy-cache li{display:flex;justify-content:space-between;gap:.5rem;font-size:.78rem}.alchemy-cache li a{color:var(--text)}.alchemy-cache li span{color:var(--text-muted)}
.alchemy-result-note{margin:0 0 .65rem;color:var(--text-muted);font-size:.82rem}.alchemy-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:.65rem}.alchemy-product{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.55rem;width:100%;padding:.75rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);font:inherit;text-align:left;cursor:pointer}.alchemy-product:hover,.alchemy-product:focus-visible,.alchemy-product.is-selected{border-color:rgba(51,255,167,.52);background:rgba(51,255,167,.08);outline:none}.alchemy-product>img{width:36px;height:36px;object-fit:contain}.alchemy-product__name{min-width:0}.alchemy-product__name b,.alchemy-product__name small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.alchemy-product__name b{font-size:.86rem}.alchemy-product__name small{margin-top:.12rem;color:var(--text-muted);font-size:.68rem}.alchemy-product__meta{grid-column:2;color:var(--accent);font-size:.68rem;font-weight:700}.alchemy-product-detail{margin:0 0 1rem;border:1px solid rgba(51,255,167,.35);border-radius:var(--radius);background:linear-gradient(145deg,rgba(51,255,167,.09),var(--surface) 36%);overflow:hidden}.alchemy-product-detail__head{display:flex;justify-content:space-between;align-items:start;gap:1rem;padding:1rem}.alchemy-product-detail__head p,.alchemy-product-detail__head h3,.alchemy-product-detail__head span{margin:0}.alchemy-product-detail__head p{color:var(--accent);font-size:.72rem;font-weight:800;letter-spacing:.08em}.alchemy-product-detail__head h3{margin-top:.18rem;font-size:1.25rem}.alchemy-product-detail__head span{display:block;margin-top:.15rem;color:var(--text-muted);font-size:.78rem}.alchemy-product-detail__head>a{color:var(--accent);font-size:.82rem;font-weight:750;text-decoration:none;white-space:nowrap}.alchemy-product-detail__recipes{padding:.75rem;border-top:1px solid var(--border)}.alchemy-product-detail__recipes .alchemy-recipe{max-width:760px}.alchemy-source-card{display:flex;align-items:center;justify-content:space-between;gap:2rem;min-height:15rem;padding:1.4rem;border:1px solid var(--border);border-radius:var(--radius);background:linear-gradient(135deg,rgba(51,255,167,.1),var(--surface) 55%,rgba(0,0,0,.1))}.alchemy-source-card h3{margin:.2rem 0 .55rem;font-size:1.35rem}.alchemy-source-card p:not(.eyebrow){max-width:40rem;margin:.35rem 0;color:var(--text-muted);line-height:1.7}.alchemy-source-card__status{padding:.65rem .8rem;border:1px dashed rgba(51,255,167,.45);border-radius:.55rem;color:var(--accent);font-size:.82rem;font-weight:750;white-space:nowrap}
@media (max-width:850px){.alchemy-tiers{grid-template-columns:repeat(2,minmax(0,1fr))}.alchemy-intro{align-items:start;flex-direction:column}.alchemy-summary{margin-left:0}.alchemy-cache__contents{grid-template-columns:1fr}}
@media (max-width:500px){.alchemy-recipe__flow{grid-template-columns:1fr}.alchemy-arrow{display:none}.alchemy-tiers{grid-template-columns:1fr}.alchemy-toolbar__filters{align-items:stretch}.alchemy-search{flex-basis:100%}}
.alchemy-cache__hint{margin:.55rem 0 0;color:var(--text-muted);font-size:.72rem;line-height:1.5}
.alchemy-recipe-section{padding-top:.2rem}.alchemy-section__head{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin:0 0 .65rem}.alchemy-section__head h3{margin:0;font-size:1.12rem}.alchemy-section__head p{margin:.15rem 0 0;color:var(--text-muted);font-size:.78rem}.alchemy-section__head>span{color:var(--accent);font-size:.8rem;font-weight:750;white-space:nowrap}.alchemy-recipe footer span{display:inline-block;margin-right:.45rem;color:var(--accent);font-weight:750}
.alchemy-product{display:block;padding:0;overflow:hidden}.alchemy-product__select{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.55rem;width:100%;padding:.75rem;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.alchemy-product__select:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.alchemy-product__detail{padding:.75rem;border-top:1px solid var(--border);background:rgba(0,0,0,.1)}.alchemy-product__detail .alchemy-recipe{max-width:780px}.alchemy-cache-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr))}.alchemy-cache__drops{margin-top:.8rem;border-top:1px solid var(--border);padding-top:.65rem}.alchemy-cache__drops h4{display:flex;justify-content:space-between;margin:0 0 .35rem;font-size:.82rem}.alchemy-cache__drops h4 span{color:var(--accent)}.alchemy-cache__drops details{padding:.5rem 0;border-top:1px solid rgba(255,255,255,.07)}.alchemy-cache__drops summary{display:flex;justify-content:space-between;gap:.5rem}.alchemy-cache__drops summary a{color:var(--text);text-decoration:none;font-weight:700}.alchemy-cache__drops summary a:hover{color:var(--accent)}.alchemy-cache__drops summary span{color:var(--text-muted);font-size:.75rem}.alchemy-cache__monster-groups{display:grid;gap:.55rem;margin-top:.55rem}.alchemy-cache__monster-groups section{padding:.45rem .55rem;border-radius:.4rem;background:rgba(255,255,255,.035)}.alchemy-cache__monster-groups h5{margin:0 0 .35rem;color:var(--accent);font-size:.73rem}.alchemy-cache__monster-groups ul{margin:0}.alchemy-cache__monster-groups li{padding:.14rem 0}
.alchemy-item-wrap{display:flex;align-items:center;gap:.42rem;min-width:0}.alchemy-item-wrap>.alchemy-item{flex:1 1 auto;min-width:0}.alchemy-item__amount{flex:0 0 auto;margin:0;padding:.12rem .36rem;border-radius:999px;background:rgba(51,255,167,.12);color:var(--accent);font-size:.72rem;font-style:normal;font-weight:800;line-height:1;white-space:nowrap}.alchemy-recipe__flow{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:.8rem}.alchemy-recipe__flow>div{gap:.45rem}.alchemy-recipe__flow .alchemy-item-wrap{padding:.25rem .35rem;border-radius:.35rem;background:rgba(255,255,255,.035)}.alchemy-product__detail .alchemy-recipe{box-shadow:none}.alchemy-cache{padding:0;overflow:hidden}.alchemy-cache>header{align-items:start;padding:.85rem}.alchemy-cache>header>.alchemy-item-wrap{min-width:0}.alchemy-cache__drop-fold{border-top:1px solid var(--border)}.alchemy-cache__drop-fold>summary{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:.5rem;padding:.75rem .85rem;color:var(--text);cursor:pointer;font-size:.86rem;font-weight:750}.alchemy-cache__drop-fold>summary b{color:var(--accent)}.alchemy-cache__drop-fold>summary small{color:var(--text-muted);font-size:.7rem;font-weight:600}.alchemy-cache__drop-fold[open]>summary small{font-size:0}.alchemy-cache__drop-fold[open]>summary small:after{content:"收起";font-size:.7rem}.alchemy-cache__locations{border-top:1px solid rgba(255,255,255,.06);padding:.2rem .85rem .65rem}.alchemy-cache__locations>details{padding:.55rem 0;border-bottom:1px solid rgba(255,255,255,.07)}.alchemy-cache__locations>details>summary{display:flex;justify-content:space-between;gap:.55rem;cursor:pointer}.alchemy-cache__locations summary a{color:var(--text);font-size:.83rem;font-weight:700;text-decoration:none}.alchemy-cache__locations summary a:hover{color:var(--accent)}.alchemy-cache__locations summary>span{color:var(--text-muted);font-size:.73rem;white-space:nowrap}.alchemy-cache__monster-groups{padding-left:.45rem}.alchemy-cache__monster-groups li a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:700px){.alchemy-cache-grid{grid-template-columns:1fr}}
.alchemy-toolbar__filters[hidden],.alchemy-chips[hidden]{display:none!important}
.alchemy-product__lead{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.55rem;padding:.72rem;cursor:pointer}.alchemy-product__lead>img{width:38px;height:38px;object-fit:contain}.alchemy-product__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.alchemy-product__entity{color:var(--text);font-size:.86rem;font-weight:800;text-decoration:none}.alchemy-product__entity:hover{color:var(--accent)}.alchemy-product__toggle{display:grid;place-items:center;width:1.35rem;height:1.35rem;border-radius:50%;color:var(--accent);font-size:1.25rem;line-height:1;transition:transform .16s ease,background .16s ease}.alchemy-product:hover .alchemy-product__toggle{background:rgba(51,255,167,.1)}.alchemy-product.is-selected .alchemy-product__toggle{transform:rotate(180deg)}.alchemy-product.is-selected .alchemy-product__lead{border-bottom:1px solid var(--border)}
.alchemy-cache__contents,.alchemy-cache__drop-fold{border-top:1px solid var(--border)}.alchemy-cache__contents{display:block;padding:.55rem .85rem .7rem}.alchemy-cache__drop-fold>summary{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:.5rem;padding:.75rem .85rem;color:var(--text);cursor:pointer;font-size:.86rem;font-weight:750}.alchemy-cache__drop-fold>summary b{color:var(--accent)}.alchemy-cache__drop-fold>summary small{color:var(--text-muted);font-size:.7rem;font-weight:600}.alchemy-cache__drop-fold[open]>summary small{font-size:0}.alchemy-cache__drop-fold[open]>summary small:after{content:"收起";font-size:.7rem}.alchemy-cache__contents-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;padding:0}.alchemy-cache__contents-list .alchemy-item-wrap{padding:.25rem .35rem;border-radius:.35rem;background:rgba(255,255,255,.035)}
.alchemy-cache__monsters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.38rem;margin:.55rem 0 0;padding:0;list-style:none}.alchemy-cache__monsters li{min-width:0}.alchemy-cache__monsters a{display:flex;align-items:center;gap:.42rem;width:100%;box-sizing:border-box;min-width:0;padding:.28rem 0;border-radius:0;background:transparent;color:var(--text);text-decoration:none}.alchemy-cache__monsters a:hover b{color:var(--accent)}.alchemy-cache__monsters img,.alchemy-cache__monster-icon-ph{width:30px;height:30px;flex:0 0 auto;object-fit:contain}.alchemy-cache__monster-icon-ph{display:block;background:transparent;border:0}.alchemy-cache__monsters span{min-width:0;flex:1 1 auto}.alchemy-cache__monsters b,.alchemy-cache__monsters small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.alchemy-cache__monsters b{font-size:.76rem}.alchemy-cache__monsters small{margin-top:.08rem;color:var(--text-muted);font-size:.65rem}.alchemy-cache__lv{flex:0 0 auto;margin-left:.35rem;color:var(--text-muted);font-size:.68rem;font-style:normal;font-weight:700;white-space:nowrap}
@media (max-width:600px){.alchemy-cache__contents-list,.alchemy-cache__monsters{grid-template-columns:1fr}.alchemy-product__lead{padding:.65rem}.alchemy-product__lead>img{width:34px;height:34px}}
.alchemy-materials--grid{display:grid;grid-template-columns:1fr 1fr;gap:.35rem .5rem}.alchemy-materials--grid>p{grid-column:1/-1}
@media (max-width:500px){.alchemy-materials--grid{grid-template-columns:1fr}}
.alchemy-modal{position:fixed;inset:0;z-index:900;display:flex;align-items:flex-start;justify-content:center;padding:6vh 1rem 1.25rem;pointer-events:none}.alchemy-modal[hidden]{display:none}.alchemy-modal__backdrop{position:absolute;inset:0;background:rgba(6,10,8,.28);pointer-events:none}.alchemy-modal__panel{position:relative;z-index:1;width:100%;max-width:960px;max-height:82vh;overflow-y:auto;background:var(--surface-2,#141a14);border:1px solid rgba(51,255,167,.28);border-radius:12px;box-shadow:0 18px 48px rgba(0,0,0,.42);display:flex;flex-direction:column;pointer-events:auto}.alchemy-modal__head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem 1rem;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--surface-2,#141a14);z-index:1}.alchemy-modal__title{font-size:.95rem;font-weight:750}.alchemy-modal__close{border:0;background:transparent;color:var(--text-muted);font-size:1.1rem;cursor:pointer;padding:.25rem .4rem;border-radius:.35rem;line-height:1}.alchemy-modal__close:hover{color:var(--text);background:rgba(255,255,255,.07)}.alchemy-modal__body{overflow-y:auto}.alchemy-modal__body .alchemy-recipe{border:0;border-radius:0}.alchemy-modal__body .alchemy-recipe+.alchemy-recipe{border-top:1px solid var(--border)}
@media (max-width:500px){.alchemy-modal{padding:4vh .5rem .5rem}.alchemy-modal__panel{max-height:90vh}}
.alchemy-modal__body{padding:.85rem 1rem}.alchemy-modal__body .entity-section{margin:0;padding:0;border:none}.alchemy-modal__divider{height:1px;background:var(--border);margin:.75rem 0}

.alchemy-cache__locations{max-height:25rem;overflow-y:auto;scrollbar-width:none}
.alchemy-cache__locations::-webkit-scrollbar{display:none}

.alchemy-banner{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:0 0 1rem;padding:.7rem .9rem;border:1px solid rgba(51,255,167,.28);border-radius:var(--radius);background:linear-gradient(120deg,rgba(51,255,167,.1),var(--surface) 62%);color:var(--text-muted);font-size:.84rem;line-height:1.4;text-decoration:none}.alchemy-banner strong{color:var(--accent);font-weight:750}.alchemy-banner:hover,.alchemy-banner:focus,.alchemy-banner:active,.alchemy-banner:hover strong,.alchemy-banner:focus strong,.alchemy-banner:active strong{text-decoration:none}
.alchemy-grade{display:inline-flex;align-items:center;justify-content:center;min-width:1.6rem;height:1.25rem;padding:0 .35rem;border:1px solid rgba(255,255,255,.18);border-radius:4px;color:#fff;font-size:.68rem;font-weight:800;line-height:1;letter-spacing:.02em}
.alchemy-grade--d{background:#7a5c45}
.alchemy-grade--c{background:#6f7f8a}
.alchemy-grade--b{background:#4a4e8c}
.alchemy-grade--a{background:#b8862a}
.alchemy-grade--m{background:#2f8f93}
.alchemy-product__grades{display:flex;gap:.28rem;flex:0 0 auto;margin-left:.2rem}
.alchemy-cache>header .alchemy-grade,.alchemy-simple .alchemy-grade{margin-left:.35rem}
.alchemy-chip .alchemy-grade{margin-right:.15rem}
.alchemy-modal .item-craft-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem .75rem;flex-wrap:unset}
.alchemy-modal .item-craft-meta div{min-width:0}
