#game-shell #drawer.drawer:has(.live-forge){inset:74px max(10px,calc((100% - 1180px)/2)) 20px;width:auto;max-width:none;padding:12px;overflow:hidden;display:flex;flex-direction:column;gap:4px}
html #game-shell .drawer .lf-blueprint-note{display:none;margin:4px 0 8px;font-size:12px;line-height:1.5;color:#c5d4b6}
@media(max-width:700px) and (orientation:portrait){html #game-shell .drawer .lf-blueprint-note{display:block}}
#game-shell #drawer.drawer:has(.live-forge)>h2{font-size:16px;margin:0 36px 0 0;line-height:1.4}
#game-shell #drawer.drawer:has(.live-forge) .service-hero,#game-shell #drawer.drawer:has(.live-forge) .service-status,#game-shell #drawer.drawer:has(.live-forge) .rarity-legend{display:none}
#game-shell #drawer.drawer:has(.live-forge) .workshop-tabs{flex:none;margin:2px 0;gap:5px}
#game-shell #drawer.drawer:has(.live-forge) #workshop-body{flex:1;min-height:0;display:flex;flex-direction:column}
#game-shell #drawer.drawer:has(.live-forge) .service-exit{flex:none;margin:2px 0 0;padding:5px;min-height:28px}
#game-shell .drawer .live-forge{--lf-line:#a6bd8b38;flex:1;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);border:1px solid var(--lf-line);border-radius:12px;overflow:hidden;background:#111c17;color:#eff0df;font:14px/1.4 Sarabun,system-ui}
#game-shell .drawer .live-forge *{box-sizing:border-box}
#game-shell .drawer .live-forge :is(h3,h4,p){margin:0;color:inherit;letter-spacing:0;line-height:1.4}
#game-shell .drawer .live-forge :is(h3,h4){font-size:15px}
#game-shell .drawer .live-forge small{font-size:12px;line-height:1.3;color:#b4c5a6}
#game-shell .drawer .live-forge button{font:inherit;color:inherit;cursor:pointer;border-radius:6px;min-width:0}
#game-shell .drawer .live-forge button:disabled{opacity:.55;cursor:default}
#game-shell .drawer .live-forge :is(button,input):focus-visible{outline:2px solid #edce84;outline-offset:-2px}
#game-shell .drawer .lf-heading{display:flex;justify-content:space-between;gap:12px;padding:10px 16px;border-bottom:1px solid var(--lf-line);background:linear-gradient(110deg,#2a3a29,#17231c)}
#game-shell .drawer .lf-heading>div:last-child{text-align:right;display:grid;gap:2px}
#game-shell .drawer .lf-heading strong{color:#ead49d;font-variant-numeric:tabular-nums}
#game-shell .drawer .lf-body{min-height:0;display:grid;grid-template-columns:260px minmax(0,1fr)}
#game-shell .drawer .lf-picker{min-height:0;border-right:1px solid var(--lf-line);display:grid;grid-template-rows:auto minmax(0,1fr);padding:12px;gap:9px}
#game-shell .drawer .lf-picker input{width:100%;min-width:0;border:1px solid #79926855;border-radius:7px;background:#0c1712;color:#e6ead7;padding:9px;font:inherit;margin:0}
#game-shell .drawer .lf-list{overflow:auto;min-height:0;display:flex;flex-direction:column;gap:6px;scrollbar-width:thin;contain:layout style}
#game-shell .drawer .lf-list button{display:flex;align-items:center;gap:9px;flex:none;text-align:left;padding:8px;background:#1b2b20;border:1px solid #72865b38;min-height:62px}
#game-shell .drawer .lf-list button[aria-pressed=true]{background:#363924;border-color:#ceb67b}
#game-shell .drawer .lf-list button>span{min-width:0}
#game-shell .drawer .lf-list strong{display:block;overflow-wrap:anywhere;font-size:13px;font-weight:500}
#game-shell .drawer .lf-list small{display:block;margin-top:4px;font-size:11px}
#game-shell .drawer .live-forge img{object-fit:contain;image-rendering:pixelated;flex:none;width:38px;height:42px}
#game-shell .drawer .lf-work{min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;padding:14px;gap:12px}
#game-shell .drawer .lf-selected{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--lf-line);padding-bottom:10px;min-width:0}
#game-shell .drawer .lf-selected>div{min-width:0}
#game-shell .drawer .lf-selected img{width:58px;height:62px}
#game-shell .drawer .lf-selected h4{font-size:18px;margin-bottom:5px}
#game-shell .drawer .lf-content{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:15px;min-height:0}
#game-shell .drawer .lf-readout{min-height:0;overflow:clip;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:9px;container:lf-readout / size}
#game-shell .drawer .lf-affix-list{min-height:0;display:grid;grid-template-rows:repeat(var(--lf-slots,4),minmax(0,1fr));gap:6px}
#game-shell .drawer .lf-affix{display:flex;align-items:center;gap:9px;min-height:0;padding:6px 9px;border:1px solid color-mix(in srgb,var(--lf-color,#9db08a) 28%,transparent);border-left:2px solid var(--lf-color,#9db08a);border-radius:7px;background:linear-gradient(95deg,color-mix(in srgb,var(--lf-color,#9db08a) 8%,#132018),#121e17)}
#game-shell .drawer .lf-affix>b{font:600 23px Georgia;color:var(--lf-color);width:22px;flex:none}
#game-shell .drawer .lf-affix>span{flex:1;min-width:0;font-size:14px}
#game-shell .drawer .lf-affix small{display:block;font-size:11px;margin-top:3px}
#game-shell .drawer .lf-affix>strong{white-space:nowrap;font:600 18px system-ui;color:var(--lf-color)}
#game-shell .drawer .lf-empty{font-size:12px;color:#9caf8f}
#game-shell .drawer .lf-rates{border-top:1px solid var(--lf-line);padding-top:6px;min-width:0}
#game-shell .drawer .lf-rates>div{display:flex;justify-content:space-between;gap:4px;margin-top:4px;flex-wrap:wrap}
#game-shell .drawer .lf-rates span{font-size:11px;white-space:nowrap}
#game-shell .drawer .lf-payment{border:1px solid var(--lf-line);background:#1e2c20;border-radius:8px;padding:12px;min-width:0;overflow:auto}
#game-shell .drawer .lf-payment p{font-size:13px;line-height:1.8;margin-top:12px}
#game-shell .drawer .lf-materials{display:grid;gap:8px;margin:10px 0}
#game-shell .drawer .lf-materials>div{display:flex;align-items:center;gap:6px;min-width:0;font-size:12px}
#game-shell .drawer .lf-materials span{flex:1;min-width:0}
#game-shell .drawer .lf-materials b{white-space:nowrap;color:#c5d9a9}
#game-shell .drawer .lf-materials b.lf-missing{color:#f2b596}
#game-shell .drawer .lf-materials img{width:27px;height:28px}
#game-shell .drawer .lf-cost{display:flex;justify-content:space-between;gap:7px;flex-wrap:wrap;border-top:1px solid var(--lf-line);padding:9px 0;color:#e6d39d;font-size:13px}
#game-shell .drawer .lf-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;align-items:center}
#game-shell .drawer .lf-actions>[role=status]{grid-column:1/-1;font-size:12px;min-height:17px;color:#cbd6b5}
#game-shell .drawer .lf-actions [data-lf-confirm]{grid-column:1/-1;font-size:12px;color:#efc89c;display:flex;justify-content:space-between;gap:8px;align-items:center}
#game-shell .drawer .lf-actions [data-lf-cancel]{background:#293d2d;border:1px solid #809566;padding:5px 8px}
#game-shell .drawer .lf-submit{width:100%;min-height:43px;padding:7px;background:linear-gradient(#dfcb94,#bda367);border:1px solid #ebd59a;color:#222c1a;font-weight:600;font-size:15px}
#game-shell .drawer .live-affixes .lf-submit{grid-column:1/-1}
#game-shell .drawer .lf-auto{background:#2c402b;border:1px solid #748962;padding:9px;min-height:43px;font-size:12px}
#game-shell .drawer .live-craft .lf-readout{grid-template-rows:auto auto minmax(0,1fr) auto}
#game-shell .drawer .lf-outcome{display:flex;justify-content:space-between;gap:8px;font-size:13px;color:#c6d9ab;padding:7px;background:#263623;border:1px solid var(--lf-line);border-radius:6px}
#game-shell .drawer .lf-craft-materials{min-height:0;display:flex;flex-direction:column}
#game-shell .drawer .lf-craft-materials>h4{display:none}
#game-shell .drawer .lf-craft-materials>.lf-materials{flex:1;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:5px;margin:0}
#game-shell .drawer .lf-craft-materials .lf-materials>div{border:1px solid var(--lf-line);border-radius:5px;padding:5px;gap:5px;font-size:12px;flex-wrap:wrap}
#game-shell .drawer .lf-craft-materials .lf-materials span{flex:1 1 50%}
#game-shell .drawer .lf-craft-materials>small{font-size:10px}

/* Match the reviewed forge inside the full game. */
html #game-shell #drawer.drawer:has(.live-forge){position:fixed!important;inset:50% auto auto 50%!important;transform:translate(-50%,-50%)!important;width:min(1000px,88vw)!important;height:min(680px,86dvh)!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;overflow:hidden!important;z-index:120!important;border:1px solid #91ab7838;border-radius:18px;background:#111e17;box-shadow:0 0 0 100vmax #06100bba,0 20px 70px #0006}
html #game-shell #drawer.drawer:has(.live-forge)>.drawer-close{position:absolute!important;inset:12px 14px auto auto!important;transform:none!important;float:none!important;margin:0;width:38px;min-width:38px;height:38px;min-height:38px;z-index:5;border-radius:8px;background-color:#ffffff05;color:#dfc98e;font-size:25px}
html #game-shell #drawer.drawer:has(.live-forge) #drawer-content{height:100%;min-height:0;overflow:hidden;display:flex;flex-direction:column}
html #game-shell #drawer.drawer:has(.live-forge) #drawer-content>:not(:has(.live-forge)){display:none!important}
html #game-shell #drawer.drawer:has(.live-forge) .lf-workshop{height:100%;min-height:0;display:grid;grid-template-rows:auto 48px minmax(0,1fr);overflow:hidden}
html #game-shell #drawer.drawer:has(.live-forge) :is(#workshop-body,.live-forge){display:contents}
html #game-shell #drawer.drawer:has(.live-forge) .rarity-legend{display:none!important}
html #game-shell #drawer.drawer:has(.live-forge) .workshop-tabs{grid-row:2;display:flex;gap:8px;margin:0;padding:0 16px;border-bottom:1px solid #91ab7838;background:#152119}
html #game-shell #drawer.drawer:has(.live-forge) .workshop-tabs button{flex:none;min-width:145px;min-height:0;padding:10px 16px;border:0;border-bottom:2px solid transparent;background:none;color:#9db18f;font:14px/1.4 Sarabun,system-ui;border-radius:0}
html #game-shell #drawer.drawer:has(.live-forge) .workshop-tabs button[aria-pressed=true]{color:#ecd39a;border-bottom-color:#ddc58b;background:#c6b47408}
html #game-shell .drawer .lf-heading{grid-row:1;display:grid;grid-template-columns:230px minmax(0,1fr) auto;align-items:center;gap:16px;min-height:70px;padding:10px 70px 10px 20px;background:linear-gradient(110deg,#243729,#18251c);border-bottom:1px solid #91ab7838}
html #game-shell .drawer .lf-heading h3{font-size:22px;color:#f0dfb0;margin-top:2px}
html #game-shell .drawer .lf-heading .lf-mastery{display:flex;align-items:center;gap:10px;text-align:left;font-size:14px;color:#dec993}
html #game-shell .drawer .lf-mastery>span{font-size:30px}
html #game-shell .drawer .lf-mastery small{display:block;margin-top:3px}
html #game-shell .drawer .lf-heading .lf-wallet{display:block;text-align:right}
html #game-shell .drawer .lf-wallet strong{display:block;font:600 25px/1.3 Sarabun,system-ui;color:#e7ce88;font-variant-numeric:tabular-nums}
html #game-shell .drawer .lf-body{grid-row:3;grid-template-columns:230px minmax(0,1fr)}
html #game-shell .drawer .lf-picker{grid-template-rows:auto auto minmax(0,1fr) auto;gap:10px;padding:16px 14px;background:#132018}
html #game-shell .drawer .lf-picker input{padding:11px 10px;font-size:14px}
html #game-shell .drawer .lf-list{gap:8px;scrollbar-color:#73855d #132018}
html #game-shell .drawer .lf-list button{display:flex;align-items:center;justify-items:initial;gap:10px;min-height:76px;padding:9px 10px;text-align:left;border:1px solid transparent;background:#19291e}
html #game-shell .drawer .lf-list button[aria-pressed=true]{background:#343a24;border-color:#bfa96b}
html #game-shell .drawer .lf-list strong{font-size:14px;font-weight:500}
html #game-shell .drawer .lf-list small{display:block;font-size:11px;margin-top:5px}
html #game-shell .drawer .live-forge .item-image{flex:none;width:46px;height:48px;border-radius:7px;display:grid;place-items:center;overflow:hidden}
html #game-shell .drawer .live-forge img{width:38px;height:42px}
html #game-shell .drawer .lf-work{grid-template-rows:auto minmax(0,1fr) auto;gap:12px;padding:14px 18px}
html #game-shell .drawer .live-craft .lf-work{grid-template-rows:minmax(0,1fr) auto}
html #game-shell .drawer .live-craft .lf-selected{display:none}
html #game-shell .drawer .lf-selected{display:flex}
html #game-shell .drawer .lf-content,html #game-shell .drawer .live-craft .lf-content{grid-template-columns:minmax(0,1fr) 210px;grid-template-rows:minmax(0,1fr);gap:18px}
html #game-shell .drawer .lf-payment,html #game-shell .drawer .live-craft .lf-payment{display:block;padding:16px 14px;border-radius:10px;background:#1e2d20;overflow:auto}
html #game-shell .drawer .lf-payment h4,html #game-shell .drawer .lf-payment>p,html #game-shell .drawer .lf-payment>small{display:block}
html #game-shell .drawer .lf-payment p{font-size:13px;line-height:1.8;margin-top:16px;color:#c2d0ad}
html #game-shell .drawer .lf-cost{display:flex;align-items:center;padding:16px 0;margin:14px 0;font-size:13px}
html #game-shell .drawer .lf-cost strong{font-size:22px}
html #game-shell .drawer .lf-readout{gap:10px}
html #game-shell .drawer .lf-outcome{padding:10px 12px;font-size:14px;color:#d0e1b6;background:#21311f}
html #game-shell .drawer .lf-craft-materials>:not(.lf-materials){display:none}
html #game-shell .drawer .lf-craft-materials>.lf-materials{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html #game-shell .drawer .lf-craft-materials .lf-materials>div{display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;gap:2px 10px;padding:10px 12px;border:1px solid #91ab7838;border-radius:7px;background:#101d15;font-size:14px}
html #game-shell .drawer .lf-craft-materials .item-image{grid-row:1/3;width:36px;height:40px;background:none;border:0;box-shadow:none}
html #game-shell .drawer .lf-craft-materials .lf-materials b{grid-column:2;font-size:16px}
html #game-shell .drawer .lf-rates{display:block;padding-top:8px}
html #game-shell .drawer .lf-rates>small{display:block;margin-bottom:6px;font-size:11px}
html #game-shell .drawer .lf-rates>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:0}
html #game-shell .drawer .lf-rates span{min-width:0;text-align:center;padding:6px 2px;border:1px solid currentColor;border-radius:5px;font-size:11px;line-height:1.3;background:#ffffff03;white-space:normal}
html #game-shell .drawer .lf-rates b{display:block;margin-top:3px;font-size:14px;font-weight:500}
html #game-shell .drawer .lf-affix-list{gap:8px}
html #game-shell .drawer .lf-affix{padding:8px 12px;gap:12px;border-left-width:3px}
html #game-shell .drawer .lf-affix>span{display:block;font-size:14px;line-height:1.4;white-space:normal}
html #game-shell .drawer .lf-affix small{display:block;font-size:11px;line-height:1.4;margin-top:3px}
html #game-shell .drawer .lf-actions{grid-template-columns:minmax(0,1fr) 250px auto;gap:8px;border-top:1px solid #91ab7838;padding-top:10px}
html #game-shell .drawer .lf-actions>[role=status]{grid-column:auto;font-size:12px;color:#b9d39c}
html #game-shell .drawer .lf-submit{grid-column:2;min-height:46px;padding:10px;font-size:15px}
html #game-shell .drawer .live-affixes .lf-actions{grid-template-columns:minmax(0,1fr) 330px}
html #game-shell .drawer .live-affixes .lf-submit{grid-column:2}
html #game-shell .drawer .lf-auto{min-height:44px;padding:8px;font-size:12px}
html #game-shell .drawer .lf-switch{display:none}
@container lf-readout (height < 320px){
 html #game-shell .drawer .lf-craft-materials .lf-materials>div{padding:4px 7px;grid-template-columns:26px minmax(0,1fr);gap:0 6px;font-size:12px}
 html #game-shell .drawer .lf-craft-materials .item-image{width:25px;height:28px}
 html #game-shell .drawer .lf-craft-materials img{width:24px;height:27px}
 html #game-shell .drawer .lf-craft-materials .lf-materials b{font-size:13px}
 html #game-shell .drawer .lf-outcome{padding:6px 8px;font-size:12px}
 html #game-shell .drawer .lf-affix{padding:3px 8px;gap:7px}
 html #game-shell .drawer .lf-affix>span{font-size:12px}
 html #game-shell .drawer .lf-affix small{font-size:10px;margin:0}
 html #game-shell .drawer .lf-rates span{font-size:10px;padding:3px 1px}
 html #game-shell .drawer .lf-rates b{font-size:12px;margin-top:1px}
}
@media(max-width:700px) and (orientation:portrait){
 html #game-shell #drawer.drawer:has(.live-forge){width:min(440px,94vw)!important;height:min(720px,90dvh)!important;border-radius:12px}
 html #game-shell #drawer.drawer:has(.live-forge) .lf-workshop{grid-template-rows:auto 44px minmax(0,1fr)}
 html #game-shell #drawer.drawer:has(.live-forge) .workshop-tabs{padding:0 6px;gap:0}
 html #game-shell #drawer.drawer:has(.live-forge) .workshop-tabs button{flex:1;min-width:0;padding:8px 4px;font-size:13px}
 html #game-shell .drawer .lf-heading{grid-template-columns:minmax(0,1fr) auto;padding:10px 53px 10px 12px;gap:8px;min-height:65px}
 html #game-shell .drawer .lf-heading h3{font-size:19px}
 html #game-shell .drawer .lf-heading .lf-mastery{display:none}
 html #game-shell .drawer .lf-wallet strong{font-size:19px}
 html #game-shell .drawer .lf-heading small{font-size:11px}
 html #game-shell .drawer .lf-body{grid-template-columns:minmax(0,1fr)}
 html #game-shell .drawer .lf-picker{display:none}
 html #game-shell .drawer .lf-picker-open .lf-picker{display:grid;position:absolute;inset:110px 8px 75px;z-index:6;border:1px solid #a6bd8b70;border-radius:10px;box-shadow:0 10px 35px #000b}
 html #game-shell .drawer .lf-work,html #game-shell .drawer .live-craft .lf-work{grid-template-rows:auto auto minmax(0,1fr) auto;padding:10px;gap:8px}
 html #game-shell .drawer .lf-switch{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;min-height:42px;border:1px solid #91ab7840;background:#203222;color:#e2d4aa}
 html #game-shell .drawer .live-craft .lf-selected{display:flex}
 html #game-shell .drawer .lf-selected{gap:8px;padding-bottom:8px}
 html #game-shell .drawer .lf-selected h4{font-size:15px}
 html #game-shell .drawer .lf-selected small{font-size:11px}
 html #game-shell .drawer .lf-selected .item-image{width:36px;height:38px}
 html #game-shell .drawer .lf-content,html #game-shell .drawer .live-craft .lf-content{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:8px}
 html #game-shell .drawer .live-craft .lf-content{grid-template-rows:minmax(0,1fr)}
 html #game-shell .drawer .live-craft .lf-payment{display:none}
 html #game-shell .drawer .lf-payment{padding:7px 10px;overflow:visible}
 html #game-shell .drawer .lf-payment>:is(h4,small){display:none}
 html #game-shell .drawer .lf-payment .lf-materials{margin:0;gap:4px;grid-template-columns:repeat(2,minmax(0,1fr))}
 html #game-shell .drawer .lf-payment .lf-materials>div{font-size:11px}
 html #game-shell .drawer .lf-payment .item-image,html #game-shell .drawer .lf-payment img{width:21px;height:24px}
 html #game-shell .drawer .lf-payment .lf-cost{padding:5px 0 0;margin:5px 0 0;font-size:12px}
 html #game-shell .drawer .lf-payment .lf-cost strong{font-size:15px}
 html #game-shell .drawer .lf-readout{gap:7px}
 html #game-shell .drawer .lf-actions,html #game-shell .drawer .live-affixes .lf-actions{grid-template-columns:minmax(0,1fr) auto;gap:6px;padding-top:8px}
 html #game-shell .drawer .lf-actions>[role=status]{grid-column:1/-1;font-size:11px}
 html #game-shell .drawer .lf-submit,html #game-shell .drawer .live-affixes .lf-submit{grid-column:1;font-size:14px;min-height:44px}
 html #game-shell .drawer .live-affixes .lf-submit{grid-column:1/-1}
 html #game-shell .drawer .lf-auto{font-size:11px}
 html #game-shell .drawer .lf-actions [data-lf-confirm]{font-size:11px}
}
@media(max-height:540px) and (orientation:landscape){
 html #game-shell #drawer.drawer:has(.live-forge){height:min(680px,90dvh)!important;width:min(1000px,94vw)!important;border-radius:10px}
 html #game-shell #drawer.drawer:has(.live-forge) .lf-workshop{grid-template-rows:48px 34px minmax(0,1fr)}
 html #game-shell .drawer .lf-heading{display:grid;min-height:0;padding:4px 55px 4px 12px;grid-template-columns:160px minmax(0,1fr) auto;gap:8px}
 html #game-shell .drawer .lf-heading h3{font-size:17px}
 html #game-shell .drawer .lf-heading small{font-size:10px}
 html #game-shell .drawer .lf-heading .lf-mastery{font-size:11px}
 html #game-shell .drawer .lf-mastery>span,html #game-shell .drawer .lf-mastery small{display:none}
 html #game-shell .drawer .lf-wallet strong{font-size:19px}
 html #game-shell #drawer.drawer:has(.live-forge) .workshop-tabs button{padding:4px 10px;min-width:120px;font-size:12px}
 html #game-shell .drawer .lf-body{grid-template-columns:175px minmax(0,1fr)}
 html #game-shell .drawer .lf-picker{padding:7px;gap:6px;grid-template-rows:auto auto minmax(0,1fr)}
 html #game-shell .drawer .lf-picker>small{display:none}
 html #game-shell .drawer .lf-picker h4{font-size:12px}
 html #game-shell .drawer .lf-picker input{font-size:12px;padding:6px}
 html #game-shell .drawer .lf-list button{min-height:56px;padding:5px;gap:6px}
 html #game-shell .drawer .lf-list strong{font-size:12px}
 html #game-shell .drawer .lf-list small{font-size:10px;margin:2px 0 0}
 html #game-shell .drawer .lf-work{padding:7px 10px;gap:6px}
 html #game-shell .drawer .lf-selected{display:none}
 html #game-shell .drawer .live-affixes .lf-work{grid-template-rows:minmax(0,1fr) auto}
 html #game-shell .drawer .lf-content{grid-template-columns:minmax(0,1fr) 150px;gap:8px}
 html #game-shell .drawer .live-craft .lf-content{grid-template-columns:minmax(0,1fr)}
 html #game-shell .drawer .live-craft .lf-payment{display:none}
 html #game-shell .drawer .lf-readout{gap:4px}
 html #game-shell .drawer .lf-readout>h4{font-size:12px}
 html #game-shell .drawer .lf-payment{padding:7px}
 html #game-shell .drawer .lf-payment h4{font-size:12px}
 html #game-shell .drawer .lf-payment .lf-materials{gap:4px;margin:7px 0}
 html #game-shell .drawer .lf-payment small{font-size:10px}
 html #game-shell .drawer .lf-cost{padding:6px 0;margin:6px 0}
 html #game-shell .drawer .lf-cost strong{font-size:16px}
 html #game-shell .drawer .lf-actions,html #game-shell .drawer .live-affixes .lf-actions{grid-template-columns:minmax(0,1fr) 190px auto;gap:5px;padding-top:5px}
 html #game-shell .drawer .lf-actions>[role=status]{font-size:10px}
 html #game-shell .drawer .lf-submit,html #game-shell .drawer .lf-auto{min-height:34px;padding:5px;font-size:11px}
 html #game-shell .drawer .lf-rates>small{display:none}
 html #game-shell .drawer .lf-affix>b{font-size:17px;width:16px}
 html #game-shell .drawer .lf-affix>strong{font-size:14px}
}

/* Keep recipe filters visible above the independently scrolling list. */
html #game-shell .drawer .live-craft .lf-picker{grid-template-rows:auto auto auto minmax(0,1fr) auto}
html #game-shell .drawer .lf-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
html #game-shell .drawer .lf-filters label{min-width:0;font-size:12px;color:#b4c5a6}
html #game-shell .drawer .lf-filters label:has([data-lf-set]){grid-column:1/-1}
html #game-shell .drawer .lf-craft-set-info{display:grid;gap:5px;padding:8px;border:1px solid var(--lf-line);border-radius:7px;background:#203222}
@media(max-width:700px) and (max-height:650px) and (orientation:portrait){
 html #game-shell .drawer .live-craft .lf-picker-open .lf-picker{grid-template-rows:auto auto auto minmax(62px,1fr);gap:5px;padding:8px}
 html #game-shell .drawer .live-craft .lf-picker>:is(h4,small){display:none}
 html #game-shell .drawer .live-craft .lf-picker input[type=search],html #game-shell .drawer .live-craft .lf-filters select{min-height:44px}
 html #game-shell .drawer .live-craft .lf-filters{gap:4px}
}
html #game-shell .drawer .lf-filters select{display:block;width:100%;min-width:0;margin:4px 0 0;padding:8px 3px;border:1px solid #79926855;border-radius:7px;background:#0c1712;color:#e6ead7;font:inherit}
html #game-shell .drawer .lf-filters select:focus-visible{outline:2px solid #edce84;outline-offset:-2px}
@media(max-height:540px) and (orientation:landscape){
 html #game-shell .drawer .live-craft .lf-picker{grid-template-rows:auto auto auto minmax(0,1fr)}
 html #game-shell .drawer .lf-filters{gap:5px}
 html #game-shell .drawer .lf-filters label{font-size:11px}
 html #game-shell .drawer .lf-filters select{padding:5px 1px;margin-top:2px}
}
html #game-shell .drawer .live-forge [hidden]{display:none!important}
html #game-shell .drawer .lf-selected small{display:block}

@media(max-height:540px) and (orientation:landscape){
 html #game-shell .drawer .lf-craft-materials .lf-materials>div{grid-template-columns:20px minmax(0,1fr) auto;grid-template-rows:auto;gap:4px;padding:2px 5px;font-size:11px}
 html #game-shell .drawer .lf-craft-materials .item-image{grid-row:auto;width:19px;height:21px}
 html #game-shell .drawer .lf-craft-materials img{width:18px;height:20px}
 html #game-shell .drawer .lf-craft-materials .lf-materials b{grid-column:3;font-size:11px}
}
@media(max-height:540px) and (orientation:landscape){
 html #game-shell .drawer .lf-affix-list{gap:4px}
 html #game-shell .drawer .lf-affix{padding:0 5px;gap:5px}
 html #game-shell .drawer .lf-affix>span{font-size:11px;line-height:1.1}
 html #game-shell .drawer .lf-affix small{font-size:9px;line-height:1.1;margin:0}
}

html #game-shell #drawer.drawer:has(.live-forge) .expansion-counter{display:contents}
html #game-shell #drawer.drawer:has(.live-forge) .expansion-counter>:not(.lf-workshop){display:none!important}

/* Keep the compact phone window readable without enlarging it to the viewport. */
@container lf-readout (width < 330px){
 html #game-shell .drawer .lf-craft-materials .lf-materials>div{padding:4px 7px;grid-template-columns:24px minmax(0,1fr);gap:0 5px;font-size:12px}
 html #game-shell .drawer .lf-craft-materials .item-image{width:23px;height:27px}
 html #game-shell .drawer .lf-craft-materials img{width:22px;height:26px}
 html #game-shell .drawer .lf-craft-materials .lf-materials b{font-size:13px}
}

/* Recipe availability and results stay visible in the compact native window. */
html #game-shell .drawer .live-craft .lf-picker{grid-template-rows:auto auto auto auto minmax(0,1fr) auto}
html #game-shell .drawer .lf-filter-options{min-width:0;margin:0}
html #game-shell .drawer .lf-filter-options>summary{cursor:pointer;min-height:36px;padding:8px 0;color:#d9cfaa;font-size:12px}
html #game-shell .drawer .lf-filter-options>summary small{font-size:10px;margin-left:5px}
html #game-shell .drawer .lf-filter-options:not([open])>.lf-filters{display:none}
html #game-shell .drawer .lf-craftable{display:flex;align-items:center;gap:7px;padding:8px;border:1px solid #91ab7840;border-radius:6px;background:#203222;cursor:pointer;font-size:12px;color:#dfdfc5}
html #game-shell .drawer .lf-craftable input{width:17px;height:17px;margin:0;padding:0;accent-color:#ddc783;flex:none}
html #game-shell .drawer .lf-craftable small{margin-left:auto;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:10px}
html #game-shell .drawer .lf-no-results{padding:10px;line-height:1.7;color:#ddc783}
html #game-shell .drawer .live-craft .lf-readout{display:flex;flex-direction:column;container-type:inline-size}
html #game-shell .drawer .lf-craft-scroll{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;display:flex;flex-direction:column;gap:10px;padding-right:4px}
html #game-shell .drawer .lf-craft-scroll>*{flex-shrink:0}
html #game-shell .drawer .lf-roof-pity{display:grid;gap:2px;padding:5px 8px;border-left:2px solid #ae96c4;background:#332f3b;color:#ecdfed;font-size:12px}
html #game-shell .drawer .lf-roof-pity small{color:#d8cadb;font-size:10px}
html #game-shell .drawer .lf-result-info{padding:12px;border:1px solid #91ab7855;border-radius:8px;background:#203222;display:grid;gap:7px}
html #game-shell .drawer .lf-result-info h4{font-size:16px;color:#eddbac}
html #game-shell .drawer .lf-result-info p{font-size:12px;line-height:1.6}
html #game-shell .drawer .lf-result-info>small{font-size:10px;line-height:1.5}
html #game-shell .drawer .lf-result-info a{font-size:12px;color:#e6cb87;line-height:1.5;text-underline-offset:3px;width:fit-content}
html #game-shell .drawer .lf-stat-chips{display:flex;gap:5px;flex-wrap:wrap}
html #game-shell .drawer .lf-stat-chips span{padding:4px 7px;border-radius:5px;background:#2e4832;border:1px solid #8eb37c55;font-size:12px;color:#d3e9bd}
html #game-shell .drawer .lf-craft-scroll .lf-materials>div{min-height:62px}
html #game-shell .drawer .live-craft .lf-rates{flex:none}
@media(max-height:540px) and (orientation:landscape){
 html #game-shell .drawer .live-craft .lf-picker{position:relative;grid-template-rows:auto minmax(32px,auto) auto minmax(62px,1fr)}
 html #game-shell .drawer .live-craft .lf-picker>h4{display:none}
 html #game-shell .drawer .lf-filter-options{min-height:0;overflow:auto;scrollbar-width:thin}
 html #game-shell .drawer .lf-filter-options>summary{min-height:32px;padding:6px 0}
 html #game-shell .drawer .lf-filter-options>summary small{display:none}
 html #game-shell .drawer .lf-filter-options[open]{position:absolute;inset:7px;z-index:2;max-height:none;padding:6px;border:1px solid #91ab7870;border-radius:7px;background:#132018;box-shadow:0 5px 16px #0008}
 html #game-shell .drawer .lf-craftable{padding:4px;font-size:11px}
 html #game-shell .drawer .lf-result-info{padding:7px;gap:4px}
 html #game-shell .drawer .lf-craft-scroll .lf-materials>div{min-height:32px}
}
@media(max-width:700px) and (orientation:portrait){
 html #game-shell .drawer .live-craft .lf-picker-open .lf-picker{grid-template-rows:auto auto auto minmax(76px,1fr)}
 html #game-shell .drawer .live-craft .lf-picker>:is(h4,small){display:none}
 html #game-shell .drawer .lf-filter-options>summary{min-height:44px;padding:12px 0}
 html #game-shell .drawer .lf-result-info{padding:9px}
 html #game-shell .drawer .lf-result-info h4{font-size:14px}
 html #game-shell .drawer .lf-stat-chips span{font-size:11px}
 html #game-shell .drawer .lf-craft-scroll{gap:8px}
}
@media(max-width:700px) and (orientation:portrait){
 html #game-shell .drawer .live-craft .lf-selected{display:none}
 html #game-shell .drawer .live-craft .lf-work{grid-template-rows:auto minmax(0,1fr) auto}
}

/* Affix locks stay readable in the existing compact window. */
html #game-shell .drawer .live-affixes .lf-affix{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto}
html #game-shell .drawer .lf-affix [data-lf-lock]{min-width:44px;min-height:44px;padding:4px;font-size:12px;touch-action:manipulation}
html #game-shell .drawer .lf-affix [data-lf-lock][aria-pressed=true]{background:#67542b;border-color:#e5c477;color:#fff0bf}
html #game-shell .drawer .lf-payment p.lf-lock-note{font-size:11px;line-height:1.4;margin:6px 0 0;color:#e5d3a3}
html #game-shell .drawer .live-affixes .lf-readout{display:flex;flex-direction:column;overflow:auto;container-type:inline-size;scrollbar-width:thin}
html #game-shell .drawer .live-affixes .lf-readout>*{flex-shrink:0}
html #game-shell .drawer .live-affixes .lf-affix-list{grid-template-rows:repeat(var(--lf-slots,4),minmax(52px,auto))}

/* Enhancement shares the forge picker while retaining independent scroll areas. */
html #game-shell #drawer.drawer:has(.live-enhancement) :is(.expansion-counter,[data-expansion-offers],#service-offers,#enhancer-body){display:flex;flex-direction:column;flex:1;min-height:0;max-width:none;width:100%;margin:0;overflow:hidden}
html #game-shell #drawer.drawer:has(.live-enhancement) .expansion-counter>header,
html #game-shell #drawer.drawer:has(.live-enhancement) .expansion-counter>p,
html #game-shell #drawer.drawer:has(.live-enhancement) [data-repair-shop]>h3,
html #game-shell #drawer.drawer:has(.live-enhancement) [data-repair-shop]>p{display:none}
html #game-shell #drawer.drawer:has(.live-enhancement) .expansion-counter>[data-expansion-offers]{display:flex!important}
html #game-shell #drawer.drawer:has(.live-enhancement) .live-enhancement{position:relative;display:grid!important;grid-template-rows:auto minmax(0,1fr);flex:1;min-height:0;border:0;border-radius:0}
html #game-shell .drawer .live-enhancement .lf-heading{grid-template-columns:minmax(0,1fr) auto;grid-row:1;min-height:64px}
html #game-shell .drawer .live-enhancement .lf-body{grid-row:2}
html #game-shell .drawer .lf-enhance-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}
html #game-shell .drawer [data-enhance-all]{min-height:36px;padding:4px 8px;border:1px solid var(--lf-line);background:#203222;font-size:12px;white-space:nowrap}
html #game-shell .drawer [data-enhance-all][aria-pressed=true]{border-color:#ceb67b;background:#363924;color:#f0dda9}
html #game-shell .drawer .lf-list .lf-enhance-blocked{color:#e7bb86}
html #game-shell .drawer .live-enhancement .lf-selected{grid-row:1}
html #game-shell .drawer .live-enhancement .lf-content{grid-row:2}
html #game-shell .drawer .live-enhancement .lf-actions{grid-row:3}
html #game-shell .drawer .live-enhancement .lf-readout{display:block;container-type:normal;overflow:auto;min-height:0}
html #game-shell .drawer .live-enhancement .lf-readout h4{margin:0 0 8px}
html #game-shell .drawer .live-enhancement .lf-readout p{font-size:13px;line-height:1.6;margin:0 0 14px}
html #game-shell .drawer .live-enhancement .lf-readout details{margin-top:12px;font-size:12px}
html #game-shell .drawer .live-enhancement .lf-readout summary{cursor:pointer;min-height:44px;padding:10px 0}
html #game-shell .drawer .live-enhancement .lf-enhance-chance{display:grid;gap:4px;padding:12px;background:#263623;border:1px solid #91ab7840;border-radius:8px}
html #game-shell .drawer .live-enhancement .lf-enhance-chance strong{font-size:32px;color:#e8d398}
html #game-shell .drawer .live-enhancement .lf-enhance-protection{min-width:0;border:1px solid #91ab7840;border-radius:8px;padding:8px;margin:12px 0}
html #game-shell .drawer .live-enhancement .lf-enhance-protection button{display:flex;align-items:center;gap:8px;text-align:left;width:100%;min-height:44px;padding:8px;margin:4px 0;border:1px solid #91ab7840;background:#17271c;font-size:12px}
html #game-shell .drawer .live-enhancement .lf-enhance-protection button[aria-pressed=true]{background:#45432b;border-color:#d6bb79}
html #game-shell .drawer .live-enhancement .lf-actions{grid-template-columns:minmax(0,1fr) 240px}
html #game-shell .drawer .live-enhancement .lf-submit{grid-column:2;min-height:44px}
html #game-shell #drawer.drawer:has(.live-enhancement) #repair-list:not([hidden]){max-height:24dvh;overflow:auto;flex:none;padding:8px}
html #game-shell #drawer.drawer:has(.live-enhancement) .enhancement-supplies{flex:none;padding:0 12px;border-bottom:1px solid #91ab7838;max-height:30dvh;overflow:auto}
html #game-shell #drawer.drawer:has(.live-enhancement) .enhancement-supplies>summary{min-height:44px;padding:11px 0;cursor:pointer;color:#ddc991}
@media(max-width:700px) and (orientation:portrait){
 html #game-shell .drawer .live-enhancement .lf-work{grid-template-rows:auto auto minmax(0,1fr) auto}
 html #game-shell .drawer .live-enhancement .lf-switch{grid-row:1}
 html #game-shell .drawer .live-enhancement .lf-selected{grid-row:2}
 html #game-shell .drawer .live-enhancement .lf-content{grid-row:3}
 html #game-shell .drawer .live-enhancement .lf-actions{grid-row:4}
 html #game-shell .drawer .live-enhancement .lf-content{display:block;overflow:auto;min-height:0;overscroll-behavior:contain}
 html #game-shell .drawer .live-enhancement .lf-readout,html #game-shell .drawer .live-enhancement .lf-payment{overflow:visible;container-type:normal}
 html #game-shell .drawer .live-enhancement .lf-picker-open .lf-picker{inset:64px 8px 90px}
 html #game-shell .drawer .live-enhancement .lf-actions{grid-template-columns:minmax(0,1fr)}
 html #game-shell .drawer .live-enhancement .lf-actions>[role=status],html #game-shell .drawer .live-enhancement .lf-submit{grid-column:1}
 html #game-shell .drawer .live-enhancement .lf-switch{min-height:44px}
 html #game-shell .drawer [data-enhance-all]{min-height:44px}
}
@media(max-height:500px){
 html #game-shell .drawer [data-enhance-all]{min-height:30px}
 html #game-shell .drawer .live-enhancement .lf-heading{min-height:42px;padding:4px 55px 4px 10px}
 html #game-shell .drawer .live-enhancement .lf-heading h3{font-size:16px}
 html #game-shell .drawer .live-enhancement .lf-work{padding:7px;gap:6px}
 html #game-shell .drawer .live-enhancement .lf-work{grid-template-rows:minmax(0,1fr) auto}
 html #game-shell .drawer .live-enhancement .lf-content{grid-row:1}
 html #game-shell .drawer .live-enhancement .lf-actions{grid-row:2}
 html #game-shell .drawer .live-enhancement .lf-selected h4{font-size:14px}
}
