:root{--paper:#f7f8f6;--ink:#23392f;--muted:#758078;--line:#dfe4df;--orange:#ac593e;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{opacity:.5;cursor:default}button:hover:not(:disabled){filter:brightness(.94)}a{color:inherit;text-decoration:none}p,h1,h2,h3{margin:0}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #688773;outline-offset:3px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.muted{color:var(--muted)}.orange{color:var(--orange)}input,textarea{width:100%;border:1px solid var(--line);border-radius:7px;background:#fff;padding:11px 12px;color:var(--ink)}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#909991}
.sidebar{width:216px;position:fixed;inset:0 auto 0 0;border-right:1px solid var(--line);padding:30px 18px;background:#eff2ec;display:flex;flex-direction:column}.brand{font-size:25px;letter-spacing:-1.3px;font-weight:650;padding:0 12px}.nav-label{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin:45px 12px 12px}.gallery-link{display:flex;align-items:center;gap:9px;padding:11px 12px;border-radius:7px;width:100%;font-size:12px;text-align:left;margin-bottom:4px}.gallery-link.active{background:#dce5d9}.nav-title{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mini-icon{font-size:18px}.nav-count{color:var(--muted);font-size:10px}#gallery-nav{overflow:auto}.add-side{font-size:12px;padding:13px 12px;text-align:left;margin-top:9px}.main-shell{margin-left:216px}.topbar{height:70px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px}.breadcrumb{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.identity-button{display:flex;align-items:center;gap:8px;font-size:12px;max-width:260px;overflow:hidden}.avatar{display:inline-grid;place-items:center;width:28px;height:28px;background:#e1e6d9;border-radius:50%;font-size:11px;font-weight:600;flex-shrink:0}main{padding:32px 36px 40px;max-width:1800px;margin:auto}.collection-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:26px}.collection-heading>div:first-child{min-width:0}.collection-meta{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:11px}.pill{font-size:10px;padding:4px 7px;border-radius:4px;background:#e8ede3}.collection-heading h1{font-size:30px;font-weight:550;letter-spacing:-1px;margin:9px 0;overflow-wrap:anywhere}.description{font-size:12px;line-height:1.6;color:var(--muted);max-width:550px;overflow-wrap:anywhere}.description:empty{display:none}.collection-actions{display:flex;gap:8px;flex-shrink:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:500;border-radius:7px;padding:10px 14px;white-space:nowrap}.primary{background:var(--ink);color:#fff;border:1px solid var(--ink)}.secondary{border:1px solid #cfd8ce;background:transparent}.full{width:100%}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 0;border-top:1px solid var(--line);margin-bottom:14px}.filter-tabs{display:flex;gap:4px;flex-wrap:wrap}.filter-tabs button{font-size:12px;padding:9px 11px;border-radius:6px;color:var(--muted)}.filter-tabs button.active{background:var(--ink);color:#fff}.search input{width:170px;font-size:12px;padding:9px 11px}.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px 20px;min-height:240px}.photo-card{min-width:0}.photo-open{display:block;width:100%;padding:0;aspect-ratio:1.22;position:relative;border-radius:7px;overflow:hidden;background:#e2e7df}.photo-open img{width:100%;height:100%;display:block;object-fit:cover}.photo-open.broken img{visibility:hidden}.fallback{display:none;position:absolute;inset:0;align-items:center;justify-content:center;font-size:12px;color:var(--muted)}.broken .fallback{display:flex}.photo-index{display:none}.photo-info{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-top:10px}.photo-title{font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.photo-social{display:flex;gap:10px;flex-shrink:0}.like-button,.comment-count{display:flex;gap:4px;align-items:center;font-size:11px;color:var(--muted);padding:3px 0}.heart{font-size:19px;line-height:1}.liked{color:var(--orange)!important}.empty{grid-column:1/-1;align-self:center;text-align:center;font-size:15px;line-height:2;color:var(--muted);padding:35px}.empty small{font-size:12px}.empty button{margin-top:15px}
dialog{padding:0;border:0;color:var(--ink);background:var(--paper)}dialog::backdrop{background:#17251fc9;backdrop-filter:blur(3px)}.form-dialog{border-radius:12px;padding:30px;width:calc(100% - 32px);max-width:450px;max-height:90dvh;box-shadow:0 15px 70px #0003}.form-dialog h2{font-size:23px;font-weight:550;margin-bottom:24px}.form-dialog label{display:block;font-size:12px;margin:16px 0}.form-dialog label input{margin-top:8px;font-size:13px}.form-footnote{font-size:11px;color:var(--muted);line-height:1.6;margin:12px 0}.form-error{font-size:12px;line-height:1.6;color:#a8442f;margin:10px 0;white-space:pre-wrap}.form-error:empty{display:none}.dialog-close{position:absolute;top:10px;right:10px}.icon-button{display:inline-grid;place-items:center;font-size:27px;width:34px;height:34px}.viewer{max-width:none;max-height:none;width:100vw;height:100dvh;margin:0;overflow:hidden}.viewer[open]{display:grid;grid-template-columns:minmax(0,1fr) 350px}.viewer-stage{background:#15211c;color:#edf0e9;display:flex;flex-direction:column;min-height:0;min-width:0}.viewer-header{height:60px;display:flex;align-items:center;padding:0 20px;gap:10px}.viewer-header>span{margin-right:auto;font-size:11px}.light{color:#edf0e9}.image-stage{flex:1;position:relative;min-height:0;display:flex;align-items:center;justify-content:center;padding:0 40px}.image-stage>img{width:100%;height:100%;object-fit:contain}.photo-arrow{position:absolute;top:50%;transform:translateY(-50%);background:#14201cbd;color:#fff;border-radius:50%;width:34px;height:34px;font-size:27px;line-height:1}.previous{left:6px}.next{right:6px}.viewer-caption{font-size:11px;padding:20px 25px}.image-error{position:absolute;inset:20px;display:grid;place-items:center;color:#aab5a9;font-size:14px}.discussion{display:flex;flex-direction:column;min-height:0}.discussion-heading{padding:28px 24px 22px;border-bottom:1px solid var(--line)}.discussion-heading h2{font-size:22px;font-weight:550;line-height:1.3;overflow-wrap:anywhere}.discussion-heading p{font-size:12px;margin-top:9px}.viewer-actions{display:flex;gap:9px;margin-top:18px}.discussion-label{display:flex;justify-content:space-between;font-size:12px;font-weight:550;padding:22px 24px 8px}.discussion-label span{color:var(--muted)}.comments{flex:1;overflow:auto;padding:0 24px 20px}.comment{padding:15px 0 5px}.comment.child{border-left:1px solid var(--line);padding-left:12px;margin-left:8px}.comment-author{display:flex;align-items:center;gap:7px;font-size:10px}.comment-author strong{overflow-wrap:anywhere}.comment-author time{margin-left:auto;color:var(--muted);white-space:nowrap;font-size:9px}.comment-author .avatar{width:22px;height:22px;font-size:9px}.comment p{font-size:12px;line-height:1.7;margin:9px 0 4px;white-space:pre-wrap;overflow-wrap:anywhere}.reply-button{font-size:11px;color:var(--muted);padding:4px 0}.no-comments{font-size:13px;color:var(--muted);padding:25px 0}.comment-form{padding:18px 22px;border-top:1px solid var(--line)}.comment-form textarea{font-size:12px;max-height:150px}.comment-form>div{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px}.comment-form>div>span{font-size:10px;color:var(--muted)}#reply-context{margin:0 0 10px}#reply-context button{font-size:23px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:13px 20px;border-radius:7px;font-size:12px;max-width:calc(100% - 32px);z-index:20}
@media(min-width:1600px){.photo-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1100px){.sidebar{width:190px}.main-shell{margin-left:190px}.topbar{padding:0 26px}main{padding:27px 26px}.collection-actions{flex-wrap:wrap;max-width:245px;justify-content:flex-end}.toolbar{flex-wrap:wrap}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.viewer[open]{grid-template-columns:minmax(0,1fr) 320px}}@media(max-width:700px){.sidebar{position:static;width:100%;padding:19px 18px 9px;border:0;border-bottom:1px solid var(--line)}.brand{padding:0;font-size:23px}.nav-label,.add-side{display:none}#gallery-nav{display:flex;gap:5px;margin-top:14px}.gallery-link{flex-shrink:0;max-width:220px;width:auto;font-size:11px;padding:8px 10px}.main-shell{margin:0}.topbar{height:51px;padding:0 18px}.identity-button{max-width:190px}.breadcrumb{font-size:11px}main{padding:22px 18px 30px}.collection-heading{display:block;margin-bottom:18px}.collection-heading h1{font-size:27px}.collection-actions{justify-content:flex-start;max-width:none;margin-top:17px;gap:7px}.collection-actions .button{font-size:11px;padding:9px 11px}.toolbar{gap:12px;padding:13px 0 0}.filter-tabs{gap:3px;width:100%;flex-wrap:nowrap;overflow:auto}.filter-tabs button{font-size:10px;white-space:nowrap;padding:9px}.search{width:100%}.search input{width:100%}.photo-grid{gap:22px 13px}.photo-open{aspect-ratio:.9}.photo-info{align-items:flex-start;flex-direction:column;gap:3px}.photo-title{font-size:11px;max-width:100%}.viewer{overflow:auto}.viewer[open]{display:block}.viewer-stage{height:57dvh;min-height:300px}.viewer-header{height:48px;padding:0 13px}.image-stage{padding:0 20px}.viewer-caption{padding:15px 20px}.discussion{min-height:43dvh}.comments{overflow:visible}.discussion-heading{padding:24px 22px 20px}.discussion-heading h2{font-size:21px}.form-dialog{padding:28px 23px}.photo-arrow{width:28px;height:28px}}

.layout-tabs{display:flex;gap:3px;border:1px solid var(--line);border-radius:7px;padding:3px;margin-left:auto}.layout-tabs button{font-size:12px;padding:7px 10px;border-radius:4px}.layout-tabs [aria-pressed=true]{background:var(--ink);color:white}.photo-grid.photo-feed{display:flex;flex-direction:column;gap:40px;max-width:1050px;margin:0 auto}.photo-feed .photo-card{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.photo-feed .photo-open{aspect-ratio:auto;border-radius:0;background:#15211c;min-height:180px}.photo-feed .photo-open img{height:auto;max-height:78dvh;object-fit:contain}.photo-feed .photo-info{padding:18px 22px;align-items:center;flex-direction:row}.photo-feed .photo-title{font-size:15px}.photo-feed .like-button,.photo-feed .comment-count{font-size:13px;padding:6px}.feed-discussion{padding:0 22px 20px}.feed-discussion summary{font-size:12px;color:var(--muted);cursor:pointer;padding:4px 0 12px}.feed-comments{max-height:400px;overflow:auto;margin-bottom:12px}.feed-form textarea{font-size:13px}.feed-actions{display:flex;justify-content:space-between;margin-top:10px}.feed-reply{font-size:12px;padding:8px 0}.photo-feed .broken{height:280px}body:has(.viewer[open]){overflow:hidden}@media(max-width:700px){.layout-tabs{margin-left:0}.toolbar .search{flex:1;width:auto}.photo-feed .photo-info{padding:14px}.feed-discussion{padding:0 14px 14px}.photo-feed .photo-title{font-size:13px;white-space:normal}.photo-feed .photo-open img{max-height:65dvh}}

/* Neutral photographic workspace: warm paper, graphite, quiet chrome. */
:root{--paper:#f0efec;--ink:#55534f;--muted:#7c7973;--line:#dedbd5;--orange:#8b7168;color:var(--ink);background:var(--paper)}.sidebar{background:#e9e7e2;border-color:#dedbd5}.gallery-link.active{background:#dbd8d1}.brand{font-weight:500;letter-spacing:-1.1px}.orange{color:#969087}.avatar,.pill{background:#e1ded7;color:#64615b}.primary,.filter-tabs button.active,.layout-tabs [aria-pressed=true]{background:#68665f;border-color:#68665f;color:#faf9f6}.secondary{border-color:#d0ccc4;background:#f4f3ef}.photo-feed .photo-card,input,textarea,select{background:#f8f7f3}.photo-open,.photo-feed .photo-open{background:#d7d4cd}.viewer-stage{background:#42423f;color:#efeee9}.photo-arrow{background:#555550bb}.collection-heading h1{font-family:Georgia,'Times New Roman',serif;font-size:36px;letter-spacing:-1px;font-weight:400;color:#55534e}.collection-meta{flex-wrap:wrap}.topbar .breadcrumb{margin-right:auto}.topbar{gap:22px}.activity-button{display:flex;align-items:center;gap:7px;font-size:12px}.activity-button>span:last-child:not([hidden]){border-radius:20px;padding:3px 6px;background:#ded7cb;font-size:10px}select{font:inherit;color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:9px}.form-dialog select{width:100%;margin-top:8px}.form-dialog h2,.discussion-heading h2{font-family:Georgia,serif;font-weight:400}#owner-control{display:flex;align-items:center;gap:6px}#owner-select{padding:3px 6px;font-size:11px}.activity-dialog{max-width:500px}.eyebrow{font-size:9px;letter-spacing:1.7px;color:var(--muted);margin-bottom:12px}.activity-dialog h2{font-size:30px;margin-bottom:10px}#activity-summary{font-size:12px;margin-bottom:20px}.activity-row{display:flex;width:100%;text-align:left;gap:15px;padding:16px 0;border-top:1px solid var(--line);align-items:center}.activity-row img{width:70px;height:70px;object-fit:cover;border-radius:4px}.activity-copy{display:flex;flex-direction:column;gap:5px;font-size:12px}.activity-copy strong{font-weight:500}.activity-copy small{font-size:10px;color:var(--muted)}.activity-row.unread strong:before{content:'•';color:#957f61;margin-right:6px}.activity-empty{font-size:13px;color:var(--muted);line-height:1.8;padding:25px 0}.photo-feed .photo-title{font-weight:400}.feed-discussion summary{color:#77736c}.photo-feed .photo-card{box-shadow:0 3px 12px #45403604}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #8a8377;outline-offset:3px}@media(max-width:700px){.topbar{gap:14px}.collection-heading h1{font-size:31px}.activity-button{font-size:11px}.activity-dialog{padding:28px 20px}.activity-row img{width:58px;height:58px}}

.users-dialog{max-width:560px}.add-user-form{display:flex;gap:8px;margin-bottom:20px}.user-row{display:grid;gap:10px;padding:18px 0;border-top:1px solid var(--line)}.user-row>span{font-size:11px}.user-actions{display:flex;gap:7px;flex-wrap:wrap}.topbar{flex-wrap:wrap;min-height:70px;height:auto;padding-top:12px;padding-bottom:12px}

#chat-widget{position:fixed;right:24px;bottom:24px;z-index:100;display:flex;flex-direction:column;align-items:flex-end;gap:12px;color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.chat-toggle{display:flex;align-items:center;gap:9px;border:1px solid #d1cbc0;border-radius:30px;background:#f8f7f3;box-shadow:0 4px 20px #302c2520;padding:13px 19px;font-size:13px}.chat-toggle>span:first-child{font-size:20px;line-height:1}#chat-badge{background:#817260;color:white;border-radius:14px;padding:2px 6px;font-size:10px}.chat-panel{width:370px;height:min(560px,calc(100dvh - 110px));max-height:calc(100dvh - 110px);display:flex;flex-direction:column;border:1px solid #d5d0c7;border-radius:16px;overflow:hidden;background:#f5f3ee;box-shadow:0 10px 50px #27231b30}.chat-header{display:flex;align-items:center;justify-content:space-between;padding:17px 18px;border-bottom:1px solid var(--line);background:#e9e5dd}.chat-header h2{font-family:Georgia,serif;font-size:21px;font-weight:400}.chat-header span{font-size:10px;color:var(--muted)}.chat-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px}.chat-message{max-width:88%;padding:10px 12px;margin:0 0 12px;border:1px solid #e2ded5;background:#fcfbf8;border-radius:12px 12px 12px 3px;overflow-wrap:anywhere}.chat-message.mine{margin-left:auto;background:#e5e0d5;border-color:#dcd5c8;border-radius:12px 12px 3px 12px}.chat-message strong{display:block;font-size:10px;font-weight:600;margin-bottom:5px}.chat-message p{font-size:13px;line-height:1.5;white-space:pre-wrap}.chat-message time{display:block;text-align:right;font-size:9px;color:var(--muted);margin-top:6px}#chat-form{display:flex;gap:8px;align-items:flex-end;padding:12px;border-top:1px solid var(--line);background:#f8f6f1}#chat-body{resize:none;font-size:13px;max-height:110px;min-width:0}#chat-error{margin:0;padding:0 14px 8px;font-size:11px}.chat-empty{font-size:13px;line-height:1.7;color:var(--muted);text-align:center;padding:50px 20px}#chat-older{margin-bottom:14px;font-size:11px}@media(max-width:700px){#chat-widget{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}.chat-panel{width:min(370px,calc(100vw - 24px));height:min(520px,calc(100dvh - 98px));max-height:calc(100dvh - 98px)}.chat-toggle{padding:11px 16px}.chat-header{padding:13px 15px}}

/* Compact IRC-like chat; left edge keeps photo comment actions clear. */
#chat-widget{left:16px;right:auto;bottom:16px;align-items:flex-start;gap:6px}.chat-toggle{padding:7px 10px;font-size:11px;gap:5px;border-radius:5px;box-shadow:0 2px 9px #302c2515}.chat-toggle>span:first-child{font-size:13px}.chat-panel{width:310px;height:min(330px,calc(100dvh - 75px));max-height:calc(100dvh - 75px);border-radius:6px}.chat-header{padding:7px 10px}.chat-header h2{font:500 12px ui-monospace,SFMono-Regular,Consolas,monospace}.chat-header h2:before{content:'# '}.chat-header span{display:none}.chat-header .icon-button{height:24px;width:24px;font-size:20px}.chat-scroll{padding:8px}.chat-message,.chat-message.mine{position:relative;max-width:none;margin:0;padding:5px 0;border:0;border-bottom:1px solid #e6e1d8;border-radius:0;background:none;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.chat-message strong{display:inline;font-size:11px;margin:0;color:#716653}.chat-message strong:after{content:': '}.chat-message p{display:inline;font-size:11px;line-height:1.55}.chat-message time{font-size:9px;margin-top:2px;text-align:left}.chat-message.mine strong{color:#595a54}#chat-form{padding:7px;gap:6px}#chat-body{font-size:12px;padding:7px;min-height:32px}#chat-send{font-size:11px;padding:8px 10px}.chat-empty{padding:25px 12px;font-size:12px}.photo-source{display:flex;gap:6px;align-items:baseline;min-width:0;font-size:10px;color:var(--muted);margin:6px 0;line-height:1.5}.photo-source>span{white-space:nowrap}.photo-source a{min-width:0;overflow-wrap:anywhere;text-decoration:underline;text-decoration-color:#c4beb3;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.photo-feed .photo-source,.photo-feed>.photo-card>.reaction-buttons{margin-left:22px;margin-right:22px}.reaction-buttons{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 12px}.reaction-button{font-size:10px;padding:6px 8px;border:1px solid #d9d4ca;border-radius:5px;color:#787166;background:#f5f3ee}.reaction-button[aria-pressed=true]{background:#dfd8ca;border-color:#b9ae9a;color:#5b5245}.discussion-heading .photo-source{font-size:9px}@media(max-width:700px){#chat-widget{left:10px;right:auto;bottom:max(10px,env(safe-area-inset-bottom))}.chat-panel{width:min(310px,calc(100vw - 20px));height:min(300px,calc(100dvh - 75px))}.photo-source{font-size:9px}.photo-feed .photo-source,.photo-feed>.photo-card>.reaction-buttons{margin-left:14px;margin-right:14px}}

/* Mobile sizing: let flex items shrink and prevent iOS input-focus zoom. */
html{max-width:100%;overflow-x:clip}body{min-width:0;max-width:100%;overflow-x:clip}.main-shell,main,#collection,.toolbar,.search,.photo-info,.discussion,.discussion-heading{min-width:0}.search input{max-width:100%}.photo-title{min-width:0}.photo-social{flex-wrap:wrap;max-width:100%}.topbar>.breadcrumb{min-width:0;flex:1 1 80px}.topbar>.identity-button{min-width:0;max-width:40%}#owner-control{min-width:0;max-width:100%}#owner-select{min-width:0;max-width:100%}.add-user-form input{min-width:0;flex:1;width:0}.feed-actions,.viewer-actions{flex-wrap:wrap}.form-dialog{overflow-x:hidden}.activity-copy{min-width:0;overflow-wrap:anywhere}.user-row{min-width:0}.photo-source a{word-break:break-word}.photo-feed .photo-info{flex-wrap:wrap}.photo-feed .photo-title{flex:1 1 130px}.image-stage{max-width:100%}
@media(max-width:700px){.toolbar .search{min-width:0;flex:1 1 120px}.search input{width:100%}.collection-meta>span{overflow-wrap:anywhere;min-width:0}.collection-actions{flex-wrap:wrap}.viewer{width:100%;max-width:100%;overflow-x:hidden}.viewer-header>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.viewer-caption{overflow-wrap:anywhere}.filter-tabs{max-width:100%}input,textarea,select,.form-dialog input,.form-dialog select,.search input,.comment-form textarea,.feed-form textarea,#chat-body,#owner-select{font-size:16px!important}#chat-form{min-width:0}#chat-body{flex:1;min-width:0;width:0}.chat-panel{max-width:calc(100vw - 20px)}.comment-form>div{flex-wrap:wrap}.comment-author{flex-wrap:wrap}.comment-author strong{min-width:0}.reaction-button{max-width:100%;white-space:normal}}

.card-share{margin-left:auto}.feed-actions{justify-content:flex-end}
/* Photo-first viewing, compact social controls and a small selection tray. */
.photo-social{gap:4px;flex-wrap:nowrap;width:100%;justify-content:flex-end}.photo-social>button{min-height:36px;padding:6px;border:0;background:transparent;border-radius:5px;font-size:12px;white-space:nowrap}.photo-social .card-share{margin-left:0}.photo-info{flex-wrap:wrap}.photo-social .reaction-button[aria-pressed=true]{background:#e3ded4}.photo-feed .photo-info{align-items:center}.viewer-actions{align-items:center;gap:5px}.viewer-actions .reaction-buttons{margin:0;flex-wrap:nowrap}.viewer-actions>button{padding:7px}.viewer.photo-only[open]{display:block;overflow:hidden;height:100dvh;width:100%;background:#20201e}.viewer.photo-only .viewer-stage{height:100dvh;min-height:0;position:relative;background:#20201e}.viewer.photo-only .discussion,.viewer.photo-only .viewer-caption,.viewer.photo-only #chat-widget{display:none}.viewer.photo-only .viewer-header{position:absolute;inset:0 0 auto;z-index:2;background:linear-gradient(#0007,transparent)}.viewer.photo-only .viewer-header>span{visibility:hidden}.viewer.photo-only .image-stage{padding:0;width:100%;height:100%}.viewer.photo-only .image-stage>img{width:100%;height:100%;object-fit:contain}.photo-card{position:relative}.photo-selection{display:none;position:absolute;left:10px;top:10px;padding:6px;border-radius:6px;background:#f7f5efdf;z-index:1;line-height:0}.photo-selection input{width:22px;height:22px;accent-color:#777166;margin:0}.selecting-photos .photo-selection{display:block}.collage-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.collage-toolbar .button{padding:8px 12px;font-size:12px}#collage-dialog{max-width:650px}#collage-preview{width:100%;height:auto;max-height:55dvh;object-fit:contain}#collage-format{max-width:100%;margin:8px 0}#collage-download{margin-top:15px}@media(max-width:700px){.photo-social{gap:0;justify-content:space-between}.photo-social>button{padding:5px 3px;font-size:11px;min-height:36px}.photo-feed .photo-social{justify-content:flex-start;gap:10px}.viewer.photo-only{max-height:100dvh}.collage-toolbar .button{font-size:11px}}
/* Three clear actions: heart, star and share. */
.photo-social{justify-content:flex-start;gap:10px}.photo-social>button,.viewer-actions>button,.viewer-actions .reaction-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:8px!important;font-size:16px!important;border:0;background:transparent}.photo-social .heart,.viewer-actions .heart{font-size:27px}.photo-social .reaction-button,.viewer-actions .reaction-button{font-size:23px!important}.photo-social .card-share,#share-photo{font-size:29px!important}.photo-social .card-share{margin-left:auto}.photo-social .reaction-button[aria-pressed=true],.viewer-actions .reaction-button[aria-pressed=true]{color:#927230;background:#e9e2d3}.viewer-actions .reaction-buttons{gap:0}@media(max-width:700px){.photo-social{gap:2px}.photo-social>button{padding:4px!important}.photo-feed .photo-social{gap:10px}}
.action-icon{display:inline-flex;width:27px;height:27px;flex-shrink:0}.action-icon svg{width:100%;height:100%}.action-count{font-size:14px}.photo-social .like-button.liked svg,#viewer-like.liked svg,.reaction-button[aria-pressed=true] svg{fill:currentColor}.photo-social button{font-size:14px!important}.photo-social .reaction-button{font-size:14px!important}
@media(max-width:700px){.photo-grid:not(.photo-feed){grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr))}}
/* A quiet gallery header and one unified control strip. */
.sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.sidebar-heading .brand{padding:0}.sidebar-heading .add-side{display:inline-grid;place-items:center;flex:none;width:36px;height:36px;padding:0;margin:0;border:1px solid var(--line);border-radius:50%;font-size:24px}.topbar{height:auto;min-height:84px;padding-top:14px;padding-bottom:14px;gap:12px}.topbar-gallery{flex:1;min-width:0}.topbar-gallery h1{font:400 28px Georgia,serif;line-height:1.15;overflow-wrap:anywhere}.topbar-gallery .collection-meta{font-size:11px;gap:8px;margin:0 0 5px}.topbar-gallery .description,#provider-badge{display:none}.topbar-gallery #owner-control{font-size:10px}.topbar-gallery #owner-select{padding:2px;max-width:90px}.topbar #share-gallery{flex:none;font-size:23px;width:36px;height:36px}.gallery-tools{position:relative}.gallery-tools summary{list-style:none;cursor:pointer;font-size:25px;width:28px;text-align:center}.gallery-tools summary::-webkit-details-marker{display:none}.gallery-tools[open] button{position:absolute;right:0;top:35px;z-index:5;background:var(--paper);box-shadow:0 4px 18px #0002;white-space:nowrap}.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:0 0 14px;margin:0 0 20px;border-top:0;border-bottom:1px solid var(--line)}.toolbar .collage-toolbar{display:flex;gap:6px;margin:0}.toolbar .filter-tabs{margin:0}.toolbar .search{flex:1 1 140px;min-width:100px}.toolbar .button{white-space:nowrap}.toolbar .collage-toolbar .button{padding:8px;font-size:11px}@media(max-width:700px){.sidebar{padding:12px 16px 8px}.sidebar-heading .brand{font-size:24px}.sidebar-heading .add-side{display:inline-grid}#gallery-nav{margin-top:8px}.topbar{padding:12px 16px;gap:5px;min-height:72px;flex-wrap:wrap}.topbar-gallery h1{font-size:22px}.topbar-gallery .collection-meta{font-size:10px}.topbar-gallery{flex:1 1 130px}.topbar .identity-button{font-size:11px;padding:5px;max-width:100px}.topbar .activity-button{padding:5px}.topbar .activity-button>span:not(#activity-badge){display:none}.topbar #users-button{font-size:10px;padding:6px}.topbar #share-gallery{width:30px}.toolbar{gap:8px;margin-bottom:14px}.toolbar .filter-tabs{width:100%;gap:2px;justify-content:space-between}.toolbar .filter-tabs button{padding:7px 5px}.toolbar .search{flex:1 1 110px;width:auto}.toolbar .layout-tabs{flex:none}.toolbar .collage-toolbar{flex-wrap:wrap}main{padding-top:14px}}
.sort-control select{font:inherit;font-size:12px;padding:8px;border:1px solid var(--line);border-radius:6px;background:var(--paper);max-width:100%}.photo-grid.photo-feed{width:100%;max-width:none;gap:8px}.photo-feed .photo-card{border:0;border-radius:0;background:transparent;box-shadow:none}.photo-feed .photo-open{min-height:0;background:transparent}.photo-feed .photo-open img{width:100%;height:auto;max-height:none;display:block}.photo-feed .photo-info{padding:3px 8px;min-height:48px;flex-wrap:nowrap;gap:8px}.photo-feed .photo-title{flex:1;min-width:0;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.photo-feed .photo-social{width:auto;flex:none;gap:5px}.photo-feed .photo-social .card-share{margin-left:0}.photo-feed .feed-discussion{padding:8px 12px 14px}.photo-social .feed-comment-toggle{font-size:11px!important;white-space:nowrap}.photo-feed .photo-index{display:none}.toolbar .filter-tabs{width:auto}.sort-control{min-width:0}@media(max-width:700px){main:has(.photo-feed){padding-left:0;padding-right:0}main:has(.photo-feed) .toolbar{margin-left:12px;margin-right:12px}.photo-feed .photo-info{padding:2px 6px}.photo-feed .photo-title{display:none}.photo-feed .photo-social{width:100%;justify-content:flex-start;gap:7px}.photo-feed .photo-social .feed-comment-toggle{margin-left:auto}.toolbar .filter-tabs{width:auto}.sort-control select{font-size:16px}.photo-grid.photo-feed{gap:4px}}
#main-feed{margin-top:16px}.collage-nav{margin-top:8px}.saved-collages{margin-top:36px;padding:20px 0;border-top:1px solid var(--line);scroll-margin-top:20px}.saved-collages h2{font:400 25px Georgia,serif;margin-bottom:16px}#collage-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px}.saved-collage img{width:100%;aspect-ratio:1.3;object-fit:contain;background:#ece9e2}.saved-collage p{font-size:12px;margin:8px 0}.saved-collage .button{padding:7px;font-size:12px}#collage-publish{margin-top:14px}#collage-saved-link{display:block;margin:10px 0;text-decoration:underline}.shared-collage{max-width:1400px;margin:auto;padding:24px}.shared-collage h1{font-size:24px;margin:18px 0}.shared-collage img{width:100%;height:auto}@media(max-width:700px){#main-feed{display:inline-flex;width:auto;margin-top:8px}.collage-nav{display:inline-flex;width:auto;padding:8px}.saved-collages{padding:20px 12px}#collage-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
.photo-grid:not(.photo-feed){row-gap:7px;align-items:start}.photo-grid:not(.photo-feed) .photo-info{padding-top:3px;gap:0}.photo-grid:not(.photo-feed) .photo-title{line-height:1.25}.photo-grid:not(.photo-feed) .photo-social{gap:3px}.photo-grid:not(.photo-feed) .photo-social>button{min-height:36px;padding-top:3px!important;padding-bottom:3px!important}#sync-button{flex:none;width:34px;height:34px;font-size:26px}#sync-button.syncing{animation:sync-spin 1s linear infinite}@keyframes sync-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){#sync-button.syncing{animation:none}}
@media(min-width:701px){.photo-feed .photo-open{display:flex;align-items:center;justify-content:center;height:auto}.photo-feed .photo-open img{width:100%;height:auto;max-height:calc(100dvh - 72px);object-fit:contain}.photo-feed .photo-info{min-height:48px}}
.admin-tabs{display:flex;gap:8px;margin:0 0 20px}.admin-tabs [aria-pressed=true]{background:var(--ink);color:var(--paper)}.admin-gallery-form{border-top:1px solid var(--line);padding:16px 0}.admin-gallery-form label{margin:8px 0}.admin-gallery-form textarea{min-height:64px}.admin-gallery-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.admin-gallery-form .button{font-size:12px;padding:8px}.admin-gallery-form select{max-width:100%;width:100%}#admin-gallery-error{white-space:pre-wrap}
@media(min-width:701px){.photo-feed .photo-open img{max-height:max(120px,calc(100dvh - var(--photo-view-chrome,240px)))}}



.app-version{display:block;margin-top:auto;padding:28px 8px 120px;font-size:10px;color:var(--muted)}.admin-tabs{flex-wrap:wrap}#admin-changelog-panel{line-height:1.7;font-size:13px}#admin-changelog-panel li{margin:8px 0}.viewer.photo-only[open]{position:fixed;inset:0;margin:0;padding:0;border:0;border-radius:0;width:100vw;height:100dvh;max-width:none;max-height:none}.viewer.photo-only .viewer-stage{width:100%;height:100%;max-height:none}.viewer.photo-only .image-stage{flex:1 1 0;min-height:0}.viewer.photo-only #viewer-image{max-width:none;max-height:none}#viewer-image:fullscreen{width:100vw;height:100vh;object-fit:contain;background:#20201e}@media(max-width:700px){.app-version{padding:12px 8px}}

@media(min-width:701px){.photo-feed>.photo-card{width:min(100%,calc(max(120px,100dvh - var(--photo-view-chrome,240px)) * var(--photo-ratio,1.5)));margin-inline:auto}.photo-feed .photo-info,.photo-feed .feed-discussion{width:100%;max-width:100%;margin-inline:0}.photo-feed .photo-social{flex-wrap:wrap}}#saved-collages{margin-top:0;border-top:0}#saved-collages>h2{display:none}

/* Quiet chat dock contained within the desktop sidebar. */
.chat-toggle{box-shadow:none;background:#e9e7e2;border-color:#dcd9d2;color:var(--muted);font-size:10px}.chat-panel{box-shadow:0 3px 12px #302c2510}
@media(min-width:701px){.app-version{position:absolute;bottom:12px;left:24px;margin:0;padding:0;font-size:9px}#chat-widget{left:16px;bottom:44px;width:calc(var(--sidebar-width,216px) - 32px);max-width:calc(100vw - 32px);gap:5px}.chat-panel{width:100%;max-width:100%}.chat-panel{height:min(330px,calc(100dvh - 105px));max-height:calc(100dvh - 105px)}#chat-form{flex-wrap:wrap}#chat-body{flex:1 1 100%;width:100%}#chat-send{margin-left:auto}.sidebar{padding-bottom:130px}#gallery-nav{padding-bottom:0}.chat-message p{overflow-wrap:anywhere}}
@media(max-width:700px){.app-version{padding:10px 8px 0;margin-top:8px;font-size:9px}}

#fullscreen-reactions{display:none}.viewer.photo-only #fullscreen-reactions{display:flex;position:absolute;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:5;gap:8px;padding:4px;border-radius:22px;background:#242421aa}#fullscreen-reactions button{color:#fff;min-width:56px;min-height:40px;border-radius:20px;font-size:18px}#fullscreen-reactions button[aria-pressed=true]{background:#ffffff26}.viewer.photo-only #photo-stage:fullscreen{width:100vw;height:100vh;max-height:none;background:#20201e}#photo-stage:fullscreen #viewer-image{width:100%;height:100%;object-fit:contain}.comment-reactions{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}.comment-reactions button{font-size:17px;min-width:36px;min-height:34px;padding:4px 7px;border:1px solid transparent;border-radius:16px}.comment-reactions button:hover{background:#e9e6df}.comment-reactions button[aria-pressed=true]{background:#e4dfd3;border-color:#cfc7b7}

.activity-comment{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-style:italic;color:var(--muted)}.comment:focus{outline:1px solid var(--line);outline-offset:4px}

/* Photo-first browsing: secondary tools stay collapsed until requested. */
#nav-toggle,#nav-close{display:none}.collection-meta,#gallery-description{display:none}.topbar{min-height:62px;padding:12px 24px;gap:12px}#gallery-title{font-size:25px;line-height:1.15;margin:0}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px;padding:0;border:0;flex-wrap:wrap}.layout-tabs{margin:0}.layout-tabs button{font-size:12px;padding:8px 12px}#browse-options{margin-left:auto}#browse-options summary{list-style:none;cursor:pointer;font-size:12px;color:var(--muted);padding:10px 12px;border-radius:6px}#browse-options summary::-webkit-details-marker{display:none}#browse-options summary:after{content:'⌄';margin-left:8px}#browse-options[open] summary:after{content:'⌃'}#browse-options[open]{width:100%}#browse-options[open] summary{text-align:right}.browse-panel{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px;background:#e9e7e255;border:1px solid var(--line);border-radius:8px}.browse-panel .collage-toolbar{margin:0}.browse-panel .search{flex:1 1 220px;max-width:none}.browse-panel .filter-tabs{flex-wrap:wrap}.browse-panel .search input{font-size:13px}#filter-indicator{color:var(--orange)}#main{padding-top:12px}.activity-button>span:first-of-type{display:none}
@media(max-width:700px){
#nav-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;font-size:20px}#nav-close{display:block;position:absolute;right:10px;top:8px;font-size:26px;width:36px;height:36px}.sidebar{display:none;position:fixed;inset:0 auto 0 0;width:min(280px,85vw);height:100dvh;z-index:202;padding:52px 16px 110px;background:#e9e7e2;border-right:1px solid var(--line);flex-direction:column}.gallery-menu-open .sidebar{display:flex}.gallery-menu-open{overflow:hidden}#nav-backdrop{position:fixed;inset:0;width:100%;height:100%;background:#2225;z-index:201}.sidebar .nav-label{margin:24px 12px 12px}.sidebar #gallery-nav{display:block;overflow:auto;min-height:0}.sidebar .gallery-link,.sidebar #main-feed,.sidebar .collage-nav{display:flex;width:100%;margin:0 0 4px;padding:11px 12px}.sidebar .app-version{position:absolute;bottom:12px;left:24px;padding:0;margin:0}.topbar{display:flex;flex-wrap:nowrap;gap:5px;padding:8px 10px;min-height:56px}.topbar-gallery{min-width:0;flex:1}#gallery-title{font-size:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#identity-button{max-width:75px;overflow:hidden;font-size:11px;padding:5px;flex:none}#activity-button{padding:6px;min-width:32px}#users-button{font-size:10px;padding:5px}#share-gallery,#sync-button{width:28px;min-width:28px;height:32px}#share-gallery .action-icon{width:22px;height:22px}#main{padding:8px 10px}.toolbar{margin-bottom:8px;gap:4px}.layout-tabs button{font-size:11px;padding:7px 10px}.browse-panel{gap:10px;padding:10px}.browse-panel .search{flex-basis:100%}.browse-panel .search input{font-size:16px}#chat-widget{z-index:100}.photo-grid:not(.photo-feed){gap:6px}.gallery-menu-open #chat-widget{visibility:hidden}
}

.toolbar{position:relative}.quick-filters{margin-left:auto;display:flex;gap:2px}.quick-filters button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:6px;border-radius:6px}.quick-filters .action-icon{width:23px;height:23px}.quick-filters button[aria-pressed=true]{background:#ded9cf;color:#796747}.quick-filters button[aria-pressed=true] svg{fill:currentColor}#browse-options{margin-left:0}#browse-options[open]{width:auto}#browse-options[open] .browse-panel{position:absolute;top:calc(100% + 6px);right:0;z-index:20;width:min(440px,100%);background:var(--paper);box-shadow:0 4px 16px #2221}#search-toggle{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;flex:none}#search-toggle .action-icon{width:21px;height:21px}#search-field{flex:1 0 100%;width:100%;max-width:none;margin:4px 0}#search-field input{width:100%;font-size:16px}#browse-summary{white-space:nowrap}@media(max-width:700px){.toolbar{gap:2px}.layout-tabs button{padding:7px 8px}.quick-filters button{width:34px}#browse-options summary{padding:9px 6px;font-size:11px}#browse-options summary:after{margin-left:3px}}
#search-toggle.search-active{background:#ded9cf;color:#796747;border-radius:6px}

.folder-control{display:flex;align-items:center;gap:8px;font-size:12px;max-width:100%}.folder-control select{min-width:0;max-width:100%;padding:8px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink)}@media(max-width:700px){.folder-control{width:100%}.folder-control select{flex:1;font-size:16px}}

#browse-options summary{display:flex;align-items:center;justify-content:center;position:relative;width:36px;height:36px;padding:6px!important}#browse-options summary:after{display:none}#options-icon,#activity-icon{display:inline-flex!important;align-items:center;justify-content:center}#options-icon .action-icon,#activity-icon .action-icon{width:23px;height:23px}#filter-indicator{position:absolute;right:1px;top:0}#activity-button{display:inline-flex;align-items:center;justify-content:center;gap:3px}

/* Subfolders stay inside the gallery navigation, including the mobile drawer. */
.nav-album-row{display:flex;align-items:center;min-width:0}.nav-album-row>.gallery-link{flex:1;min-width:0}.album-expand{flex:none;width:32px;height:36px;color:var(--muted);font-size:23px;border-radius:5px}.album-expand:hover,.album-folder:hover{background:#dedbd555}.album-folders{margin:0 8px 8px 18px;border-left:1px solid var(--line)}.album-folder{display:flex;align-items:center;gap:8px;text-align:left;width:100%;min-width:0;padding:9px 8px 9px calc(12px + var(--folder-depth,0)*10px);font-size:12px;color:var(--muted);border-radius:4px}.album-folder.active{background:#dbd8d1;color:var(--ink)}.album-folder .nav-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.folder-empty{display:block;padding:8px 12px;color:var(--muted);font-size:11px}

.filter-count{align-self:center;color:var(--muted);font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums;padding:0 3px}.quick-filters{align-items:center}

/* Keep the album disclosure in its own fixed column, never below the title. */
.sidebar .nav-album-row{display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:center;gap:2px;width:100%;margin-bottom:4px}.sidebar .nav-album-row>.gallery-link{width:100%;min-width:0;margin:0}.sidebar .album-expand{display:inline-flex;align-items:center;justify-content:center;align-self:center;width:30px;height:36px;padding:6px;margin:0;line-height:1}.album-expand svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}.album-expand[aria-expanded=true] svg{transform:rotate(90deg)}

/* Disclosure placement does not depend on flex/grid wrapping or font metrics. */
.sidebar .nav-album-row{display:block;position:relative;min-height:40px}.sidebar .nav-album-row>.gallery-link{width:calc(100% - 32px);min-height:40px;box-sizing:border-box}.sidebar .nav-album-row>.album-expand{position:absolute;right:0;top:50%;transform:translateY(-50%);width:30px;height:36px}.sidebar .album-expand>.action-icon{display:flex;align-items:center;justify-content:center;width:16px;height:16px}
