#map #companion-sighting{position:absolute;z-index:2;display:flex;align-items:center;gap:9px;max-width:210px;padding:9px 12px;transform:translate(-50%,calc(-100% - 22px));border:1px solid #a5bf9c;border-radius:4px;background:#163d38ee;color:#e9ead4;box-shadow:0 3px 12px #0006;text-align:left;text-shadow:none;user-select:none}
#map #companion-sighting::after{content:'';position:absolute;left:calc(50% - 1px);top:100%;height:22px;border-left:2px solid #b9d7af;pointer-events:none}
#map #companion-sighting:hover,#map #companion-sighting:focus-visible{background:#28584d;border-color:#e2db9c;outline:2px solid #c8d6a566;outline-offset:2px}
#map #companion-sighting .ico{width:26px;height:26px;flex:none}
#map #companion-sighting strong,#map #companion-sighting small{display:block;line-height:1.5}
#map #companion-sighting strong{font-size:13px;letter-spacing:.04em}
#map #companion-sighting small{font-size:11px;font-weight:normal;color:#b8d3bd;white-space:nowrap}
#map #companion-sighting[hidden],body:has(#screen:not([hidden])) #companion-sighting,body:has(#screen:not([hidden])) #companion-contact{display:none}
#companion-contact{border-color:#9eb997;color:#e1e9cc}
@media(max-width:600px){#forage-row .bar{flex-wrap:wrap;justify-content:center}#map #companion-sighting{max-width:185px;padding:7px 10px}}
.comp-panel{width:min(1210px,calc(100vw - 32px));max-width:none;padding:26px;background:linear-gradient(135deg,#262a26,#171e1d);color:#e3dfcc}
.comp-header{display:flex;justify-content:space-between;gap:20px;align-items:center;padding-bottom:20px;border-bottom:1px solid #5c62504d}.comp-header h2{margin:4px 0}.comp-header>div:last-child{display:flex;gap:12px;align-items:center}.comp-origin{font-size:11px;letter-spacing:2px;color:#c4aa70}.comp-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:28px;margin-top:24px}.comp-roster{border-right:1px solid #676a4f55;padding-right:18px}.comp-roster>button{display:flex;flex-direction:column;align-items:flex-start;gap:7px;width:100%;padding:15px 13px;margin:0 0 8px;text-align:left}.comp-roster>button.active{background:#70613c40;border-color:#ccb57c}.comp-roster small,.comp-roster p{font-size:11px;color:#b1b4a4;line-height:1.7}.comp-roster strong{font-size:15px}.comp-detail{min-width:0}.comp-hero{display:grid;grid-template-columns:240px minmax(0,1fr);gap:26px}.comp-hero h2{font-size:29px;margin:8px 0 12px}.comp-hero p{color:#bac0b1;line-height:1.7}.comp-portrait{background:radial-gradient(ellipse at 50% 60%,#5b655855,#101919);border:1px solid #66735550;position:relative}.comp-preview{height:276px;touch-action:none}.comp-preview canvas{display:block;max-width:100%}.comp-preview-note{display:block;text-align:center;color:#9da79b;font-size:10px;letter-spacing:2px}.comp-poses{display:flex;justify-content:center;padding:8px;gap:4px}.comp-poses button{font-size:11px;padding:5px 12px}.comp-badges{display:flex;gap:8px;flex-wrap:wrap}.comp-badges span{padding:5px 8px;border:1px solid #a4ac8740;font-size:12px;color:#c9d6bf}.comp-xp{display:block;margin:16px 0;font-size:12px;color:#b6bfa9}.comp-xp progress{display:block;width:100%;height:6px;margin-top:8px;accent-color:#cfb477}.comp-traits{display:grid;gap:8px}.comp-trait{border-left:2px solid #686a5b;padding:8px 12px;background:#ffffff04;font-size:12px;display:flex;flex-direction:column;gap:5px;color:#91998f}.comp-trait.selected{border-color:#dab77b;color:#d9d1b6;background:#bb9b4b0b}.comp-trait span{line-height:1.6}.comp-trait small{color:#8d958c}.comp-duty{display:grid;grid-template-columns:215px 1fr;gap:18px;margin:22px 0;padding:15px;background:#c7ad6c0c;border:1px solid #b8a67735}.comp-duty label,.comp-issue label{font-size:12px;display:flex;flex-direction:column;gap:7px}.comp-duty select{width:100%}.comp-duty>div{display:flex;flex-direction:column;gap:7px;justify-content:center;font-size:13px}.comp-duty small{font-size:11px;line-height:1.6;color:#acb2a1}.comp-tabs{display:flex;gap:7px;border-bottom:1px solid #7c805544;padding-bottom:10px;margin-bottom:16px}.comp-tabs button.active,.comp-poses button.active{border-color:#c7b27e;color:#efdab0}.comp-training-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:14px;font-size:13px}.comp-training-head select{margin-left:8px}.comp-skills{display:grid;grid-template-columns:1fr 1fr;gap:8px 24px}.comp-skill{display:flex;gap:9px;align-items:center;font-size:12px;min-height:29px}.comp-skill>span{width:62px;flex-shrink:0}.comp-skill small{font-size:9px;display:block;color:#cfb477}.comp-skill meter{flex:1;width:30px;min-width:20px;height:8px;accent-color:#b9b98b}.comp-skill b{min-width:20px;text-align:right}.comp-skill button{padding:3px 7px}.comp-panel .dim{font-size:11px;line-height:1.7}.comp-panel section>small{font-size:11px;margin-left:12px;color:#a1ac9d}.comp-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-top:18px;margin-top:20px;border-top:1px solid #6976544d;font-size:12px}.comp-actions details{margin-left:auto}.comp-actions details p{max-width:220px;line-height:1.7}.comp-actions summary{cursor:pointer;color:#b4a17c}.comp-kit{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.comp-kit>div{background:#8a926d12;border:1px solid #89947b30;padding:12px;display:flex;flex-direction:column;gap:9px;font-size:12px}.comp-kit small{color:#c3ab76}.comp-kit span{line-height:1.6;font-size:11px;color:#aeb9a7}.comp-kit em{font-size:11px;color:#95a08e}.comp-issue{display:flex;gap:12px;align-items:end;margin-top:16px}.comp-issue label{flex:1;min-width:0}.comp-issue select{max-width:100%}.comp-summary{margin:22px 0;border:1px solid #a48c5855;background:#a09b5010;padding:18px;display:flex;gap:16px;align-items:center}.comp-summary>div{flex:1}.comp-summary p{font-size:12px}.comp-summary small{color:#aaa88e}.comp-candidates{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.comp-candidates article{padding:20px;border:1px solid #a9956055;background:#b4a1620c}.comp-candidates article>span{font-size:12px;display:block}.comp-candidates button{display:block;margin-top:16px}.comp-invitation{max-width:850px}.comp-invitation>.comp-hero{margin:30px 0 20px}.comp-invitation>.comp-traits{grid-template-columns:1fr 1fr}.comp-invitation .comp-skill>span{width:40px}.comp-panel [hidden]{display:none!important}
@media(max-width:760px){.comp-panel{padding:16px;width:calc(100vw - 16px)}.comp-header{align-items:flex-start}.comp-header>div:last-child{flex-wrap:wrap;justify-content:flex-end;font-size:11px}.comp-layout{grid-template-columns:1fr;gap:18px}.comp-roster{display:flex;overflow:auto;border-right:0;padding:0;gap:8px}.comp-roster>button{min-width:170px;width:170px}.comp-roster p{display:none}.comp-hero{grid-template-columns:170px minmax(0,1fr);gap:16px}.comp-preview{height:245px}.comp-hero h2{font-size:22px}.comp-duty{grid-template-columns:1fr}.comp-kit{grid-template-columns:1fr}.comp-summary{flex-wrap:wrap}.comp-issue{flex-wrap:wrap}.comp-training-head{flex-wrap:wrap}.comp-invitation .comp-hero{grid-template-columns:1fr}.comp-invitation .comp-preview{height:260px}}
@media(max-width:480px){.comp-hero{grid-template-columns:1fr}.comp-portrait{max-width:100%}.comp-preview{height:240px}.comp-skills{grid-template-columns:1fr}.comp-header>div:last-child>span{display:none}.comp-invitation>.comp-traits{grid-template-columns:1fr}.comp-panel section>small{display:block;margin:8px 0}}
