.photo-library-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:7px 0 26px}
.photo-library-heading-copy{min-width:0}
.photo-library-eyebrow{margin:0 0 9px;color:#697362;font-size:9px;font-weight:650;letter-spacing:1.7px;text-transform:uppercase}
.photo-library-title,.photo-detail-title{margin:0;color:#213c31;font:36px/1.15 Georgia,'Times New Roman',serif;letter-spacing:-.5px}
/* Titles often come from file names with no spaces; let them wrap rather than widen a phone screen. */
.photo-detail-title,.photo-card-title{overflow-wrap:anywhere}
.photo-library-intro{margin:9px 0 0;color:#64716d;font-size:12px;line-height:1.6}
.photo-library-heading-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.photo-library button{font:inherit}
.photo-library .primary,.photo-library .secondary,.photo-library .quiet,.photo-library-dialog .primary,.photo-library-dialog .secondary{min-height:40px;padding:9px 15px;border-radius:5px;font-size:11px;font-weight:600;cursor:pointer}
.photo-library .primary,.photo-library-dialog .primary{border:1px solid #205943;background:#205943;color:white}
.photo-library .primary:hover,.photo-library-dialog .primary:hover{background:#174832}
.photo-library .secondary,.photo-library-dialog .secondary{border:1px solid #d5dcd3;background:#fff;color:#284938}
.photo-library .secondary:hover,.photo-library-dialog .secondary:hover{background:#f2f5ef}
.photo-library .quiet{border:1px solid transparent;background:transparent;color:#526557}
.photo-library .quiet:hover,.photo-library .quiet.is-active{background:#e7eee5;color:#174d3b}
.photo-library button:focus-visible,.photo-library-dialog button:focus-visible,.photo-library input:focus-visible,.photo-library select:focus-visible,.photo-library textarea:focus-visible{outline:3px solid #b29555;outline-offset:3px}
.photo-library button:disabled,.photo-library-dialog button:disabled{cursor:default;opacity:.55}
.photo-library-filters{display:grid;grid-template-columns:minmax(230px,2.2fr) minmax(150px,1fr) repeat(2,minmax(140px,1fr)) minmax(150px,1fr);gap:11px;align-items:end}
.photo-field{display:flex;min-width:0;flex-direction:column;gap:7px;color:#53645a;font-size:10px;font-weight:600}
.photo-field>input,.photo-field>select,.photo-field>textarea{width:100%;min-height:42px;border:1px solid #d9dfd6;border-radius:5px;background:#fff;padding:10px 12px;color:#263e32;font:11px/1.4 Montserrat,Arial,sans-serif}
.photo-field>textarea{resize:vertical;min-height:80px}
.photo-field>input::placeholder,.photo-field>textarea::placeholder{color:#818a83}
.photo-library-tools{display:flex;align-items:center;gap:8px;margin:13px 0 0}
.photo-library-tools button{font-size:10px}
.photo-library-live{min-height:18px;margin:12px 0 0;color:#637168;font-size:10px}
.photo-library-results{display:flex;align-items:center;justify-content:space-between;margin:15px 0 13px;color:#5b6a60;font-size:11px}
.photo-library-count{font-weight:600}
.photo-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:27px 22px}
.photo-library-card{position:relative;min-width:0;animation:photo-arrive .2s ease-out both}
@keyframes photo-arrive{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.photo-card-open{display:block;width:100%;padding:0;border:0;background:transparent;text-align:left;color:inherit;cursor:pointer}
.photo-card-image{position:relative;display:block;aspect-ratio:1.55;overflow:hidden;border-radius:5px;background:#e8ece3}
.photo-card-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease,filter .2s}
.photo-card-open:hover .photo-card-image img{transform:scale(1.025);filter:brightness(.96)}
.photo-source-badge{position:absolute;bottom:10px;left:10px;max-width:calc(100% - 20px);overflow:hidden;border-radius:3px;background:#fffffff0;padding:5px 8px;color:#304839;font-size:9px;font-weight:600;text-overflow:ellipsis;white-space:nowrap;backdrop-filter:blur(8px)}
.photo-image-fallback{display:grid;min-height:100%;place-items:center;padding:18px;color:#627067;font-size:11px;text-align:center}
.photo-card-title{display:block;margin:11px 38px 4px 0;color:#263e32;font-size:12px;font-weight:650;line-height:1.45}
.photo-card-meta{display:flex;align-items:center;gap:9px;min-height:22px;color:#59675f;font-size:9px}
.photo-permission{display:inline-flex;align-items:center;border-radius:3px;background:#f3f0e5;padding:4px 7px;color:#766139;font-size:9px;font-weight:600}
.photo-permission-granted{background:#eaf1e8;color:#286044}
.photo-permission-revoked{background:#f7e8e5;color:#8a3932}
.photo-save{position:absolute;top:9px;right:9px;min-width:42px;min-height:31px;border:1px solid #ffffffb5;border-radius:4px;background:#fffffff0;padding:5px 8px;color:#304839;font-size:9px;font-weight:650;cursor:pointer}
.photo-save[aria-pressed=true]{background:#e7eee5;color:#174d3b}
.photo-library-empty{margin:12px 0;border:1px solid #dfe5de;border-radius:5px;background:#fafbf9;padding:26px;color:#64716d}
.photo-library-empty h2{margin:0 0 7px;color:#263e32;font:21px/1.2 Georgia,'Times New Roman',serif}
.photo-library-empty p{margin-bottom:14px;font-size:11px}
.photo-library-pager{display:flex;justify-content:space-between;gap:12px;padding:24px 0 8px}
.photo-library-detail{padding-top:2px}
.photo-detail-top{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.photo-detail-source{color:#637168;font-size:10px}
.photo-detail-columns{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.8fr);gap:30px;align-items:start}
.photo-detail-visual{overflow:hidden;border-radius:5px;background:#e8ece3;min-height:240px;aspect-ratio:1.4}
.photo-detail-visual img{display:block;width:100%;height:100%;object-fit:contain}
.photo-detail-body{min-width:0}
.photo-detail-title{font-size:31px}
.photo-rights{margin:16px 0;border-left:3px solid #9c854b;background:#f6f3e9;padding:12px 14px;color:#594c2f;font-size:11px}
.photo-rights p{margin:5px 0 0;line-height:1.5}
.photo-rights.photo-permission-granted{border-color:#3b7454;background:#edf3e9;color:#31523d}
.photo-rights.photo-permission-revoked{border-color:#a84a41;background:#f8ece9;color:#773c36}
.photo-facts{display:grid;grid-template-columns:minmax(95px,.62fr) minmax(0,1.4fr);gap:8px 14px;margin:18px 0;color:#485c50;font-size:10px}
.photo-facts dt{color:#758078}.photo-facts dd{margin:0;overflow-wrap:anywhere}
.photo-detail-body h3{margin:18px 0 7px;color:#30493a;font:19px/1.2 Georgia,'Times New Roman',serif}
.photo-detail-description{color:#53645a;font-size:11px;line-height:1.65;white-space:pre-wrap}
.photo-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
.photo-detail-note{margin-top:18px;color:#758078;font-size:10px;line-height:1.55}
.photo-one-time-link{display:inline-block;margin-top:8px;color:#205943;font-size:11px}
.photo-permission-history{margin:0;padding-left:20px;color:#56665b;font-size:10px}
.photo-permission-history li{padding:5px 0}.photo-permission-history p{margin:4px 0}.photo-private-note{border-left:2px solid #9a854f;padding-left:9px;color:#715e32}
.photo-library-dialog{width:min(700px,calc(100vw - 28px));max-height:min(88vh,900px);overflow:auto;border:1px solid #dfe5de;border-radius:7px;background:#fff;padding:0;color:#263e32;box-shadow:0 22px 70px #152d2240}
.photo-library-dialog::backdrop{background:#14282075;backdrop-filter:blur(2px)}
.photo-form{padding:24px}
.photo-dialog-header{display:grid;grid-template-columns:1fr auto;align-items:start;gap:4px 14px;margin-bottom:20px}
.photo-dialog-copy{grid-column:1;color:#6a766d;font-size:9px;font-weight:650;letter-spacing:1.2px;text-transform:uppercase}
.photo-dialog-header h2{grid-column:1;margin:0;color:#213c31;font:27px/1.2 Georgia,'Times New Roman',serif}
.photo-close{grid-column:2;grid-row:1/3;min-width:38px;min-height:38px;border:1px solid #dfe5de;border-radius:5px;background:white;color:#304839;cursor:pointer}
.photo-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.photo-form-grid .photo-field:nth-last-child(-n+2){grid-column:auto}
.photo-file-field{margin-bottom:16px;border:1px dashed #b8c4b8;border-radius:5px;background:#f8faf7;padding:15px}
.photo-file-field.is-drop-target{border-color:#205943;background:#edf3e9;box-shadow:inset 0 0 0 1px #205943}
.photo-file-field input{max-width:100%;font-size:10px}
.photo-file-name{color:#617067;font-size:10px;font-weight:400}
.photo-file-hint{color:#59675f;font-size:9px;font-weight:400}
.photo-review-note{margin:15px 0;padding:11px 12px;border-left:3px solid #9b8349;background:#f7f4ea;color:#655634;font-size:10px;line-height:1.5}
.photo-upload-progress{display:block;width:100%;height:8px;margin:15px 0;accent-color:#205943}
.photo-dialog-status{min-height:20px;margin:12px 0 0;color:#596a5f;font-size:10px;line-height:1.5}
.photo-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.photo-reset-source{display:flex;grid-column:1/-1;align-items:center;gap:8px;color:#617067;font-size:10px;font-weight:500}
.photo-health-body{display:grid;gap:12px;color:#58695e;font-size:11px;line-height:1.55}
.photo-health-state{border-left:3px solid #8d825e;background:#f5f3e9;padding:12px}
.photo-health-healthy{border-color:#337352;background:#edf3e9}.photo-health-stale{border-color:#a47d31;background:#f7f2e5}.photo-health-disabled{border-color:#78847b;background:#f1f3f1}
.photo-health-state p{margin-top:5px}.photo-health-failures{margin:0;padding-left:20px}.photo-health-failures li{padding:5px 0}.photo-health-failures button{margin-left:10px}
.photo-library-warning{color:#8a3932}
@media(max-width:1100px){.photo-library-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.photo-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.photo-library-heading{align-items:flex-start;flex-direction:column}.photo-library-heading-actions{justify-content:flex-start}.photo-library-title{font-size:31px}.photo-library-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-library-filters .photo-field:first-child{grid-column:1/-1}.photo-library-grid{grid-template-columns:1fr;gap:22px}.photo-detail-columns{grid-template-columns:1fr;gap:18px}.photo-detail-visual{min-height:180px}.photo-library-dialog{width:calc(100vw - 18px)}.photo-form{padding:18px}.photo-form-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.photo-library-card{animation:none}.photo-card-image img{transition:none}}

.photo-people{border-top:1px solid var(--border,#dce2dd);margin-top:1.5rem;padding-top:1rem}.photo-people-list{padding-left:1.2rem}.photo-person-choice{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:.5rem 0}.photo-people-matches{display:grid;gap:.5rem;max-height:18rem;overflow:auto}.photo-people-matches button{text-align:left}.photo-people .photo-form{display:grid;gap:.75rem}
