/* Scoped to Crafting; item artwork uses the existing native PNGs. */
.craft-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:2px 0 24px}
.craft-eyebrow{display:block;font-size:9px;letter-spacing:2px;color:#c8ac75;font-weight:700;margin-bottom:9px}
.craft-heading h1{font:700 clamp(26px,2.25vw,36px)/1.15 Segoe UI,system-ui,sans-serif;color:#f0eee5;letter-spacing:-.7px}
.craft-heading p{margin-top:10px;font-size:12px;color:#aac1cb}.craft-heading-mark{display:grid;place-items:center;width:70px;height:70px;border:1px solid #75613d70;border-radius:12px;background:radial-gradient(ellipse at center,#ad824322,transparent);flex-shrink:0}
.craft-controls{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-bottom:20px}
#craft-page .work-search{flex:0 1 265px;max-width:none;min-height:39px;padding:0 11px;margin:0;background:#10232cc9;border-color:#34586a}
#craft-page .work-search input{padding:10px 8px;font-size:11px;margin:0;min-width:0}
#craft-page .filters{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:0;flex:1}
#craft-page .filters button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 10px;min-height:37px;font-size:10px;background:#122936;border:1px solid #3b5c6d;border-radius:5px;color:#c1d0d6;white-space:nowrap}
#craft-page .filters button.selected{background:#413620;border-color:#af9059;color:#ffe3a0}
#craft-page .craft-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch}
#craft-page .craft-card{display:grid;grid-template-columns:80px minmax(0,1fr) 96px;align-items:center;gap:16px;min-height:148px;padding:14px 16px;border:1px solid color-mix(in srgb,var(--craft-rarity) 33%,#294654);border-radius:7px;background:#10232e;box-shadow:inset 0 1px #ffffff04;position:relative;overflow:hidden;transition:border-color .15s}
#craft-page .craft-card:hover{border-color:color-mix(in srgb,var(--craft-rarity) 70%,#294654)}
.craft-emblem{align-self:center;min-width:0;text-align:center}.craft-item-art{position:relative;display:grid;place-items:center;aspect-ratio:1;border:1px solid color-mix(in srgb,var(--craft-rarity) 40%,#243c48);border-radius:8px;background:radial-gradient(ellipse at 50% 70%,color-mix(in srgb,var(--craft-rarity) 25%,transparent),transparent 75%),linear-gradient(140deg,#ffffff05,#08172266);box-shadow:inset 0 1px #ffffff0c}
.craft-item-art>.item-icon{filter:drop-shadow(0 5px 4px #0008)}.craft-output{position:absolute;right:7px;bottom:5px;font-size:10px;font-weight:600;color:#d7e2e6;text-shadow:0 1px 3px #000}
.craft-emblem>button.craft-item-art{width:100%;padding:0;min-height:0;color:inherit;cursor:pointer}
#craft-page .craft-preview-name{display:inline;padding:0;min-height:0;border:0;border-radius:3px;background:none;box-shadow:none;font:inherit;color:inherit;text-align:left;letter-spacing:inherit;cursor:pointer}
#craft-page .craft-preview-name:hover{color:#ffd36b;text-decoration:underline;text-underline-offset:3px}
#craft-page [data-action="craft-preview"]:focus-visible{outline:2px solid #ffd36b;outline-offset:3px}
#craft-page .craft-item-art:hover{border-color:#ffd36b}
#modal .craft-preview-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
#modal .craft-preview-facts>div{padding:12px;border:1px solid #ffffff12;border-radius:8px;background:#ffffff04}
#modal .craft-preview-facts dt{font-size:10px;color:#a4beca;margin-bottom:5px}
#modal .craft-preview-facts dd{margin:0;font-size:14px;font-weight:700;color:#f0dfb5}
#modal .craft-preview-uses{margin-top:18px;padding-top:14px;border-top:1px solid #ffffff12}
#modal .craft-preview-uses h3{font-size:11px;letter-spacing:.5px;margin:0 0 8px;color:#a4beca}
#modal .craft-preview-uses p{font-size:12px;line-height:1.6;margin:0}
.craft-emblem>small{display:block;font-size:8px;letter-spacing:.7px;margin-top:6px;color:var(--craft-rarity)}
.craft-copy{min-width:0;align-self:center}.craft-copy h3.work-item-title{display:block;font:700 16px/1.23 Segoe UI,system-ui,sans-serif;margin:0 0 6px;color:#f0ede5;letter-spacing:0}
.craft-skill{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;font-size:9px;line-height:1.5;color:#a8c4ce}.craft-skill small{font-size:8px;color:#8baab9}
#craft-page progress{appearance:none;-webkit-appearance:none;display:block;height:5px;width:55px;border:0;border-radius:3px;background:#2b414c;overflow:hidden}
#craft-page progress::-webkit-progress-bar{background:#2b414c}#craft-page progress::-webkit-progress-value{background:#e5bd68;border-radius:3px}#craft-page progress::-moz-progress-bar{background:#e5bd68}
.craft-copy>p{font-size:11px;line-height:1.5;margin:7px 0 8px;color:#b0c5ce}
.craft-materials>small{display:block;font-size:7px;letter-spacing:1.2px;color:#829eac;margin-bottom:3px}.craft-materials>div{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px}.craft-materials .craft-material{display:inline-flex;align-items:center;gap:4px;max-width:100%;min-height:28px;font-size:9px;line-height:1.5;color:#c7d5dd;text-align:left}.craft-materials .item-icon{flex-shrink:0}
.craft-materials .craft-material-link{padding:3px 5px;border:1px solid transparent;border-radius:4px;background:transparent;font-weight:400;box-shadow:none}
.craft-material-link>span{text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
.craft-materials .craft-material-link:hover{background:#b8756220;border-color:#c7856e66}
.craft-materials .craft-material-link:focus-visible{outline:2px solid #ffd36b;outline-offset:3px}
.craft-materials .objective-target{margin-left:48px;max-width:calc(100% - 48px)}
@media(max-width:600px){.craft-materials .craft-material{font-size:9px}.craft-materials .craft-material-link{min-height:36px;padding:5px}.craft-materials>div{gap:5px 8px}}
.craft-meta{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 8px;padding:6px 4px;margin:0;border:1px solid #4b667044;border-radius:4px;background:#07182255;font-size:9px;color:#a4bdc9}.craft-meta>span{white-space:nowrap}.craft-meta>span:nth-child(2){color:#d3bd8d}
.craft-actions{align-self:center;display:flex;flex-direction:column;align-items:stretch;text-align:center;gap:8px;min-width:0}.craft-actions>button{min-width:0;width:100%;min-height:40px;padding:9px 7px;font-size:11px;border-radius:5px}.craft-actions>button.primary{background:linear-gradient(#ffd46b,#ffbb35);color:#281d07;border-color:#fbd774;box-shadow:0 2px 0 #92641966}.craft-actions>small{font-size:8px;color:#bdac98;line-height:1.5}.craft-gate{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:18px;color:#8ba7b5}.craft-gate>span{font-size:9px;line-height:1.6}
.craft-running{border:1px solid #448b81;border-radius:5px;background:#194b454d;color:#86e0cb;padding:8px 5px;font-size:9px}.craft-running>span{font-size:8px}#craft-page .craft-running progress{width:100%;margin:8px 0 6px}#craft-page .craft-running progress::-webkit-progress-value{background:#74dec9}
#craft-page .craft-card.is-current{border-color:#6ce0c7;box-shadow:0 0 0 1px #54cbb530}#craft-page .craft-locked .craft-emblem{opacity:.5}#craft-page .craft-locked h3{color:#aabcc7}
#craft-page .craft-needs-materials .craft-emblem,#craft-page .craft-needs-materials .craft-copy h3,#craft-page .craft-needs-materials .craft-copy>p{opacity:.76}
#craft-page .craft-needs-materials .craft-material-link{opacity:1}
.craft-empty{grid-column:1/-1;text-align:center;border:1px dashed #365461;border-radius:7px;padding:45px 20px}.craft-empty p{margin-top:8px}
@media(max-width:1300px){.craft-controls{align-items:flex-start}#craft-page .work-search{flex-basis:100%;max-width:none}#craft-page .craft-card{grid-template-columns:72px minmax(0,1fr) 90px;gap:12px;padding:13px 14px}.craft-item-art>.item-icon{width:58px!important;height:58px!important}}
@media(max-width:1100px){#craft-page .craft-list{grid-template-columns:1fr}#craft-page .craft-card{grid-template-columns:80px minmax(0,1fr) 96px;gap:16px}.craft-item-art>.item-icon{width:64px!important;height:64px!important}}
@media(max-width:600px){.craft-heading{margin-bottom:20px}.craft-heading h1{font-size:29px}.craft-heading-mark{display:none}.craft-heading p{font-size:11px;line-height:1.6}.craft-eyebrow{font-size:8px}.craft-controls{gap:10px;margin-bottom:15px}#craft-page .filters{gap:6px}#craft-page .filters button{font-size:9px;padding:7px 9px;min-height:34px;gap:5px}#craft-page .craft-card{grid-template-columns:64px minmax(0,1fr);gap:10px 12px;min-height:0;padding:13px 12px}.craft-item-art>.item-icon{width:52px!important;height:52px!important}.craft-emblem{grid-column:1;grid-row:1;align-self:center}.craft-emblem>small{font-size:7px;letter-spacing:.3px}.craft-copy{grid-column:2;grid-row:1}.craft-copy h3.work-item-title{font-size:15px}.craft-copy>p{font-size:10px;margin:6px 0 7px}.craft-skill{font-size:8px;gap:4px 7px}.craft-materials>div>span{font-size:8px}.craft-meta{font-size:8px;gap:5px 10px;align-self:center}.craft-actions{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:8px;align-items:center;width:100%;max-width:none}.craft-actions>small{grid-column:1/-1}.craft-actions .craft-gate{grid-column:2}.craft-actions:has(.craft-running){grid-template-columns:minmax(0,1fr) 100px}.craft-actions .craft-running{grid-column:1;grid-row:2}.craft-actions:has(.craft-running)>button{grid-column:2;grid-row:2}.craft-actions>button{min-height:35px;font-size:10px}.craft-gate{flex-direction:row;font-size:14px;text-align:left}.craft-gate>span{font-size:8px}.craft-output{font-size:9px;right:5px;bottom:3px}}
@media(max-width:360px){#craft-page .craft-card{grid-template-columns:55px minmax(0,1fr);gap:9px 10px;padding:12px 10px}.craft-item-art>.item-icon{width:46px!important;height:46px!important}.craft-heading h1{font-size:26px}.craft-emblem>small{font-size:6px}.craft-skill small{flex-basis:100%}}
/* Shared daily-goal layout: Crafting matches Gather & Train. */
.craft-heading{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(420px,1.1fr);gap:28px;align-items:center;margin:2px 0 24px}
#craft-page .gather-daily progress{height:9px;width:auto;flex:1;border:0;background:#172f3c}
#craft-page .gather-daily progress::-webkit-progress-bar{background:#172f3c}
#craft-page .gather-daily progress::-webkit-progress-value{background:linear-gradient(90deg,#e3a738,#ffda78)}
#craft-page .gather-daily.is-claimed progress::-webkit-progress-value{background:#efbf72}
@media(max-width:1150px){.craft-heading{grid-template-columns:1fr;gap:18px}}
@media(max-width:600px){.craft-heading{gap:17px;margin-bottom:18px}.craft-heading>div>p{max-width:290px}.craft-heading .daily-kicker{font-size:7px;letter-spacing:.8px}}

.craft-gate{flex-direction:column;gap:3px}.craft-gate>b{font-size:8px;font-weight:600;letter-spacing:.4px;color:#d3bd8d}

/* Explicit finite batches keep equipment crafts intentional. */
#craft-page .craft-card{grid-template-columns:80px minmax(0,1fr) 132px}
.craft-quantity-buttons{display:grid;gap:7px;min-width:0}
.craft-quantity-buttons>button{width:100%;min-width:0;min-height:39px;padding:9px 6px;border-radius:5px;font-size:11px;white-space:normal}
.craft-quantity-buttons>button.primary{background:linear-gradient(#ffd46b,#ffbb35);color:#281d07;border-color:#fbd774;box-shadow:0 2px 0 #92641966}
.craft-quantity-buttons>button.craft-all{background:#18313d;border:1px solid #527080;color:#d6e5e8}
.craft-quantity-buttons>button.craft-all span{color:#a9c4cf}
.craft-quantity-buttons>button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.craft-copy>.craft-destination{margin:7px 0 9px;padding-left:8px;border-left:2px solid #63c5a3;color:#9cdbc5;font-size:10px;font-weight:600;line-height:1.45}
.craft-destination>span{display:block;font-size:9px;font-weight:400;color:#afc5cd}
.craft-running>b,.craft-running>span{display:block;line-height:1.45}
.craft-running>span{margin-top:3px;color:#b0d3c9}
@media(min-width:601px) and (max-width:1300px){#craft-page .craft-card{grid-template-columns:72px minmax(0,1fr) 120px}}
@media(max-width:600px){
 #craft-page .craft-card{grid-template-columns:64px minmax(0,1fr)}
 #craft-page .craft-actions,#craft-page .craft-actions:has(.craft-running){grid-template-columns:1fr;gap:8px}
 .craft-actions .craft-meta,.craft-actions .craft-gate,.craft-actions .craft-running,.craft-actions .craft-quantity-buttons{grid-column:1/-1;grid-row:auto}
 .craft-quantity-buttons{grid-template-columns:1fr 1fr;gap:8px}
 .craft-quantity-buttons>button{min-height:42px;font-size:11px}
 .craft-actions .craft-gate{align-items:flex-start;text-align:left}
 .craft-actions .craft-running{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px}
 .craft-running>span{margin-top:0;font-size:8px}
 .craft-actions>small{font-size:9px;line-height:1.45}
 .craft-copy>.craft-destination{font-size:9px}
 .craft-destination>span{font-size:8px}
}
@media(max-width:360px){#craft-page .craft-card{grid-template-columns:55px minmax(0,1fr)}}

/* Keep a clear lane beside the guided craft button, away from item details. */
@media(min-width:601px){#craft-page .craft-card:has(.craft-quantity-buttons>.objective-target) .craft-copy{padding-right:36px}}
@media(max-width:600px){.craft-quantity-buttons:has(>.objective-target){padding-left:48px}}

/* Keep the batch status in a reserved footer, outside the button stack. */
#craft-page .craft-footer{grid-column:2/-1;display:grid;grid-template-columns:minmax(0,1fr) 132px;align-items:center;gap:16px;min-height:40px}
.craft-batch-slot{min-width:0}
.craft-batch-slot .craft-running{display:inline-block;max-width:100%;padding:6px 10px;font-size:10px}
.craft-footer>small{font-size:8px;color:#bdac98;line-height:1.5;text-align:center}
@media(min-width:601px) and (max-width:1300px){#craft-page .craft-footer{grid-template-columns:minmax(0,1fr) 120px;gap:12px}}
@media(max-width:600px){
 #craft-page .craft-footer{grid-column:1/-1;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:10px;min-height:40px}
 .craft-batch-slot .craft-running{padding:6px 8px;font-size:10px}
 .craft-footer>small{font-size:9px;line-height:1.45;text-align:right}
}

/* Mobile recipes keep only the information needed to choose and craft. */
@media(max-width:800px){
 #craft-page .craft-card{grid-template-columns:56px minmax(0,1fr);gap:10px 12px;padding:14px 12px}
 #craft-page .craft-copy>p{display:none}
 #craft-page .craft-materials{margin-top:8px}
 #craft-page .craft-materials>small{display:none}
 #craft-page .craft-emblem{gap:4px}
 #craft-page .craft-emblem>small{font-size:8px;line-height:1.3}
 #craft-page .craft-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr;gap:8px;width:100%;min-width:0}
 #craft-page .craft-actions .craft-meta{display:flex;justify-content:flex-end;gap:12px;grid-column:1/-1}
 #craft-page .craft-quantity-buttons{grid-column:1/-1;grid-template-columns:1fr 1fr;gap:8px}
 #craft-page .craft-quantity-buttons>button{min-height:42px;border-radius:7px}
 #craft-page .craft-actions .craft-gate{grid-column:1/-1;text-align:left;align-items:flex-start}
 #craft-page .craft-footer{display:none;min-height:0;grid-column:1/-1;grid-template-columns:1fr;gap:4px}
 #craft-page .craft-footer.has-craft-notice,#craft-page .craft-footer:has(.craft-running){display:grid}
 #craft-page .craft-footer:not(.has-craft-notice)>small{display:none}
 #craft-page .craft-footer>small{text-align:left;font-size:10px}
 #craft-page .craft-batch-slot:empty{display:none}
}
.craft-materials .craft-material-owned{padding:0;border:0;border-radius:0;background:transparent;font-weight:400;box-shadow:none;color:#c7d5dd}
.craft-materials .craft-material-owned:hover{background:transparent;color:#e1ecec}
.craft-materials .craft-material-owned:focus-visible{outline:2px solid #ffd36b;outline-offset:3px}

.craft-actions .craft-meta{gap:12px;line-height:1.5;white-space:nowrap}.craft-meta>span{display:inline-flex;align-items:center;gap:4px}

#craft-page .craft-emblem .craft-upgrade-badge{display:inline-flex;justify-content:center;margin:6px 0 0;padding:2px 5px;border:1px solid #4c9975;border-radius:8px;background:#214e3e;color:#c3efd7;font:500 8px/1.25 Segoe UI,system-ui,sans-serif;letter-spacing:0;white-space:nowrap}

/* Missing inputs have the same presentation regardless of other unlock gates. */
#craft-page .craft-card.craft-needs-materials{border-color:#805c6177;background:linear-gradient(110deg,#172731,#211f29)}
#craft-page .craft-card.craft-needs-materials.is-recommended{background:linear-gradient(110deg,#172731,#211f29)}
#craft-page .craft-unavailable{display:flex;align-items:center;justify-content:center;min-height:40px;padding:8px 10px;border:1px solid #986b6b55;border-radius:9px;background:#ae5a6510;color:#dca5a5;font-size:12px;font-weight:650;line-height:1.3;text-align:center;width:100%;box-sizing:border-box}
#craft-page .craft-actions .craft-unavailable{grid-column:1/-1}

#craft-page .craft-needs-materials .craft-unavailable{min-height:28px;padding:5px 4px;border-color:#986b6b30;border-radius:7px;background:#ae5a6509;color:#c89d9f;font-size:10px;font-weight:500;line-height:1.35;letter-spacing:.01em}

/* Compact recipe cards follow the mobile crafting mockup. */
@media(max-width:800px){
 #craft-page .craft-list{gap:12px}
 #craft-page .craft-card{grid-template-columns:74px minmax(0,1fr);grid-template-rows:minmax(76px,auto) 36px;align-items:start;gap:5px 12px;min-height:0;padding:11px 12px 8px;border:0;border-radius:16px;background:#102630;box-shadow:none}
 #craft-page .craft-card.craft-needs-materials,#craft-page .craft-card.craft-needs-materials.is-recommended{background:#102630}
 #craft-page .craft-emblem{grid-column:1;grid-row:1;align-self:start}
 #craft-page .craft-emblem>button.craft-item-art{width:74px;height:74px;border-radius:11px}
 #craft-page .craft-item-art .pixel-icon,#craft-page .craft-item-art .item-icon,#craft-page .craft-item-art img{width:68px!important;height:68px!important;max-width:68px;max-height:68px;object-fit:contain}
 #craft-page .craft-item-art .inventory-qty{position:absolute;top:auto!important;left:auto!important;right:5px!important;bottom:5px!important;z-index:2;display:block;width:auto;height:auto;min-width:10px;padding:0;color:#f4f1e9;font-size:12px;font-weight:800;line-height:1;text-shadow:0 1px 3px #000,0 1px 6px #000}
 #craft-page .craft-copy{grid-column:2;grid-row:1;align-self:start;padding-top:3px}
 #craft-page .craft-copy h3.work-item-title{max-width:calc(100% - 83px);font-size:14px;line-height:1.2;margin:0 0 5px}
 #craft-page .craft-copy>.craft-destination{display:none}
 #craft-page .craft-materials{margin-top:6px}
 #craft-page .craft-materials>div{gap:0 9px}
 #craft-page .craft-materials .craft-material,#craft-page .craft-materials .craft-material-link{min-height:19px;padding:0;gap:3px;border:0;background:none;font-size:9px;line-height:1.2;white-space:nowrap}
 #craft-page .craft-materials .item-icon,#craft-page .craft-materials .pixel-icon{width:16px!important;height:16px!important;max-width:16px;max-height:16px}
 #craft-page .craft-actions{grid-column:1/-1;grid-row:2;display:flex;align-items:flex-end;justify-content:flex-end;width:100%;min-width:0;min-height:36px;margin:0}
 #craft-page .craft-actions .craft-meta{position:absolute;top:12px;right:12px;display:flex;justify-content:flex-end;gap:8px;max-width:84px;margin:0;padding:0;border:0;background:none;color:#9ebbc7;font-size:7px;line-height:1.2}
 #craft-page .craft-actions .craft-meta>span{gap:2px}
 #craft-page .craft-quantity-buttons{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:min(214px,100%);margin-left:auto}
 #craft-page .craft-quantity-buttons>button{height:35px;min-height:35px;padding:5px 6px;border:0;border-radius:8px;font-size:10px;white-space:nowrap}
 #craft-page .craft-quantity-buttons>button.craft-all{border:0;background:#1d3c4a;color:#dce9ed}
 #craft-page .craft-quantity-buttons>button.primary{border:0;background:linear-gradient(#ffda79,#ffc24b);color:#1e2727;box-shadow:0 2px 0 #a57527}
 #craft-page .craft-actions .craft-unavailable{width:min(104px,100%);min-height:35px;margin-left:auto;padding:5px 7px;border:0;border-radius:8px;background:#254652;color:#e8d6cf;font-size:10px;line-height:1.1}
 #craft-page .craft-footer.has-craft-notice,#craft-page .craft-footer:has(.craft-running){grid-column:1/-1;margin-top:0}
}
@media(max-width:360px){
 #craft-page .craft-card{grid-template-columns:66px minmax(0,1fr);gap:5px 9px;padding:10px}
 #craft-page .craft-emblem>button.craft-item-art{width:66px;height:66px}
 #craft-page .craft-item-art .pixel-icon,#craft-page .craft-item-art .item-icon,#craft-page .craft-item-art img{width:60px!important;height:60px!important}
}
