/* ---------- Crafting screen (src/ui/crafting-ui.js; reference stills live-05 / live-06) ----------
   Built from the Items screen's parts in ethra-ui.css (.ef-screen, .ef-box, .ef-tab, .inv-row,
   .det-head, .opt-btn); only the Crafting-specific pieces are here. */
#craft{grid-template-columns:minmax(220px,260px) minmax(270px,420px) minmax(280px,1fr);grid-template-rows:minmax(0,1fr);grid-template-areas:"left list det"}
.cr-left{grid-area:left;display:flex;flex-direction:column;align-items:flex-start;min-height:0}
.cr-left .ef-tab.big{margin-bottom:6px}
.cr-station{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;min-height:24px;margin:0 0 14px 6px;font:800 12px var(--ui);color:var(--ef-white);text-shadow:var(--ef-shadow)}
.cr-station .lbl{color:var(--ef-dim);letter-spacing:.12em;text-transform:uppercase;font-size:11px}
.cr-station .st{display:inline-flex;align-items:center;gap:4px}.cr-station .st .ico{width:18px;height:18px}
.cr-station .st.dim{color:var(--ef-mute)}
.cr-cats{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding-left:44px;margin-left:-20px}
.cr-cats .ef-btn{width:212px;height:36px;font-size:16px}
.cr-cats .ef-btn.on{border-image:var(--ef-frame-on) 6 fill/6px stretch;width:236px}
.cr-n{flex:0 0 auto;min-width:18px;height:18px;padding:0 4px;display:inline-grid;place-items:center;background:var(--ef-yellow);color:#221e12;font:900 11px/1 var(--ui);font-style:normal;text-shadow:none}
.cr-n[hidden]{display:none}
.cr-listcol{grid-area:list;display:flex;flex-direction:column;min-height:0}
.cr-listcol .ef-box{flex:1 1 auto}
.cr-list{padding-left:34px}
.cr-row .nm small{font-size:12px;color:var(--ef-dim)}
.cr-row .cr-st{width:16px;height:16px;opacity:.85}
.cr-row.short .ico,.cr-row.short .nm,.cr-row.short .ct,.cr-row.locked .nm,.cr-row.locked .ico{opacity:.42}
.cr-row.locked .nm{letter-spacing:.2em}
.cr-detcol{grid-area:det;display:flex;flex-direction:column;min-height:0}
.cr-detcol .cr-det{flex:0 1 auto}
.cr-detcol .cr-reqtab{margin-top:14px}
.cr-detcol .cr-req{flex:1 1 auto;padding:6px 8px}
.cr-det{color:var(--ef-white);text-shadow:var(--ef-shadow)}
.cr-det p{margin:6px 0;font:800 15px/1.45 var(--ui);color:#eeeae0}
.cr-det .det-eff{font-size:13px;color:var(--ef-green)}
.cr-det .cr-how{color:var(--ef-yellow)}
.cr-req-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:46px;padding:4px 10px 4px 6px;margin:0 0 4px;
 background:rgba(255,255,255,.04);font:800 14px var(--ui);color:var(--ef-white);text-shadow:var(--ef-shadow)}
.cr-req-row>.ico{width:28px;height:28px}
.cr-req-row .nm{display:flex;flex-direction:column;min-width:0}
.cr-req-row .nm b{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cr-req-row .nm small{display:inline-flex;align-items:center;gap:4px;font:800 12px var(--ui);color:var(--ef-dim)}
.cr-req-row .nm small .ico{width:14px;height:14px}
.cr-req-row .need{font:900 24px/1 var(--ui);font-variant-numeric:tabular-nums}
.cr-req-row.short{background:rgba(142,30,26,.86);box-shadow:inset 0 0 0 2px rgba(216,69,58,.55)}
.cr-req-row.short .nm small{color:#ffd9d2}
.cr-req-row.station:not(.short) .need{color:var(--ef-green);font-size:20px}
.cr-veil{bottom:-8px}
@media(max-width:550px) and (orientation:portrait){
 #craft .cr-left,#craft .cr-listcol,#craft .cr-detcol{flex:0 0 auto;min-height:auto}
 .cr-left .ef-tab.big{display:none}
 .cr-station{margin:0 0 6px}
 .cr-cats{flex-direction:row;flex-wrap:wrap;gap:6px;padding-left:0;margin:0}
 .cr-cats .ef-btn,.cr-cats .ef-btn.on{width:auto;height:32px;font-size:13px;padding:0 10px 0 6px}
 .cr-cats .ef-btn::before{display:none}
 .cr-list{padding-left:26px}
 .cr-veil{display:none}
}
@media(max-height:500px){
 #craft{grid-template-columns:184px minmax(190px,1fr) minmax(210px,1fr)}
 .cr-left .ef-tab.big{display:none}
 .cr-station{margin:0 0 6px 0;font-size:11px}
 .cr-cats{gap:5px;padding-left:36px}.cr-cats .ef-btn{width:160px;height:28px;font-size:12px;gap:6px;padding:0 8px 0 6px}.cr-cats .ef-btn.on{width:170px}
 .cr-n{min-width:14px;height:14px;font-size:10px}
 .cr-cats .ef-btn .ico{width:18px;height:18px}
 .cr-det p{font-size:12px;margin:3px 0}
 .cr-req-row{min-height:32px;font-size:12px;grid-template-columns:24px minmax(0,1fr) auto}.cr-req-row>.ico{width:20px;height:20px}.cr-req-row .need{font-size:18px}
 .cr-detcol .cr-reqtab{margin-top:6px}
 .cr-veil{display:none}
}
body.kbnav .ef-screen .cr-row:focus{background:rgba(255,255,255,.07)}
