/* The existing Astralis navy, gold frames, serif titles, and item atlas. */
.astralis-cockpit .feature-drawer.crafting-open{inset:3dvh max(16px,calc((100vw - 1400px)/2));max-height:94dvh;background:#031221fc!important;border-color:#c49a4f}
.crafting-open .feature-heading{min-height:66px;padding:12px 24px}.crafting-open .feature-heading h2{font:600 40px/1 'Cormorant Garamond',Georgia,serif;color:#f4cb79}.crafting-open .feature-heading button{min-width:44px;min-height:44px}.crafting-open .feature-body{display:flex;overflow:hidden;padding:14px;min-height:0}
.crafting-workbench{display:grid;grid-template-columns:minmax(280px,.7fr) minmax(0,1fr);gap:14px;flex:1;min-height:0;width:100%}
.crafting-browser,.crafting-detail{position:relative;min-width:0;min-height:0;border:1px solid #59677b;background:linear-gradient(130deg,#071b2c90,#03102070)}
.crafting-browser:before,.crafting-detail:before{content:'';position:absolute;inset:4px;pointer-events:none;border:1px solid #62768b30;clip-path:polygon(0 0,18px 0,18px 2px,2px 2px,2px 18px,0 18px,0 0,100% 0,100% 18px,calc(100% - 2px) 18px,calc(100% - 2px) 2px,calc(100% - 18px) 2px,calc(100% - 18px) 0,100% 0,100% 100%,calc(100% - 18px) 100%,calc(100% - 18px) calc(100% - 2px),calc(100% - 2px) calc(100% - 2px),calc(100% - 2px) calc(100% - 18px),100% calc(100% - 18px),100% 100%,0 100%,0 calc(100% - 18px),2px calc(100% - 18px),2px calc(100% - 2px),18px calc(100% - 2px),18px 100%,0 100%)}
.crafting-browser{display:flex;flex-direction:column;padding:20px 14px 14px;overflow:hidden}.crafting-detail{display:flex;flex-direction:column;border-color:#b38c48;overflow:hidden}.crafting-detail:before{border-color:#d5b263}
.crafting-filters{margin:0;gap:12px;padding:0 8px}.crafting-filters>label:first-child{font:600 24px/1.2 'Cormorant Garamond',Georgia,serif;color:#f2d38e;gap:10px}.crafting-filters select,.crafting-filters input{font:20px/1.3 'Cormorant Garamond',Georgia,serif;border-radius:0;padding:12px 16px;min-height:48px}.crafting-filters select{border-color:#4697ca;background:#06152b}.crafting-search{position:relative}.crafting-search>span[aria-hidden]{position:absolute;left:13px;top:3px;font:36px/1 Georgia,serif;color:#adbedc;pointer-events:none}.crafting-search input{padding-left:45px;background:#041525}.crafting-search input::placeholder{color:#8da4bf}.crafting-filters #crafting-load{justify-self:end;min-height:30px;padding:0 2px;border:0;background:transparent;box-shadow:none;color:#91c9dc;font-size:12px}
.crafting-browser #crafting-feedback{margin:4px 8px 0;font-size:12px;background:transparent;padding:0;border:0;min-height:18px;color:#a8bed2}.crafting-browser #crafting-summary{margin:5px 8px 10px;font:11px/1.5 system-ui,sans-serif;color:#8099b2}.crafting-recipe-list{display:flex;flex-direction:column;gap:5px;flex:1;overflow:auto;min-height:0;margin:0;padding:0 7px 3px 0;scrollbar-width:thin;scrollbar-color:#817a83 #071524}
.service-panel .crafting-recipe{display:flex;align-items:center;gap:20px;text-align:left;width:100%;flex-shrink:0;padding:7px 10px;min-height:72px;border:1px solid #294b66;background:linear-gradient(110deg,#061627,#041321);box-shadow:none;border-radius:3px;color:#edf0f8;font:500 23px/1.2 'Cormorant Garamond',Georgia,serif}.service-panel .crafting-recipe:hover{background:#0b2b40;border-color:#7db2c8}.service-panel .crafting-recipe[aria-pressed=true]{border-color:#f6ca62;box-shadow:inset 0 0 0 1px #9d7529;background:linear-gradient(110deg,#0a2c44,#0d3450);color:#ffdb85}.crafting-recipe-name{overflow-wrap:anywhere}.crafting-recipe .item-icon{width:58px;height:58px;flex:0 0 58px;border:1px solid #7992ac;border-radius:3px;background:#030e1b;display:grid;place-items:center}.crafting-recipe .item-icon canvas{width:54px;height:54px;image-rendering:pixelated}.crafting-list-empty{padding:20px 10px;color:#94abc2}
.crafting-empty{display:grid;align-content:center;justify-items:center;text-align:center;flex:1;padding:32px;color:#96adc5}.crafting-empty>span{font-size:54px;color:#d9b76b;opacity:.8}.crafting-empty h3{font:600 30px 'Cormorant Garamond',Georgia,serif;color:#edce8b;margin:18px 0 8px}.crafting-empty p{line-height:1.7}
.recipe-detail-card{min-height:0;display:flex;flex-direction:column;flex:1;margin:0;padding:0;background:transparent}.recipe-detail-scroll{overflow:auto;min-height:0;flex:1;padding:30px 32px 16px;scrollbar-width:thin;scrollbar-color:#817a83 #071524}.recipe-back{display:none}.recipe-hero{display:flex;align-items:flex-start;gap:26px;margin:6px 0 25px}.recipe-art{width:128px;height:128px;flex:0 0 128px;border:1px solid #f2ca71;outline:1px solid #8d7137;outline-offset:3px;background:#030e18;box-shadow:inset 0 0 0 4px #0e1d29;display:grid;place-items:center}.recipe-art .item-icon-large{width:116px;height:116px;border:0;background:transparent}.recipe-art .item-icon-large canvas{width:116px;height:116px;image-rendering:pixelated}.astralis-cockpit .recipe-hero h3{font:600 36px/1.08 'Cormorant Garamond',Georgia,serif!important;color:#f4ca75!important;margin:5px 0 12px;overflow-wrap:anywhere}.recipe-hero p{font:21px/1.4 'Cormorant Garamond',Georgia,serif;color:#bdc9e2;margin:0}
.recipe-facts{display:grid;grid-template-columns:1fr 1fr;grid-auto-flow:column;grid-template-rows:repeat(4,auto);gap:7px 30px;border-top:1px solid #9f824e;border-bottom:1px solid #9f824e;padding:25px 0;margin:0;position:relative}.recipe-facts:before{content:'◇';position:absolute;top:-12px;left:calc(50% - 9px);background:#041423;color:#d8b569;padding:0 4px}.recipe-fact{display:grid;grid-template-columns:minmax(100px,1.05fr) minmax(0,1fr);gap:12px;align-items:baseline;font:19px/1.3 'Cormorant Garamond',Georgia,serif}.recipe-fact dt{color:#aebedf}.recipe-fact dd{margin:0;color:#f1f1fa;overflow-wrap:anywhere}.recipe-fact:nth-child(n+5){border-left:1px solid #8f7649;padding-left:24px}
.recipe-section{padding:22px 0;border-bottom:1px solid #9f824e}.recipe-section h4{font:600 26px/1.2 'Cormorant Garamond',Georgia,serif;margin:0 0 12px;color:#efc673}.recipe-section>p{font:20px/1.5 'Cormorant Garamond',Georgia,serif;color:#bdc9e2;margin:0}.recipe-ingredients{display:grid;gap:7px}.recipe-ingredient{display:flex;align-items:center;gap:20px;min-height:62px;border:1px solid #2d506c;border-radius:3px;padding:7px 13px;background:#041728;font:21px/1.25 'Cormorant Garamond',Georgia,serif;color:#edf0f8}.recipe-ingredient .item-icon{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;border:1px solid #607d99;background:#020d19;border-radius:3px}.recipe-ingredient .item-icon canvas{width:46px;height:46px;image-rendering:pixelated}.recipe-ingredient-name{flex:1;min-width:0;overflow-wrap:anywhere}.recipe-ingredient-count{white-space:nowrap;padding-left:10px}.ingredient-missing{border-color:#966858}.ingredient-missing .recipe-ingredient-count{color:#ffa996}.recipe-response{font-size:12px;color:#92a9bf;margin:14px 0}.recipe-response summary{cursor:pointer}.recipe-response .service-transcript{margin-top:12px}
.recipe-craft-footer{display:block;letter-spacing:normal;text-transform:none;font:inherit;flex-shrink:0;padding:10px 26px 18px;border-top:1px solid #b08a46;background:#041323}.recipe-craft-footer #recipe-selection-status{color:#b4c7d7;font-size:12px;margin:0 0 10px;overflow-wrap:anywhere}.recipe-craft-controls{display:flex;align-items:center;gap:12px}.recipe-craft-controls label{font:21px 'Cormorant Garamond',Georgia,serif;color:#b3c5df}.recipe-stepper{display:flex;flex-shrink:0;height:44px}.recipe-stepper button,.recipe-stepper input{border:1px solid #596c83;border-radius:0;background:#06152a;color:#e5edf8;font:22px 'Cormorant Garamond',Georgia,serif;min-height:44px}.recipe-stepper button{width:42px;padding:0;font-size:28px}.recipe-stepper input{width:58px;border-left:0;border-right:0;text-align:center;appearance:textfield;padding:4px}.recipe-stepper input::-webkit-inner-spin-button,.recipe-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.recipe-craft-controls #recipe-max{min-height:44px;border-radius:0;color:#b7c6df;font:18px 'Cormorant Garamond',Georgia,serif}.recipe-craft-controls #recipe-craft{margin-left:auto;min-width:150px;min-height:58px;border:3px double #ffe294;outline:1px solid #eac267;outline-offset:2px;border-radius:0;background:linear-gradient(135deg,#a37529,#e7c478 42%,#bc8c3b 75%,#82601f);box-shadow:inset 0 0 14px #5d411f66;color:#171207;font:700 30px/1 'Cormorant Garamond',Georgia,serif;padding:10px 28px;text-shadow:0 1px #f9df99}.recipe-craft-controls #recipe-craft:disabled{filter:saturate(.35);opacity:.5}.recipe-craft-controls #recipe-queue-cancel{border-color:#bd9c5c;color:#f0d393}.recipe-craft-footer .hint{font:11px/1.4 system-ui,sans-serif;margin:12px 0 0;color:#8da5bc}.crafting-detail #crafting-progress{margin:0 20px 16px;padding:12px}
@media(max-width:1100px){.crafting-workbench{grid-template-columns:minmax(240px,.64fr) minmax(0,1fr)}.recipe-detail-scroll{padding:22px}.recipe-hero{gap:18px}.recipe-art{width:92px;height:92px;flex-basis:92px}.recipe-art .item-icon-large,.recipe-art .item-icon-large canvas{width:84px;height:84px}.astralis-cockpit .recipe-hero h3{font-size:29px!important}.recipe-facts{gap:7px 14px}.recipe-fact{font-size:17px;grid-template-columns:1fr 1fr;gap:8px}.recipe-fact:nth-child(n+5){padding-left:14px}.recipe-craft-controls{gap:7px;flex-wrap:wrap}.recipe-craft-controls #recipe-craft{min-width:130px;flex:1}.recipe-craft-controls #recipe-queue-cancel{flex-basis:100%}.service-panel .crafting-recipe{gap:12px;font-size:21px}}
@media(max-width:760px){.astralis-cockpit .feature-drawer.crafting-open{inset:8px;max-height:calc(100dvh - 16px)}.crafting-open .feature-heading{min-height:52px;padding:10px 14px}.crafting-open .feature-heading h2{font-size:30px}.crafting-open .feature-body{padding:10px;overflow:auto;display:block}.crafting-workbench{display:flex;flex-direction:column;gap:12px;min-height:100%}.crafting-browser{padding:14px 10px;overflow:visible;flex-shrink:0}.crafting-recipe-list{max-height:280px;flex:auto}.crafting-detail{flex-shrink:0;min-height:250px;overflow:visible}.recipe-detail-scroll{overflow:visible;padding:16px}.recipe-back{display:block;margin:0 0 18px;padding:0!important;min-height:32px!important;border:0;background:transparent;box-shadow:none;color:#adc7e1;font-size:13px!important}.recipe-hero{gap:16px}.recipe-hero p{font-size:19px}.recipe-facts{font-size:16px;grid-template-columns:1fr;grid-template-rows:none;grid-auto-flow:row;gap:10px;padding:20px 0}.recipe-fact{font-size:19px;grid-template-columns:1fr 1fr}.recipe-fact:nth-child(n+5){border:0;padding:0}.recipe-ingredient{font-size:20px;gap:12px}.recipe-craft-footer{padding:12px 16px 16px}.recipe-craft-controls #recipe-craft{min-width:110px;font-size:27px}.recipe-craft-controls label{font-size:19px}.recipe-craft-controls{gap:8px}.recipe-stepper input{width:45px}.recipe-craft-controls #recipe-max{padding:7px 9px}.crafting-empty{padding:32px 12px}.crafting-empty h3{font-size:27px}}
.astralis-cockpit .crafting-browser{display:flex!important;flex-direction:column}

/* Body-level tooltip stays outside scrolling/clipped recipe cards. */
.astralis-cockpit button.recipe-art{padding:0;flex-shrink:0;cursor:help;background:#020e18;min-height:0;box-shadow:inset 0 0 0 3px #031221,inset 0 0 0 4px #a88648}
.astralis-cockpit button.recipe-art:focus-visible{outline:2px solid #80d9ef;outline-offset:4px}
.craft-item-tooltip{position:fixed;z-index:48;box-sizing:border-box;width:340px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;padding:18px 20px;color:#d6dfed;background:#031323;border:1px solid #d7ad5d;box-shadow:0 12px 42px #000b,inset 0 0 0 3px #031323,inset 0 0 0 4px #8c703c;font:15px/1.5 Georgia,serif;overflow-wrap:anywhere}
.craft-item-tooltip[hidden]{display:none!important}.craft-item-tooltip h4{font:600 27px/1.1 'Cormorant Garamond',Georgia,serif;color:#f4cb79;margin:0 0 12px}.craft-tooltip-description{margin:0 0 14px;color:#c4ccdc}.craft-tooltip-facts{display:grid;grid-template-columns:82px minmax(0,1fr);gap:8px 14px;margin:0;border-top:1px solid #80683f;padding-top:12px}.craft-tooltip-facts dt{color:#a9bdd8}.craft-tooltip-facts dd{margin:0}.craft-item-tooltip .hint{margin:12px 0 0;font:12px/1.5 system-ui;color:#9cb2ca}
