:root{color-scheme:dark;--bg:#130e26;--panel:#211832;--line:#57406c;--pink:#f46bb1;--muted:#cfbbdd;--text:#fff2f8}
*{box-sizing:border-box}html{font-size:18px}body{margin:0;min-width:320px;font:18px/1.5 Inter,ui-sans-serif,system-ui,sans-serif;color:var(--text);background:radial-gradient(ellipse at 60% -20%,#693657,#22143c 55%,#140e26)}
a{color:#ffbde2;text-decoration:none}a:hover{text-decoration:underline}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #ffbd95;outline-offset:2px}
h1{font-size:clamp(32px,5vw,52px);letter-spacing:-1.5px;line-height:1.05;margin:10px 0 14px}h2{font-size:27px;line-height:1.1;margin:0 0 12px}h3{font-size:21px;margin:0 0 8px}p{margin:8px 0 16px;color:var(--muted)}small,.muted{color:var(--muted)}.pink{color:var(--pink)}.eyebrow{text-transform:uppercase;letter-spacing:.09em;color:#ffbead;font-weight:900}.site-header{position:sticky;top:0;z-index:20;min-height:75px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px max(18px,calc((100vw - 1560px)/2));background:#180f2be9;border-bottom:1px solid #ffffff20;backdrop-filter:blur(14px)}
.brand{display:flex;align-items:center;gap:10px;color:white;white-space:nowrap;font-size:clamp(21px,2.3vw,30px);letter-spacing:-1px;font-weight:950}.brand-icon{height:45px;width:45px;object-fit:contain}.main-nav,.header-right,.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.between{justify-content:space-between}.main-nav a{padding:10px 15px;border-radius:12px;color:#eee2f3}.main-nav .selected{background:#913c91;color:#fff}.hello{font-weight:800}.header-right{flex-wrap:nowrap}.content{max-width:1570px;padding:24px 20px 50px;margin:auto;min-height:calc(100dvh - 180px)}
.panel,.hero-box{border:1px solid var(--line);background:#1d1731f4;border-radius:23px;padding:21px;box-shadow:0 16px 42px #0b081b4a}.hero-box{background:linear-gradient(90deg,#1a1130f0,#281646a1),url('../images/match-profile-banner.webp') center/cover;min-height:225px;display:flex;flex-direction:column;justify-content:center}.hero-box h1{margin:5px 0}.hero-box p{max-width:650px}.section-heading{margin:24px 0 17px}.section-heading p{margin:5px 0}.outline,.primary{border:1px solid #765981;color:white;background:#38234c;border-radius:14px;min-height:47px;padding:11px 16px;font-weight:800;display:inline-flex;align-items:center;justify-content:center}.outline:hover{background:#543362}.primary{background:linear-gradient(90deg,#ffb68e,#f064bb);color:#24132c;border:0}.primary:hover{filter:brightness(1.07)}.member-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px}.right-rail{display:grid;gap:20px;align-content:start}.match-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.match-card{overflow:hidden;padding:0;display:flex;flex-direction:column}.match-card img{width:100%;aspect-ratio:4/5;object-fit:cover;background:#342a44}.card-body{padding:16px}.card-body h3{margin:4px 0}.card-body p{font-size:18px;margin:3px 0 11px}.pill{border:1px solid #795271;border-radius:99px;padding:4px 10px;background:#47254a;color:#ffd6ed;font-weight:700;display:inline-flex;margin:2px}.button-row{display:flex;gap:9px;margin-top:10px;flex-wrap:wrap}.button-row button{flex:1}.ad-card{border:1px solid #6b4673;border-radius:18px;overflow:hidden;margin:13px 0;background:#1b132a}.ad-card img{width:100%;display:block;aspect-ratio:16/10;object-fit:cover}.ad-card .ad-copy{padding:12px}.ad-card .sponsored{font-size:18px;color:#ffc2dd}.ad-card h3{margin:5px 0}.ad-container:empty:before{content:'No advertisements are active in this placement.';color:#cab9d7}
.form-page{max-width:780px;margin:30px auto;padding:30px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.full{grid-column:1/-1}label{display:grid;gap:8px;margin:10px 0;font-weight:800}input,textarea,select{width:100%;min-height:51px;border-radius:12px;background:#34294e;border:1px solid #66547c;color:white;padding:12px}textarea{min-height:110px;resize:vertical}.check{display:flex;align-items:flex-start;gap:10px;font-weight:500}.check input{width:22px;min-height:22px;flex:0 0 22px}.error{color:#ffb3bb}.form-page form .primary{width:100%;margin-top:8px}.popover{position:fixed;right:18px;top:74px;z-index:30;background:#211630;border:1px solid #815c82;border-radius:20px;width:min(420px,calc(100vw - 32px));max-height:70vh;overflow-y:auto;box-shadow:0 20px 55px #0009;padding:20px}.notice{border-bottom:1px solid #5b3c63;padding:10px 0;display:block}.notice button{float:right}.dialog{border:1px solid #90558e;background:#241638;color:white;border-radius:22px;max-width:min(520px,95vw);padding:0}.dialog::backdrop{background:#080518b8}.dialog-inner{padding:24px;display:grid;gap:10px}
.chat-grid{display:grid;grid-template-columns:minmax(260px,370px) minmax(0,1fr) 290px;gap:18px;min-height:72vh}.inbox{padding:14px}.inbox .thread-item{width:100%;text-align:left;border:0;border-bottom:1px solid #473556;border-radius:12px;background:none;color:inherit;padding:14px 12px;display:flex;align-items:center;gap:12px}.inbox .thread-item:hover,.inbox .thread-item.selected{background:#6c296f7a}.thread-item img,.chat-header img,.message-line img{width:50px;height:50px;object-fit:cover;border-radius:5px}.chat-panel{display:flex;flex-direction:column;min-height:68vh;max-height:calc(100vh - 155px);padding:16px}.chat-header{border-bottom:1px solid #6b4d6e;padding-bottom:14px}.chat-stream{flex:1;overflow:auto;padding:18px 8px;display:flex;flex-direction:column;gap:15px}.message-line{display:flex;gap:12px;max-width:84%;align-items:start}.message-line.mine{align-self:flex-end;flex-direction:row-reverse}.message-line .bubble{background:#332847;border:1px solid #534166;padding:13px 17px;border-radius:16px;overflow-wrap:anywhere}.message-line.mine .bubble{background:#8c28a6;border-color:#a451aa}.message-line img{width:62px;height:62px;flex:0 0 62px}.chat-compose{display:flex;gap:10px}.chat-compose input{flex:1}.ad-rail{align-self:start}.admin-layout{display:grid;grid-template-columns:255px minmax(0,1fr);gap:22px}.admin-nav{display:grid;gap:10px;align-content:start}.admin-nav button{background:#30203d;border:0;color:white;border-radius:11px;padding:14px;text-align:left}.admin-nav button.selected{background:#8d2999}.admin-main{min-width:0}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.stat{padding:18px;background:#342144;border:1px solid #70477a;border-radius:16px}.stat strong{display:block;font-size:30px}.admin-table{width:100%;border-collapse:collapse}.admin-table td,.admin-table th{padding:11px 8px;border-bottom:1px solid #48385a;text-align:left;vertical-align:top}.scroll-table{overflow-x:auto}.admin-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:900px}.admin-form .full{grid-column:1/-1}.report-evidence{background:#312344;padding:17px;border-radius:15px;max-height:420px;overflow-y:auto}.report-line{border-bottom:1px solid #5a4870;padding:9px}.tabs{display:flex;gap:9px;flex-wrap:wrap}footer{color:#af9cbb;border-top:1px solid #493354;padding:22px;text-align:center;font-size:18px}#toast{position:fixed;bottom:18px;right:18px;z-index:50;background:#39214d;color:white;border-radius:15px;padding:12px 18px;display:none;max-width:360px}
@media(max-width:1220px){.chat-grid{grid-template-columns:minmax(260px,340px) minmax(0,1fr)}.ad-rail{display:none}.member-grid{grid-template-columns:minmax(0,1fr) 260px}}@media(max-width:860px){.member-grid{grid-template-columns:1fr}.right-rail{grid-template-columns:repeat(2,minmax(0,1fr))}.match-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-layout{grid-template-columns:1fr}.admin-nav{display:flex;flex-wrap:wrap}.chat-grid{grid-template-columns:1fr}.chat-panel{min-height:70vh;max-height:unset}.inbox{max-height:330px;overflow:auto}}@media(max-width:560px){.site-header{flex-wrap:wrap;padding:10px 14px}.brand{font-size:22px}.brand-icon{width:39px;height:39px}.main-nav{order:3;width:100%;justify-content:center}.main-nav a{padding:7px 11px}.header-right{margin-left:auto}.hello{display:none}.content{padding:16px 12px 35px}.form-grid,.right-rail,.match-cards,.admin-form,.stats-grid{grid-template-columns:1fr}.form-page{padding:20px}.hero-box{min-height:220px}.match-card img{aspect-ratio:5/4}.message-line{max-width:98%}.message-line img{width:48px;height:48px;flex-basis:48px}.popover{top:113px}.chat-stream{min-height:42vh}}

/* Member profile preview – also used for viewing other members */
a.hello{color:var(--text);white-space:nowrap}a.hello:hover{color:var(--pink)}
.profile-preview{max-width:950px;margin:12px auto 36px}
.profile-view-grid{display:grid;grid-template-columns:minmax(220px,330px) minmax(0,1fr);gap:23px;align-items:start}
.profile-avatar{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:16px;background:#392849;display:block}
.profile-avatar-placeholder{width:100%;aspect-ratio:1/1;display:grid;place-items:center;font-size:90px;border-radius:16px;background:#392849}
.profile-details h1{overflow-wrap:anywhere}.profile-details .profile-line{margin:12px 0}
.profile-details .profile-bio{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text)}
@media(max-width:700px){.profile-view-grid{grid-template-columns:1fr}.profile-avatar,.profile-avatar-placeholder{max-width:360px}}


/* Owner-only inline editor; server-side @if($isMine) controls rendering. */
.profile-owner-actions{margin-top:24px}
.profile-editor-panel{margin-top:22px}
.profile-editor-panel[hidden]{display:none}
.profile-edit-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;row-gap:5px}
.profile-edit-fields .full{grid-column:1/-1}
.profile-edit-fields textarea{width:100%}
.profile-photo-preview{display:block;width:min(260px,100%);height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:16px;border:1px solid #795271}
.profile-form-actions{margin-top:18px}
@media(max-width:640px){.profile-edit-fields{grid-template-columns:1fr}
 .header-right a.hello{display:inline-block;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}}
