#crafting-dialog{width:min(1000px,calc(100vw - 28px));height:min(760px,calc(100dvh - 28px));max-width:none;max-height:none;padding:12px;background:#091624;color:#edf6ff;border:1px solid #49647e;border-radius:13px;box-shadow:0 25px 80px #000b;overflow:hidden}
#crafting-dialog[open]{display:grid;grid-template-rows:auto auto minmax(0,1fr) minmax(115px,auto) auto;gap:9px}
#crafting-dialog .crafting-guide{margin:0;color:#b9cbe0;font-size:13px;line-height:1.55}
.crafting-layout{display:grid;grid-template-columns:minmax(235px,.78fr) minmax(0,1.55fr);gap:9px;min-height:0}
.crafting-recipes,.crafting-detail,.crafting-materials{background:#0d1d2f;border:1px solid #2e455e;border-radius:10px;min-height:0}
.crafting-recipes{padding:8px;display:flex;flex-direction:column;overflow:hidden}
.crafting-section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:1px 2px 7px}.crafting-section-heading h3{margin:0;font-size:15px}.crafting-section-heading span{font-size:11px;color:#87dbc9}
#crafting-list{overflow-y:auto;display:grid;gap:5px;padding-right:2px;scrollbar-width:thin}
.craft-recipe{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;text-align:left;min-height:42px;padding:6px 8px;background:#12263a;border:1px solid #324b63;border-radius:8px;color:#eaf3ff}
.craft-recipe.selected{border-color:#85d9ca;background:#173144;box-shadow:inset 0 0 0 1px #85d9ca55}.craft-recipe.can-craft:after{content:'제작 가능';font-size:10px;color:#8ef0c5}.craft-recipe:not(.can-craft):after{content:'재료 부족';font-size:10px;color:#8fa5bb}.craft-recipe strong{display:block;font-size:13px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.craft-grade-dot{width:9px;height:24px;border-radius:5px;background:var(--grade)}
.crafting-detail{padding:12px;overflow-y:auto;scrollbar-width:thin}.crafting-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid #2b4055;padding-bottom:9px}.crafting-item-head h3{margin:0 0 3px;font-size:20px;color:var(--grade)}.crafting-item-head p{margin:0;color:#a9bed4;font-size:12px}.craft-combo{flex:0 0 auto;border:1px solid #9f7c37;background:#2c2412;color:#ffdc74;border-radius:8px;padding:6px 9px;font-size:11px;text-align:center}.craft-combo b{display:block;font-size:16px}
.craft-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:9px 0}.craft-stats div{background:#0a1726;border:1px solid #253c53;border-radius:7px;padding:6px 8px}.craft-stats span{display:block;color:#8fa8c0;font-size:10px}.craft-stats b{font-size:14px;color:#eef7ff}
.crafting-detail h4{margin:10px 0 5px;font-size:13px}.craft-requirements{display:grid;gap:4px}.craft-requirement{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;border-bottom:1px solid #22374c;padding:5px 2px;font-size:12px}.craft-requirement span{min-width:0}.craft-requirement b{font-size:12px}.craft-requirement.ok b{color:#8ee7bd}.craft-requirement.missing b{color:#ff9daf}.crafting-drop-hint{font-size:11px;line-height:1.55;color:#a8bdd2;margin:9px 0}.craft-button{width:100%;min-height:42px;margin-top:7px;font-weight:700;background:linear-gradient(#5cc6b2,#359b88);color:#071712;border:1px solid #8be4d3;border-radius:8px}.craft-button:disabled{filter:grayscale(.6);opacity:.5}
.crafting-materials{padding:8px;overflow:hidden}.crafting-materials .crafting-section-heading{padding-bottom:5px}#crafting-material-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;max-height:96px;overflow-y:auto;scrollbar-width:thin}.craft-material{display:flex;align-items:center;justify-content:space-between;gap:6px;background:#101f30;border:1px solid #263d53;border-radius:6px;padding:5px 6px;min-width:0}.craft-material span{min-width:0;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--material)}.craft-material b{font-size:11px;color:#f3f7fb}.craft-material.zero{opacity:.38}
.crafting-status{margin:0;min-height:18px;color:#9fc1db;font-size:11px;line-height:18px;text-align:center}.crafting-status.success{color:#83e7bb}.crafting-status.combo{color:#ffd86c;font-weight:700}
@media(max-width:699px){#crafting-dialog{width:calc(100vw - 8px - var(--safe-left) - var(--safe-right));height:calc(var(--app-height) - 8px);padding:7px;top:calc(var(--app-top) + 4px)}#crafting-dialog[open]{grid-template-rows:40px auto minmax(0,1fr) minmax(88px,auto) auto;gap:5px}.crafting-guide{display:none!important}.crafting-layout{grid-template-columns:minmax(112px,.72fr) minmax(0,1.28fr);gap:5px}.crafting-recipes,.crafting-detail,.crafting-materials{border-radius:7px}.crafting-recipes{padding:5px}.crafting-section-heading h3{font-size:12px}.crafting-section-heading span{font-size:9px}.craft-recipe{grid-template-columns:5px 1fr;min-height:34px;padding:4px 5px;gap:5px}.craft-recipe:after{display:none}.craft-grade-dot{width:5px;height:22px}.craft-recipe strong{font-size:11px;line-height:15px}.crafting-detail{padding:7px}.crafting-item-head h3{font-size:15px}.crafting-item-head p{font-size:10px}.craft-combo{padding:4px 6px;font-size:9px}.craft-combo b{font-size:12px}.craft-stats{gap:3px;margin:6px 0}.craft-stats div{padding:4px}.craft-stats span{font-size:9px}.craft-stats b{font-size:11px}.crafting-detail h4{font-size:11px;margin:6px 0 3px}.craft-requirement{font-size:10px;padding:3px 1px}.craft-requirement b{font-size:10px}.crafting-drop-hint{font-size:9px;margin:5px 0}.craft-button{min-height:34px;margin-top:4px;font-size:11px}.crafting-materials{padding:5px}#crafting-material-summary{grid-template-columns:repeat(3,minmax(0,1fr));max-height:82px}.craft-material{padding:3px 4px}.craft-material span,.craft-material b{font-size:9px}.crafting-status{font-size:9px;line-height:14px;min-height:14px}}
@media(min-width:480px) and (max-height:480px){#crafting-dialog{height:calc(var(--app-height) - 8px);width:calc(100vw - 8px);padding:6px}#crafting-dialog[open]{grid-template-rows:38px minmax(0,1fr) 82px auto;grid-template-columns:1fr;gap:4px}.crafting-guide{display:none}.crafting-layout{grid-template-columns:minmax(180px,.6fr) minmax(0,1.4fr)}.crafting-materials{padding:4px}#crafting-material-summary{grid-template-columns:repeat(5,minmax(0,1fr));max-height:56px}.crafting-status{font-size:9px;line-height:13px}}

.refining-convert{display:grid;grid-template-columns:minmax(145px,.6fr) minmax(0,1.4fr);gap:7px;align-items:center;margin-top:6px;padding-top:6px;border-top:1px solid #263d53}.refining-convert>div:first-child{display:flex;flex-direction:column;gap:2px}.refining-convert strong{font-size:11px;color:#e7eef7}.refining-convert small{font-size:9px;line-height:1.35;color:#91a8bf}#refining-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.refining-button{min-width:0;min-height:34px;padding:4px;background:#1d2b3b;border:1px solid #596b7c;border-radius:6px;text-align:left}.refining-button strong,.refining-button small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.refining-button strong{font-size:10px;color:#edf4ff}.refining-button small{margin-top:2px;font-size:8px;color:#a9b8c8}.refining-button:disabled{opacity:.4}.refining-button:not(:disabled){border-color:#a6844d;background:#342b1d}
@media(max-width:699px){.refining-convert{grid-template-columns:1fr;gap:4px}.refining-convert>div:first-child small{display:none}#refining-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.refining-button{min-height:28px;padding:3px}.refining-button strong{font-size:9px}.refining-button small{font-size:7px}}
/* v32 readability pass */
.crafting-materials .crafting-section-heading h3{font-size:15px}.crafting-materials .crafting-section-heading span{font-size:12px}
#crafting-material-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-height:138px}.craft-material{padding:7px 8px}.craft-material span{font-size:12px;line-height:17px}.craft-material b{font-size:13px;line-height:17px}
.refining-convert strong{font-size:14px}.refining-convert small{font-size:11px}.refining-button{min-height:46px;padding:7px}.refining-button strong{font-size:12px;line-height:17px}.refining-button small{font-size:11px;line-height:15px;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
@media(max-width:699px){.crafting-materials .crafting-section-heading h3{font-size:14px}.crafting-materials .crafting-section-heading span{font-size:11px}#crafting-material-summary{grid-template-columns:repeat(2,minmax(0,1fr));max-height:132px;gap:5px}.craft-material{padding:6px}.craft-material span{font-size:11px;line-height:15px}.craft-material b{font-size:12px}.refining-convert>div:first-child small{display:block;font-size:10px}.refining-button{min-height:42px;padding:6px}.refining-button strong{font-size:11px}.refining-button small{font-size:10px;line-height:14px}}

/* v50 weapon recipe icon list */
.craft-recipe-main{display:flex;align-items:center;gap:10px;min-width:0}
.craft-recipe-icon{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border-radius:9px;background:#091a29;border:1px solid #7eb5d744;padding:3px}
.craft-recipe-icon img{width:100%;height:100%;display:block;object-fit:contain}
.craft-recipe-copy{display:flex;flex-direction:column;min-width:0}
.craft-recipe-copy strong{min-width:0}
.craft-recipe-copy small{font-size:11px;line-height:14px;color:#93aabd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.auto-equip-help{margin:4px 0 7px;padding:6px 8px;border-radius:6px;background:#102333;color:#a9bdcb;font-size:11px;line-height:1.45}
@media(max-width:699px){.craft-recipe-main{gap:6px}.craft-recipe-icon{width:30px;height:30px;flex-basis:30px;padding:2px}.craft-recipe-copy small{display:none}.auto-equip-help{font-size:10px;padding:5px 6px}}
