:root{--bg:#f5f5f0;--paper:#fff;--ink:#1d302a;--muted:#7a857c;--line:#e4e8df;--accent:#b8ef8a;--green:#244f39;--sidebar:#192e26}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 Manrope,system-ui,sans-serif}button,input,textarea,select{font:inherit}button,a,input,textarea{touch-action:manipulation}button,a{transition:background .18s,color .18s,transform .18s}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #91b9ee;outline-offset:3px}button:disabled{opacity:.45;cursor:wait}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;padding:35px 24px;background:var(--sidebar);color:#f4f7ef;display:flex;flex-direction:column;z-index:4}.brand{display:flex;align-items:center;gap:11px;font-size:23px;font-weight:800;letter-spacing:-1px}.brand svg{width:33px;height:33px;color:var(--accent);flex:none}.side-label{font-size:10px;text-transform:uppercase;letter-spacing:1.7px;color:#8ea498;margin:52px 14px 13px}.nav{display:grid;gap:6px}.nav a{display:flex;align-items:center;gap:11px;padding:12px 14px;border-radius:12px;color:#c0d0c3;font-size:13px}.nav a.active{background:#304839;color:#d2ffb1}.nav a:hover{background:#2b4135}.nav svg{width:18px;height:18px}.sidebar-bottom{margin-top:auto;color:#99ad9f;border-top:1px solid #385041;padding-top:19px;font-size:11px}.main{margin-left:232px;padding:0 46px 50px}.topbar{height:92px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:15px}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb b{color:var(--ink);font-weight:600}.profile{position:relative}.profile summary{list-style:none;display:flex;gap:9px;align-items:center;cursor:pointer;font-size:12px}.avatar{height:34px;width:34px;display:inline-grid;place-items:center;border-radius:50%;background:#dce8d5;color:var(--green);font-weight:800;flex:none}.profile-menu{position:absolute;right:0;top:45px;min-width:160px;background:white;box-shadow:0 12px 30px #192e261a;border:1px solid var(--line);padding:10px;border-radius:12px;z-index:5}.profile-menu button{width:100%;text-align:left;border:0;background:transparent;padding:8px;color:var(--ink)}.hero{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:44px 0 32px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;color:#728375;font-weight:750}.hero h1{font-size:clamp(26px,3.1vw,42px);line-height:1.25;letter-spacing:-1.8px;margin:9px 0 12px;font-weight:800}.hero p{margin:0;color:var(--muted);max-width:470px;font-size:13px}.button{border:0;border-radius:12px;padding:13px 19px;background:var(--green);color:white;display:inline-flex;gap:8px;align-items:center;justify-content:center;font-weight:700;font-size:12px;white-space:nowrap}.button:hover{background:#366b4d;transform:translateY(-1px)}.button.primary{background:var(--accent);color:#233e29}.button.primary:hover{background:#a4df75}.button.ghost{background:white;color:var(--ink);border:1px solid var(--line)}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:25px}.tabs{display:flex;gap:4px;background:#e9ede4;padding:4px;border-radius:11px}.tabs button{border:0;padding:9px 15px;background:transparent;color:#778271;border-radius:8px;font-size:12px;font-weight:650}.tabs button.active{color:var(--ink);background:white;box-shadow:0 2px 6px #213c2010}.count{margin-left:6px;font-size:10px;opacity:.6}.search{display:flex;align-items:center;gap:8px;max-width:280px;width:100%;background:white;border:1px solid var(--line);padding:9px 13px;border-radius:10px}.search input{border:0;outline:0;min-width:0;width:100%;background:transparent;color:var(--ink);font-size:12px}.search svg{width:16px;color:#8d998a}.masonry{columns:3;column-gap:22px}.card{display:inline-block;width:100%;margin:0 0 22px;break-inside:avoid;border:1px solid var(--line);border-radius:17px;overflow:hidden;background:white}.photo-open{display:block;position:relative;overflow:hidden;background:#e7ebe2}.photo-open img{width:100%;height:auto;display:block;transition:transform .4s}.photo-open:hover img{transform:scale(1.025)}.expand-tag{position:absolute;right:12px;bottom:12px;background:#183626aa;backdrop-filter:blur(8px);color:#fff;padding:4px 8px;border-radius:6px;font-size:10px;opacity:0}.photo-open:hover .expand-tag{opacity:1}.card-info{padding:17px}.author-row{display:flex;align-items:center;gap:8px}.author-row .avatar{width:26px;height:26px;font-size:10px}.author-name{font-size:11px;font-weight:750;overflow-wrap:anywhere}.photo-date{font-size:9px;color:var(--muted)}.photo-title{font-weight:750;letter-spacing:-.3px;margin:12px 0 4px;overflow-wrap:anywhere}.description{color:#68766a;font-size:12px;overflow-wrap:anywhere;margin:5px 0 13px}.card-actions{border-top:1px solid #edf0e8;padding-top:12px;margin-top:13px;display:flex;justify-content:space-between;align-items:center;gap:10px}.comments{width:100%}.comments>summary{cursor:pointer;color:#778271;font-size:11px;list-style:none}.comments>summary:hover{color:var(--green)}.comment{background:#f4f6f0;border-radius:9px;padding:9px;margin:10px 0;font-size:11px;overflow-wrap:anywhere}.comment strong{color:var(--green)}.comment small{font-size:9px;color:var(--muted);display:block;margin-top:4px}.comment-form textarea{width:100%;resize:vertical;min-height:68px;font-size:11px}.comment-form button{margin-top:6px;padding:7px 10px;font-size:10px}.delete{font-size:10px;padding:4px 0;border:0;background:transparent;color:#a37568;margin-top:11px}.empty{border:1px dashed #cfdbc9;border-radius:22px;text-align:center;padding:74px 20px;background:#fafbf7}.empty-icon{margin:auto auto 20px;width:74px;height:74px;background:#e6f0df;display:grid;place-items:center;border-radius:24px;color:#648758;transform:rotate(-6deg)}.empty-icon svg{width:33px;height:33px}.empty h2{font-size:20px;letter-spacing:-.8px;margin:0 0 8px}.empty p{color:var(--muted);font-size:12px;max-width:340px;margin:0 auto 22px}.footer-note{font-size:10px;color:#9aa393;margin-top:30px;text-align:center}.notice{padding:13px 17px;border-radius:12px;background:#e5f1df;margin-bottom:20px}.notice.error{background:#f9e3de;color:#9d4a3e}[hidden]{display:none!important}dialog{border:1px solid var(--line);border-radius:22px;padding:0;max-width:530px;width:calc(100% - 30px);box-shadow:0 30px 100px #101c2050;background:#fff;color:var(--ink)}dialog::backdrop{background:#15271f91;backdrop-filter:blur(5px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:24px 26px 10px}.dialog-header h2{font-size:21px;letter-spacing:-.8px;margin:0}.icon-button{width:32px;height:32px;border:0;background:#f1f4ec;border-radius:50%;color:var(--ink);display:grid;place-items:center;font-size:20px}.dialog-body{padding:15px 26px 26px}label.field{display:block;font-size:11px;font-weight:750;margin:18px 0 7px}input.text,textarea,select{width:100%;border:1px solid #dfe6d8;background:#fafbf7;border-radius:10px;color:var(--ink);padding:11px 12px;resize:vertical}textarea{min-height:88px}.dropzone{position:relative;display:grid;place-items:center;min-height:180px;border:1px dashed #b7c9aa;background:#f4f8ee;border-radius:15px;text-align:center;padding:20px;color:#778e69;font-size:12px;overflow:hidden}.dropzone input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.dropzone img{max-height:230px;max-width:100%;border-radius:8px}.dropzone strong{display:block;font-size:13px;color:#426d37;margin-bottom:5px}.upload-status{font-size:11px;color:var(--muted);margin:12px 0;overflow-wrap:anywhere}.dialog-body>.button,.dialog-body form>.button{width:100%;margin-top:18px}.lightbox{max-width:1200px;width:calc(100% - 28px);background:#101c18;color:white}.lightbox img{display:block;max-width:100%;max-height:82vh;object-fit:contain;margin:auto}.lightbox .dialog-header{padding:12px 18px}.lightbox h2{font-size:13px}.lightbox .dialog-body{padding:0 10px 14px}.admin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:25px}.stat{border:1px solid var(--line);background:white;border-radius:16px;padding:22px}.stat b{display:block;font-size:30px;letter-spacing:-1px}.stat span{color:var(--muted);font-size:11px}.panel{border:1px solid var(--line);border-radius:17px;background:white;padding:23px;margin-bottom:22px}.panel h2{margin:0 0 17px;font-size:18px;letter-spacing:-.5px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}th{text-align:left;color:var(--muted);font-size:10px;font-weight:600}td,th{padding:12px 10px;border-bottom:1px solid var(--line)}.pill{border-radius:20px;background:#eaf4e3;padding:4px 8px;color:#4b7141;font-size:10px}.pill.blocked{background:#f9e7df;color:#9d695a}.row-actions{display:flex;gap:9px;align-items:center}.row-actions button{padding:7px 9px;font-size:10px}.reset-form{display:flex;gap:6px}.reset-form input{width:150px;font-size:11px;padding:7px}.site-settings{display:grid;grid-template-columns:1fr 2fr auto;gap:12px;align-items:end}.site-settings .field{margin-top:0}.auth-page{display:grid;grid-template-columns:1.1fr 1fr;min-height:100vh}.auth-story{background:var(--sidebar);color:#f4f7ef;padding:50px clamp(30px,6vw,100px);display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;position:relative}.auth-story .brand{position:relative;z-index:1}.story-copy{position:relative;z-index:1;margin:70px 0}.story-copy h1{font-size:clamp(35px,4.2vw,63px);line-height:1.12;font-weight:500;letter-spacing:-3px;margin:20px 0}.story-copy h1 em{color:var(--accent);font-style:normal}.story-copy p{max-width:350px;color:#a8bca9;font-size:13px}.auth-story:after{content:'';position:absolute;width:500px;height:500px;bottom:-240px;right:-210px;border:90px solid #35513b;outline:60px solid #2a4332;border-radius:50%}.story-foot{position:relative;z-index:1;color:#93a896;font-size:10px;letter-spacing:1px}.auth-main{display:flex;align-items:center;justify-content:center;padding:40px 26px}.auth-form{width:100%;max-width:355px}.auth-form h1{font-size:30px;letter-spacing:-1.5px;margin:10px 0}.auth-form .subtitle{color:var(--muted);font-size:12px;margin-bottom:26px}.auth-tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);margin-bottom:26px}.auth-tabs a{padding:12px 0;font-size:12px;color:var(--muted)}.auth-tabs a.active{color:var(--ink);border-bottom:2px solid var(--green);font-weight:700}.auth-form .button{width:100%;margin-top:25px}.password-wrap{position:relative}.password-wrap input{padding-right:64px}.password-toggle{position:absolute;right:10px;top:11px;border:0;background:transparent;color:#7f9078;font-size:10px}.hint{color:#8b9884;font-size:10px;margin-top:8px;line-height:1.6}.password-disclosure{font-size:10px;color:#8e978b;margin-top:26px;padding-top:16px;border-top:1px solid var(--line)}.error-text{font-size:12px;color:#a44836}.mobile-brand{display:none}
@media(min-width:1600px){.main{max-width:1600px;margin-right:auto}}@media(max-width:1200px){.masonry{columns:2}.main{padding:0 28px 40px}.sidebar{width:210px;padding:32px 20px}.main{margin-left:210px}.site-settings{grid-template-columns:1fr}.row-actions{flex-wrap:wrap}}@media(max-width:760px){.sidebar{position:static;width:auto;padding:16px 20px;display:block}.sidebar .brand{font-size:22px}.side-label,.sidebar-bottom{display:none}.nav{display:flex;gap:5px;margin-top:16px}.nav a{padding:9px 11px;font-size:11px}.nav svg{width:14px}.main{margin-left:0;padding:0 20px 35px}.topbar{height:62px}.hero{margin:29px 0 25px;gap:12px;align-items:flex-start}.hero h1{font-size:29px;letter-spacing:-1.3px}.hero p{font-size:12px}.hero>.button{margin-top:25px;padding:11px 13px;font-size:11px}.eyebrow{font-size:9px}.toolbar{flex-wrap:wrap;gap:13px}.search{max-width:none}.masonry{column-gap:15px}.card{margin-bottom:15px;border-radius:13px}.card-info{padding:12px}.auth-page{display:block}.auth-story{padding:24px}.story-copy,.story-foot{display:none}.auth-story:after{display:none}.auth-main{padding:32px 24px}.admin-grid{gap:9px}.stat{padding:13px}.stat b{font-size:23px}.stat span{font-size:9px}.panel{padding:17px}}@media(max-width:480px){.masonry{columns:1}.hero{display:block}.hero>.button{margin-top:20px}.topbar .breadcrumb{font-size:10px}.profile summary{font-size:11px}.hero h1{font-size:33px}.tabs{width:100%}.tabs button{flex:1}.dialog-header{padding:20px 20px 10px}.dialog-body{padding:12px 20px 22px}}
.photo-metadata{border:1px solid #e6ebdf;border-radius:10px;margin:13px 0;background:#f8faf4;font-size:11px}.photo-metadata summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;padding:10px 12px;color:#58784a;font-weight:700}.photo-metadata dl{margin:0;padding:0 12px 10px}.photo-metadata dl>div{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-top:1px solid #e6ebdf}.photo-metadata dt{color:#83907c;font-size:10px}.photo-metadata dd{margin:0;text-align:right;font-size:10px;overflow-wrap:anywhere;max-width:65%}.photo-metadata a{color:#315c35;text-decoration:underline}.location-option{display:flex;gap:8px;align-items:flex-start;font-size:11px;color:#6c7c65;margin-top:12px;cursor:pointer}.location-option input{accent-color:#244f39;margin-top:3px;flex:none}
.card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:13px}.card-heading .photo-title{font-size:19px;line-height:1.35;letter-spacing:-.6px;margin:0;font-weight:800}.card-info>.author-row{margin-bottom:13px}.author-name{font-size:12px}.card-actions .comments>summary{font-size:12px;color:#385a3e;font-weight:700}.earlier-comments>summary{cursor:pointer;font-size:10px;color:#7f9078;margin:10px 0}.photo-tools{position:relative;flex:none}.photo-tools>summary{list-style:none;cursor:pointer;display:grid;place-items:center;width:32px;height:28px;border-radius:7px;color:#9ba79a;font-size:22px;line-height:1}.photo-tools>summary::-webkit-details-marker{display:none}.photo-tools>summary:hover,.photo-tools[open]>summary{background:#f1f4ed;color:#4c6850}.tools-panel{position:absolute;z-index:3;right:0;top:33px;width:210px;border:1px solid #e6ebdf;border-radius:11px;padding:6px;background:#fff;box-shadow:0 10px 30px #18362620}.tool-item,.tools-panel .delete{width:100%;display:block;text-align:left;border:0;background:none;padding:10px 12px;font:inherit;font-size:11px;border-radius:7px;margin:0}.tool-item{color:#64745d}.tools-panel .delete{color:#a26e63}.tool-item:hover,.tools-panel .delete:hover{background:#f5f7f1}.metadata-dialog .photo-metadata{margin:0;border:0;background:none}.metadata-dialog .photo-metadata>summary{display:none}.metadata-dialog .photo-metadata dd,.metadata-dialog .photo-metadata dt{font-size:12px}.metadata-dialog .photo-metadata dl>div{padding:11px 0}.avatar{overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover;display:block}.avatar-preview{height:116px;display:grid;place-items:center;position:relative}.avatar-preview>.avatar,.avatar-preview>#avatar-new-preview{width:100px;height:100px;border-radius:50%;font-size:34px}.avatar-preview>#avatar-new-preview{position:absolute;object-fit:cover}.profile-menu>button{width:100%;text-align:left;border:0;background:none;padding:8px;color:var(--ink);font-size:12px}.profile-menu>button:hover{background:#f3f6ee}.chat-layout{display:grid;grid-template-columns:230px minmax(0,1fr);border:1px solid var(--line);border-radius:18px;background:#fff;overflow:hidden;min-height:540px}.chat-contacts{padding:20px 13px;background:#f9fbf5;border-right:1px solid var(--line)}.chat-contacts h2{font-size:12px;margin:0 10px 17px}.chat-contact{display:flex;align-items:center;gap:9px;padding:11px 10px;border-radius:11px;font-size:12px}.chat-contact:hover,.chat-contact.selected{background:#eaf2e0}.chat-contact>span:not(.avatar){overflow-wrap:anywhere}.unread-count{margin-left:auto;font-size:10px;color:#4f733a}.chat-thread{min-width:0;display:flex;flex-direction:column}.chat-peer{display:flex;align-items:center;gap:10px;padding:18px 22px;border-bottom:1px solid var(--line);font-size:12px}.chat-peer small{display:block;color:var(--muted);font-size:10px}.chat-history{height:380px;overflow-y:auto;padding:22px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}.message-bubble{max-width:83%;padding:10px 14px;border-radius:14px;background:#f0f3eb;font-size:12px;align-self:flex-start;overflow-wrap:anywhere}.message-bubble.mine{align-self:flex-end;background:#e4f4d7;border-bottom-right-radius:3px}.message-bubble.theirs{border-bottom-left-radius:3px}.message-bubble p{margin:0;white-space:pre-wrap}.message-bubble small{display:block;font-size:9px;color:#8a9981;text-align:right;margin-top:6px}.message-form{display:flex;align-items:flex-end;gap:10px;padding:16px 20px;border-top:1px solid var(--line)}.message-form textarea{min-height:66px;font-size:12px}.message-form .button{padding:11px 14px}.chat-thread>#chat-status{margin:0 20px 10px}.chat-empty{display:grid;align-content:center;text-align:center;padding:30px;color:var(--muted)}.chat-empty h2{font-size:19px;color:var(--ink)}.chat-empty p{font-size:12px}@media(max-width:900px){.chat-layout{grid-template-columns:180px minmax(0,1fr)}}@media(max-width:600px){.chat-layout{display:block}.chat-contacts{border-right:0;border-bottom:1px solid var(--line);padding:13px;display:flex;gap:7px;overflow-x:auto}.chat-contacts h2{display:none}.chat-contact{flex:none;font-size:11px;max-width:180px}.chat-contact .avatar{width:26px;height:26px}.chat-history{height:340px;padding:17px}.message-form{padding:12px;gap:7px}.message-form .button{font-size:10px;padding:11px}.card-heading .photo-title{font-size:20px}}
@media(max-width:600px){.masonry{columns:1}}
.privacy-fields{padding:0;margin:18px 0 0;border:0}.privacy-fields>.field{margin-top:0}.privacy-fields select{font-size:12px}.audience-people{margin-top:10px;padding:9px 12px;background:#f5f8f0;border:1px solid #e2e8db;border-radius:10px;max-height:200px;overflow-y:auto}.audience-person{display:flex;align-items:center;gap:9px;padding:7px 0;font-size:12px;cursor:pointer;overflow-wrap:anywhere}.audience-person input{accent-color:#244f39;flex:none}.dialog-body .privacy-fields+.button{width:100%;margin-top:18px}
.button.danger{background:#fbeae5;color:#a14032}.button.danger:hover{background:#f5d8d0}
.account-actions{display:flex;align-items:center;gap:16px}.sound-control{border:1px solid #dce5d5;border-radius:20px;padding:6px 10px;background:#f8fbf4;color:#718167;font-size:10px;white-space:nowrap}.sound-control[aria-pressed=true]{background:#e8f5de;color:#3b6b30;border-color:#c5dfb6}.nav-message-badge{font-size:10px;min-width:18px;text-align:center;background:#b8ef8a;color:#254229;border-radius:20px;padding:1px 5px;margin-left:auto}.profile-menu>a{display:block;padding:8px;font-size:12px;border-radius:7px}.profile-menu>a:hover{background:#f3f6ee}.profile-panel{max-width:720px}.profile-card-head{display:flex;align-items:center;gap:18px;margin-bottom:25px}.profile-card-head>.avatar{width:82px;height:82px;font-size:26px}.profile-card-head h2{font-size:23px;margin:0}.profile-edit{margin-top:20px}.profile-edit>.button{margin-top:18px}.profile-about{line-height:1.8;color:#697963;overflow-wrap:anywhere}.profile-city{color:#8b9981;font-size:12px}.author-name>a:hover,.comment strong>a:hover,.chat-peer a:hover{text-decoration:underline}@media(max-width:760px){.sidebar .nav{flex-wrap:wrap}.topbar .breadcrumb{display:none}.topbar .account-actions{justify-content:space-between;width:100%}.sound-control{font-size:10px}.profile-card-head>.avatar{width:65px;height:65px}}
.remember-login{display:flex;align-items:center;gap:10px;margin-top:20px;min-height:44px;font-size:12px;cursor:pointer}.remember-login input{width:19px;height:19px;flex:none;margin:0;accent-color:var(--green)}.remember-login input:focus-visible{outline:2px solid var(--green);outline-offset:3px}

/* Dense discovery feed and full photo stories. */
.new-group{margin:10px 0 22px}.group-details{padding:12px 20px;border-bottom:1px solid var(--line);font-size:12px;max-height:250px;overflow-y:auto}.group-details>summary{cursor:pointer;color:var(--green);font-weight:650}.group-details form{margin-top:14px}.group-details .button{margin-top:10px;font-size:10px}.group-members{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.group-members a{padding:3px 8px;border-radius:8px;background:#edf3e8}.group-details .field input{width:100%;display:block;margin-top:7px}.message-author{font-size:10px;color:var(--green);display:block;margin-bottom:4px}.message-form{display:grid;grid-template-columns:minmax(0,1fr) auto}.attachment-bar{grid-column:1/-1;display:flex;gap:8px;align-items:center;min-width:0}.attachment-label{position:relative;overflow:hidden;padding:7px 10px!important;font-size:10px!important;cursor:pointer;flex:none}.attachment-label input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.attachment-bar .hint{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.attachment-bar .icon-button{flex:none;font-size:18px}.chat-image{display:block;max-width:100%;max-height:220px;border-radius:9px;margin:7px 0;object-fit:contain}.chat-file{display:block;font-size:11px;overflow-wrap:anywhere;text-decoration:underline}.chat-file small{display:inline!important}.chat-thread{overflow:hidden}.chat-history .message-bubble{min-width:90px}.chat-contacts>.new-group{font-size:10px;white-space:nowrap}@media(max-width:600px){.chat-contacts>.new-group{margin:0;flex:none}.group-details{padding:10px 14px}.attachment-bar{gap:5px}.chat-image{max-height:180px}}
.feed-hero{margin:30px 0 22px}.feed-hero h1{font-size:32px}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:10px;align-items:start}.photo-tile{min-width:0;overflow:hidden;border-radius:12px;background:#e3e9df;aspect-ratio:4/3}.photo-tile>a{display:block;position:relative;width:100%;height:100%}.photo-tile img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}.photo-tile:hover img{transform:scale(1.04)}.tile-caption{position:absolute;inset:auto 0 0;padding:27px 12px 10px;background:linear-gradient(transparent,#10261bd9);color:white;line-height:1.4}.tile-caption strong,.tile-caption span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tile-caption strong{font-size:12px}.tile-caption span{font-size:10px;opacity:.85}.draft-tag{position:absolute;left:8px;top:8px;padding:3px 7px;border-radius:6px;background:#fff8d9;color:#6b5129;font-size:10px}.gallery-section{margin:28px 0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:20px 0}.section-heading h2{margin:0;font-size:21px}.section-heading p{margin:4px 0}.profile-panel{max-width:none}.profile-card-head{margin-bottom:12px}.profile-settings>summary,.photo-edit>summary{cursor:pointer;font-weight:650;color:var(--green);padding:9px 0}.profile-edit{max-width:620px}.friend-controls{margin-top:12px}.friend-controls form{display:flex;flex-wrap:wrap;gap:8px}.friend-controls .hint{display:block;margin-bottom:7px}.people-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.person-card{padding:20px;border:1px solid var(--line);border-radius:16px;background:white}.person-card strong{overflow-wrap:anywhere}.person-card .button{font-size:11px;padding:9px 12px}.back-link{display:inline-block;margin:22px 0;color:var(--muted);font-size:12px}.photo-detail{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden;align-items:start}.detail-image{background:#12221c;position:sticky;top:15px}.detail-image img{width:100%;max-height:85vh;object-fit:contain;display:block}.detail-info{min-width:0;padding:28px}.detail-info h1{font-size:27px;line-height:1.3;overflow-wrap:anywhere;letter-spacing:-.8px;margin:10px 0 18px}.detail-info .author-row{margin-bottom:8px;font-size:13px}.detail-description{font-size:13px;overflow-wrap:anywhere;margin:20px 0}.detail-info #comments{border-top:1px solid var(--line);margin-top:24px;padding-top:15px}.detail-info #comments h2{font-size:17px}.detail-info .comment{font-size:12px}.detail-info .comment p{margin:5px 0}.detail-info .comment-form textarea{font-size:12px}.reactions{display:flex;flex-wrap:wrap;gap:7px;margin-top:18px}.reactions button{border:1px solid var(--line);background:#f6f8f3;border-radius:20px;padding:6px 10px;font-size:19px}.reactions button span{font-size:11px;margin-left:3px}.reactions button[aria-pressed=true]{background:#e2f3d7;border-color:#79a25d}.photo-edit{border-top:1px solid var(--line);padding:10px 0;margin-top:18px}.photo-edit form>.button{margin-top:15px}.photo-edit .field textarea,.photo-edit .field input,.photo-edit .field select{display:block;margin-top:8px;width:100%}.photo-edit .delete{font-size:11px}.photo-grid+.empty{margin-top:12px}
@media(min-width:1500px){.photo-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}@media(max-width:1000px){.photo-detail{grid-template-columns:1fr}.detail-image{position:static}.detail-image img{max-height:65vh}.detail-info{padding:24px}}@media(max-width:600px){.photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.photo-tile{aspect-ratio:1;border-radius:7px}.tile-caption{padding:18px 6px 6px}.tile-caption strong{font-size:10px}.tile-caption span{font-size:9px}.feed-hero{align-items:flex-start;gap:12px}.feed-hero h1{font-size:27px}.feed-hero .button{font-size:10px;padding:10px}.feed-hero p{font-size:11px}.detail-info{padding:18px}.detail-info h1{font-size:24px}.section-heading .button{font-size:10px;padding:11px}.profile-panel{padding:18px}.people-grid{grid-template-columns:1fr}.hero>a{font-size:10px}.main{padding-left:12px;padding-right:12px}.reactions{gap:5px}.reactions button{padding:5px 8px}}

/* Layout bounds are explicit; horizontal scrolling is limited to menus and tables. */
html{scrollbar-gutter:stable}body{line-height:1.6}img{max-width:100%}.main,.main>*,.hero>div,.section-heading>div,.chat-peer>div,.author-row>div{min-width:0}.brand{min-width:0}.brand-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar .breadcrumb{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.account-actions{min-width:0;max-width:100%}.account-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:180px}.profile summary{min-width:0}.profile summary>.avatar,.profile summary>span:last-child{flex:none}.profile-menu{min-width:210px;max-width:calc(100vw - 30px)}.hero h1,.profile-card-head h2,.detail-info h1,.person-card strong{overflow-wrap:anywhere}.hero p{font-size:14px}.button{min-height:40px}.field,.hint{overflow-wrap:anywhere}.hint{font-size:12px;color:#64745e}.description,.detail-description,.profile-about{font-size:14px}.author-name{font-size:13px}.search{min-width:0}.search-submit{border:0;background:var(--green);color:#fff;border-radius:7px;padding:7px 10px;font-size:12px;flex:none;min-height:34px}.search input{font-size:14px}.pagination{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap;margin:24px 0;font-size:12px;color:var(--muted)}.storage-note{font-size:12px;color:#617654;background:#ecf3e5;border-radius:10px;padding:11px 14px;margin:0 0 16px}.section-heading{flex-wrap:wrap}.section-heading>div{flex:1 1 180px}.chat-contact{min-width:0}.chat-contact>span:not(.avatar){min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-peer b{display:block;overflow-wrap:anywhere}.chat-contacts{min-width:0;overflow-x:hidden}.chat-layout{min-width:0}.message-bubble{font-size:14px;max-width:88%;min-width:0!important}.message-author{font-size:12px}.message-bubble small{font-size:10px}.message-form textarea{font-size:15px;min-height:72px;max-height:200px}.chat-file{font-size:12px}.attachment-label{font-size:12px!important;min-height:38px}.attachment-bar .hint{font-size:11px}.chat-status{overflow-wrap:anywhere}.group-details{font-size:13px}.friend-controls form{flex-wrap:wrap}.friend-controls button{white-space:normal;text-align:center}.detail-info #comments .comment{font-size:13px}.detail-info .comment-form textarea{font-size:14px}.comment-form button{font-size:12px;min-height:38px}.photo-metadata dt,.photo-metadata dd{font-size:12px}.photo-metadata dl>div{align-items:start;min-width:0}.photo-tile.photo-unavailable>a:before{content:'Фото недоступно';position:absolute;inset:0;display:grid;place-items:center;font-size:12px;color:#6f7e69}.error-page{max-width:520px;margin:12vh auto;padding:24px;text-align:center}.error-page h1{font-size:62px;margin-bottom:0}.session-notice{position:fixed;bottom:15px;left:50%;transform:translateX(-50%);z-index:30;width:calc(100% - 30px);max-width:640px;padding:14px 18px;border-radius:14px;background:#223c2f;color:#fff;box-shadow:0 6px 30px #10221c40;font-size:13px}.session-notice a{font-weight:750;color:#d2ffb1;text-decoration:underline}.profile-menu>a,.profile-menu button{min-height:40px}.table-scroll{max-width:100%;overscroll-behavior-x:contain}dialog{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}.dialog-header{position:sticky;top:0;background:inherit;z-index:2;gap:12px}.dialog-header h2{min-width:0;overflow-wrap:anywhere}.dialog-header .icon-button{flex:none;min-width:40px;min-height:40px}.dialog-body{min-width:0}.dialog-body input,.dialog-body select,.dialog-body textarea{min-width:0}.profile-settings>summary,.photo-edit>summary,.group-details>summary{min-height:42px;display:list-item}.photo-title,.tile-caption{overflow-wrap:anywhere}input.text,textarea,select{min-width:0}.hero .sound-control{flex:none;min-height:36px}.new-group{min-height:40px!important}
@media(max-width:760px){.sidebar{position:sticky;top:0;padding:10px 12px;z-index:10}.sidebar .brand{font-size:19px;max-width:100%}.sidebar .brand svg{width:25px;height:25px}.sidebar .nav{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;gap:4px;margin-top:9px;padding-bottom:3px}.sidebar .nav a{flex:none;min-height:40px;padding:8px 10px}.main{padding:0 12px 28px}.topbar{height:52px}.hero{margin:22px 0;display:flex;flex-wrap:wrap;align-items:center}.hero>div{flex:1 1 200px}.hero h1{font-size:28px;letter-spacing:-1px}.hero p{font-size:13px}.hero>.button{margin-top:0}.account-name{max-width:min(60vw,250px)}.feed-hero .button{font-size:12px}.toolbar{gap:10px;margin-bottom:16px}.tabs{width:auto}.chat-contacts{overflow-x:auto;scrollbar-width:thin}.chat-contact{max-width:180px}.chat-history{height:clamp(240px,42vh,390px);padding:14px;overscroll-behavior-y:contain}.message-form{padding:12px}.message-form textarea{font-size:16px}.text,select,textarea,input.text{font-size:16px}.auth-form h1{font-size:27px}.auth-form .hint{font-size:12px}.auth-main{padding:26px 18px}.profile-panel{padding:17px}.panel{min-width:0}.photo-detail{border-radius:13px}.detail-image img{max-height:58vh}.detail-info{padding:18px}.reactions button{min-height:40px;min-width:45px}.nav-message-badge{margin-left:3px}.admin-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stat{padding:11px}.stat span{font-size:10px}.profile-card-head{gap:12px}.profile-card-head>div{min-width:0}.profile-card-head h2{font-size:21px}.group-details{max-height:220px}.person-card .button{font-size:12px}.section-heading .button{font-size:12px}.photo-grid{gap:7px}.tile-caption strong{font-size:11px}.tile-caption span{font-size:10px}.footer-note{font-size:11px}.profile-about{font-size:14px}}
@media(max-width:480px){.hero{display:flex}.hero>.button{margin-top:0}.message-form textarea{grid-column:1/-1;min-height:78px}.message-form>button:not([type=button]){grid-column:2;min-height:40px;font-size:12px}.message-bubble{max-width:90%}.profile-panel .profile-card-head>.avatar{width:58px;height:58px}.photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tile-caption{padding:22px 6px 6px}.detail-info h1{font-size:23px}.photo-metadata dl>div{flex-wrap:wrap;gap:3px}.photo-metadata dd{max-width:100%;text-align:left}.sidebar .nav a{font-size:11px}.hero .eyebrow{font-size:9px}.attachment-bar .hint{max-width:calc(100% - 145px)}.profile-city{font-size:12px}.auth-story{padding:18px}.dialog-header{padding:14px 16px 8px}.dialog-body{padding:12px 16px 20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.nav-short{display:none}
.hero p,.footer-note,.stat span,.profile-city{overflow-wrap:anywhere}
@media(min-width:601px) and (max-width:1000px){.chat-layout{display:block}.chat-contacts{display:flex;gap:8px;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line);padding:12px}.chat-contacts h2{display:none}.chat-contact{flex:none;max-width:190px}.chat-contacts>.new-group{flex:none;margin:0}.chat-history{height:340px}}
@media(max-width:760px){.sidebar{padding:12px 14px}.sidebar .nav{position:fixed;inset:auto 0 0;margin:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:3px;padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:var(--sidebar);border-top:1px solid #385041;overflow:visible;z-index:15;scrollbar-width:none}.sidebar .nav a{display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;min-height:48px;padding:5px 2px;font-size:10px;line-height:1.3;position:relative}.sidebar .nav a svg{width:19px;height:19px}.nav-label{display:none}.nav-short{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-message-badge{position:absolute;top:0;right:9px;min-width:16px;font-size:9px;margin:0}.main{padding-bottom:100px}.hero>div{flex:1 1 100%}.hero{gap:12px}.hero>.button{margin:0}.hero h1{margin-bottom:9px}.hero .sound-control{padding:8px 12px;font-size:11px}.session-notice{bottom:86px}.auth-page .nav-short{display:none}html{scroll-padding-top:60px}}
