:root{
  --cream:#f4efe6;--paper:#fffdf8;--ink:#26231f;--muted:#777066;
  --gold:#a98655;--line:#ded5c7;--dark:#292825;--soft:#f7f1e8;--green:#58704d
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:linear-gradient(135deg,#eee5d8,#faf7f1 55%,#e9dfd0);color:var(--ink);min-height:100vh}
.shell{max-width:1180px;margin:auto;min-height:100vh;padding:56px 28px;display:grid;grid-template-columns:.92fr 1.08fr;gap:72px;align-items:center}
.shell.app-shell{display:block;max-width:980px;padding-top:42px;padding-bottom:70px}
.brand{position:sticky;top:40px}.brand .eyebrow,.onboarding .eyebrow,.category-view .eyebrow{letter-spacing:.25em;font-size:.72rem;font-weight:700;color:var(--gold)}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif}
h1{font-size:clamp(3.2rem,7vw,6.2rem);line-height:.9;margin:18px 0 26px;font-weight:500}
.brand p{max-width:480px;font-size:1.1rem;line-height:1.7;color:var(--muted)}
.card{background:rgba(255,253,248,.96);border:1px solid rgba(169,134,85,.22);border-radius:28px;padding:38px;box-shadow:0 28px 80px rgba(61,49,34,.12)}
.app-shell .card{width:100%;max-width:900px;margin:0 auto}
.monogram{width:54px;height:54px;border:1px solid var(--gold);border-radius:50%;display:grid;place-items:center;font-family:Georgia,serif;color:var(--gold);margin-bottom:24px}
.monogram.small{width:44px;height:44px;margin:22px 0 18px}
.card h2{font-size:2rem;margin:0 0 10px}.muted{color:var(--muted);line-height:1.55}
form{display:grid;gap:18px;margin-top:28px}
label{font-size:.82rem;font-weight:700;letter-spacing:.04em}
input,select,textarea{display:block;width:100%;margin-top:8px;padding:15px 16px;border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink);font:inherit;outline:none}
textarea{resize:vertical;min-height:110px}
input:focus,select:focus,textarea:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(169,134,85,.12)}
button{border:0;border-radius:12px;padding:15px 18px;background:var(--dark);color:white;font:inherit;font-weight:700;cursor:pointer}
button:disabled{opacity:.55;cursor:wait}
.message{min-height:1.2em;color:#9b423d;font-size:.9rem}.hidden{display:none!important}
.dashboard,.onboarding{grid-column:2}
.topline{display:flex;align-items:center;justify-content:space-between;gap:16px}
.pill{font-size:.68rem;letter-spacing:.12em;border:1px solid #aab7a0;color:var(--green);border-radius:999px;padding:7px 10px}
.linkbutton,.backbutton{background:none;color:var(--muted);padding:4px}
.backbutton{font-weight:650}
.status-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:28px 0}
.status-grid article{border:1px solid var(--line);border-radius:16px;padding:16px}
.status-grid span{display:block;color:var(--muted);font-size:.72rem;text-transform:uppercase;letter-spacing:.08em}
.status-grid strong{display:block;margin-top:8px;font-size:1rem}
.categories h3{margin:28px 0 14px}
.category{display:flex;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #ebe4da}
.category-button{width:100%;border-radius:0;background:transparent;color:var(--ink);text-align:left;font-weight:400}
.category-button:hover{background:var(--soft);padding-left:12px;padding-right:12px;border-radius:12px}
.category:last-child{border-bottom:0}.category .icon{width:32px;text-align:center;font-size:1.05rem}
.category-copy{flex:1}.category strong{display:block;font-size:.96rem}.category small{display:block;color:var(--muted);margin-top:4px;line-height:1.35}
.category-arrow{font-size:1.6rem;color:var(--gold);font-family:Georgia,serif}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.optional{font-weight:500;color:var(--muted);letter-spacing:0}
fieldset{border:0;padding:0;margin:4px 0}
legend{font-size:.82rem;font-weight:700;letter-spacing:.04em;padding:0}
.field-help{margin:5px 0 10px;color:var(--muted);font-size:.78rem}
.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.choice{position:relative;display:block}.choice input{position:absolute;opacity:0;pointer-events:none}
.choice span{display:flex;align-items:center;min-height:46px;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:white;font-size:.82rem;font-weight:650;letter-spacing:0;cursor:pointer;transition:.15s ease}
.choice input:checked+span{border-color:var(--gold);background:#f6efe4;box-shadow:0 0 0 2px rgba(169,134,85,.10)}
.publish-note{display:grid;gap:4px;padding:16px;border:1px solid rgba(169,134,85,.25);border-radius:14px;background:var(--soft)}
.publish-note strong{font-family:Georgia,serif}.publish-note span{font-size:.82rem;color:var(--muted);line-height:1.45}
.success-banner{margin:20px 0 0;padding:14px 16px;border-radius:13px;background:#eef2e9;color:#48603f;border:1px solid #cfd9c7;font-size:.9rem;font-weight:650}
.category-heading{display:flex;align-items:flex-start;gap:18px;margin:30px 0 34px}
.category-hero-icon{width:58px;height:58px;display:grid;place-items:center;border:1px solid rgba(169,134,85,.35);background:var(--soft);border-radius:18px;font-size:1.45rem;flex:0 0 auto}
.category-heading h2{margin:5px 0 6px}
.posts-header{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:25px}
.posts-header h3{margin:0}.count-badge{font-size:.72rem;background:var(--soft);border:1px solid var(--line);border-radius:999px;padding:4px 8px;color:var(--muted)}
.post-list{display:grid;gap:12px;margin-top:16px}
.post-card{display:block;width:100%;text-align:left;background:white;color:var(--ink);border:1px solid var(--line);border-radius:18px;padding:20px;transition:.15s ease}
.post-card:hover{transform:translateY(-1px);border-color:rgba(169,134,85,.55);box-shadow:0 12px 28px rgba(61,49,34,.07)}
.post-card h3{font-size:1.25rem;margin:9px 0 8px}.post-card p{color:var(--muted);line-height:1.55;margin:0 0 13px;font-weight:400}
.post-meta{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:.72rem;font-weight:600}
.important-tag{color:#7a5a2d;background:#f5ead9;border-radius:999px;padding:4px 7px;letter-spacing:.06em}
.read-more{font-size:.78rem;color:var(--gold)}
.empty-state{text-align:center;padding:48px 20px;border:1px dashed var(--line);border-radius:18px;background:rgba(247,241,232,.5)}
.empty-icon{font-size:1.7rem}.empty-state h3{margin:12px 0 6px}.empty-state p{color:var(--muted);margin:0;line-height:1.5}
.loading-state{padding:30px;text-align:center;color:var(--muted)}
.post-detail-meta{margin-top:32px;color:var(--gold);font-size:.78rem;font-weight:700;letter-spacing:.03em}
.post-view h2{font-size:2.4rem;margin:12px 0 22px}
.post-detail-content{white-space:pre-wrap;line-height:1.75;font-size:1rem;padding-top:20px;border-top:1px solid var(--line)}
@media(max-width:800px){
  .shell{grid-template-columns:1fr;gap:30px;padding:32px 18px}.shell.app-shell{padding:18px 12px 40px}
  .brand{position:static}.dashboard,.onboarding{grid-column:auto}h1{font-size:3.7rem}.status-grid{grid-template-columns:1fr}
  .brand p{font-size:1rem}.card{padding:26px}.app-shell .card{padding:22px 18px;border-radius:20px}
  .two-col,.choice-grid{grid-template-columns:1fr}.category-heading{gap:12px}.category-hero-icon{width:48px;height:48px;border-radius:15px}
  .post-view h2{font-size:2rem}
}
.build-marker{
  position:fixed;right:10px;bottom:8px;z-index:9999;
  font-size:10px;letter-spacing:.08em;color:#8a8177;
  background:rgba(255,253,248,.88);border:1px solid #ded5c7;
  border-radius:999px;padding:4px 7px;pointer-events:none
}

.home-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:12px 0 10px}
.home-hero h2{font-size:clamp(2.2rem,5vw,3.5rem);margin:7px 0 8px}
.home-avatar{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:var(--dark);color:white;font-family:Georgia,serif;font-size:1.1rem;flex:0 0 auto}
.home-section{margin-top:38px}
.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:15px}
.section-heading h3{font-size:1.55rem;margin:3px 0 0}
.section-kicker{font-size:.66rem;letter-spacing:.18em;color:var(--gold);font-weight:800}
.section-note{font-size:.7rem;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:4px 8px}
.home-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.important-card{min-height:145px;text-align:left;background:linear-gradient(145deg,#2d2b27,#39352f);color:white;border-radius:18px;padding:18px;display:flex;flex-direction:column;justify-content:space-between}
.important-card h4,.feed-item h4{font-family:Georgia,"Times New Roman",serif;font-size:1.12rem;margin:12px 0 8px}
.important-card .read-more{color:#dcc49d}
.home-card-meta{display:flex;justify-content:space-between;gap:10px;font-size:.67rem;color:var(--muted);font-weight:650}
.important-card .home-card-meta{color:#c9c2b8}
.home-feed{display:grid;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:white}
.feed-item{display:grid;grid-template-columns:42px 1fr 18px;gap:13px;align-items:center;width:100%;text-align:left;background:white;color:var(--ink);border-radius:0;padding:17px 18px;border-bottom:1px solid #eee7dd}
.feed-item:last-child{border-bottom:0}.feed-item:hover{background:var(--soft)}
.feed-icon{width:40px;height:40px;border-radius:12px;background:var(--soft);display:grid;place-items:center;font-size:1.05rem}
.feed-copy h4{margin:4px 0 4px}.feed-copy p{margin:0;color:var(--muted);font-size:.82rem;line-height:1.45;font-weight:400}
.feed-arrow{font-family:Georgia,serif;font-size:1.5rem;color:var(--gold)}
.category-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 22px;border:1px solid var(--line);border-radius:18px;padding:5px 18px;background:white}
.empty-state.compact{padding:24px 18px;grid-column:1/-1}
@media(max-width:700px){
  .home-post-grid{grid-template-columns:1fr}.category-grid{grid-template-columns:1fr}
  .home-avatar{width:48px;height:48px}.home-section{margin-top:30px}
  .feed-item{grid-template-columns:38px 1fr 14px;padding:14px 12px}.feed-copy p{display:none}
}

.home-actions{display:flex;align-items:center;gap:12px}
.admin-create{background:var(--dark);color:#fff;border-radius:999px;padding:11px 15px;font-size:.78rem;white-space:nowrap}
.composer-backdrop{position:fixed;inset:0;z-index:10000;background:rgba(38,35,31,.48);display:grid;place-items:center;padding:20px;backdrop-filter:blur(5px)}
.composer{width:min(680px,100%);max-height:90vh;overflow:auto;background:#fffdf8;border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:0 30px 90px rgba(45,38,28,.25)}
.composer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
.composer-head h2{font-size:2rem;margin:4px 0 0}
.composer-close{background:none;color:var(--muted);font-size:1.8rem;padding:0 6px;line-height:1}
.composer textarea{min-height:180px}
.composer-options{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:end;margin-top:14px}
.checkline{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:12px;padding:13px 14px;background:white;min-height:50px}
.checkline input{width:auto;margin:0}
.optional{font-weight:400;color:var(--muted);font-size:.8em}
.composer-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
.secondary-button{background:transparent;color:var(--ink);border:1px solid var(--line)}
@media(max-width:700px){
  .home-actions{gap:7px}.admin-create{padding:9px 11px;font-size:.7rem}
  .composer{padding:20px;border-radius:20px}.composer-options{grid-template-columns:1fr}
}

.post-community{margin-top:30px;padding-top:24px;border-top:1px solid var(--line)}
.reaction-bar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:30px}
.reaction-bar button{background:white;color:var(--ink);border:1px solid var(--line);border-radius:999px;padding:9px 13px;font-size:.78rem;display:flex;gap:6px;align-items:center}
.reaction-bar button.active{border-color:var(--gold);background:var(--soft);color:#7c5e32}
.reaction-count{font-size:.72rem;min-width:10px}
.comments-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:14px}
.comments-head h3{font-size:1.55rem;margin:3px 0 0}
.comments-head>span{font-size:.72rem;border:1px solid var(--line);border-radius:999px;padding:4px 8px;color:var(--muted)}
.comment-form{border:1px solid var(--line);border-radius:16px;padding:14px;background:white;margin-bottom:16px}
.comment-form textarea{border:0;padding:4px;min-height:80px;margin:0;box-shadow:none;background:transparent}
.comment-form textarea:focus{box-shadow:none}
.comment-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #eee7dd;padding-top:11px}
.comment-actions button{padding:10px 14px}
.comment-list{display:grid;gap:10px}
.comment{display:grid;grid-template-columns:38px 1fr;gap:11px;padding:15px 2px;border-bottom:1px solid #eee7dd}
.comment-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--soft);font-family:Georgia,serif;font-size:.78rem}
.comment-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.78rem}
.comment-meta span{color:var(--muted);font-size:.7rem}
.comment-body p{margin:6px 0 0;white-space:pre-wrap;line-height:1.55;color:#4d4943}

/* FCBC v11: Merkliste & dezente Aktionsleiste */
.reaction-bar{gap:10px;margin-bottom:28px}
.reaction-bar button{padding:11px 17px;background:#fffdf8;border:1px solid #d9cbb9;font-weight:650}
.reaction-bar button:hover{background:#f6efe4;border-color:#a98655}
.reaction-bar button.active{background:#f5ead9;border-color:#a98655;color:#75552d}
.saved-open-button{display:block;margin:13px 0 0 auto;padding:10px 14px;background:transparent;color:#8b6b3e;border:1px solid #d9cbb9;border-radius:999px;font-size:.8rem}
.saved-open-button:hover{background:#f6efe4}
.saved-post-list{margin-top:18px}

/* FCBC v12: Premium-Navigation & Profil */
.shell.app-shell{padding-bottom:116px}
.club-navigation{position:fixed;z-index:9000;left:50%;bottom:18px;transform:translateX(-50%);
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;width:min(520px,calc(100% - 24px));
 padding:8px;border:1px solid rgba(169,134,85,.27);border-radius:22px;
 background:rgba(255,253,248,.97);box-shadow:0 14px 44px rgba(61,49,34,.17);backdrop-filter:blur(16px)}
.club-navigation button{display:flex;flex-direction:column;align-items:center;gap:3px;
 background:transparent;color:#746c62;border-radius:15px;padding:9px 4px;font-size:.71rem;font-weight:700}
.club-navigation button:hover,.club-navigation button.active{background:#f4ebdf;color:#795a30}
.club-navigation .nav-icon{font-size:1.35rem;line-height:1.1;font-weight:400}
.profile-view .category-heading{margin-bottom:22px}
.profile-form{max-width:650px}
.profile-form button[type=submit]{justify-self:start}
.profile-form input:disabled{background:#f4efe7;color:#756e65}
@media(max-width:700px){.club-navigation{bottom:8px;border-radius:19px}.club-navigation button{font-size:.67rem}
 .shell.app-shell{padding-bottom:108px}}

/* FCBC v13: Profilbilder */
.avatar-editor{display:flex;align-items:center;gap:23px;padding:20px;background:#f8f3eb;border:1px solid #e7d9c7;border-radius:20px;margin:26px 0 8px}
.profile-avatar-preview{width:110px;height:110px;border-radius:50%;background:#2c2a26;color:#fff;display:grid;place-items:center;flex:none;font-family:Georgia,serif;font-size:2rem;overflow:hidden}
.profile-avatar-preview img,.home-avatar img,.comment-avatar img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.avatar-editor-actions{flex:1;min-width:0}.avatar-editor-actions strong{font-family:Georgia,serif;font-size:1.3rem}.avatar-editor-actions p.muted{font-size:.81rem;margin:7px 0 12px}
.avatar-upload-button{display:inline-block;cursor:pointer;background:#2c2a26;color:white;border-radius:12px;padding:12px 16px;font-size:.8rem;margin-right:8px}
.avatar-upload-button.busy{opacity:.5;pointer-events:none}.avatar-editor-actions .secondary-button{padding:11px 14px;font-size:.8rem}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.comment-avatar{overflow:hidden}.home-avatar{overflow:hidden}
@media(max-width:600px){.avatar-editor{align-items:flex-start;gap:14px;padding:14px}.profile-avatar-preview{width:78px;height:78px;font-size:1.4rem}.avatar-upload-button{margin-bottom:8px}}

/* FCBC v14 */
.public-profile-head{display:flex;gap:22px;align-items:center;margin:30px 0 35px}
.public-profile-avatar{width:94px;height:94px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--soft);overflow:hidden;font-family:Georgia,serif;font-size:1.4rem}
.public-profile-avatar img,.post-author-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.public-profile-head h2{margin:5px 0 0}.public-profile-head p{margin:4px 0}
.public-intro-button{padding:6px 0;background:none;color:#926c3d;font-size:.83rem;text-align:left}
.public-profile-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);padding-bottom:12px}
.public-profile-tabs button{background:transparent;color:var(--muted);border:1px solid var(--line);padding:11px 16px;border-radius:999px;font-size:.85rem}
.public-profile-tabs button.active{background:#f5ead9;border-color:var(--gold);color:#795a30}
.public-profile-list{display:grid;gap:10px;margin-top:20px}
.public-activity-item{display:grid;gap:8px;text-align:left;background:white;border:1px solid var(--line);border-radius:16px;color:var(--ink);padding:18px}
.public-activity-item strong{font-family:Georgia,serif;font-size:1.1rem}
.public-activity-item small,.public-activity-item p{color:var(--muted);font-weight:400;margin:0;line-height:1.5}
.member-name-link{background:none;color:var(--ink);padding:0;font-size:inherit;font-weight:750;text-align:left}
.member-name-link:hover,.public-intro-button:hover{text-decoration:underline}
.member-avatar-link{cursor:pointer}.member-avatar-link:focus-visible{outline:2px solid var(--gold)}
.post-author-link{margin-top:20px}.post-author-button{display:flex;align-items:center;gap:10px;background:var(--soft);border:1px solid var(--line);color:var(--ink);padding:10px 14px;border-radius:14px;font-size:.8rem}
.post-author-avatar{display:grid;place-items:center;overflow:hidden;width:30px;height:30px;border-radius:50%;background:white}
@media(max-width:600px){.public-profile-head{gap:14px}.public-profile-avatar{width:70px;height:70px}}

/* FCBC v15: Club Lounge */
.posts-header .lounge-ask{margin-left:auto;background:#292825;color:white;border-radius:999px;padding:11px 17px;font-size:.82rem}
.composer-lounge-note{padding:13px 16px;background:#f7f1e8;border:1px solid #ded5c7;border-radius:13px;font-size:.85rem;color:#6d604d;line-height:1.5}
.post-management{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}
.post-management:empty{display:none}
.post-management button{font-size:.8rem;padding:10px 14px}
@media(max-width:600px){.posts-header{flex-wrap:wrap}.posts-header .lounge-ask{margin-left:auto}}

/* FCBC v16 · Live Lounge */
.club-navigation{grid-template-columns:repeat(5,minmax(0,1fr))}
.lounge-view{max-width:900px}
.lounge-heading{margin:30px 0 18px}
.lounge-heading h2{font-size:2.4rem;margin:6px 0}
.lounge-status{color:var(--muted);font-size:.76rem;margin:0 0 12px}
.lounge-messages{height:min(55vh,570px);min-height:280px;overflow-y:auto;border:1px solid var(--line);border-radius:20px;background:#faf6f0;padding:18px;display:flex;flex-direction:column;gap:14px}
.lounge-empty{text-align:center;margin:auto}
.lounge-message{display:flex;align-items:flex-start;gap:10px;max-width:90%}
.lounge-message.mine{align-self:flex-end;flex-direction:row-reverse}
.lounge-avatar{width:36px;height:36px;flex:none;border-radius:50%;background:#e9dfd0;display:grid;place-items:center;overflow:hidden;font-size:.72rem}
.lounge-avatar img{width:100%;height:100%;object-fit:cover}
.lounge-bubble{min-width:0;background:white;border:1px solid #e6dccd;border-radius:15px;padding:12px 14px;box-shadow:0 3px 10px #382c1c08}
.lounge-message.mine .lounge-bubble{background:#f2e5d1;border-color:#dfcba9}
.lounge-message-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:.74rem}
.lounge-message-meta time{color:var(--muted);font-size:.68rem}
.lounge-bubble p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;margin:7px 0 0;font-size:.91rem}
.lounge-delete{background:transparent;color:#8c7460;font-size:.68rem;padding:6px 0 0}
.lounge-chat-form{display:flex;align-items:end;gap:10px;margin-top:14px}
.lounge-chat-form textarea{min-height:56px;max-height:130px;flex:1;margin:0}
.lounge-chat-form button{flex:none}
@media(max-width:600px){.club-navigation button{font-size:.61rem}.lounge-messages{height:52vh;padding:12px}.lounge-message{max-width:98%}.lounge-avatar{width:29px;height:29px}.lounge-chat-form{gap:7px}.lounge-chat-form button{padding:15px 11px}}

/* FCBC v16.2 – Chat reactions, replies, pinned messages */
.lounge-reactions{display:flex;flex-wrap:wrap;gap:4px;margin-top:10px}
.lounge-reaction{padding:4px 7px;border:1px solid #e1d4c3;border-radius:999px;background:#fffaf4;color:#332d25;font-size:.76rem;font-weight:500}
.lounge-reaction.selected{background:#e9d5b4;border-color:#b48d54}
.lounge-message-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:5px}
.lounge-action{background:transparent;color:#806744;font-size:.7rem;padding:5px 0}
.lounge-quote{border-left:3px solid #a98655;background:#f8f1e7;padding:7px 9px;margin-top:9px;border-radius:5px;font-size:.78rem;color:#695c4c;overflow-wrap:anywhere}
.lounge-pinned{padding:12px 15px;border:1px solid #d9c5a2;background:#fff8e9;border-radius:14px;margin:0 0 12px;color:#604a2d;font-size:.82rem;overflow-wrap:anywhere}
.lounge-reply-preview{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f5ecdf;padding:9px 12px;border-radius:10px;margin-top:10px;font-size:.8rem;color:#66533b}
.lounge-reply-preview span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lounge-reply-preview button{padding:0 5px;background:transparent;color:#66533b;font-size:1.25rem}
.lounge-new-messages{display:block;margin:8px auto 0;padding:8px 14px;border-radius:999px;font-size:.78rem;background:#6c5435}

/* v16.3: WhatsApp-style contextual chat actions */
.lounge-toolbar-wrap{position:relative;display:flex;justify-content:flex-end;min-height:4px}
.lounge-tools{display:flex;gap:4px;opacity:0;transition:opacity .15s}
.lounge-message:hover .lounge-tools,.lounge-message:focus-within .lounge-tools{opacity:1}
.lounge-tool{border:1px solid #e2d7c8;background:#fffaf5;color:#705e4b;border-radius:999px;min-width:28px;height:27px;padding:0 6px;font-size:1.05rem;line-height:1;cursor:pointer}
.lounge-emoji-picker,.lounge-popover{position:absolute;z-index:12;bottom:30px;right:0;background:#fff;border:1px solid #e4d6c3;border-radius:13px;box-shadow:0 9px 28px #30201525;padding:7px;display:flex;gap:3px;max-width:min(310px,80vw)}
.lounge-emoji-picker.hidden,.lounge-popover.hidden{display:none}
.lounge-emoji-option{background:transparent;border:0;border-radius:9px;padding:5px;font-size:1.2rem;cursor:pointer}
.lounge-emoji-option:hover{background:#f5ecdf}
.lounge-popover{flex-direction:column;align-items:stretch;min-width:165px;gap:1px}
.lounge-popover button{text-align:left;background:transparent;border:0;padding:9px 11px;border-radius:8px;color:#302b25;cursor:pointer}
.lounge-popover button:hover{background:#f5ecdf}
.lounge-reactions:empty{display:none}
@media (hover:none){.lounge-tools{opacity:1}.lounge-tool{min-width:30px;height:29px}}

/* v16.4 — compact, restrained chat menu */
.lounge-toolbar-wrap{min-height:0;position:relative}
.lounge-tools{gap:3px;margin-top:2px}
.lounge-tool{min-width:25px;width:25px;height:24px;padding:0;border:0;background:transparent;color:#8e8171;font-size:16px;font-weight:400;box-shadow:none}
.lounge-tool:hover{background:#f1e8dd;color:#44372a}
.lounge-popover{position:absolute;right:0;bottom:27px;z-index:30;display:flex;flex-direction:column;align-items:stretch;width:154px;min-width:0;max-width:calc(100vw - 48px);gap:0;padding:4px;border:1px solid #e9e1d6;border-radius:10px;background:#fffdfb;box-shadow:0 7px 18px #382e221b}
.lounge-popover button{display:block;width:100%;min-height:0;margin:0;padding:7px 9px;border:0;border-radius:6px;background:transparent;box-shadow:none;color:#4b4034;font-size:12px;font-weight:500;line-height:1.25;text-align:left;white-space:nowrap}
.lounge-popover button:hover{background:#f6f1ea}
.lounge-emoji-picker{right:0;bottom:27px;z-index:31;padding:5px;gap:1px;border-radius:999px;box-shadow:0 7px 18px #382e221b}
.lounge-emoji-option{font-size:17px;padding:5px 6px;border-radius:999px}
.lounge-reactions{margin-top:5px}
.lounge-reaction{padding:2px 6px;font-size:11px}
@media (hover:none){.lounge-tools{opacity:1}.lounge-tool{width:26px;height:26px;min-width:26px}}

/* v17: compact notification center */
.notification-root{position:fixed;right:18px;top:14px;z-index:1100}.notification-root.hidden{display:none}.notification-bell{width:42px;height:42px;border-radius:50%;background:#fff;color:#253a52;border:1px solid #d8e0e9;box-shadow:0 3px 14px #15283b20;font-size:22px;cursor:pointer}.notification-count{position:absolute;right:-3px;top:-4px;min-width:19px;height:19px;border-radius:12px;background:#b4484c;color:white;font-size:11px;font-weight:700;padding:2px 4px}.notification-count.hidden,.notification-panel.hidden{display:none}.notification-panel{position:absolute;right:0;top:51px;width:min(365px,calc(100vw - 30px));max-height:min(480px,75vh);overflow:auto;background:#fff;border:1px solid #e0e5eb;border-radius:16px;box-shadow:0 12px 40px #17263833}.notification-head{display:flex;align-items:center;justify-content:space-between;padding:15px;border-bottom:1px solid #edf0f4;gap:12px}.notification-head button{background:none;border:0;color:#526e85;font-size:12px;cursor:pointer}.notification-items{padding:6px}.notification-item{display:block;width:100%;border:0;border-radius:10px;background:transparent;text-align:left;padding:12px;cursor:pointer;color:#283b50}.notification-item:hover,.notification-item:focus-visible{background:#f2f6fa}.notification-item.unread{background:#edf5f9}.notification-item strong{display:block;font-size:13px;margin-bottom:4px}.notification-item span{font-size:12px;line-height:1.45;color:#667889}.notification-empty{padding:18px;color:#68798a;font-size:13px}.notification-error{font-size:12px;color:#a13c43;padding:0 12px}@media(max-width:640px){.notification-root{right:12px;top:10px}.notification-bell{width:38px;height:38px}}

/* v17.0.2 – notification bell integrated into the active club header */
.notification-root{position:relative;right:auto;top:auto;z-index:80;margin-left:auto;flex:0 0 auto}
.notification-root.hidden{display:none}
.notification-bell{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:1px solid transparent;border-radius:10px;background:transparent;color:#514d45;box-shadow:none;transition:background .15s,border-color .15s}
.notification-bell:hover,.notification-bell:focus-visible{background:#f4efe7;border-color:#e9ddcd;outline-offset:2px}
.notification-bell svg{width:19px;height:19px}
.notification-count{top:-3px;right:-4px;min-width:17px;height:17px;font-size:10px;padding:1px 4px}
.notification-panel{top:calc(100% + 10px);right:0;z-index:90;box-shadow:0 16px 38px rgba(61,49,34,.14);border-color:#e6dccd}
@media(max-width:640px){.notification-root{right:auto;top:auto}.notification-bell{width:34px;height:34px}.notification-panel{right:-8px;width:min(340px,calc(100vw - 38px))}}

/* v17.2 push preferences */
.notification-toolbar{padding:8px 12px 2px;text-align:right}
.notification-toolbar button{background:transparent;border:0;color:#526e85;font:inherit;font-size:12px;cursor:pointer;padding:6px}
.notification-settings{padding:12px 16px;border-bottom:1px solid #e5eaf0;background:#f8fafc;color:#253a52}
.notification-settings.hidden{display:none}
.notification-settings-title{font-size:13px;font-weight:700;margin:0 0 10px}
.notification-settings label{display:flex;align-items:flex-start;gap:9px;margin:10px 0;font-size:12px;line-height:1.5;cursor:pointer}
.notification-settings input{accent-color:#304d68;margin-top:2px}
.notification-settings-hint{font-size:11px;line-height:1.5;color:#667889;margin:12px 0 4px}
#notification-settings-status{font-size:11px;color:#496a7c;margin:6px 0 0}

/* v17.2.1 – independent settings dialog; no cramped columns in bell dropdown */
.notification-panel{width:min(360px,calc(100vw - 32px));box-sizing:border-box;overflow-x:hidden}
.notification-head strong{font-size:14px;white-space:nowrap}
.notification-settings-overlay.hidden{display:none}
.notification-settings-overlay{position:fixed;inset:0;z-index:2000;background:rgba(36,32,28,.42);display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box}
.notification-settings-dialog{box-sizing:border-box;width:min(510px,100%);max-height:calc(100dvh - 36px);overflow-y:auto;background:#fffdf9;border:1px solid #e8ddcf;border-radius:22px;box-shadow:0 24px 70px rgba(32,27,22,.22);color:#302d29}
.notification-settings-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:28px 28px 18px}
.notification-settings-eyebrow{font-size:10px;letter-spacing:.16em;font-weight:700;color:#a48759}
.notification-settings-header h2{font-size:27px;line-height:1.2;margin:8px 0 8px;color:#292621}
.notification-settings-header p{font-size:13px;line-height:1.55;color:#777066;margin:0;max-width:370px}
.notification-settings-close{flex:none;width:32px;height:32px;min-width:32px;border:0;border-radius:50%;background:#f4eee6;color:#655b50;font-size:24px;line-height:1;cursor:pointer;box-shadow:none;padding:0}
.notification-settings{padding:0 28px;background:transparent;border:0;color:inherit}
.notification-settings .notification-pref-row{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:20px;margin:0;padding:17px 0;border-bottom:1px solid #ece5dc;cursor:pointer;width:100%;box-sizing:border-box;min-width:0}
.notification-pref-copy{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
.notification-pref-copy strong{font-size:14px;font-weight:650;line-height:1.3;color:#302b25}
.notification-pref-copy small{font-size:12px;line-height:1.45;color:#80776d}
.notification-settings .notification-pref-row input[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;flex:0 0 42px;width:42px;height:25px;margin:0;border:0;border-radius:99px;background:#d9d1c7;cursor:pointer;transition:background .15s}
.notification-settings .notification-pref-row input[type=checkbox]::before{content:'';position:absolute;top:3px;left:3px;width:19px;height:19px;border-radius:50%;background:white;box-shadow:0 1px 4px #0002;transition:transform .15s}
.notification-settings .notification-pref-row input[type=checkbox]:checked{background:#806d50}
.notification-settings .notification-pref-row input[type=checkbox]:checked::before{transform:translateX(17px)}
.notification-settings .notification-pref-row input[type=checkbox]:focus-visible{outline:3px solid #9aabbd;outline-offset:3px}
.notification-settings-hint{font-size:12px;line-height:1.6;color:#847c73;margin:18px 0 8px}
#notification-settings-status{min-height:18px;font-size:12px;margin:0 0 6px;color:#557263}
.notification-settings-footer{display:flex;justify-content:flex-end;padding:10px 28px 24px}
.notification-settings-footer button{border:0;border-radius:11px;background:#302d29;color:white;padding:10px 24px;font-size:13px;font-weight:650;cursor:pointer}
@media(max-width:540px){.notification-settings-overlay{align-items:flex-end;padding:0}.notification-settings-dialog{width:100%;max-height:90dvh;border-radius:22px 22px 0 0}.notification-settings-header{padding:23px 21px 15px}.notification-settings{padding:0 21px}.notification-settings-footer{padding:10px 21px 22px}.notification-settings-header h2{font-size:23px}}

/* v17.3: push device controls */
.push-device-control{margin-top:18px;padding:18px;border:1px solid #e8e1d6;border-radius:16px;background:#fbf9f5;}
.push-device-control strong{display:block;font-size:15px;color:#2e2a26;}
.push-device-control p{font-size:13px;line-height:1.5;color:#777067;margin:7px 0 12px;}
#push-device-enable{border:0;border-radius:10px;background:#2e2a26;color:white;padding:11px 15px;font-weight:600;cursor:pointer;}
#push-device-enable:disabled{opacity:.5;cursor:default;}
#push-device-status{margin-bottom:0;overflow-wrap:anywhere;}
