@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');
:root{font-family:'DM Sans',Arial,sans-serif;color:#3b2a33;background:#fcf7f6;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:#a8476a}.shell{min-height:100vh}.top{height:79px;padding:0 max(24px,calc((100vw - 1180px)/2));background:#fff;border-bottom:1px solid #f1e4e7;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{font:500 27px 'Playfair Display',Georgia,serif;color:#8e3a59;letter-spacing:-.7px}.brand small{display:block;font:500 10px 'DM Sans';color:#b38b59;letter-spacing:2.4px;margin-top:4px;text-transform:uppercase}.avatar{width:39px;height:39px;border-radius:50%;background:#f7e1e8;display:grid;place-items:center;font-size:15px;color:#8e3a59;font-weight:700;flex:none}.userhead{display:flex;align-items:center;gap:12px}.muted{color:#8a7a80}.tiny{font-size:12px}.layout{display:grid;grid-template-columns:220px minmax(0,1fr);max-width:1180px;gap:35px;margin:34px auto;padding:0 24px}.sidebar{padding:8px 0}.nav{display:flex;flex-direction:column;gap:6px}.nav button{background:transparent;border:0;text-align:left;border-radius:11px;padding:14px 15px;color:#7d6670;display:flex;gap:13px;align-items:center;font-weight:600}.nav button.active{color:#8e3a59;background:#f9e6ec}.nav button:hover{background:#fbeef2}.side-note{margin-top:36px;padding:18px;background:#fbf1ef;border-radius:14px;color:#8a7a80;font-size:12px;line-height:1.6}.content{min-width:0}.eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;color:#b38b59;font-weight:700}.heading{font:500 clamp(30px,4vw,42px) 'Playfair Display',Georgia,serif;letter-spacing:-.6px;margin:6px 0 9px;color:#5e2a40}.sub{color:#8a7a80;margin:0 0 25px;line-height:1.6;font-size:14px}.toolbar{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.search,input,select,textarea{border:1px solid #ecdde1;background:white;border-radius:10px;padding:12px 14px;outline:none;color:#3b2a33}.search{flex:1;min-width:180px}.search:focus,input:focus,textarea:focus{border-color:#c27a95;box-shadow:0 0 0 3px #f7dbe5}.btn{border:1px solid #ecd3db;padding:11px 16px;background:#fff;color:#8e3a59;border-radius:9px;font-size:13px;font-weight:700;transition:background .15s}.btn:hover{background:#fdf0f4}.btn.primary{background:#a8476a;border-color:#a8476a;color:white}.btn.primary:hover{background:#8e3a59}.btn.ghost{background:transparent}.btn.small{padding:8px 10px;font-size:12px}.btn.danger{color:#b03a3a}.pill{padding:7px 12px;border-radius:100px;background:#f6ecee;font-size:12px;color:#7d6670;border:0}.pill.selected{background:#f3d3de;color:#8e3a59;font-weight:700}.pills{display:flex;gap:7px;flex-wrap:wrap;margin:15px 0 22px}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.card{background:white;border:1px solid #f2e6e9;border-radius:15px;padding:23px;box-shadow:0 3px 13px rgba(142,58,89,.05)}.member-top{display:flex;gap:14px;align-items:center}.member-avatar{width:64px;height:64px;border-radius:50%;background:#f7e1e8;display:grid;place-items:center;color:#a8476a;font:500 24px 'Playfair Display';flex:none}.member-name{font-size:17px;font-weight:700;margin:0 0 5px}.member-role{font-size:12px;color:#8a7a80}.bio{font-size:13px;line-height:1.65;color:#6e5a63;min-height:42px;margin:16px 0}.row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.between{justify-content:space-between}.tag{background:#fbeef2;border-radius:6px;padding:5px 8px;color:#9a4d6a;font-size:11px}.cardfoot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:20px}.empty{padding:50px 25px;text-align:center;color:#8a7a80;background:white;border:1px dashed #ecd3db;border-radius:14px;line-height:1.7}.event{display:grid;grid-template-columns:82px minmax(0,1fr) auto;gap:19px;align-items:center;padding:20px 22px;border-bottom:1px solid #f2e6e9;background:white}.event:first-child{border-radius:14px 14px 0 0}.event:last-child{border-bottom:none;border-radius:0 0 14px 14px}.datebox{background:#fbeef2;border-radius:10px;padding:13px;text-align:center;color:#a8476a}.datebox strong{display:block;font-size:22px}.datebox span{font-size:10px;letter-spacing:1px;font-weight:700}.event h3{margin:0 0 7px;font-size:16px}.event p{margin:4px 0;color:#8a7a80;font-size:12px}.panel{background:white;padding:25px;border-radius:15px;border:1px solid #f2e6e9}.form{display:grid;gap:14px}.form label{display:grid;gap:6px;color:#7d6670;font-size:12px;font-weight:700}.form textarea{min-height:90px}.form .two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.notice{padding:13px 16px;border-radius:10px;background:#fbf1ef;font-size:13px;color:#6e5a63;line-height:1.6;margin:16px 0}.good{background:#e6f1e8;color:#366344}.bad{background:#f8eae7;color:#993f38}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.stat{padding:19px;border-radius:12px;background:#fdf3f6}.stat strong{font:500 29px 'Playfair Display';display:block;margin-bottom:4px}.stat span{font-size:12px;color:#8a7a80}.listrow{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:14px 0;border-bottom:1px solid #f3e7ea}.listrow:last-child{border-bottom:0}.listrow .rowmain{flex:1}.listrow strong{display:block;font-size:14px;margin-bottom:4px}.msg-layout{display:grid;grid-template-columns:220px 1fr;min-height:360px;border:1px solid #f0e1e5;border-radius:14px;overflow:hidden;background:white}.threadlist{border-right:1px solid #f0e1e5}.thread{padding:15px;border:0;border-bottom:1px solid #eee;background:white;width:100%;text-align:left}.thread.active{background:#fbe9ef}.chat{display:flex;flex-direction:column;padding:16px;min-width:0}.bubbles{flex:1;display:flex;flex-direction:column;gap:10px;max-height:350px;overflow:auto;padding:5px}.bubble{padding:11px 13px;border-radius:12px;background:#f7f0f2;max-width:83%;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.bubble.mine{align-self:flex-end;background:#f6d9e3}.chatbar{display:flex;gap:7px;margin-top:14px}.chatbar input{flex:1;min-width:0}.overlay{position:fixed;inset:0;z-index:20;background:#3b1f2c99;display:grid;place-items:center;padding:20px}.modal{max-width:520px;width:100%;max-height:90vh;overflow:auto;background:#fff;padding:28px;border-radius:17px;box-shadow:0 25px 80px #5e2a4033}.modal h2{font:500 27px 'Playfair Display';margin:0 0 9px}.close{float:right;border:0;background:transparent;font-size:23px;color:#8a7a80}.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:25px;background:radial-gradient(circle at 20% 20%,#f8dfe8,#fdf8f6 60%)}.auth-card{background:white;max-width:430px;padding:38px;width:100%;border-radius:20px;box-shadow:0 15px 60px #8e3a5922}.auth-card .brand{font-size:34px}.auth-card h1{font:500 30px 'Playfair Display';margin:32px 0 8px}.auth-card p{font-size:14px;line-height:1.7;color:#8a7a80}.auth-card input{width:100%}.foot{text-align:center;padding:30px;font-size:11px;color:#a8979d}.right{margin-left:auto}.hidden{display:none}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:60;padding:12px 19px;background:#5e2a40;color:#fff;border-radius:12px;box-shadow:0 5px 20px #3335;font-size:13px;max-width:90vw}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;margin:20px 0}.day{min-height:56px;border:1px solid #f0e1e5;border-radius:8px;background:#fff;padding:7px;text-align:left;color:#6e5a63}.day.has{background:#fbe4ec;border-color:#eab8ca}.day.head{min-height:auto;background:none;text-align:center;border:0;font-size:11px;color:#a8979d}.eventbanner{background:#fbeaf0;border-radius:12px;padding:18px;margin-bottom:15px}.divider{border:0;border-top:1px solid #f3e7ea;margin:22px 0}@media(max-width:850px){.layout{grid-template-columns:1fr;gap:16px;margin:10px auto}.sidebar{order:2;position:fixed;bottom:0;left:0;width:100%;background:white;border-top:1px solid #f0e1e5;z-index:10;padding:5px 4px env(safe-area-inset-bottom)}.nav{flex-direction:row;justify-content:space-around}.nav button{flex-direction:column;gap:5px;padding:7px 4px;font-size:10px;min-width:48px;text-align:center}.side-note{display:none}.content{padding-bottom:100px}.top{height:72px;padding:0 17px}.cards{grid-template-columns:1fr}.heading{font-size:34px}.event{grid-template-columns:60px 1fr;gap:10px;padding:16px}.event .btn{grid-column:2;justify-self:start}.stats{grid-template-columns:1fr 1fr}.msg-layout{grid-template-columns:100px 1fr}.thread{padding:10px 5px;font-size:11px}.form .two{grid-template-columns:1fr}}

/* v1.1 admin controls */
.listrow select{font:inherit;font-size:13px;padding:6px 8px;border-radius:8px;border:1px solid rgba(0,0,0,.15);background:#fff;max-width:110px}
#new-invite-link{width:100%;margin:10px 0 8px;font-size:13px}
.rowmain span:last-child{word-break:break-word}
.rowmain>span{display:block}
/* v1.3 */
.calhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.day.today{outline:2px solid rgba(168,71,106,.4)}
.day.picked{background:#a8476a!important;color:#fff!important}
.request{padding:14px 0;border-bottom:1px solid rgba(0,0,0,.07)}
.request-head{display:flex;gap:12px;align-items:center;margin-bottom:8px}
.member-avatar.small{width:38px;height:38px;font-size:14px;flex:0 0 38px}
blockquote.note{margin:6px 0 10px;padding:10px 14px;border-left:3px solid #c9a46a;background:rgba(201,164,106,.1);border-radius:6px;font-style:italic}
.event.past{opacity:.6}
details.bulk{margin-top:14px;padding:12px 14px;border:1px dashed rgba(0,0,0,.15);border-radius:10px}
details.bulk summary{cursor:pointer;font-weight:600}
details.bulk textarea{font-family:inherit}
#switch-role{white-space:nowrap}
.modal .member-top{margin-bottom:10px}
@media(max-width:850px){.top{height:auto;min-height:60px;padding:10px 14px;gap:8px}.top .brand{font-size:19px;letter-spacing:-.3px;white-space:nowrap}.top .brand small{display:none}.userhead{gap:6px}.userhead>.tiny{display:none}.userhead .avatar{width:32px;height:32px;font-size:12px}.userhead .btn.small{padding:7px 9px;font-size:11px}}

/* ===== v1.4 premium pink ===== */
body{background:radial-gradient(1200px 600px at 90% -10%,#fbe3ea 0%,transparent 60%),#fcf7f6}
.top{background:rgba(255,255,255,.86);backdrop-filter:blur(10px);border-bottom:1px solid #f1e4e7}
.brand{font-style:italic;background:linear-gradient(120deg,#8e3a59,#c06a8a 60%,#b38b59);-webkit-background-clip:text;background-clip:text;color:transparent}
.brand small{-webkit-text-fill-color:#b38b59;font-style:normal}
.btn{border-radius:999px;letter-spacing:.2px}
.btn.primary{background:linear-gradient(135deg,#bb5a7e,#933b5f);border-color:#9d4166;box-shadow:0 6px 16px rgba(168,71,106,.22)}
.btn.primary:hover{background:linear-gradient(135deg,#a84d70,#7f3051)}
.card{border-radius:20px;box-shadow:0 8px 28px rgba(142,58,89,.07);transition:transform .15s,box-shadow .15s}
.card:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(142,58,89,.11)}
.panel,.event:first-child,.empty,.msg-layout{box-shadow:0 8px 28px rgba(142,58,89,.05)}
.panel{border-radius:20px}
.member-avatar{background:linear-gradient(135deg,#fbe6ee,#f3d2df);color:#8e3a59;box-shadow:0 0 0 3px #fff,0 0 0 4px #ecc9a0}
.member-avatar.photo,.avatar.photo{padding:0;overflow:hidden;background:#f7e1e8}
.member-avatar.photo img,.avatar.photo img{width:100%;height:100%;object-fit:cover;display:block}
.member-avatar.large{width:96px;height:96px;font-size:34px}
.avatar.photo{box-shadow:0 0 0 2px #ecc9a0}
.eyebrow{letter-spacing:3px}
.eyebrow::before{content:"✦ ";color:#c9a46a}
.heading{font-style:italic}
.datebox{background:linear-gradient(160deg,#fdf0f4,#f8e1ea);color:#a8476a}
.tag{background:#fbeef2;color:#9a4d6a;border-radius:999px;padding:5px 10px}
.pill.selected{box-shadow:inset 0 0 0 1px #e7b6c8}
.stat{background:linear-gradient(160deg,#fff,#fdf1f5);border:1px solid #f4e3e8}
.stat strong{color:#8e3a59}
.notice{background:#fdf3f0;border:1px solid #f6e3dc}
.divider{border-top:1px solid #f3e1e6}
.auth-card{border:1px solid #f4e3e8;box-shadow:0 30px 80px rgba(142,58,89,.16)}
.auth-card .brand{font-size:36px}
.eventbanner{background:linear-gradient(135deg,#fbe9ef,#fdf5ef)}
.bubble.mine{background:linear-gradient(135deg,#f9dce6,#f4d0dd)}
.toast{background:linear-gradient(135deg,#8e3a59,#6d2944);border-radius:999px}
.day.picked{background:#a8476a!important}
.nav button.active{box-shadow:inset 3px 0 0 #c9a46a}
.photo-row{display:flex;gap:18px;align-items:center}
.photo-row p{margin:4px 0 8px}
label.btn{display:inline-flex;align-items:center;cursor:pointer;font-size:12px}
.check{display:flex!important;grid-template-columns:none!important;gap:10px!important;align-items:flex-start;font-weight:500!important;color:#3b2a33!important;font-size:13px!important}
.check input{width:18px;height:18px;margin-top:2px;accent-color:#a8476a;flex:none}
.muted-thread{opacity:.6}
.thread .tiny{display:block}
@media(max-width:850px){.nav button.active{box-shadow:inset 0 -3px 0 #c9a46a}}

/* ===== v1.5 polish: larger text, bigger tap targets, stronger contrast, phone-first ===== */
:root{font-size:16px;-webkit-text-size-adjust:100%}
body{line-height:1.5}
.muted,.sub,.member-role,.event p,.stat span,.auth-card p,.side-note{color:#6f5d65}
.eyebrow,.brand small{color:#8f6a35;-webkit-text-fill-color:#8f6a35}
.eyebrow::before{color:#b38b59}
.tiny{font-size:13.5px;line-height:1.5}
.sub{font-size:16px}
.bio{font-size:15px;color:#5a4850}
.member-name{font-size:18px}
.member-role{font-size:14px}
.event h3{font-size:17px}.event p{font-size:14px}
.notice{font-size:15px}
.tag{font-size:13px;padding:5px 11px}
.bubble{font-size:15px}
.listrow strong{font-size:15.5px}
.form label{font-size:14px;color:#5a4850}
.search,input,select,textarea{font-size:16px;padding:13px 15px;border-radius:12px;border-color:#e4cdd4}
.btn{font-size:15px;padding:12px 20px;min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none}
.btn.small{font-size:14px;padding:9px 15px;min-height:40px}
.btn.ghost{border-color:#ecd3db}
.btn.danger{color:#a12f2f}
.pill{font-size:14px;padding:9px 15px;min-height:40px}
button.pill{cursor:pointer}
.nav button{font-size:15px;position:relative}
.navic{position:relative;display:inline-flex}
.ic{display:block}
.badge{position:absolute;top:-6px;right:-10px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#a8476a;color:#fff;font:700 11px/19px 'DM Sans',Arial,sans-serif;text-align:center;box-shadow:0 0 0 2px #fff}
.close{width:44px;height:44px;margin:-10px -10px 0 8px;border-radius:50%;font-size:18px;display:grid;place-items:center;color:#6f5d65}
.close:hover{background:#fbeef2}
:focus-visible{outline:3px solid #c27a95;outline-offset:2px}
.card{display:flex;flex-direction:column}
.card .cardfoot{margin-top:auto;padding-top:18px;border-top:1px solid #f6eaee}
.card .bio{margin:16px 0 12px}
.cardfoot .tiny{flex:1}
.event{border-left:1px solid #f2e6e9;border-right:1px solid #f2e6e9}
.event:first-child{border-top:1px solid #f2e6e9}.event:last-child{border-bottom:1px solid #f2e6e9}
.datebox{padding:12px 8px;border-radius:14px}
.datebox strong{font:500 26px 'Playfair Display',Georgia,serif;line-height:1.1}
.modal{border-radius:22px}
.modal h2{font-style:italic;color:#5e2a40}
.auth-card h1{font-style:italic;color:#5e2a40}
.auth-card .form{margin-top:18px}
.auth-card .btn{width:100%}
.auth-card::before{content:"";display:block;width:44px;height:3px;border-radius:3px;background:linear-gradient(90deg,#c9a46a,#e7c9a0);margin-bottom:22px}
.otp{font:600 28px 'DM Sans',Arial,sans-serif!important;letter-spacing:10px;text-align:center;padding:14px 8px!important}
.otp::placeholder{color:#e4cdd4}
.stat strong{font-size:32px}
.check{font-size:15px!important}
.check input{width:22px;height:22px}
.listrow{flex-wrap:wrap}
.listrow .rowmain{min-width:55%}
.thread{font-size:15px;min-height:48px}
.calendar .day{font-size:14px}
.toast{font-size:15px;padding:13px 22px}
.foot{font-size:13px;color:#8a7a80}
@media(prefers-reduced-motion:reduce){*{transition:none!important}.card:hover{transform:none}}
@media(max-width:850px){
  .layout{padding:0 16px}
  .heading{font-size:32px}
  .sidebar{padding:6px 4px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -6px 24px rgba(142,58,89,.08)}
  .nav button{font-size:12px;padding:8px 2px;min-height:56px;gap:4px;flex:1;border-radius:14px}
  .nav button.active{box-shadow:none;background:#fbe9ef}
  .content{padding-bottom:110px}
  .toast{bottom:calc(86px + env(safe-area-inset-bottom));width:max-content}
  .card{padding:20px}
  .cardfoot{flex-wrap:wrap}
  .cardfoot .tiny{flex-basis:100%;margin-bottom:4px}
  .cardfoot .btn{flex:1}
  .toolbar .btn{flex:1}
  .pills{flex-wrap:nowrap;overflow-x:auto;margin-left:-16px;margin-right:-16px;padding:2px 16px 6px;scrollbar-width:none}
  .pills::-webkit-scrollbar{display:none}
  .pill{white-space:nowrap;flex:none}
  .event{grid-template-columns:64px 1fr;gap:14px;padding:18px 16px}
  .event .btn{grid-column:1 / -1;justify-self:stretch}
  .panel{padding:20px 18px}
  .listrow .rowmain{flex-basis:100%}
  .listrow .btn,.listrow select{flex:1}
  .listrow select{max-width:none;min-height:40px;font-size:15px}
  .request .row .btn{flex:1}
  .msg-layout{grid-template-columns:1fr;min-height:0}
  .threadlist{display:flex;overflow-x:auto;border-right:0;border-bottom:1px solid #f0e1e5;padding:10px;gap:8px}
  .thread{width:auto;flex:none;border:1px solid #f0e1e5;border-radius:999px;padding:8px 16px;font-size:14px;min-height:42px;white-space:nowrap}
  .thread.active{border-color:#e7b6c8}
  .thread .tiny{display:inline;margin-left:6px}
  .overlay{padding:0;place-items:end center}
  .modal{max-width:none;border-radius:24px 24px 0 0;padding:24px 20px calc(24px + env(safe-area-inset-bottom));max-height:92vh}
  .modal .row .btn{flex:1}
  .photo-row{flex-direction:column;align-items:flex-start}
  .auth-wrap{padding:16px;place-items:start center;padding-top:8vh}
  .auth-card{padding:30px 24px}
  .stats{gap:10px}.stat{padding:16px}
  .calendar{gap:4px}.day{min-height:52px;padding:5px}.day small{font-size:10px}
}
.eyebrow{font-size:13px;letter-spacing:2.5px}
.datebox span{font-size:13px;letter-spacing:.5px}
.day.head{font-size:13px}
.day small{font-size:13px}
@media(max-width:850px){.day small{font-size:0}.day.has::after{content:"•";display:block;color:#a8476a;font-size:18px;line-height:1}.day.picked.has::after{color:#fff}}
.form label input,.form label select,.form label textarea{font-weight:500}
input::placeholder,textarea::placeholder{font-weight:400;color:#a8979d}
.card>.row{margin-bottom:16px}
@media(max-width:850px){
  .toast{top:calc(70px + env(safe-area-inset-top));bottom:auto}
  .modal .row{flex-direction:column;align-items:stretch}
  .modal .row .tag{align-self:flex-start}
  .modal .row .btn{flex:none;width:100%}
}
