.field-guide{max-width:760px;margin:auto;color:#f2e4c4}.field-guide h2{margin:0 0 12px}.field-guide h2 small{font-size:12px;color:#cfb98d}.guide-tabs,.guide-links,.guide-paging{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.guide-tabs button{flex:1;min-width:64px}.guide-tabs [aria-pressed=true],.bestiary-card[aria-pressed=true]{outline:2px solid #e8bf6e;outline-offset:-2px;background:#4a3b29}.help-cards{display:grid;gap:9px}.help-cards article{display:flex;gap:12px;padding:12px;background:#171b20;border:1px solid #726346;border-radius:5px}.help-cards h3{margin:0 0 6px;font-size:15px}.help-cards p,.guide-note{margin:0;line-height:1.65;font-size:13px;font-weight:400}.help-number{color:#e6c279;font-size:24px}.bestiary-bonus{display:flex;flex-wrap:wrap;gap:9px;padding:9px;background:#242922;color:#e6d6ae;font-size:12px}.bestiary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.bestiary-card{display:flex!important;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:8px!important}.bestiary-card b{font-size:12px;white-space:normal}.bestiary-card small,.bestiary-card>span:not(.bestiary-art){font-size:11px}.bestiary-art{width:80px;height:72px;display:grid;place-items:center;overflow:hidden}.bestiary-art svg{width:72px;height:72px}.bestiary-card progress{width:100%;height:5px;accent-color:#d8b767}.guide-paging{justify-content:center;align-items:center}.bestiary-stages{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));list-style:none;padding:0;gap:5px}.bestiary-stages li{display:flex;flex-direction:column;gap:7px;padding:8px 5px;border:1px solid #575449;background:#202328;font-size:11px}.bestiary-stages li.earned{border-color:#b99950;background:#3c3826;color:#ffe5a4}.bestiary-stages small{font-size:10px}.guide-note{font-size:11px;color:#ccbfa3;margin:10px 0}#rpg .side-top-tools{flex-wrap:wrap}#rpg #help-button{flex:1}@media(max-width:520px){.bestiary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bestiary-stages{grid-template-columns:repeat(2,minmax(0,1fr))}.help-cards article{padding:9px}.guide-tabs{gap:4px}.guide-tabs button{font-size:11px}.bestiary-bonus{gap:6px}}

#rpg .side-top-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.guide-tabs button{word-break:keep-all}.bestiary-art{height:52px}.bestiary-art svg{height:52px;width:60px}.bestiary-card{gap:2px!important;padding:5px!important}@media(max-width:520px){.guide-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}

#rpg .side-top-tools{grid-template-columns:repeat(2,minmax(0,1fr))}#rpg .side-top-tools button{width:auto;min-width:0;margin:0}

.engraving-lines{display:grid;gap:5px;margin:12px 0}.engraving-lines button{text-align:left;font-weight:400}.engraving-lines [aria-pressed=true]{outline:2px solid #e2bd71;background:#514128}

.mystic-layout.has-selection{grid-template-columns:minmax(180px,1fr) minmax(330px,1.3fr)}.mystic-layout .collection-detail>svg{width:60px;height:60px}.mystic-layout .collection-detail button{min-height:30px;padding:6px 8px}.mystic-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.mystic-layout .collection-detail h3{font-size:14px;margin:9px 0}.mystic-layout .collection-detail p{font-size:12px;margin:6px 0}.mystic-layout .engraving-lines{gap:3px;margin:8px 0}@media(max-width:650px){.mystic-layout.has-selection{grid-template-columns:minmax(0,1fr)}}

/* Keep the engraving workbench above the generic inventory grid rules. */
#rpg .mystic-layout.has-selection{grid-template-columns:minmax(220px,.8fr) minmax(480px,1.5fr);gap:14px}
#rpg .mystic-layout .collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#rpg .mystic-layout .collection-detail{min-height:0;padding:14px}
#rpg .mystic-item-heading{display:flex;align-items:center;gap:12px;margin-bottom:12px}
#rpg .mystic-item-heading>.gear-image{width:58px;height:58px;flex:0 0 58px}
#rpg .mystic-layout .collection-detail h3{font-size:15px;line-height:1.4;margin:6px 0}
#rpg .mystic-layout .collection-detail p{font-size:12px;line-height:1.5;margin:6px 0}
#rpg .mystic-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
#rpg .mystic-layout .engraving-lines{margin:0;gap:5px}
#rpg .mystic-layout .engraving-lines button{width:100%;min-height:34px;text-align:left}
#rpg .mystic-layout .mystic-choices{grid-template-columns:1fr;gap:5px}
#rpg .mystic-layout .mystic-choices button{min-height:34px}
#rpg .mystic-treatment.potential{border-top:1px solid #826b47;margin-top:12px;padding-top:8px}
#rpg .mystic-treatment.potential .mystic-choices{grid-template-columns:minmax(0,1fr)}
@media(max-width:850px){#rpg .mystic-layout.has-selection{grid-template-columns:minmax(0,1fr)}#rpg .mystic-layout .collection-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:450px){#rpg .mystic-workspace{grid-template-columns:minmax(0,1fr)}#rpg .mystic-layout .mystic-choices{grid-template-columns:repeat(2,minmax(0,1fr))}#rpg .mystic-layout .collection-detail{padding:10px}}

#rpg .mystic-item-heading{justify-content:flex-start;position:static;background:none;border:0;box-shadow:none;padding:0;min-height:0}

.forge-feedback{position:fixed;z-index:10000;left:50%;top:42%;transform:translate(-50%,-50%);pointer-events:none;min-width:240px;padding:20px 30px;text-align:center;background:linear-gradient(140deg,#2d2417ef,#11171bf0);border:2px solid #e7c878;box-shadow:0 0 40px #d8a14455,inset 0 0 20px #ba904422;color:#ffe4a0;border-radius:6px}.forge-feedback[hidden]{display:none}.forge-feedback strong,.forge-feedback span,.forge-feedback small{display:block;margin:6px}.forge-feedback strong{font-size:28px}.forge-feedback span{font-size:22px}.forge-feedback.failure{border-color:#cf7979;color:#ffb0a0}.forge-feedback.preserve{border-color:#81bbd0;color:#c6e9f6}.forge-stop{background:#703e2c;color:#fff1d0;padding:10px 20px}.forge-count select{background:#2d291f;color:#ffdf95;min-width:85px;padding:7px}

#rpg .forge-count input[data-forge-target]{width:65px;height:34px;background:#262820;color:#ffe3a2;font-size:17px;padding:4px}#rpg .forge-count button{min-width:36px;min-height:34px;padding:4px 9px}

#dialog .forge-attempt.forge-stop{background:linear-gradient(#8e4030,#54251d);border-color:#e5ac79;color:#fff4df;}
