.library-mode{display:flex;gap:10px;padding-top:25px}.library-mode button{display:inline-flex;align-items:center;gap:8px;font-size:11px;padding:10px 15px;border:1px solid var(--line);border-radius:30px;color:var(--muted)}.library-mode button.active{color:var(--teal);border-color:#91cfc7;background:#e5f7f4}.library-mode button svg{width:15px;height:15px}.live-connect{max-width:720px;margin:10px auto 40px;text-align:center;padding:45px 35px;background:#e5f7f4;border:1px solid #cbeae5;border-radius:4px}.live-connect-icon{margin:0 auto 20px;border:1px solid #91cfc7;border-radius:50%;width:64px;height:64px;display:flex;align-items:center;justify-content:center;background:#f7f8f1}.live-connect-icon svg{width:29px;height:29px;color:#0061ff}.live-connect .eyebrow{justify-content:center}.live-connect h2{font:46px/1.15 var(--serif);letter-spacing:-.03em;margin:18px 0}.live-connect>p{color:#365f66;max-width:470px;font-size:13px;line-height:1.9;margin:0 auto 25px}.live-connect-notes{display:grid;gap:7px;justify-content:center;margin-top:25px;text-align:left;font-size:10px;color:#365f66}.live-connect-notes span{display:flex;gap:7px;align-items:center}.live-connect-notes svg{width:12px;height:12px}.live-source-note{display:flex;gap:8px;align-items:center;font-size:10px;color:var(--muted);padding:20px 0 35px;margin-top:15px;border-top:1px solid var(--line)}.live-source-note svg{width:15px;height:15px}.live-source-note button{font-size:10px;margin-left:auto;text-decoration:underline;padding:0;white-space:nowrap}.live-albums{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 25px}.live-albums .album-image{height:280px}.live-image{position:relative;width:100%;height:100%;background:#e5f7f4;overflow:hidden}.live-image img{width:100%;height:100%;object-fit:cover}.live-image img[hidden]{display:none}.live-fallback{display:none;position:absolute;inset:0;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:#365f66;font-size:11px;padding:15px;text-align:center}.live-fallback>span:last-child{font-size:9px}.preview-failed .live-fallback{display:flex}.live-fallback svg{width:30px;height:30px}.live-empty-cover{height:100%;width:100%;background:#e5f7f4;display:flex;align-items:center;justify-content:center;color:#4d777b}.live-empty-cover svg{width:40px;height:40px}.live-photos .photo-open{height:250px}.live-lightbox{width:min(1060px,calc(100vw - 28px));background:#142d34;border-color:#21494f;color:#fff}.live-lightbox .lightbox-stage{min-height:260px}.live-lightbox .live-image{height:65svh;max-height:700px;background:#142d34}.live-lightbox .live-image img{height:100%;width:100%;object-fit:contain}.live-lightbox .text-link{color:#cbeae5}.live-lightbox .live-fallback{color:#91cfc7}.live-gallery{margin-bottom:35px}
@media(max-width:900px){.live-albums{grid-template-columns:repeat(2,minmax(0,1fr))}.live-albums .album-image{height:260px}}
@media(max-width:640px){.library-mode{padding-top:18px;gap:8px}.library-mode button{font-size:10px;padding:8px 12px}.live-connect{padding:30px 23px;margin-bottom:25px}.live-connect h2{font-size:37px}.live-connect>p{font-size:11px}.live-connect-notes{font-size:9px}.live-connect .button{font-size:10px;gap:8px;padding:11px 13px}.live-albums{gap:25px 14px}.live-albums .album-image{height:210px}.live-albums .album-copy h3{font-size:21px}.live-albums .album-copy p{font-size:8px}.live-albums .circle-arrow{display:none}.live-albums .badge{font-size:7px;padding:4px 5px}.live-albums .badge svg{width:10px;height:10px}.live-photos .photo-open{height:210px}.live-source-note{font-size:9px;align-items:start;flex-wrap:wrap}.live-source-note button{font-size:9px}.live-lightbox .live-image{height:55svh}.live-lightbox .lightbox-stage{min-height:200px}}

.gallery-order-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 24px}.gallery-order-toolbar .fine{font-size:11px;color:var(--muted)}.gallery-order-modal{width:700px}.gallery-order-list{list-style:none;display:grid;gap:8px;padding:0;margin:20px 0 14px;max-height:48svh;overflow-y:auto;overscroll-behavior:contain}.gallery-order-row{display:flex;align-items:center;gap:10px;min-height:73px;padding:9px 10px;background:#fff;border:1px solid var(--line);border-radius:4px;cursor:grab}.gallery-order-row.dragging{opacity:.45}.gallery-order-row.drop-target{border-color:var(--teal);box-shadow:inset 0 0 0 1px var(--teal);background:var(--teal-light)}.gallery-order-grip{font-size:23px;color:var(--muted);flex:none}.gallery-order-number{font-size:11px;color:var(--muted);min-width:18px}.gallery-order-name{min-width:0;flex:1}.gallery-order-name strong{font-size:13px;font-weight:500;display:block;overflow-wrap:anywhere}.gallery-order-name small{font-size:10px;color:var(--muted);display:block;overflow-wrap:anywhere;margin-top:3px}.gallery-order-buttons{display:flex;flex:none;gap:4px}.gallery-order-buttons button{width:40px;height:44px;border:1px solid var(--line);border-radius:3px;font-size:19px;background:var(--paper)}.gallery-order-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:10px;padding:14px 0 0;margin-top:15px;background:var(--paper);border-top:1px solid var(--line)}@media(max-width:640px){.gallery-order-toolbar{align-items:flex-start;gap:12px}.gallery-order-toolbar .fine{max-width:170px;font-size:10px}.gallery-order-toolbar .button{white-space:nowrap;font-size:10px}.gallery-order-row{padding:8px 6px;gap:6px}.gallery-order-grip{font-size:19px}.gallery-order-number{min-width:13px;font-size:10px}.gallery-order-name strong{font-size:11px}.gallery-order-name small{font-size:9px}.gallery-order-buttons{gap:3px}.gallery-order-buttons button{width:33px;height:44px}.gallery-order-list{max-height:46svh}.gallery-order-actions .button{flex:1}}

.gallery-order-grip{touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;display:flex;align-items:center;justify-content:center;min-width:25px;height:44px}.gallery-order-row.dragging .gallery-order-grip{cursor:grabbing}@media(max-width:640px){.gallery-order-buttons button{width:44px}.gallery-order-grip{min-width:22px}}

[data-live-view] .tabs button.active{color:var(--brand-accent)}[data-live-view] .tabs button.active:after{background:var(--brand-accent)}[data-live-view] .tabs button.active .count{color:var(--peach-ink);background:color-mix(in srgb,var(--brand-accent) 20%,white)}.gallery-breadcrumbs{display:block;height:auto;margin:0 0 25px;gap:0}.gallery-breadcrumbs ol{display:flex;flex-wrap:wrap;align-items:center;gap:7px 10px;list-style:none;padding:0;margin:0}.gallery-breadcrumbs li{display:flex;align-items:baseline;gap:10px;min-width:0;max-width:100%;font-size:12px;color:var(--brand-accent)}.gallery-breadcrumbs button{padding:4px 0;color:var(--brand-accent);border-bottom:1px solid var(--brand-accent);text-align:left;overflow-wrap:anywhere;font-size:inherit}.gallery-breadcrumbs [aria-current=page]{padding:4px 0;font-weight:600;overflow-wrap:anywhere}.breadcrumb-separator{font-size:18px;flex:none}.folder-level-head{margin:0 0 27px}.folder-level-head h2{font:34px/1.25 var(--serif);overflow-wrap:anywhere}.folder-level-head.is-group h2{color:var(--brand-accent)}.folder-level-head p{font-size:11px;color:var(--muted);margin-top:8px}.live-albums .gallery-group .album-image{border:2px solid var(--brand-accent);box-shadow:4px 4px 0 color-mix(in srgb,var(--brand-accent) 20%,transparent)}.live-albums .gallery-group h3{color:var(--brand-accent)}.gallery-group-badge{background:var(--brand-accent);color:var(--ink)}.gallery-group .circle-arrow{color:var(--brand-accent);border-color:var(--brand-accent);background:color-mix(in srgb,var(--brand-accent) 12%,white)}.folder-direct-photos{margin:30px 0 0}.folder-direct-photos>h3{font:25px/1.3 var(--serif);margin:0 0 20px}.folder-direct-photos:only-child{margin-top:0}@media(max-width:640px){.gallery-breadcrumbs{margin-bottom:20px}.gallery-breadcrumbs li{font-size:10px;gap:7px}.gallery-breadcrumbs ol{gap:5px 7px}.folder-level-head{margin-bottom:23px}.folder-level-head h2{font-size:29px}.folder-direct-photos>h3{font-size:23px}.live-albums .gallery-group .album-image{box-shadow:3px 3px 0 color-mix(in srgb,var(--brand-accent) 20%,transparent)}}

.live-albums .album-copy>div{min-width:0}.live-albums .album-copy h3{overflow-wrap:anywhere}

.gallery-group-title{display:flex;align-items:flex-start;gap:9px}.gallery-group-title>span{min-width:0;overflow-wrap:anywhere}.gallery-group-pictogram{width:1.1em;height:1.1em;object-fit:contain;flex:none;margin-top:.06em}@media(max-width:640px){.gallery-group-title{gap:7px}}

.photo-source{display:block;height:auto;margin:7px 0 0}.photo-source ol{display:flex;flex-wrap:wrap;gap:2px 6px;list-style:none;margin:0;padding:0}.photo-source li{display:flex;align-items:baseline;gap:6px;min-width:0;max-width:100%;font-size:10px;color:var(--peach-ink)}.photo-source button{font-size:inherit;padding:2px 0;border-bottom:1px solid var(--brand-accent);color:inherit;text-align:left;overflow-wrap:anywhere}.photo-source li>span{flex:none}.automatic-selection{margin:0 0 40px}.automatic-selection>h2,.named-selections>h2{font:30px/1.3 var(--serif);margin:0 0 8px}.automatic-selection>.fine{margin-bottom:22px}.selection-empty{padding:24px 0;color:var(--muted);font-size:12px}.named-selections{border-top:1px solid var(--line);padding-top:28px}.named-selections>h2{margin-bottom:22px}.selection-save-status{margin:0 0 18px}.selection-save-status .text-link{display:inline-flex;font-size:inherit;margin-left:6px}@media(max-width:640px){.photo-source li{font-size:9px}.automatic-selection>h2,.named-selections>h2{font-size:26px}}

.live-gallery.has-automatic-selection>.selection-bar{position:static}

.live-albums .gallery-group:hover .circle-arrow{background:var(--brand-accent);border-color:var(--brand-accent);color:var(--ink)}.photo-caption .photo-custom-caption{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0;text-overflow:clip}.photo-caption-edit{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:none;margin-left:auto;padding:7px;border:1px solid transparent;border-radius:50%;color:var(--peach-ink)}.photo-caption-edit svg{width:15px;height:15px}.photo-caption-edit:hover{background:color-mix(in srgb,var(--brand-accent) 18%,white);border-color:var(--brand-accent)}.caption-preview{height:160px;max-width:240px;margin:0 0 22px;border-radius:3px;overflow:hidden}.caption-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.live-lightbox .lightbox-photo-caption{flex:1;min-width:0;width:100%}.live-lightbox .photo-caption{padding-top:0;color:var(--paper);font-size:14px;align-items:flex-start}.live-lightbox .photo-caption-edit,.live-lightbox .photo-source li{color:#f2ceb0}.live-lightbox .photo-caption-edit:hover{color:var(--ink)}.live-lightbox .photo-source{margin-top:6px}.live-lightbox .lightbox-photo-caption>p{margin-top:10px}@media(max-width:640px){.photo-caption-edit{width:30px;height:30px}.caption-preview{height:135px}.caption-form-actions .button{min-height:42px}}

.live-photos{display:block;column-count:4;column-gap:22px}.live-photos>.photo-card{display:inline-block;vertical-align:top;width:100%;break-inside:avoid;-webkit-column-break-inside:avoid;margin:0 0 24px}.live-photos .photo-open{height:auto}.live-photos .photo-open .live-image{height:auto}.live-photos .photo-open img{width:100%;height:auto;aspect-ratio:auto 3/2;object-fit:contain;transform:none}.live-photos .photo-open:hover img{transform:none}.live-photos .preview-failed{min-height:180px}@media(max-width:1279px){.live-photos{column-count:3}}@media(max-width:899px){.live-photos{column-count:2;column-gap:18px}}@media(max-width:559px){.live-photos{column-count:1}.live-photos>.photo-card{margin-bottom:24px}}

.hero-photo-tools{position:absolute;z-index:3;top:24px;left:30px;max-width:min(540px,calc(100% - 60px));display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}.hero-photo-button{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:9px 13px;color:white;background:#142d34b8;border:1px solid #ffffff70;border-radius:4px;font-size:11px;backdrop-filter:blur(8px)}.hero-photo-button svg{width:15px;height:15px}.hero-photo-button:hover{border-color:var(--brand-accent);background:#142d34e0}.hero-photo-help{font-size:10px;color:#fff;background:#142d3475;padding:5px 8px;border-radius:3px}.hero-photo-error{width:100%;font-size:11px;color:#fff;background:#773c2fe8;border:1px solid var(--brand-accent);padding:9px 12px;border-radius:3px}.hero-photo-progress{width:100%;font-size:11px;color:white}.hero-drop-overlay{display:none;position:absolute;z-index:4;inset:12px;pointer-events:none;border:2px dashed var(--brand-accent);border-radius:4px;background:#142d34db;align-items:center;justify-content:center;flex-direction:column;gap:15px;text-align:center;padding:24px}.hero-drop-overlay strong{font:35px/1.2 var(--serif)}.hero-drop-overlay>svg{width:38px;height:38px;color:var(--brand-accent)}.hero-drop-overlay span{font-size:12px}.hero.is-dragging .hero-drop-overlay{display:flex}@media(max-width:900px){.hero-photo-tools{max-width:calc(100% - 60px);top:68px}}@media(max-width:640px){.hero-photo-tools{left:17px;top:55px;max-width:calc(100% - 34px);gap:7px}.hero-photo-button{font-size:10px;min-height:40px}.hero-photo-help{font-size:8px;padding:4px 6px}.hero-photo-error{font-size:10px}.hero-drop-overlay strong{font-size:28px}}

/* Gallery covers use only references to the existing Dropbox photos. */
.folder-level-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.folder-level-head>div{min-width:0}.gallery-cover-trigger{flex:none}.album-detail-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.gallery-cover-modal{width:min(900px,calc(100vw - 28px))}.cover-gallery-name{font:24px/1.3 var(--serif);color:var(--peach-ink);overflow-wrap:anywhere;margin-bottom:10px}.gallery-cover-options{border:0;padding:0;margin:22px 0 0;min-width:0}.gallery-cover-options legend{font-size:12px;font-weight:600;padding:0;margin-bottom:12px}.gallery-cover-auto{display:flex;align-items:center;gap:12px;padding:13px;border:2px solid var(--line);border-radius:4px;margin-bottom:15px;cursor:pointer;background:white}.gallery-cover-auto strong{display:block;font-size:12px;font-weight:500}.gallery-cover-auto small{display:block;font-size:10px;color:var(--muted)}.gallery-cover-options input[type=radio]{accent-color:var(--brand-accent);width:21px;height:21px;flex:none;cursor:pointer;margin:0}.gallery-cover-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-height:44svh;overflow-y:auto;overscroll-behavior:contain;padding:4px}.gallery-cover-option{position:relative;display:flex;flex-direction:column;min-width:0;padding:7px;border:2px solid var(--line);border-radius:4px;background:white;cursor:pointer}.gallery-cover-option input{position:absolute;left:15px;top:15px;z-index:1;box-shadow:0 0 0 3px white;border-radius:50%}.gallery-cover-option .live-image{height:155px;flex:none;border-radius:2px}.gallery-cover-option .live-image img{object-fit:contain;transform:none}.gallery-cover-photo-name{font-size:11px;margin-top:8px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.gallery-cover-option small{font-size:9px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere;margin-top:5px}.gallery-cover-option:has(input:checked),.gallery-cover-auto:has(input:checked){border-color:var(--brand-accent);background:color-mix(in srgb,var(--brand-accent) 12%,white)}.gallery-cover-option:has(input:focus-visible),.gallery-cover-auto:has(input:focus-visible){outline:2px solid var(--peach-ink);outline-offset:2px}.gallery-cover-actions{display:flex;justify-content:flex-end;gap:10px;position:sticky;bottom:0;padding:16px 0 0;margin-top:16px;border-top:1px solid var(--line);background:var(--paper);z-index:2}.gallery-cover-options:disabled{opacity:.6}.gallery-cover-modal .form-error{margin-top:14px}
@media(max-width:640px){.folder-level-head{align-items:flex-start;flex-wrap:wrap;gap:13px}.gallery-cover-trigger{min-height:42px}.album-detail-actions{justify-content:flex-start}.gallery-cover-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:40svh}.gallery-cover-option{padding:5px}.gallery-cover-option .live-image{height:130px}.gallery-cover-option input{left:11px;top:11px}.gallery-cover-actions .button{flex:1;padding:11px 10px}.cover-gallery-name{font-size:21px}}
/* Real family access */
.private-gate{text-align:center;max-width:680px;margin:80px auto 110px;padding:42px 20px}.private-gate h1{font-size:clamp(38px,6vw,66px);margin:20px 0}.private-gate p{color:var(--muted);line-height:1.9;margin:18px 0 28px}.private-gate-icon{width:76px;height:76px;display:grid;place-items:center;margin:0 auto 24px;background:var(--peach);color:var(--peach-ink);border-radius:50%}.private-gate-icon svg{width:30px;height:30px}.auth-footnote{margin-top:24px}.account-role{display:flex;gap:18px;margin:24px 0}.account-role>svg{width:34px;height:34px;color:var(--brand-accent);flex-shrink:0}.account-role strong{font-size:22px}.account-role p{font-size:14px}.auth-logout{margin-top:18px}#family-login-form select,#role-password-form select{width:100%;max-width:100%}.auth-loading{min-height:60vh;display:grid;place-items:center;color:var(--muted)}.public-intro-cards .album-card{width:100%}.public-intro-cards .album-image{height:240px}.public-intro-cards p{color:var(--muted)}.role-trigger svg{flex-shrink:0}.privacy-strip [data-action=about]{white-space:nowrap}@media(max-width:560px){.private-gate{margin:25px auto 45px;padding:30px 6px}.role-trigger{max-width:170px}#role-label{max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.public-intro-cards .album-image{height:220px}}
