.photo-year-entry{margin:12px 0}.photo-year-entry button{width:100%;white-space:normal}.photo-month-toggle{display:flex;align-items:center;gap:10px;margin:12px 0}.photo-month-toggle input{width:auto}.personal-photos-dialog,.photo-crop-dialog{border:1px solid var(--line,#d9d4cb);border-radius:20px;padding:20px;width:min(1080px,calc(100vw - 24px));max-height:92dvh;overflow:auto;color:var(--ink,#263044);background:var(--paper,#fffaf0)}.photo-crop-dialog{width:min(800px,calc(100vw - 24px))}.personal-photos-dialog::backdrop,.photo-crop-dialog::backdrop{background:rgb(30 35 58 / .5)}.personal-photos-dialog .review-heading,.photo-crop-dialog .review-heading{position:sticky;top:-20px;z-index:2;background:var(--paper,#fffaf0);padding:14px 0}.personal-photos-dialog .review-heading .icon-button,.photo-crop-dialog .icon-button{flex-shrink:0}.personal-photo-tools{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:18px 0}.personal-photo-tools strong{font-size:16px}.photo-file-label{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.photo-file-label input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0}.photo-file-label:focus-within{outline:3px solid #4053cf;outline-offset:3px}.photo-file-label.disabled{opacity:.5;cursor:default}.personal-photos-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.personal-photos-grid article{padding:14px;border:1px solid #ddd5ca;border-radius:16px;min-width:0;background:#fff}.personal-photos-grid h3{font-size:20px;margin:0 0 10px}.photo-month-preview{display:block;padding:0;width:100%;border:2px solid transparent;border-radius:8px;overflow:hidden;background:#f1edf8;cursor:pointer}.photo-month-preview[aria-pressed=true]{border-color:#4053cf}.personal-photo-thumb{display:flex;align-items:center;justify-content:center;min-height:75px;color:#555d72;background:#f1edf8;font-size:15px}.personal-photo-thumb svg{display:block;width:100%;height:100%}.personal-photo-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}.personal-photo-actions .button{font-size:14px;padding:8px 12px}.personal-photo-actions button{font-size:14px;min-height:44px}.photo-swap{display:flex;gap:8px;margin-top:10px}.photo-swap select{flex:1;width:0;min-width:0;font-size:14px;min-height:44px}.photo-swap button{padding:8px 12px;font-size:14px;min-height:44px}.photo-crop-body{display:grid;gap:16px;padding:16px 0}.photo-crop-preview{width:100%;overflow:hidden;background:#fff;border:1px solid #ccc;max-height:42dvh}.photo-crop-preview svg{display:block;width:100%;height:100%}.photo-crop-body label{display:block;font-size:16px;font-weight:600}.photo-crop-body input[type=range]{display:block;width:100%;min-height:44px;margin:8px 0;accent-color:#4053cf}.photo-crop-body select{display:block;width:100%;min-height:44px;margin-top:8px}.photo-crop-body output{float:right;font-weight:400}.personal-photos-dialog .field-note,.photo-crop-dialog .field-note{font-size:15px;line-height:1.5}.personal-photos-dialog button:focus-visible,.photo-crop-dialog button:focus-visible{outline:3px solid #4053cf;outline-offset:3px}#monthly-photo-controls[hidden],#single-photo-controls[hidden]{display:none}
@media(max-width:700px){.personal-photos-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.personal-photos-dialog,.photo-crop-dialog{padding:14px}.personal-photos-dialog .review-heading,.photo-crop-dialog .review-heading{top:-14px}.personal-photo-tools{gap:12px}.personal-photo-tools .button,.photo-swap select,.photo-crop-body select{font-size:16px}}
@media(max-width:440px){.personal-photos-grid{grid-template-columns:minmax(0,1fr)}.personal-photo-tools strong{width:100%}.personal-photos-dialog .review-heading h2,.photo-crop-dialog .review-heading h2{font-size:24px}.photo-crop-body{gap:10px}}

.photo-project-controls{padding:14px 0;border-bottom:1px solid var(--line,#ddd5ca);margin-bottom:16px}.photo-project-controls .button{white-space:normal;width:100%}.photo-project-controls strong{display:block;margin-bottom:12px}#photo-project-dialog .review-footer{display:flex;gap:12px;flex-wrap:wrap}#photo-project-dialog .button{white-space:normal}
