/* Retained Pictures gallery and full-photo viewer, scoped to the hosted tool. */
.pictures-project{min-width:0;padding:28px 0 20px;color:var(--ink)}
.pic-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.pic-heading h1{font-size:20px;margin:0;font-weight:750}
.pictures-project button,.pic-modal button{color:var(--ink);background:var(--surface);border:1px solid var(--line-strong);border-radius:9px;padding:9px 14px;font-family:inherit;font-size:13px;font-weight:650;line-height:1.3;cursor:pointer;min-height:42px}.pictures-project button:disabled,.pic-modal button:disabled{opacity:.5;cursor:default}.pictures-project button:hover:not(:disabled),.pic-modal button:hover:not(:disabled){background:var(--hover)}
.pic-collections{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 18px}.pictures-project .pic-collection{border-radius:999px;font-weight:500}.pictures-project .pic-collection.is-selected{color:var(--bg);background:var(--ink);border-color:var(--ink)}
.pic-filters{display:grid;grid-template-columns:minmax(220px,2fr) minmax(160px,1fr) minmax(135px,.8fr) minmax(135px,.8fr) auto;gap:12px;align-items:end}.pic-filters label{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0}.pic-filters label>span{font-size:11px;font-weight:700;text-transform:uppercase;color:var(--muted)}.pic-filters input,.pic-filters select{width:100%;min-width:0;height:46px;box-sizing:border-box;font-size:16px;background:var(--input);color:var(--ink);border:1px solid var(--line-strong);border-radius:8px;padding:8px 12px}.pic-clear{height:46px}.pic-help{margin:14px 0;font-size:12px;color:var(--muted);line-height:1.5}.pic-count{color:var(--muted);margin:12px 0 18px;font-size:13px}
.pic-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}.pic-card{min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden;display:flex;flex-direction:column}.pictures-project .pic-preview{width:100%;height:210px;min-height:0;padding:0;border:0;border-radius:0;background:var(--bg);cursor:zoom-in;color:var(--ink);display:flex;align-items:center;justify-content:center;overflow:hidden}.pic-preview img{width:100%;height:100%;object-fit:cover}.pic-preview:focus-visible,.pic-modal button:focus-visible,.pictures-project button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.pic-caption{padding:14px;display:flex;flex-direction:column;gap:8px;flex:1}.pic-source{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:700}.pic-caption h3{font-size:16px;line-height:1.4;margin:0;overflow-wrap:anywhere}.pic-caption p{font-size:14px;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;max-height:5.5em;overflow:auto}.pic-date,.pic-caption small{color:var(--muted);font-size:13px}.pic-download{align-self:flex-start;margin-top:auto}.pic-image-error{font-size:14px;padding:12px}.pic-empty{grid-column:1/-1;padding:24px 0;color:var(--muted)}.pic-pages{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:24px}
.pic-modal{position:fixed;inset:0;z-index:50000;background:rgba(0,0,0,.85);display:flex;align-items:center;justify-content:center;padding:16px;color:var(--ink)}.pic-full-shell{width:100%;height:100%;max-width:1800px;box-sizing:border-box;background:var(--bg);border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;overflow:hidden}.pic-full-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);flex-shrink:0}.pic-full-header strong{overflow-wrap:anywhere;min-width:0}.pic-full-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.pic-full-actions button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;background:var(--panel);font-size:16px;padding:6px 12px}.pic-full-stage{flex:1;min-height:0;min-width:0;overflow:auto;display:flex;align-items:safe center;justify-content:safe center;padding:12px}.pic-full-image{display:block;max-width:100%;max-height:100%;object-fit:contain;flex-shrink:0}.pic-full-error{padding:24px}.pic-modal [hidden],.pic-preview [hidden]{display:none!important}
@media(min-width:1500px){.pic-grid{grid-template-columns:repeat(auto-fill,minmax(270px,1fr))}.pictures-project .pic-preview{height:230px}}
@media(max-width:1050px){.pic-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.pic-search{grid-column:span 2}.pic-clear{align-self:end}.pic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pictures-project .pic-preview{height:180px}}
@media(max-width:700px){.pic-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.pic-search,.pic-filters label:nth-child(2),.pic-clear{grid-column:1/-1}.pic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pictures-project .pic-preview{height:155px}.pic-caption{padding:10px}.pic-caption h3{font-size:14px}.pic-caption p{font-size:13px}.pic-download{width:100%;box-sizing:border-box;justify-content:center}.pic-modal{padding:0}.pic-full-shell{border:0;border-radius:0;height:100dvh}.pic-full-header{flex-wrap:wrap;padding:8px 12px}.pic-full-header strong{width:100%;font-size:15px}.pic-full-actions{width:100%;justify-content:flex-end}.pic-full-stage{padding:8px}.pic-pages{gap:10px;font-size:14px}}
@media(max-width:360px){.pic-grid{grid-template-columns:1fr}.pictures-project .pic-preview{height:220px}}
