/* One additional wooden toolbar icon; existing studio appearance is preserved. */
.easel-shelf .reference-toolbar{flex-wrap:wrap}
#portrait-gallery{position:fixed;inset:0;margin:auto;width:min(1080px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid #827055;border-radius:12px;background:#22211f;color:#e6dac5;box-shadow:0 24px 80px #000b;overflow:auto}
#portrait-gallery::backdrop{background:#0009;backdrop-filter:blur(3px)}
.portrait-heading{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px 16px;background:#22211f;border-bottom:1px solid #82705555}
.portrait-heading h2{font-size:1.15rem;margin:0 0 6px}
.portrait-heading p{font-size:.85rem;color:#b8a88e;margin:0}
.portrait-filters{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.portrait-filters button{font:inherit;font-size:.8rem;padding:7px 12px;border:1px solid #82705577;border-radius:6px;color:#e6dac5;background:#191918;cursor:pointer}
.portrait-filters button[aria-pressed=true]{background:#45392a;border-color:#c3a473}
.portrait-filters button:focus-visible{outline:2px solid #e0bb7d;outline-offset:3px}
.portrait-filters button:disabled{cursor:wait;opacity:.65}
#close-portraits{flex:0 0 36px;width:36px;height:36px;border:1px solid #82705555;border-radius:7px;background:#302d27;color:#e6dac5;font-size:1.4rem;cursor:pointer}
#portrait-status{font-size:.9rem;padding:0 24px;color:#dfc794;line-height:1.7}
#portrait-status:empty{display:none}
#portrait-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px 14px;padding:20px 24px 24px}
.portrait-card{min-width:0;display:flex;flex-direction:column}
.portrait-choice{display:flex;flex:1;flex-direction:column;align-items:stretch;text-align:start;gap:5px;border:1px solid #76634666;border-radius:8px;padding:8px;background:#191918;color:#e6dac5;cursor:pointer;font:inherit;transition:border-color .15s,background .15s}
.portrait-choice:hover,.portrait-choice[aria-pressed=true]{border-color:#c3a473;background:#302b23}
.portrait-choice:focus-visible,#close-portraits:focus-visible,.portrait-source:focus-visible{outline:2px solid #e0bb7d;outline-offset:3px}
.portrait-choice:disabled{cursor:wait;opacity:.65}
.portrait-choice img{display:block;object-fit:contain;width:100%;height:190px;background:#111;border-radius:4px;margin-bottom:5px}
.portrait-choice strong{font-size:.85rem;line-height:1.6;font-weight:600}
.portrait-choice span{font-size:.78rem;line-height:1.6;color:#c4b79f}
.portrait-source{font-size:.73rem;line-height:1.7;padding:6px 3px 0;color:#b8a88e;text-decoration:underline;text-underline-offset:3px;align-self:flex-start}
@media(max-width:850px){#portrait-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:650px){#portrait-grid{grid-template-columns:repeat(3,minmax(0,1fr));padding:16px;gap:14px 10px}.portrait-choice img{height:165px}.portrait-heading{padding:16px}}
@media(max-width:460px){#portrait-gallery{width:calc(100vw - 20px);max-height:calc(100dvh - 24px)}#portrait-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}.portrait-heading h2{font-size:1rem}.portrait-heading p{font-size:.76rem}.portrait-choice img{height:165px}}
