/* Design read: a photo-first social product. Variance 7, motion 3, density 5.
   Native CSS, Lucide icons. Layers: shell 10, toast 30, native dialogs above shell. */
:root{color-scheme:light dark;--bg:#f9faf9;--surface:#fff;--ink:#171c19;--muted:#666f69;--line:#dfe5e0;--soft:#eef2ef;--green:#245e3e;--bright:#c3f36a;--danger:#b43845;--focus:#397b50;--shadow:0 18px 80px #19291d22;font-family:"Pretendard","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;font-synthesis:none;letter-spacing:0}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-size:15px;line-height:1.6}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button{border:0;background:none}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:3px}img{display:block;width:100%;object-fit:cover}svg{width:20px;height:20px;stroke-width:1.8;flex:none}h1,h2,h3,p{margin:0}h1{font-size:40px;line-height:1.22;font-weight:750}h2{font-size:24px;line-height:1.3}h3{font-size:17px;line-height:1.4}small{font-size:12px}strong{font-weight:700}input,select,textarea{width:100%;background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:12px 14px;min-width:0;outline-offset:2px}textarea{min-height:106px;resize:vertical}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}label{display:block;font-size:13px;font-weight:600;margin-bottom:6px}input[type=checkbox]{width:18px;height:18px;accent-color:var(--green)}.skip-link{position:fixed;top:-80px;left:20px;z-index:30;padding:10px;background:var(--bright);color:#171c19}.skip-link:focus{top:10px}.app-shell{display:grid;grid-template-columns:216px minmax(0,1fr);max-width:1800px;margin:auto;min-height:100dvh}.navigation{height:100dvh;position:sticky;top:0;display:flex;flex-direction:column;padding:35px 22px 22px;border-right:1px solid var(--line);background:var(--surface);z-index:10}.brand{margin:0 10px 45px;display:inline-flex;flex-direction:column;width:max-content}.brand>span{font-size:20px;font-weight:800;line-height:1.4;letter-spacing:0}.brand-mark{color:var(--green)}.brand small{font-size:13px;margin-top:10px;font-weight:650}.navigation nav{display:grid;gap:8px}.nav-link{display:flex;align-items:center;gap:13px;text-align:left;padding:13px 14px;border-radius:6px;color:var(--muted);font-weight:650;position:relative;min-height:48px}.nav-link svg{width:23px;height:23px}.nav-link.active{background:var(--soft);color:var(--ink)}.nav-link:hover{background:var(--soft)}.nav-count{font-size:11px;line-height:20px;min-width:20px;text-align:center;border-radius:50%;background:var(--bright);color:#171c19;margin-left:auto}.nav-bottom{display:flex;align-items:center;gap:4px;margin-top:auto;border-top:1px solid var(--line);padding-top:18px}.account-button{display:flex;gap:9px;align-items:center;text-align:left;min-width:0;padding:0;flex:1}.account-button img,.avatar-button img{width:36px;height:36px;border-radius:50%;flex:none}.account-button span{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-button small{display:block;font-size:11px;color:var(--muted)}.workspace{min-width:0}.topbar{height:80px;display:flex;align-items:center;justify-content:space-between;padding:0 40px;border-bottom:1px solid var(--line)}.space-name{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:600;color:var(--muted)}.space-name svg{color:var(--green)}.top-actions{display:flex;align-items:center;gap:15px}.preview-label{font-size:11px;color:var(--muted)}.icon-button{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;flex:none;border-radius:50%;position:relative}.icon-button:hover{background:var(--soft)}.avatar-button{border-radius:50%;padding:0}.notification-dot{position:absolute;right:10px;top:7px;width:7px;height:7px;border-radius:50%;background:var(--green);border:2px solid var(--bg)}#main{padding:36px 40px 60px;outline:none;max-width:1440px;margin:auto}.page-heading{margin-bottom:29px}.page-heading p{color:var(--muted);margin-top:10px;font-size:14px}.heading-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.heading-row .primary{flex:none}.breadcrumb{display:flex;align-items:center;gap:10px;margin-bottom:20px;color:var(--muted);font-size:13px}.breadcrumb button{padding:0;color:var(--muted)}.browse-layout{display:grid;grid-template-columns:minmax(0,1fr) 246px;gap:35px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:45px;margin-bottom:20px}.tabs{display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--line);margin-bottom:27px}.tab{padding:10px 0 13px;font-weight:600;font-size:14px;color:var(--muted);border-bottom:2px solid transparent;white-space:nowrap}.tab.active{color:var(--ink);border-color:var(--green)}.filter-buttons{display:flex;gap:7px;flex-wrap:wrap}.chip{border:1px solid var(--line);border-radius:6px;padding:6px 11px;font-size:12px;white-space:nowrap;background:var(--surface)}.chip.selected{background:var(--ink);color:var(--surface);border-color:var(--ink)}.scope-select{border:0;padding:0 25px 0 0;width:auto;font-size:13px;font-weight:650;background:transparent;max-width:220px}.toolbar-actions{display:flex;align-items:center;gap:3px}.toolbar-actions .icon-button{width:35px;height:35px}.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 18px}.person-tile{min-width:0}.person-photo{position:relative;aspect-ratio:3/4;overflow:hidden;border-radius:6px;background:var(--soft)}.photo-open{display:block;padding:0;width:100%;height:100%}.photo-open img{height:100%;transition:transform .24s ease}.photo-open:hover img{transform:scale(1.025)}.save-photo{position:absolute;top:10px;right:10px;background:#ffffffed;color:#171c19;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;box-shadow:0 2px 8px #0001}.save-photo.saved{background:var(--bright);color:#171c19}.save-photo svg{width:17px;height:17px}.connection{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);margin:12px 0 5px}.connection img{width:20px;height:20px;border-radius:50%}.person-label{width:100%;text-align:left;padding:0}.person-label h3{font-size:18px}.person-label h3 span{font-size:12px;font-weight:500;color:var(--muted);margin-left:8px}.person-meta{font-size:12px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}.person-quote{font-size:13px;line-height:1.6;margin-top:7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:42px}.sent-label{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--green);margin-top:6px}.sent-label svg{width:13px;height:13px}.right-rail{padding-top:10px}.rail-section{padding-bottom:26px;margin-bottom:25px;border-bottom:1px solid var(--line)}.rail-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.rail-heading h2{font-size:15px}.link-button{font-size:12px;color:var(--muted);padding:0;text-decoration:underline;text-underline-offset:4px}.mini-person{display:flex;align-items:center;gap:11px;width:100%;text-align:left;padding:10px 0}.mini-person img{width:43px;height:43px;border-radius:50%;flex:none}.mini-person>div{min-width:0;flex:1}.mini-person strong{display:block;font-size:13px}.mini-person p{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.mini-person>svg{width:16px;color:var(--muted)}.rail-note{font-size:12px;color:var(--muted);margin-top:15px}.rail-room{padding:13px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;width:100%}.rail-room strong{display:block;font-size:13px}.rail-room span{font-size:11px;color:var(--muted)}.rail-room svg{width:16px}.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:11px 20px;border-radius:6px;font-size:14px;font-weight:700;white-space:nowrap}.primary{background:var(--bright);color:#171c19}.primary:hover{background:#b3e457}.secondary{background:var(--surface);border:1px solid var(--line)}.secondary:hover{background:var(--soft)}.danger{background:var(--danger);color:#fff}.full{width:100%}.muted{color:var(--muted)}.success{color:var(--green)}.field-note{font-size:12px;color:var(--muted);margin-top:7px}.error-message{color:var(--danger);font-size:13px;margin:10px 0;min-height:21px}.empty-state{padding:70px 20px;display:flex;align-items:center;text-align:center;flex-direction:column;gap:12px;border:1px dashed var(--line);border-radius:6px}.empty-state>svg{width:34px;height:34px;color:var(--muted)}.empty-state p{font-size:13px;color:var(--muted);max-width:320px}.empty-state .secondary{margin-top:8px}.result-count{font-size:12px;color:var(--muted);margin:0 0 15px}.interest-list{max-width:780px}.interest-item{display:grid;grid-template-columns:80px minmax(0,1fr) auto;align-items:center;gap:20px;padding:22px 0;border-bottom:1px solid var(--line)}.interest-item>img{height:99px;border-radius:6px}.interest-item p{font-size:13px;color:var(--muted);margin-top:5px}.interest-item .quote{color:var(--ink)}.row-actions{display:flex;gap:8px;align-items:center}.row-actions .primary,.row-actions .secondary{min-height:38px;font-size:12px;padding:8px 14px}.room-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.room-item{border:1px solid var(--line);border-radius:6px;background:var(--surface);padding:22px;display:flex;flex-direction:column;gap:20px;min-width:0}.room-cover{display:flex;align-items:center;justify-content:space-between;gap:18px}.avatar-stack{display:flex;padding-left:0}.avatar-stack img{width:38px;height:38px;border:3px solid var(--surface);border-radius:50%;margin-left:-9px}.avatar-stack img:first-child{margin-left:0}.badge{font-size:11px;display:inline-flex;align-items:center;gap:5px;background:var(--soft);color:var(--green);padding:4px 8px;border-radius:4px;white-space:nowrap}.room-item h2{font-size:22px;margin-bottom:5px}.room-item p{font-size:13px;color:var(--muted)}.room-item footer{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px}.room-item footer span{font-size:12px;color:var(--muted)}.room-item footer button{padding:0;color:var(--green);font-size:13px;font-weight:700;display:flex;align-items:center;gap:6px}.room-item footer svg{width:16px}.room-detail{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:45px}.detail-side{padding:0 0 25px;border-bottom:1px solid var(--line);margin-bottom:25px}.detail-side h3{margin-bottom:14px;font-size:14px}.detail-side p{font-size:13px;color:var(--muted);margin:8px 0 14px}.detail-side .secondary{width:100%;font-size:13px}.stat-inline{font-size:13px;color:var(--muted);display:flex;gap:16px;margin-bottom:25px;flex-wrap:wrap}.stat-inline strong{color:var(--ink)}.request-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;align-items:center;border-bottom:1px solid var(--line);padding:16px 0}.request-row>img{width:48px;height:48px;border-radius:50%}.request-row p{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.request-row .row-actions button{min-height:36px}.status-word{font-size:11px;color:var(--green)}.section-title{font-size:16px;margin:25px 0 8px}.chat-layout{display:grid;grid-template-columns:300px minmax(0,1fr);border:1px solid var(--line);border-radius:6px;min-height:550px;background:var(--surface);overflow:hidden}.chat-list{border-right:1px solid var(--line);padding:10px}.chat-list button{padding:16px 10px;border-radius:6px}.chat-list button.selected{background:var(--soft)}.chat-list img{width:48px;height:48px}.chat-panel{display:flex;flex-direction:column;min-height:550px;min-width:0}.chat-header{padding:17px 23px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:12px}.chat-header>button{display:flex;align-items:center;gap:12px;text-align:left}.chat-header img{width:36px;height:36px;border-radius:50%}.chat-header strong{font-size:14px}.chat-header small{display:block;color:var(--muted)}.chat-header .back-chat{display:none}.messages{flex:1;display:flex;flex-direction:column;gap:15px;padding:28px;max-height:500px;overflow-y:auto}.chat-date{text-align:center;color:var(--muted);font-size:11px;margin-bottom:8px}.message{align-self:flex-start;max-width:80%;font-size:14px;overflow-wrap:anywhere}.message p{padding:12px 15px;border-radius:6px;background:var(--soft);white-space:pre-wrap}.message.mine{align-self:flex-end}.message.mine p{background:var(--bright);color:#171c19}.message small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.message.mine small{text-align:right}.composer{display:flex;gap:9px;padding:17px 23px;border-top:1px solid var(--line)}.composer input{background:var(--bg)}.composer button{width:46px;height:46px;border-radius:6px;background:var(--green);color:#fff;display:grid;place-items:center;flex:none}.profile-editor{max-width:950px}.editor-grid{display:grid;grid-template-columns:280px minmax(0,1fr);gap:48px;align-items:start}.editor-title{font-size:16px;margin-bottom:15px}.upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.upload-slot{aspect-ratio:3/4;position:relative;border-radius:6px;overflow:hidden;background:var(--soft)}.upload-slot>button:first-child{width:100%;height:100%;padding:0}.upload-slot img{height:100%}.upload-actions{position:absolute;bottom:7px;left:7px;right:7px;display:flex;gap:5px}.upload-actions button{font-size:10px;background:#fff;color:#171c19;border-radius:4px;padding:4px 6px;display:flex;align-items:center;gap:4px}.upload-actions button svg{width:12px;height:12px}.upload-actions .main-photo{background:var(--bright)}.upload-add{width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;color:var(--muted);font-size:12px;border:1px dashed var(--line);border-radius:6px}.upload-add svg{width:26px;height:26px}.upload-control{margin-top:12px}.editor-fields{display:grid;gap:28px}.form-section{padding-bottom:28px;border-bottom:1px solid var(--line)}.form-section h2{font-size:17px;margin-bottom:17px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px}.form-grid .wide{grid-column:1/-1}.tag-checkboxes{display:flex;gap:8px;flex-wrap:wrap}.tag-checkbox{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid var(--line);border-radius:6px;margin:0;font-size:12px;background:var(--surface);cursor:pointer}.tag-checkbox:has(input:checked){background:var(--soft);border-color:var(--green)}.tag-checkbox input{width:15px;height:15px;margin:0}.consent{display:flex;align-items:flex-start;gap:8px;font-size:12px;font-weight:500}.consent input{margin-top:2px;flex:none}.profile-summary{display:flex;align-items:center;gap:22px;margin-bottom:32px}.profile-summary img{width:80px;height:100px;border-radius:6px}.profile-summary h2{font-size:24px}.profile-summary p{font-size:13px;color:var(--muted)}.profile-info{display:grid;grid-template-columns:repeat(3,1fr);gap:25px;padding:25px 0;border-block:1px solid var(--line);margin-bottom:30px;max-width:720px}.profile-info small{display:block;color:var(--muted);margin-bottom:5px}.profile-info strong{font-size:14px}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 0;border-bottom:1px solid var(--line);max-width:720px}.setting-row h3{font-size:14px}.setting-row p{font-size:12px;color:var(--muted);margin-top:4px}.setting-row button{white-space:nowrap;font-size:13px;color:var(--green);text-decoration:underline;text-underline-offset:4px}.setting-row select{width:auto;padding:8px 12px}.intro-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;max-width:700px}.intro-gallery img{aspect-ratio:3/4;border-radius:6px}.intro-gallery button{padding:0}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,15px);z-index:30;display:flex;align-items:center;gap:14px;background:var(--ink);color:var(--surface);border-radius:6px;padding:12px 18px;max-width:calc(100% - 32px);opacity:0;pointer-events:none;font-size:13px;box-shadow:var(--shadow)}.toast.visible{opacity:1;transform:translate(-50%,0);pointer-events:auto}.toast button{color:var(--bright);font-size:13px;font-weight:700;white-space:nowrap}.toast p{overflow-wrap:anywhere}dialog{padding:0;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);max-width:calc(100% - 32px);max-height:calc(100dvh - 48px);width:480px;overflow:auto}dialog::backdrop{background:#0c191466}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 24px;border-bottom:1px solid var(--line)}.dialog-top h2{font-size:20px}.dialog-body{padding:24px;display:grid;gap:19px}.dialog-body>p{font-size:14px;color:var(--muted)}.dialog-body form{display:grid;gap:17px}.dialog-body .tabs{margin:0}.dialog-actions{display:flex;gap:10px;margin-top:4px}.dialog-actions>*{flex:1}.dialog-profile{width:910px}.profile-layout{display:grid;grid-template-columns:1fr 1fr}.profile-media{background:var(--soft);padding:23px;display:flex;flex-direction:column;gap:12px}.profile-main-photo{aspect-ratio:3/4;padding:0;overflow:hidden;border-radius:6px}.profile-main-photo img{height:100%}.profile-thumbs{display:flex;gap:8px}.profile-thumbs button{width:58px;height:65px;padding:0;border:2px solid transparent;border-radius:4px;overflow:hidden}.profile-thumbs img{height:100%}.profile-thumbs .selected{border-color:var(--green)}.profile-description{padding:27px;display:flex;flex-direction:column;gap:22px}.profile-description h2{font-size:28px}.profile-description .birth-line{font-size:13px;color:var(--muted);margin-top:4px}.profile-description .connection{margin:0}.profile-description .bio{font-size:14px}.prompt-block{padding:20px 0;border-block:1px solid var(--line)}.prompt-block small{color:var(--muted);font-size:12px}.prompt-block p{font-size:20px;line-height:1.5;margin-top:10px;font-weight:650}.profile-description .dialog-actions{margin-top:auto}.profile-facts{display:flex;gap:15px;font-size:13px;flex-wrap:wrap}.profile-facts>span{display:flex;align-items:center;gap:5px}.profile-facts svg{width:15px;height:15px;color:var(--muted)}.text-tags{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--green)}.dialog-profile .dialog-top{padding:12px 20px}.lightbox{width:auto;background:#121712;border:0;max-width:95vw;padding:50px 18px 18px}.lightbox>button{position:absolute;top:5px;right:5px;color:#fff}.lightbox img{height:auto;max-height:80dvh;max-width:80vw;object-fit:contain;width:auto}.invite-identity{display:flex;gap:13px;align-items:center}.invite-identity img{width:56px;height:56px;border-radius:50%}.invite-identity p{font-size:13px;color:var(--muted)}.copy-field{display:flex;align-items:center;gap:8px}.copy-field input{font-size:12px;min-width:0}.copy-field .icon-button{border:1px solid var(--line);border-radius:6px}.match-avatars{display:flex;justify-content:center;gap:18px;padding:10px 0}.match-avatars img{width:105px;height:140px;border-radius:6px}.match-heading{text-align:center}.match-heading h3{font-size:23px;margin-bottom:7px}.match-heading p{font-size:14px;color:var(--muted)}.loading{opacity:.6;pointer-events:none}.chat-placeholder{display:grid;place-items:center;padding:30px;text-align:center;color:var(--muted)}.chat-placeholder svg{width:40px;height:40px;margin:0 auto 14px}.danger-text{color:var(--danger)!important}
@media(min-width:1600px){.photo-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1200px){.app-shell{grid-template-columns:180px minmax(0,1fr)}.navigation{padding:30px 13px 18px}.brand{margin-left:12px}.browse-layout{grid-template-columns:minmax(0,1fr) 205px;gap:24px}#main{padding:30px}.topbar{padding:0 30px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.room-detail{gap:25px;grid-template-columns:minmax(0,1fr) 235px}}
@media(max-width:1000px){.right-rail{display:none}.browse-layout{display:block}.photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.editor-grid{grid-template-columns:230px minmax(0,1fr);gap:28px}.chat-layout{grid-template-columns:250px minmax(0,1fr)}.room-detail{grid-template-columns:1fr}.room-detail aside{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.room-detail .detail-side{margin:0}.interest-item{gap:14px;grid-template-columns:64px minmax(0,1fr)}.interest-item>img{height:85px}.interest-item .row-actions{grid-column:2}}
@media(max-width:767px){h1{font-size:30px}.app-shell{display:block}.navigation{position:fixed;height:70px;padding:0;top:auto;bottom:0;left:0;right:0;border-right:0;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);height:calc(68px + env(safe-area-inset-bottom))}.navigation>.brand,.nav-bottom{display:none}.navigation nav{display:grid;grid-template-columns:repeat(4,1fr);gap:0;height:68px}.nav-link{flex-direction:column;justify-content:center;gap:3px;padding:7px 0;font-size:10px;border-radius:0;background:none!important}.nav-link.active{color:var(--green)}.nav-link svg{width:22px;height:22px}.nav-count{position:absolute;top:7px;right:calc(50% - 26px);min-width:16px;line-height:16px;font-size:9px}.topbar{height:66px;padding:0 18px}.top-actions{gap:10px}.top-actions .avatar-button img{width:32px;height:32px}.preview-label{font-size:10px}#main{padding:24px 18px 105px}.page-heading{margin-bottom:23px}.page-heading p{font-size:12px;line-height:1.6;margin-top:8px}.heading-row{align-items:center}.heading-row .primary{font-size:12px;padding:9px 12px;min-height:40px}.heading-row .primary svg{width:16px;height:16px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 12px}.person-label h3{font-size:16px}.person-label h3 span{font-size:10px;margin-left:4px}.person-meta{font-size:11px}.person-quote{font-size:12px;min-height:38px}.connection{font-size:10px;gap:5px}.save-photo{width:30px;height:30px;right:7px;top:7px}.scope-select{font-size:12px;max-width:190px}.toolbar{margin-bottom:17px}.tabs{gap:22px;margin-bottom:20px;overflow-x:auto}.tab{font-size:13px}.filter-buttons{gap:6px}.chip{font-size:11px;padding:5px 9px}.room-grid{grid-template-columns:1fr;gap:16px}.room-item{padding:20px}.room-item h2{font-size:21px}.room-detail aside{display:block}.detail-side{margin-top:25px!important;padding-top:20px;border-top:1px solid var(--line)}.request-row{grid-template-columns:42px minmax(0,1fr);gap:12px}.request-row>img{width:42px;height:42px}.request-row .row-actions{grid-column:2}.editor-grid{grid-template-columns:1fr;gap:28px}.editor-grid>aside{max-width:420px}.upload-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.upload-actions{bottom:4px;left:4px;right:4px;flex-wrap:wrap}.upload-actions button{font-size:9px;padding:3px 4px}.upload-actions button svg{display:none}.editor-title{font-size:14px}.editor-fields{gap:22px}.form-grid{gap:15px 12px}.form-section{padding-bottom:22px}.form-section h2{font-size:16px}input,select,textarea{font-size:14px;padding:11px 12px}.editor-save{position:fixed;bottom:83px;right:18px;z-index:10;box-shadow:var(--shadow)}.profile-info{grid-template-columns:1fr 1fr;gap:18px}.profile-summary{gap:16px}.profile-summary h2{font-size:21px}.profile-summary img{width:65px;height:85px}.intro-gallery{gap:12px}.chat-layout{display:block;min-height:460px}.chat-layout .chat-panel{display:none}.chat-layout.open .chat-list{display:none}.chat-layout.open .chat-panel{display:flex}.chat-list{border:0;padding:8px}.chat-list .mini-person p{font-size:12px}.chat-header{padding:12px}.chat-header .back-chat{display:grid;width:30px;height:30px}.chat-header>button:nth-child(2){flex:1}.chat-panel{height:calc(100dvh - 250px);min-height:420px}.messages{padding:20px 15px}.composer{padding:13px 12px}.toast{bottom:87px;width:max-content;max-width:calc(100% - 28px);font-size:12px}dialog{max-width:calc(100% - 24px);max-height:calc(100dvh - 32px)}.dialog-top{padding:17px 20px}.dialog-top h2{font-size:18px}.dialog-body{padding:20px}.dialog-profile{width:100%;max-width:100%;max-height:100dvh;height:100dvh;border:0;border-radius:0;margin:0}.profile-layout{display:block}.profile-media{padding:18px}.profile-main-photo{aspect-ratio:4/5;max-height:60dvh;width:100%}.profile-description{padding:22px 20px 100px;gap:20px}.profile-description .dialog-actions{position:sticky;bottom:0;background:var(--surface);padding-top:13px}.profile-description h2{font-size:27px}.prompt-block p{font-size:19px}.dialog-profile .dialog-top{position:sticky;top:0;z-index:10;background:var(--surface)}.lightbox img{max-width:85vw;max-height:75dvh}.interest-item{grid-template-columns:61px minmax(0,1fr);gap:12px;padding:20px 0}.interest-item h3{font-size:16px}.interest-item p{font-size:12px}.interest-item .row-actions{margin-top:5px}.setting-row{gap:15px}}
@media(max-width:360px){#main{padding-inline:14px}.topbar{padding-inline:14px}.person-label h3 span{display:block;margin-left:0}.chip{padding:5px 7px}.row-actions{flex-wrap:wrap}}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#161b17;--surface:#1d241e;--ink:#eef3ee;--muted:#acb7ae;--line:#374239;--soft:#2b342d;--green:#a4d6ae;--danger:#dc6876;--focus:#b5edbb;--shadow:0 18px 80px #0006}.composer button{background:var(--bright);color:#171c19}.toast button{color:#245e3e}}
:root[data-theme=dark]{--bg:#161b17;--surface:#1d241e;--ink:#eef3ee;--muted:#acb7ae;--line:#374239;--soft:#2b342d;--green:#a4d6ae;--danger:#dc6876;--focus:#b5edbb;--shadow:0 18px 80px #0006}:root[data-theme=dark] .composer button{background:var(--bright);color:#171c19}:root[data-theme=dark] .toast button{color:#245e3e}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* The public entry shares the same navigation and visual system as the app. */
.welcome { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 56px; max-width: 1040px; margin: 24px auto; align-items: center; }
.welcome-photo { position: relative; min-width: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; background: #222; }
.welcome-photo > img { width: 100%; height: 100%; object-fit: cover; }
.welcome-photo > div { position: absolute; inset: auto 0 0; padding: 32px; color: white; background: linear-gradient(transparent, rgb(0 0 0 / .75)); }
.welcome-photo h1 { font-size: 36px; line-height: 1.2; margin-bottom: 12px; }
.welcome-form h2 { font-size: 24px; margin-bottom: 24px; }
.welcome-form form { display: grid; gap: 18px; margin: 24px 0; }
.auth-policy { border-left: 2px solid var(--green); padding-left: 12px; }
.auth-policy strong { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.auth-policy strong svg { width: 16px; height: 16px; color: var(--green); }
.auth-policy p { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 7px; overflow-wrap: anywhere; }
.auth-policy + .error-message:empty { display: none; }
.auth-support { text-align: center; }
.auth-switch { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; text-align: center; }
.auth-switch > span { font-size: 13px; color: var(--muted); }
.room-lifecycle { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-block: 1px solid var(--line); }
.room-countdown { flex: none; display: grid; gap: 3px; }
.room-countdown span { font-size: 11px; color: var(--muted); }
.room-countdown strong { font-size: 24px; line-height: 1.2; color: var(--green); font-variant-numeric: tabular-nums; }
.room-dates { min-width: 0; }
.room-dates time { display: block; font-size: 13px; font-weight: 650; word-break: keep-all; }
.room-dates p { margin-top: 4px; font-size: 11px; word-break: keep-all; }
.room-item footer { flex-wrap: wrap; }
.room-item footer button { white-space: nowrap; }
.location-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.location-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.location-picker legend { font-size: 13px; font-weight: 650; margin-bottom: 10px; }
.location-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px; }
.location-row label { font-size: 11px; color: var(--muted); }
.location-row select { padding-inline: 10px; }
.interest-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.interest-heading p { font-size: 12px; color: var(--muted); flex: none; }
.custom-interests { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.custom-interests:empty { display: none; }
.custom-interest { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; border: 1px solid var(--green); background: var(--soft); border-radius: 6px; padding-left: 11px; }
.custom-interest > span { font-size: 12px; overflow-wrap: anywhere; min-width: 0; }
.custom-interest .icon-button { width: 36px; height: 38px; flex: none; border-radius: 6px; }
.custom-interest .icon-button svg { width: 15px; height: 15px; }
.custom-interest-label { margin-top: 20px; }
.custom-interest-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.custom-interest-input button { padding-inline: 14px; }
#interestError:empty { display: none; }
.tag-checkbox:has(input:disabled) { opacity: .5; }
@media (max-width: 1000px) { .location-fields { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.editor-save-bar { display: contents; }
@media (max-width: 767px) {
  .profile-editor { padding-bottom: 64px; }
  .editor-save-bar { display: flex; position: fixed; bottom: calc(68px + env(safe-area-inset-bottom)); left: 0; right: 0; z-index: 11; padding: 8px 18px; background: var(--surface); border-top: 1px solid var(--line); }
  .editor-save-bar .editor-save { position: static; width: 100%; min-height: 46px; box-shadow: none; }
}
.notification-settings { margin-bottom: 40px; }
.notification-dot { width: auto; height: 18px; min-width: 18px; padding: 0 3px; top: 1px; right: 0; font-size: 10px; line-height: 14px; font-weight: 750; text-align: center; color: var(--surface); }
.inbox-section { max-width: 900px; }
.inbox-tabs { gap: 24px; }
.inbox-refresh { margin-left: auto; }
.inbox-read-all { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; font-size: 13px; padding: 8px 12px; }
.notification-list { border-top: 1px solid var(--line); }
.notification-list:empty { border: 0; }
.notification-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px; gap: 16px; width: 100%; padding: 20px 12px; text-align: left; border-bottom: 1px solid var(--line); align-items: start; }
.notification-item:hover { background: var(--soft); }
.notification-item.unread { background: var(--surface); border-left: 3px solid var(--green); padding-left: 9px; }
.notification-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--soft); color: var(--green); }
.notification-content { display: grid; gap: 6px; min-width: 0; }
.notification-content strong { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.notification-label { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: 11px; font-weight: 650; }
.notification-unread { font-size: 10px; font-weight: 500; color: var(--muted); }
.notification-description { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.notification-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; color: var(--muted); font-size: 11px; }
.notification-meta > span { overflow-wrap: anywhere; min-width: 0; }
.notification-item > svg { width: 18px; color: var(--muted); align-self: center; }
.inbox-more { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: 24px; }
.inbox-status { padding: 28px 0; text-align: center; font-size: 14px; color: var(--muted); }
.inbox-error { display: grid; gap: 14px; padding: 20px 0; font-size: 14px; }
.inbox-error .secondary { justify-self: start; }
@media (max-width: 767px) { .notification-item { grid-template-columns: 36px minmax(0, 1fr) 16px; gap: 11px; padding: 18px 8px; }.notification-item.unread { padding-left: 5px; }.notification-icon { width: 36px; height: 36px; }.inbox-read-all { padding: 7px 10px; font-size: 12px; }.inbox-tabs { margin-bottom: 16px; } }
.notification-settings h2 { font-size: 21px; margin-bottom: 12px; }
.notification-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; margin: 0; font-size: 14px; }
.notification-row input { flex: none; width: 20px; height: 20px; }
.notification-settings .link-button { margin-top: 18px; }
.logout-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 8px 10px; border-radius: 6px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.logout-button:hover { background: var(--soft); }
.logout-button[hidden] { display: none; }
.logout-button svg { width: 18px; height: 18px; }
.share-actions { display: grid; gap: 12px; }
.app-brand { font-size: 20px; font-weight: 800; line-height: 1.35; white-space: nowrap; }
.topbar { position: sticky; top: 0; z-index: 12; background: var(--bg); }
.brand-tools { display: grid; justify-items: start; gap: 2px; flex: none; }
.feedback-trigger { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 2px 0; color: var(--muted); font-size: 11px; line-height: 1.3; }
.feedback-trigger:hover { color: var(--ink); }
.feedback-trigger svg { width: 14px; height: 14px; }
.feedback-fields { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; min-width: 0; }
.feedback-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.feedback-categories { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; }
.feedback-categories label { position: relative; margin: 0; }
.feedback-categories input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.feedback-categories span { display: block; text-align: center; padding: 10px 5px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.feedback-categories input:checked + span { background: var(--soft); border-color: var(--green); color: var(--green); }
.feedback-categories input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.feedback-dialog textarea { min-height: 150px; }
.feedback-dialog .error-message:empty { display: none; }
.feedback-success { text-align: center; }
.feedback-success-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: auto; border-radius: 50%; background: var(--soft); color: var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.invite-room-name { overflow-wrap: anywhere; font-size: 14px; color: var(--muted); }
.invite-role-options { display: grid; gap: 12px; }
.invite-role-option { display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; gap: 12px; align-items: center; text-align: left; width: 100%; min-height: 116px; padding: 16px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.invite-role-option:hover { background: var(--soft); border-color: var(--green); }
.invite-role-option > span:nth-child(2) { min-width: 0; display: grid; gap: 5px; }
.invite-role-option strong { font-size: 17px; line-height: 1.4; }
.invite-role-option span span { font-size: 13px; line-height: 1.6; }
.invite-role-option small { font-size: 11px; color: var(--muted); line-height: 1.5; }
.invite-role-option > svg { width: 18px; height: 18px; color: var(--muted); }
.invite-role-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--green); }
.invite-role-option:first-child .invite-role-icon { color: var(--danger); }
.invite-role-summary { padding-block: 14px; border-block: 1px solid var(--line); }
.invite-role-summary strong { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.invite-role-summary p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.member-section-heading { margin-bottom: 12px; }
.inviter-list { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.inviter-list > h3 { margin-bottom: 12px; }
.approval-credit { display: inline-block; margin-top: 5px; color: var(--green); }
.request-row .row-actions { flex-wrap: wrap; justify-content: flex-end; max-width: 280px; }
.remove-member { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 13px; }
.request-row > div { min-width: 0; overflow-wrap: anywhere; }
.moderation-policy { font-size: 12px; color: var(--muted); }
@media (max-width: 650px) { .request-row .row-actions { justify-content: flex-start; max-width: 100%; } }
#shareError:empty { display: none; }
.topbar { gap: 12px; }
.top-actions { flex: none; }
.navigation[hidden], .top-actions[hidden] { display: none; }
body[data-authenticated="false"] .app-shell { display: block; }
body[data-authenticated="false"] #main { padding-bottom: 40px; }
.toolbar-actions { flex: none; }
.filter-button { width: 104px; min-height: 40px; padding: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 13px; font-weight: 650; }
.filter-button.active { border-color: var(--green); color: var(--green); background: var(--soft); }
.filter-button svg { width: 18px; height: 18px; }
.filter-count { width: 20px; height: 20px; display: inline-grid; place-items: center; background: var(--green); color: var(--bg); font-size: 11px; border-radius: 50%; }
.filter-count.empty { visibility: hidden; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.active-filter { max-width: 100%; display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); font-size: 12px; }
.active-filter span { min-width: 0; overflow-wrap: anywhere; text-align: left; }
.active-filter svg { width: 14px; height: 14px; }
.browse-results { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; }
.browse-results .result-count { margin: 0; }
.browse-results .link-button { flex: none; }
.filter-dialog { width: 520px; }
.filter-dialog .dialog-top { position: sticky; top: 0; z-index: 2; background: var(--surface); }
.filter-fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.filter-fieldset legend { font-size: 13px; font-weight: 650; margin-bottom: 9px; }
.filter-radio-group { display: flex; gap: 8px; }
.filter-radio-group label { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; min-height: 44px; padding: 9px; margin: 0; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; cursor: pointer; }
.filter-radio-group label:has(input:checked) { border-color: var(--green); background: var(--soft); }
.filter-radio-group input { width: 16px; height: 16px; margin: 0; padding: 0; flex: none; accent-color: var(--green); }
.filter-year-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 12px; }
.filter-year-range > span { padding-bottom: 12px; color: var(--muted); }
.filter-year-range label { font-size: 12px; color: var(--muted); }
.filter-submit { position: sticky; bottom: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding-top: 12px; background: var(--surface); border-top: 1px solid var(--line); }
@media (max-width: 1200px) { .brand > span { font-size: 18px; } }
@media (max-width: 767px) { .app-brand { font-size: 19px; } .top-actions > .icon-button { width: 36px; height: 40px; } .top-actions .avatar-button img { width: 32px; height: 32px; } body[data-authenticated="false"] #main { padding-bottom: 32px; } }
@media (max-width: 360px) { .app-brand { font-size: 17px; } }
@media (max-width: 767px) { .top-actions { gap: 6px; } .logout-button { gap: 5px; padding-inline: 6px; font-size: 12px; } .logout-button svg { width: 16px; height: 16px; } }
@media (max-width: 1000px) {
  .welcome { grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 0; }
  .welcome-photo { aspect-ratio: 16 / 9; }
  .welcome-photo > div { padding: 22px; }
  .welcome-photo h1 { font-size: 26px; }
  .welcome-form h2 { font-size: 22px; }
}
.safety-dialog { width: min(620px, calc(100vw - 24px)); max-width: calc(100vw - 24px); }
.safety-dialog .dialog-body, .safety-dialog form { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.safety-dialog p { overflow-wrap: anywhere; }
.safety-menu { display: grid; gap: 12px; }
.safety-check { display: flex; align-items: center; gap: 10px; }
.safety-check input { width: 20px; height: 20px; flex: 0 0 20px; }
.safety-settings h3 { font-size: 16px; margin: 24px 0 10px; }
.safety-settings .setting-row { gap: 12px; min-width: 0; }
.safety-settings .setting-row > div { min-width: 0; overflow-wrap: anywhere; }
.safety-settings .setting-row button { flex-shrink: 0; }
.safety-profile-button { margin-top: 18px; }
.message { position: relative; }
.message-report { width: 32px; height: 32px; margin-top: 4px; color: var(--muted); }
.message-report svg { width: 16px; height: 16px; }
.recovery-code { font-family: monospace; font-size: 14px; }
.secret-field { min-width: 0; }
.secret-control { position: relative; min-width: 0; }
.secret-control input { padding-right: 56px; }
.secret-toggle { position: absolute; top: 50%; right: 5px; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 4px; color: var(--muted); }
.secret-toggle:hover, .secret-toggle[aria-pressed="true"] { background: var(--soft); color: var(--ink); }
.secret-toggle svg { width: 20px; height: 20px; pointer-events: none; }
@media (max-width: 360px) { .safety-settings .setting-row { align-items: flex-start; flex-wrap: wrap; } }
