@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--bg:#f6f7fb;--ink:#17192d;--muted:#85899d;--line:#eceef5;--purple:#239b70;--purple-dark:#187a56;--navy:#101225;--green:#1ca77a;--orange:#eea44c;--shadow:0 14px 40px rgba(31,34,70,.06)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:'DM Sans',sans-serif;color:var(--ink);background:var(--bg);font-size:14px}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit}button{cursor:pointer}.brand{display:inline-flex;align-items:center;gap:11px;font-family:Manrope,sans-serif;font-size:18px;font-weight:800;letter-spacing:-.7px;color:#fff}.brand-mark{width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,#57bd91,#23865e);display:grid;place-items:center;color:#fff;font-size:18px;box-shadow:0 7px 18px #239b7055}.brand-light{font-weight:500;color:#b4b3ca}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:#26885f}.muted{color:var(--muted)}.small{font-size:12px}.tiny{font-size:10px}.center{text-align:center}.btn{border:0;border-radius:10px;padding:12px 17px;display:inline-flex;align-items:center;justify-content:center;gap:12px;font-weight:700;transition:.2s ease}.btn-primary{background:var(--purple);color:white;box-shadow:0 7px 16px #239b7033}.btn-primary:hover{background:var(--purple-dark);transform:translateY(-1px)}.btn-ghost{background:#f3f4f9;color:#62667a}.btn-full{width:100%;margin-top:7px;padding:14px}.alert{padding:12px 14px;border-radius:10px;margin:14px 0;font-size:13px}.alert-error{background:#fff0f0;color:#b54444;border:1px solid #ffdada}.alert-success{background:#eafaf3;color:#16845f;border:1px solid #c8f0df}
/* Authentication */
.auth-page{min-height:100vh;background:#fff}.auth-shell{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr}.auth-brand{background:var(--navy);padding:42px 8%;position:relative;overflow:hidden;display:flex;flex-direction:column;min-height:100vh}.auth-message{margin:auto 0;max-width:510px;position:relative;z-index:1;padding:60px 0}.auth-message h1{font:800 clamp(42px,5vw,68px)/1.1 Manrope,sans-serif;letter-spacing:-3px;color:#fff;margin:20px 0}.auth-message h1 span{color:#9be2bc}.auth-message p{color:#a7a9bf;font-size:16px;line-height:1.8;max-width:390px}.floating-note{display:flex;align-items:center;gap:13px;background:#ffffff0d;border:1px solid #ffffff18;border-radius:14px;padding:13px 16px;width:max-content;margin-top:42px;color:#fff}.note-icon{width:35px;height:35px;border-radius:10px;background:#2a9b70;display:grid;place-items:center}.floating-note b,.floating-note small{display:block}.floating-note small{color:#a7a9bf;margin-top:3px}.auth-orb{position:absolute;border:1px solid #9be2bc20;border-radius:50%;pointer-events:none}.orb-one{width:430px;height:430px;right:-180px;top:-100px}.orb-two{width:560px;height:560px;right:-220px;bottom:-350px}.auth-form-wrap{display:grid;place-items:center;padding:45px 8%}.auth-form{width:100%;max-width:390px}.auth-form h2{font:800 32px Manrope,sans-serif;letter-spacing:-1.2px;margin:12px 0 7px}.auth-form>p{margin:0 0 26px}.auth-form label,.form-panel label{display:block;font-size:12px;font-weight:700;color:#55596d;margin:17px 0}.auth-form input,.form-panel input,.form-panel textarea,.comment-form input{display:block;width:100%;border:1px solid #e7e8f0;border-radius:9px;background:#fff;padding:13px 14px;margin-top:8px;outline:none;color:var(--ink);transition:.2s}.auth-form input:focus,.form-panel input:focus,.form-panel textarea:focus,.comment-form input:focus{border-color:#9c91f5;box-shadow:0 0 0 3px #239b7014}.auth-switch{text-align:center!important;font-size:12px!important;color:var(--muted);margin:23px 0 0!important}.auth-switch a{color:var(--purple);font-weight:700}.auth-form .tiny{margin-top:30px}.mobile-brand{display:none;margin-bottom:50px}.mobile-brand .brand{color:var(--ink)}.mobile-brand .brand-light{color:#77798b}
/* App layout */
.app-page{background:#f7f8fc}.app-layout{min-height:100vh}.sidebar{width:248px;background:var(--navy);position:fixed;inset:0 auto 0 0;padding:27px 19px;display:flex;flex-direction:column;z-index:10}.sidebar .brand{padding:0 8px 43px}.sidebar-label{font-size:9px;font-weight:700;letter-spacing:1.5px;color:#777990;padding:0 12px 12px}.side-link{display:flex;align-items:center;gap:13px;padding:12px;border-radius:9px;color:#a5a7ba;font-size:13px;margin:3px 0}.side-link span{font-size:17px;width:18px;text-align:center}.side-link:hover,.side-link.active{background:#203c32;color:#fff}.side-link.active span{color:#9be2bc}.sidebar-bottom{margin-top:auto}.crew-card{display:flex;gap:11px;align-items:center;padding:13px 11px;background:#ffffff0b;border:1px solid #ffffff12;border-radius:11px;margin-bottom:18px;color:#fff}.crew-icon{width:31px;height:31px;border-radius:9px;background:#278c63;display:grid;place-items:center}.crew-card b,.crew-card small{display:block}.crew-card b{font-size:11px}.crew-card small{font-size:10px;color:#9294aa;margin-top:3px}.profile-row{border-top:1px solid #ffffff16;padding:17px 3px 0;display:flex;align-items:center;gap:9px;color:#fff}.avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#d6d0ff,#8b7bed);color:#4237a6;display:grid;place-items:center;font-weight:800;font-size:13px;flex-shrink:0}.profile-info{min-width:0;flex:1}.profile-info b,.profile-info small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-info b{font-size:11px}.profile-info small{font-size:10px;color:#9294aa;margin-top:3px}.logout-link{color:#9294aa;font-size:18px;padding:5px}.main-content{margin-left:248px;min-height:100vh}.topbar{height:65px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 4.5%;position:sticky;top:0;z-index:5}.breadcrumb{font-size:11px;color:#999bad}.breadcrumb span{padding:0 9px;color:#c5c6d0}.topbar-right{display:flex;align-items:center;gap:10px}.online-dot{width:7px;height:7px;border-radius:50%;background:#38c995;box-shadow:0 0 0 4px #38c9951c}.avatar-small{width:29px;height:29px;font-size:11px}.menu-toggle{display:none;border:0;background:transparent;font-size:20px;color:var(--ink)}.content-wrap{max-width:1250px;margin:0 auto;padding:38px 4.5% 25px}.welcome-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.welcome-row h1,.page-intro h1{font:800 31px Manrope,sans-serif;letter-spacing:-1.3px;margin:8px 0 4px}.welcome-row p,.page-intro p{margin:0}.wave{color:#2e9b70;font-size:25px}.hero-banner{background:linear-gradient(112deg,#26234e,#5145a2 70%,#7565dd);border-radius:17px;min-height:230px;padding:31px 38px;position:relative;overflow:hidden;color:#fff;display:flex;align-items:center;box-shadow:0 12px 28px #49408b22}.hero-copy{position:relative;z-index:2}.hero-kicker{font-size:9px;letter-spacing:2px;color:#c3bcff;font-weight:700}.hero-copy h2{font:800 25px/1.3 Manrope,sans-serif;letter-spacing:-.7px;margin:10px 0}.hero-copy h2 span{color:#c1b8ff}.hero-copy p{color:#d0cdef;font-size:12px;margin:0 0 18px}.hero-link{font-size:11px;font-weight:700;color:#fff}.hero-link span{padding-left:8px}.hero-art{position:absolute;width:42%;height:100%;right:0;top:0;display:grid;place-items:center}.art-ring{position:absolute;border:1px solid #ffffff24;border-radius:50%}.ring-a{width:250px;height:250px}.ring-b{width:185px;height:185px}.art-card{width:135px;height:105px;border-radius:15px;background:#ffffffed;color:#35305e;transform:rotate(8deg);box-shadow:0 18px 40px #15132e55;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.art-card span{color:#2e9b70;font-size:20px}.art-card b{font:800 16px Manrope}.art-card small{color:#9992b4;font-size:9px}.art-spark,.art-star{position:absolute;color:#d5ceff;font-size:24px}.art-spark{top:32px;right:28%}.art-star{bottom:32px;left:20%}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:20px 0 43px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:17px 18px;display:grid;grid-template-columns:40px 1fr;align-items:center;column-gap:12px;box-shadow:0 4px 15px #1b1e4005}.stat-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;font-size:17px}.stat-icon.purple{background:#e8f6ef;color:#238c63}.stat-icon.green{background:#e8f8f1;color:#22a77a}.stat-icon.orange{background:#fff4e6;color:#e69a3e}.stat-card span{font-size:10px;color:#9295a8;display:block}.stat-card strong{font:800 22px Manrope;display:block;margin-top:3px}.stat-foot{grid-column:2;color:#b0b2c0;font-size:9px;margin-top:2px}.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:17px}.section-heading h2{font:800 20px Manrope;letter-spacing:-.6px;margin:5px 0}.section-heading p{font-size:11px;margin:0}.count-pill{border:1px solid #e9e9f1;background:#fff;border-radius:20px;padding:7px 11px;color:#85889c;font-size:10px}.plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.plan-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:18px;transition:.2s}.plan-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.plan-card-top{display:flex;align-items:flex-start;justify-content:space-between}.date-chip{width:43px;height:48px;border-radius:9px;background:#e8f6ef;color:#239b70;display:flex;flex-direction:column;align-items:center;justify-content:center}.date-chip b{font:800 17px Manrope;line-height:1}.date-chip small{font-size:9px;text-transform:uppercase;margin-top:3px}.status-tag{font-size:9px;padding:6px 9px;border-radius:20px;background:#f4f4f8;color:#999}.status-tag.going{background:#e9f8f1;color:#19956d}.status-tag.maybe{background:#fff5e7;color:#ce8730}.status-tag.not_going{background:#fff0f0;color:#c46b6b}.plan-card h3{font:800 15px Manrope;margin:14px 0 5px}.plan-description{font-size:11px;color:#9396a8;line-height:1.6;min-height:35px;margin:0 0 14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.plan-meta{display:flex;flex-wrap:wrap;gap:12px;color:#777b90;font-size:10px;padding-bottom:14px;border-bottom:1px solid #f0f1f5}.plan-card-footer{display:flex;align-items:center;justify-content:space-between;padding-top:12px}.attending{display:flex;align-items:center;gap:7px;color:#9699aa;font-size:10px}.mini-avatar{width:22px;height:22px;border-radius:50%;background:#d9f0e4;color:#21865e;display:grid;place-items:center;font-size:9px;font-weight:800}.text-link{font-size:10px;color:#238c63;font-weight:700}.empty-state{background:#fff;border:1px dashed #dfe0eb;border-radius:14px;text-align:center;padding:45px 15px}.empty-icon{width:48px;height:48px;background:#e8f6ef;border-radius:14px;color:#238c63;display:grid;place-items:center;margin:0 auto 13px;font-size:22px}.empty-state h3{font:800 16px Manrope;margin:0 0 6px}.empty-state p{font-size:11px;margin:0 0 17px}.footer-note{text-align:center;color:#a7a9b7;font-size:10px;padding:35px 0 8px}.footer-note span{color:#2e9b70}
/* Forms and plan detail */
.narrow-content{max-width:850px}.page-intro{margin:10px 0 25px}.page-intro h1{font-size:30px}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:23px;box-shadow:0 5px 20px #1b1e4005}.form-panel{padding:25px 28px}.form-section-title{display:flex;align-items:center;gap:12px;padding-bottom:7px;border-bottom:1px solid #f0f1f5;margin-bottom:18px}.form-section-title.spaced{margin-top:28px}.section-number{width:27px;height:27px;border-radius:8px;background:#e8f6ef;color:#238c63;display:grid;place-items:center;font-size:10px;font-weight:800}.form-section-title b,.form-section-title small{display:block}.form-section-title b{font-size:12px}.form-section-title small{font-size:10px;color:#9a9cad;margin-top:3px}.required{color:#e06e6e}.optional{font-size:10px;color:#a4a6b3;font-weight:400}.form-panel label{margin:16px 0}.form-panel input,.form-panel textarea{font-size:12px;font-weight:400;resize:vertical}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #f0f1f5;padding-top:19px;margin-top:24px}.back-link{font-size:12px;color:#777b90}.back-link:hover{color:var(--purple)}.plan-detail{display:flex;gap:20px;align-items:center;margin-bottom:15px}.detail-date{width:75px;height:84px;border-radius:12px;background:#e8f6ef;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#238c63;flex-shrink:0}.detail-date span{font-size:10px;text-transform:uppercase;font-weight:700}.detail-date b{font:800 29px Manrope;line-height:1.1}.detail-date small{font-size:9px}.detail-info{flex:1;min-width:0}.detail-meta{display:flex;flex-wrap:wrap;gap:13px;color:#777b90;font-size:10px}.detail-info p{color:#777b90;font-size:12px;line-height:1.7;margin:13px 0 0}.rsvp-panel,.attendees-panel,.comments-panel{margin-top:15px}.section-heading.compact{align-items:center;margin-bottom:15px}.section-heading.compact h2{font-size:16px}.rsvp-actions{display:flex;gap:9px;flex-wrap:wrap}.rsvp-btn{border:1px solid #e9eaf1;background:#fff;border-radius:9px;padding:11px 15px;color:#777b90;font-size:11px;font-weight:700}.rsvp-btn.going.selected{border-color:#8bd9ba;background:#e8f6ef;color:#16875f}.rsvp-btn.maybe.selected{border-color:#f0c47d;background:#fff8eb;color:#b77a28}.rsvp-btn.no.selected{border-color:#edb1b1;background:#fff3f3;color:#bd6666}.member-list{display:grid;grid-template-columns:repeat(2,1fr);gap:0 22px}.member-row{display:flex;align-items:center;gap:9px;padding:11px 0;border-top:1px solid #f1f2f6}.member-row b{font-size:11px;flex:1}.member-status{font-size:9px;color:#a0a2b0}.member-status.going{color:#1b9b70}.member-status.maybe{color:#d0923d}.member-status.not_going{color:#c77777}.comment-list{max-height:320px;overflow:auto}.comment{display:flex;gap:10px;padding:11px 0;border-bottom:1px solid #f1f2f6}.comment b{font-size:11px}.comment p{font-size:11px;line-height:1.6;color:#777b90;margin:4px 0}.comment small{font-size:9px;color:#a5a7b4}.comment-form{display:flex;gap:9px;margin-top:15px}.comment-form input{margin:0;font-size:11px}.comment-form .btn{flex-shrink:0;padding:10px 16px}
@media(max-width:1050px){.sidebar{width:215px}.main-content{margin-left:215px}.content-wrap{padding-left:3.5%;padding-right:3.5%}.hero-banner{min-height:215px}.plan-grid{gap:11px}}
@media(max-width:800px){.auth-shell{grid-template-columns:1fr}.auth-brand{display:none}.auth-form-wrap{min-height:100vh;padding:35px 24px}.mobile-brand{display:block}.auth-form{max-width:430px}.sidebar{transform:translateX(-100%);transition:transform .25s ease;width:250px;box-shadow:15px 0 35px #11122525}.sidebar.sidebar-open{transform:translateX(0)}.main-content{margin-left:0}.menu-toggle{display:block}.topbar{padding:0 20px}.content-wrap{padding:28px 20px}.hero-art{width:36%;opacity:.75}.hero-banner{padding:27px 25px}.stats-grid{gap:10px}.stat-card{padding:14px 12px;column-gap:8px}.stat-icon{width:32px;height:32px}.stat-card strong{font-size:19px}}
@media(max-width:560px){.content-wrap{padding:24px 15px}.topbar{height:58px;padding:0 15px}.breadcrumb{display:none}.topbar-right .muted,.topbar-right .online-dot{display:none}.welcome-row{align-items:flex-start;flex-direction:column;margin-bottom:20px}.welcome-row h1{font-size:27px}.welcome-row>.btn{width:100%}.hero-banner{min-height:225px;padding:23px 20px}.hero-copy h2{font-size:21px}.hero-copy p{max-width:230px;line-height:1.5}.hero-art{right:-40px;width:48%;opacity:.45}.art-ring.ring-a{width:190px;height:190px}.art-ring.ring-b{width:140px;height:140px}.stats-grid{grid-template-columns:1fr;gap:9px;margin:15px 0 33px}.stat-card{grid-template-columns:37px 1fr auto;padding:12px 14px}.stat-foot{grid-column:3;grid-row:1;font-size:9px;text-align:right;max-width:95px}.plan-grid{grid-template-columns:1fr}.section-heading h2{font-size:18px}.form-panel,.panel{padding:18px}.form-row{grid-template-columns:1fr;gap:0}.form-actions{flex-direction:column-reverse}.form-actions .btn{width:100%}.page-intro h1{font-size:26px}.plan-detail{align-items:flex-start;gap:13px}.detail-date{width:61px;height:73px}.detail-date b{font-size:25px}.detail-meta{display:grid;gap:8px}.member-list{grid-template-columns:1fr}.rsvp-actions{display:grid;grid-template-columns:1fr}.rsvp-btn{width:100%}.comment-form{align-items:stretch}.comment-form .btn{padding:10px 12px}.footer-note{padding-top:25px}}


/* Green theme + user-selectable dark mode */
.theme-toggle{border:1px solid var(--line);background:#f5faf7;color:#267b59;border-radius:9px;padding:8px 11px;font-size:11px;font-weight:700;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.theme-toggle:hover{background:#e8f6ef}
.auth-theme-toggle{position:fixed;right:24px;top:20px;z-index:20}
:root{--purple:#239b70;--purple-dark:#187a56}
body.dark-mode{--bg:#101a16;--ink:#e6f1eb;--muted:#9aafa4;--line:#293b32;--shadow:0 14px 40px rgba(0,0,0,.22);background:var(--bg);color:var(--ink)}
body.dark-mode.auth-page{background:#101a16}
body.dark-mode .auth-form-wrap,body.dark-mode .auth-form-wrap .auth-form{background:#101a16}
body.dark-mode .auth-form h2,body.dark-mode .welcome-row h1,body.dark-mode .page-intro h1,body.dark-mode .section-heading h2,body.dark-mode .plan-card h3,body.dark-mode .empty-state h3{color:var(--ink)}
body.dark-mode .topbar,body.dark-mode .panel,body.dark-mode .stat-card,body.dark-mode .plan-card,body.dark-mode .empty-state,body.dark-mode .count-pill{background:#18251e;border-color:var(--line);color:var(--ink)}
body.dark-mode .app-page{background:#101a16}
body.dark-mode .auth-form label,body.dark-mode .form-panel label{color:#c4d5cb}
body.dark-mode .auth-form input,body.dark-mode .form-panel input,body.dark-mode .form-panel textarea,body.dark-mode .comment-form input{background:#111d17;border-color:#34483d;color:#e6f1eb}
body.dark-mode .auth-form input::placeholder,body.dark-mode .form-panel input::placeholder,body.dark-mode .form-panel textarea::placeholder{color:#71877a}
body.dark-mode .btn-ghost,body.dark-mode .theme-toggle{background:#22352a;color:#c5ead5;border-color:#3b5546}
body.dark-mode .plan-meta,body.dark-mode .member-row,body.dark-mode .comment,body.dark-mode .form-section-title,body.dark-mode .form-actions{border-color:#2a3b32}
body.dark-mode .plan-description,body.dark-mode .detail-info p,body.dark-mode .comment p,body.dark-mode .member-status,body.dark-mode .back-link{color:#a2b5aa}
body.dark-mode .date-chip,body.dark-mode .detail-date,body.dark-mode .section-number,body.dark-mode .empty-icon{background:#244333;color:#9ce0b8}
body.dark-mode .status-tag{background:#29372f;color:#b3c3b9}
body.dark-mode .status-tag.going,body.dark-mode .rsvp-btn.going.selected{background:#1d4432;color:#9ce0b8}
body.dark-mode .status-tag.maybe,body.dark-mode .rsvp-btn.maybe.selected{background:#46391f;color:#f0c77f}
body.dark-mode .status-tag.not_going,body.dark-mode .rsvp-btn.no.selected{background:#482b2b;color:#e6a0a0}
body.dark-mode .rsvp-btn{background:#1b2a22;border-color:#35483d;color:#c0d0c6}
body.dark-mode .rsvp-btn.going.selected{border-color:#39865f}
body.dark-mode .rsvp-btn.maybe.selected{border-color:#9a7538}
body.dark-mode .rsvp-btn.no.selected{border-color:#985454}
body.dark-mode .alert-success{background:#183b2b;color:#a5e3c1;border-color:#285a40}
body.dark-mode .alert-error{background:#432727;color:#f0b0b0;border-color:#673838}
body.dark-mode .avatar{background:linear-gradient(135deg,#bcebd0,#4b9c70);color:#153b27}
body.dark-mode .mini-avatar{background:#294b38;color:#b7e8c9}
body.dark-mode .theme-toggle:hover{background:#2a4435}
@media(max-width:560px){.auth-theme-toggle{right:14px;top:14px}}
/* Friendly admin workspace */
.admin-panel{margin:18px 0;padding:22px}.admin-add-form{display:grid;grid-template-columns:1fr 1.2fr 1.2fr auto;gap:9px;margin:16px 0 20px}.admin-add-form input{min-width:0;border:1px solid var(--line);border-radius:9px;padding:11px 12px;background:var(--card,#fff);color:var(--ink);font:inherit;font-size:11px}.admin-table-wrap{overflow-x:auto}.admin-table{width:100%;border-collapse:collapse;font-size:11px}.admin-table th{text-align:left;color:var(--muted);font-size:10px;font-weight:700;padding:10px;border-bottom:1px solid var(--line)}.admin-table td{padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:middle}.admin-table td:first-child b,.admin-table td:first-child small{display:block}.admin-table td:first-child small{color:var(--muted);margin-top:4px}.btn-danger{background:#fff0ed;color:#b94d3c;border:1px solid #f3c5bc}.btn-danger:hover{background:#ffe2dc}.btn-small{padding:8px 11px;font-size:10px}.badge-admin{font-size:9px;font-weight:800;letter-spacing:1px;color:#187a56;background:#e3f5eb;border-radius:20px;padding:7px 10px}.code-form{grid-template-columns:1.2fr 1fr auto}.code-list{display:grid;gap:8px}.code-row,.archive-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.code-row>div,.archive-row>div{display:flex;flex-direction:column;gap:5px;min-width:0}.code-row code{font-size:11px;color:var(--purple);font-weight:700;overflow-wrap:anywhere}.archive-row b{font-size:12px}.archive-row small{font-size:10px;color:var(--muted)}.admin-subhead{font-size:12px;margin:18px 0 6px}.archive-heading{padding-top:18px;border-top:1px solid var(--line)}.member-directory{margin-top:30px}.member-directory .member-list{grid-template-columns:repeat(3,minmax(0,1fr))}body.dark-mode .admin-panel,body.dark-mode .admin-table td,body.dark-mode .admin-table th{border-color:var(--line)}body.dark-mode .admin-add-form input{background:#111d17;border-color:#34483d;color:var(--ink)}body.dark-mode .btn-danger{background:#482b2b;color:#f0b0a5;border-color:#673838}body.dark-mode .badge-admin{background:#244333;color:#9ce0b8}
@media(max-width:900px){.admin-add-form{grid-template-columns:1fr 1fr}.admin-add-form .btn{grid-column:1/-1}.member-directory .member-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.admin-add-form,.code-form{grid-template-columns:1fr}.admin-add-form .btn{grid-column:auto}.code-row,.archive-row{align-items:flex-start;flex-wrap:wrap}.code-row form,.archive-row form{margin-left:auto}.member-directory .member-list{grid-template-columns:1fr}.admin-table{min-width:560px}}

/* Responsive feature pages: calendar, polls, groups, photos, notifications, expenses */
.feature-wrap{max-width:1120px;margin:0 auto;padding:28px 24px 60px}.feature-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:34px}.feature-actions{display:flex;align-items:center;gap:9px}.feature-panel{margin:16px 0;padding:22px}.feature-panel h2{font-size:17px;margin:0 0 12px}.feature-form{display:grid;gap:13px}.feature-form label{display:grid;gap:7px;color:var(--ink);font-size:12px;font-weight:700}.feature-form input:not([type=radio]):not([type=file]),.feature-form textarea,.feature-form select{width:100%;border:1px solid var(--line);border-radius:9px;padding:12px;background:#fff;color:#29352e;font:inherit;font-size:13px;min-width:0}.feature-form input[type=file]{font-size:12px}.feature-columns{display:grid;grid-template-columns:1fr 1fr;gap:15px}.feature-title-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.feature-title-row h2{margin:0}.feature-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.poll-option-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px}.poll-choice{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-top:1px solid var(--line);font-size:12px}.poll-count{color:var(--muted);font-size:11px;white-space:nowrap}.calendar-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:16px;flex-wrap:wrap}.calendar-toolbar h2{margin:0 auto 0 0}.view-switch{display:flex;background:#eef6f1;border-radius:9px;padding:3px}.view-switch a{padding:7px 12px;border-radius:7px;font-size:11px;color:#47705b}.view-switch a.active{background:#238c63;color:white}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid var(--line);border-left:1px solid var(--line)}.calendar-day,.weekday{border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-width:0}.weekday{padding:9px 5px;text-align:center;font-size:10px;color:var(--muted);font-weight:700}.calendar-day{min-height:105px;padding:7px;background:var(--card,#fff)}.calendar-day.outside{opacity:.48}.day-num{font-size:11px;font-weight:700;display:block;margin-bottom:5px}.event-chip{display:block;background:#e5f5ec;color:#187a56;border-radius:5px;padding:4px 5px;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:3px 0}.week-list{display:grid}.week-day{display:grid;grid-template-columns:90px 1fr;border-top:1px solid var(--line);padding:12px 0;gap:12px}.week-date{display:flex;flex-direction:column;gap:4px}.week-date b{font-size:12px}.week-date span,.week-event small{font-size:10px;color:var(--muted)}.week-events{display:grid;gap:8px}.week-event{display:flex;flex-direction:column;gap:4px;padding:10px;background:#eaf6ef;border-radius:8px;color:#1d6548}.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}.photo-card{padding:0;overflow:hidden}.photo-card img{width:100%;height:190px;object-fit:cover;display:block;background:#e5eee8}.photo-card>div{padding:13px;display:grid;gap:5px}.photo-card b{font-size:12px}.photo-card small,.notification-row small,.group-row small,.expense-row small{color:var(--muted);font-size:10px}.notification-row{display:flex;gap:12px;align-items:flex-start;padding:14px 4px;border-top:1px solid var(--line);color:var(--ink)}.notification-row>span:last-child{display:grid;gap:5px}.notification-row b{font-size:12px}.notification-dot{width:9px;height:9px;border-radius:50%;background:#2aab75;margin-top:4px;flex-shrink:0}.notification-row.read .notification-dot{background:#cbd6ce}.notification-row.read{opacity:.72}.group-row,.expense-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.group-row>div,.expense-row>div{display:grid;gap:5px;min-width:0}.group-row b,.expense-row b{font-size:12px}.group-row code{color:var(--purple);font-size:11px}.responsive-table{overflow-x:auto}.balance-plus{color:#16875f;font-weight:700}.balance-minus{color:#c06a52;font-weight:700}.expense-row strong{font-size:13px;white-space:nowrap}
body.dark-mode .feature-panel,body.dark-mode .feature-wrap .panel{background:#18251e;border-color:var(--line);color:var(--ink)}body.dark-mode .feature-form label{color:var(--ink)}body.dark-mode .feature-form input:not([type=radio]):not([type=file]),body.dark-mode .feature-form textarea,body.dark-mode .feature-form select{background:#111d17;border-color:#34483d;color:var(--ink)}body.dark-mode .calendar-day{background:#18251e}body.dark-mode .event-chip,body.dark-mode .week-event{background:#244333;color:#bcebd0}body.dark-mode .view-switch{background:#1b2a22}body.dark-mode .view-switch a{color:#b9cfc0}body.dark-mode .view-switch a.active{background:#238c63;color:#fff}body.dark-mode .photo-card img{background:#24372c}body.dark-mode .notification-row,body.dark-mode .group-row,body.dark-mode .expense-row,body.dark-mode .poll-choice{border-color:var(--line)}
@media(max-width:760px){.feature-wrap{padding:20px 15px 42px}.feature-head{margin-bottom:24px}.feature-columns,.feature-list{grid-template-columns:1fr}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-day{min-height:82px;padding:4px}.event-chip{font-size:8px;padding:3px}.weekday{font-size:9px}.feature-panel{padding:17px}.photo-card img{height:150px}}
@media(max-width:480px){.feature-wrap{padding:16px 12px 35px}.feature-head{align-items:flex-start;flex-wrap:wrap}.feature-actions{margin-left:auto}.feature-head .brand{font-size:14px}.page-intro h1{font-size:25px}.calendar-toolbar{gap:6px}.calendar-toolbar h2{font-size:15px;min-width:120px}.calendar-day{min-height:66px}.day-num{font-size:9px}.event-chip{font-size:7px}.poll-option-inputs{grid-template-columns:1fr}.photo-grid{grid-template-columns:1fr 1fr;gap:8px}.photo-card img{height:125px}.photo-card>div{padding:9px}.week-day{grid-template-columns:64px 1fr;gap:8px}.week-event{padding:8px}.feature-actions .btn{padding:7px 9px}}

/* Persistent workspace navigation on every feature page */
.feature-shell{min-height:100vh}.feature-shell .feature-sidebar{width:248px}.feature-shell .feature-wrap{width:calc(100% - 248px);max-width:1120px;margin:0 0 0 248px;padding:28px clamp(18px,3.2vw,42px) 60px}.feature-sidebar-backdrop{display:none}.feature-menu-toggle{display:none}
.feature-shell .feature-head{min-height:40px}.feature-mobile-brand{display:none}
/* Photo upload and gallery */
.upload-panel{background:linear-gradient(135deg,#ffffff 0%,#f0faf4 100%);border:1px solid #dcefe3}.upload-panel-heading{display:flex;align-items:center;gap:13px;margin-bottom:18px}.upload-panel-heading h2{margin:0 0 4px}.upload-panel-heading p{margin:0}.upload-icon,.expense-heading-icon{width:42px;height:42px;border-radius:13px;background:#dff4e7;color:#21875d;display:grid;place-items:center;font-size:20px;flex-shrink:0}.photo-upload-form{display:grid;gap:14px}.photo-dropzone{min-height:190px;border:2px dashed #9acfb0;border-radius:16px;background:#f8fdf9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:18px;text-align:center;cursor:pointer;transition:.2s}.photo-dropzone:hover{border-color:#27996a;background:#effaf3}.photo-dropzone input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.dropzone-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#dff4e7;color:#21875d;font-size:25px}.photo-dropzone b{font-size:14px}.photo-dropzone img{max-width:min(100%,380px);max-height:220px;object-fit:contain;border-radius:10px;margin-top:8px}.caption-field{display:grid;gap:7px;font-size:12px;font-weight:700}.caption-field input{width:100%;border:1px solid var(--line);border-radius:9px;padding:12px;background:#fff;color:var(--ink)}.photo-section-heading{display:flex;align-items:center;justify-content:space-between;margin:30px 0 12px}.photo-section-heading h2{margin:0 0 4px;font:800 18px Manrope}.photo-section-heading p{margin:0}.photo-card-info{padding:13px;display:grid;gap:6px}.photo-card-info small{color:var(--muted);font-size:10px}.photo-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}.photo-actions form{margin:0}.photo-open{display:block}.photo-open img{transition:transform .25s}.photo-open:hover img{transform:scale(1.025)}.empty-album{text-align:center;padding:34px 20px}.empty-album h2{margin:10px 0 5px}.empty-album p{margin:0}
/* Expense participant selector */
.expense-form-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.expense-form-heading h2{margin:0 0 5px}.expense-form-heading p{margin:0}.split-mode-field{border:1px solid var(--line);border-radius:12px;padding:12px;margin:2px 0 0;display:grid;gap:8px}.split-mode-field legend{font-size:12px;font-weight:800;padding:0 5px}.split-choice{display:flex!important;align-items:flex-start;gap:10px!important;padding:11px;border-radius:9px;background:#f7faf8;margin:0!important;cursor:pointer}.split-choice input{margin:3px 0 0;accent-color:#238c63}.split-choice span{display:grid;gap:3px}.split-choice b{font-size:12px}.split-choice small{font-size:10px;color:var(--muted);font-weight:400}.participant-picker{border:1px solid var(--line);border-radius:12px;padding:13px}.participant-picker[hidden]{display:none}.participant-picker-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:12px}.participant-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.participant-option{display:flex!important;align-items:center;gap:8px!important;border:1px solid var(--line);border-radius:9px;padding:8px;margin:0!important;font-size:11px!important;cursor:pointer}.participant-option input{accent-color:#238c63}.participant-option .mini-avatar{flex-shrink:0}
body.dark-mode .upload-panel{background:linear-gradient(135deg,#18251e,#1d3025);border-color:#34483d}body.dark-mode .photo-dropzone{background:#142119;border-color:#426c52;color:var(--ink)}body.dark-mode .caption-field input{background:#111d17;border-color:#34483d;color:var(--ink)}body.dark-mode .split-choice{background:#142119}body.dark-mode .participant-option{border-color:#34483d}body.dark-mode .split-mode-field,body.dark-mode .participant-picker{border-color:#34483d}
@media(max-width:800px){.feature-shell .feature-sidebar{transform:translateX(-100%);transition:transform .25s ease;z-index:30;box-shadow:15px 0 35px #11122535}.feature-shell .feature-sidebar.sidebar-open{transform:translateX(0)}.feature-shell .feature-wrap{width:100%;margin:0;padding:22px 18px 44px}.feature-menu-toggle{display:block;position:fixed;left:13px;top:13px;z-index:32;width:40px;height:40px;border:0;border-radius:11px;background:#17251e;color:#fff;font-size:19px;box-shadow:0 5px 18px #0002}.feature-sidebar-backdrop.visible{display:block;position:fixed;inset:0;background:#101a16a8;z-index:25}.feature-shell .feature-head{padding-left:46px}.feature-shell .feature-head .brand{display:none}.feature-shell .feature-head .feature-actions{margin-left:auto}.feature-shell .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.feature-shell .feature-wrap{padding:17px 12px 35px}.feature-shell .feature-head{margin-bottom:22px}.feature-shell .photo-grid{gap:9px}.feature-shell .photo-card img{height:135px}.photo-actions .btn{padding:8px 10px;font-size:10px}.participant-list{grid-template-columns:1fr}.photo-dropzone{min-height:160px}}

/* Individual expense allocation and account-owned payment QR */
.custom-share-list{display:grid;gap:7px;margin-top:12px}.custom-share-row{display:flex!important;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:10px;padding:9px 11px;margin:0!important;background:#fff}.custom-share-person{display:flex;align-items:center;gap:9px;font-size:12px}.custom-share-amount{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:12px}.custom-share-amount input{width:118px!important;margin:0!important;padding:9px 10px!important;border:1px solid var(--line);border-radius:8px;background:#fbfdfb;color:var(--ink)}.share-total-line{display:flex;justify-content:space-between;align-items:center;padding:10px 2px 0;font-size:12px}.share-total-line strong{font-variant-numeric:tabular-nums}.expense-detail-card{padding:7px 0 15px;border-top:1px solid var(--line)}.expense-share-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin-top:8px}.expense-share-chip{display:grid;gap:3px;padding:10px;border-radius:9px;background:#f3faf5}.expense-share-chip span{font-size:11px}.expense-share-chip b{font-size:13px}.expense-share-chip small{font-size:10px;color:var(--muted)}.qr-profile-layout{display:grid;grid-template-columns:190px 1fr;gap:22px;align-items:center}.qr-preview-box{min-height:185px;border:1px dashed #9acfb0;border-radius:14px;background:#f7fcf8;display:grid;place-items:center;padding:12px}.qr-preview-box img{max-width:100%;max-height:190px;object-fit:contain}.qr-placeholder{display:grid;place-items:center;gap:8px;color:#26885f;font-size:48px}.qr-placeholder small{font-size:11px;color:var(--muted)}.qr-upload-form{align-content:center}.balance-payment-card{padding:15px 0;border-top:1px solid var(--line);display:grid;gap:12px}.balance-payment-main{display:flex;justify-content:space-between;gap:12px;align-items:center}.balance-payment-main>div{display:grid;gap:5px}.balance-payment-main b{font-size:13px}.balance-payment-main small{font-size:11px;color:var(--muted)}.balance-payment-main>strong{font-size:18px;color:#bf7046;white-space:nowrap}.pay-qr-inline{display:flex;align-items:center;gap:14px;padding:12px;background:#f2faf5;border:1px solid #dcefe3;border-radius:12px}.pay-qr-inline img{width:112px;height:112px;object-fit:contain;background:#fff;border-radius:8px;padding:5px}.pay-qr-inline>div{display:grid;gap:5px}.pay-qr-inline b{font-size:12px}.pay-qr-inline small{font-size:11px;color:var(--muted);line-height:1.5}.payment-submit-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.payment-submit-form label{display:grid;gap:5px;font-size:11px;font-weight:700}.payment-submit-form input{padding:10px;border:1px solid var(--line);border-radius:8px;max-width:180px;background:var(--bg);color:var(--ink)}
body.dark-mode .custom-share-row,body.dark-mode .custom-share-amount input{background:#142119;border-color:#34483d;color:var(--ink)}body.dark-mode .expense-share-chip,body.dark-mode .pay-qr-inline{background:#142119;border-color:#34483d}body.dark-mode .qr-preview-box{background:#142119;border-color:#426c52}body.dark-mode .pay-qr-inline img{background:#fff}
@media(max-width:600px){.qr-profile-layout{grid-template-columns:1fr}.qr-preview-box{max-width:220px;width:100%;margin:auto}.custom-share-row{padding:8px}.custom-share-amount input{width:100px!important}.pay-qr-inline{align-items:flex-start}.pay-qr-inline img{width:94px;height:94px}.payment-submit-form{align-items:stretch;flex-direction:column}.payment-submit-form input{max-width:none;width:100%}.payment-submit-form .btn{width:100%}}


/* Navigation and overview refinements: zoom-safe, scrollable sidebar on every tab */
.feature-shell .feature-sidebar{
  height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;
  overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:#52695b transparent;
}
.feature-shell .feature-sidebar .brand{flex-shrink:0;padding-bottom:28px}
.feature-shell .feature-sidebar .sidebar-bottom{margin-top:22px;flex-shrink:0}
.feature-shell .main-content{margin-left:248px;min-width:0;width:calc(100% - 248px)}
.feature-shell .topbar{min-width:0}
.feature-shell .content-wrap{min-width:0}
.overview-filter{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px;padding:15px 17px}
.overview-filter>div{display:grid;gap:4px;min-width:0}
.overview-filter>div b{font-size:13px}
.overview-filter>div small{font-size:11px;line-height:1.45}
.overview-filter-form{display:flex;align-items:center;gap:8px;flex-shrink:0}
.overview-filter-form select{min-width:190px;max-width:100%;border:1px solid var(--line);border-radius:9px;padding:10px 34px 10px 11px;background:#fff;color:#26372d;font:inherit;font-size:12px}
.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}
body.dark-mode .overview-filter-form select{background:#111d17;border-color:#34483d;color:var(--ink)}
@media(max-width:800px){
  .feature-shell .feature-sidebar{height:100dvh;max-height:100dvh;padding-top:22px;padding-bottom:18px}
  .feature-shell .main-content{margin-left:0;width:100%;}
  .feature-shell .topbar{padding-left:64px;padding-right:14px}
  .feature-shell .topbar-right{gap:7px}
  .feature-shell .topbar-right .muted.small{display:none}
  .feature-shell .content-wrap{padding-top:25px}
}
@media(max-width:560px){
  .overview-filter{align-items:stretch;flex-direction:column;gap:11px;padding:13px}
  .overview-filter-form,.overview-filter-form select{width:100%;min-width:0}
  .overview-filter-form select{padding:12px}
  .feature-shell .topbar{height:60px}
  .feature-shell .breadcrumb{font-size:10px;white-space:nowrap}
  .feature-shell .topbar-right{gap:5px}
  .feature-shell .topbar-right .avatar{display:none}
  .feature-shell .welcome-row{align-items:flex-start;flex-direction:column}
  .feature-shell .welcome-row>.btn{width:100%}
}

/* Friend-group dropdown in the persistent sidebar */
.feature-sidebar .sidebar-group-menu{margin:3px 0;}
.feature-sidebar .sidebar-group-menu>summary{list-style:none;cursor:pointer;user-select:none;}
.feature-sidebar .sidebar-group-menu>summary::-webkit-details-marker{display:none;}
.feature-sidebar .sidebar-group-menu>summary .group-menu-chevron{margin-left:auto;width:auto;font-size:15px;transition:transform .2s ease;}
.feature-sidebar .sidebar-group-menu[open]>summary .group-menu-chevron{transform:rotate(180deg);}
.feature-sidebar .sidebar-submenu{margin:2px 0 8px 27px;padding-left:11px;border-left:1px solid #ffffff24;display:grid;gap:3px;}
.feature-sidebar .sidebar-sub-link{display:flex;align-items:center;gap:8px;min-width:0;padding:8px 9px;border-radius:7px;color:#a5a7ba;font-size:11px;line-height:1.35;overflow-wrap:anywhere;}
.feature-sidebar .sidebar-sub-link:hover,.feature-sidebar .sidebar-sub-link.current{background:#ffffff10;color:#b8f0cf;}
.feature-sidebar .sidebar-sub-link .group-dot{width:6px;height:6px;border-radius:50%;background:#58bd8c;flex:0 0 6px;}

/* User profile picture settings */
.avatar-image{object-fit:cover;display:block;border-radius:50%;background:#e8f6ef}
.profile-avatar-link{display:block;flex:0 0 auto;border-radius:50%;outline-offset:3px}
.profile-edit-link{display:block;min-width:0;flex:1}
.profile-edit-link:hover b{color:#a8e6c2}
.profile-card,.profile-account-card{margin-top:18px;padding:22px}
.profile-card-heading h2,.profile-account-card h2{font:800 17px Manrope,sans-serif;margin:0 0 5px}
.profile-card-heading p{margin:0}
.profile-picture-layout{display:grid;grid-template-columns:150px minmax(0,1fr);gap:25px;align-items:center;margin-top:22px}
.profile-picture-preview{width:140px;height:140px;border-radius:50%;overflow:hidden;background:#e8f6ef;border:5px solid #fff;box-shadow:0 0 0 1px var(--line),0 10px 25px #1a39241a;display:grid;place-items:center}
.profile-picture-preview img{width:100%;height:100%;object-fit:cover}
.profile-picture-placeholder{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#bdebd0,#4aaf7c);color:#175b3d;font:800 48px Manrope}
.profile-picture-controls{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap}
.profile-upload-form{display:grid;gap:9px;min-width:min(100%,320px)}
.profile-upload-form label{font-size:12px;font-weight:800}
.profile-upload-form input[type=file]{max-width:100%;padding:10px;border:1px dashed #9acfb0;border-radius:9px;background:#f7fcf8;color:var(--ink);font-size:12px}
.profile-upload-form small{font-size:10px}
.profile-upload-form .btn{justify-self:start}
.profile-account-card{max-width:620px}
.profile-account-row{display:flex;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--line);font-size:12px}
.profile-account-card .tiny{margin:14px 0 0}
body.dark-mode .profile-picture-preview{border-color:#18251e}
body.dark-mode .profile-upload-form input[type=file]{background:#142119;border-color:#426c52}
@media(max-width:560px){.profile-picture-layout{grid-template-columns:1fr;justify-items:center}.profile-picture-controls{width:100%;flex-direction:column}.profile-upload-form{width:100%;min-width:0}.profile-upload-form .btn{width:100%}.profile-card,.profile-account-card{padding:16px}}

/* Admin tools are part of the administrator's profile, not workspace navigation. */
.admin-profile-section{margin-top:30px;scroll-margin-top:85px}.admin-profile-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px}.admin-profile-heading h2{font:800 23px Manrope,sans-serif;margin:6px 0}.admin-profile-section .admin-panel{margin:14px 0}.profile-row .profile-info small{max-width:170px}.profile-row .profile-info{min-width:0}
@media(max-width:700px){.admin-profile-heading{align-items:flex-start;flex-direction:column}.admin-profile-section .admin-add-form{grid-template-columns:1fr!important}.admin-profile-section .admin-table-wrap{overflow-x:auto}.admin-profile-section .admin-table{min-width:560px}}

/* JibJib Plans: overview-only plan creation modal */
.hero-link-button{border:0;background:transparent;padding:0;cursor:pointer;font:inherit;color:inherit;text-align:left}
.plan-modal-backdrop[hidden]{display:none!important}
.plan-modal-backdrop{position:fixed;inset:0;z-index:1000;background:rgba(10,22,15,.62);display:grid;place-items:center;padding:20px;overflow-y:auto}
.plan-modal{width:min(620px,100%);max-height:min(92dvh,900px);overflow-y:auto;padding:25px;background:var(--panel,#fff);box-shadow:0 24px 80px #07140d55;border:1px solid var(--line);border-radius:20px}
.plan-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:20px}
.plan-modal-head h2{font:800 25px Manrope,sans-serif;margin:5px 0}
.plan-modal-head p{margin:0}
.modal-close{flex:0 0 38px;width:38px;height:38px;border:0;border-radius:11px;background:var(--bg);color:var(--ink);font-size:25px;line-height:1;cursor:pointer}
.plan-modal-form{display:grid;gap:14px}
.plan-modal-form label{display:grid;gap:7px;font-size:12px;font-weight:750;color:var(--ink)}
.plan-modal-form input,.plan-modal-form textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:10px;padding:12px 13px;background:var(--bg);color:var(--ink);font:inherit;font-size:13px;outline:none}
.plan-modal-form input:focus,.plan-modal-form textarea:focus{border-color:#55ad7b;box-shadow:0 0 0 3px #55ad7b22}
.plan-modal-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:5px}
#planModalMessage{margin:0 0 14px}
body.modal-open{overflow:hidden}
body.dark-mode .plan-modal{background:#18251e;border-color:#34483d}
@media(max-width:560px){.plan-modal-backdrop{padding:10px;align-items:end}.plan-modal{max-height:94dvh;padding:18px;border-radius:18px 18px 12px 12px}.plan-modal-actions{flex-direction:column-reverse}.plan-modal-actions .btn{width:100%}}

/* Consistent image upload cards for profile pictures and personal payment QR codes */
.image-upload-dropzone{position:relative;display:grid;justify-items:center;gap:8px;width:100%;min-height:180px;padding:20px 16px;border:1.5px dashed #8fc7a3;border-radius:16px;background:linear-gradient(145deg,#f7fcf8,#edf8f0);text-align:center;cursor:pointer;transition:border-color .18s,background .18s,transform .18s;overflow:hidden}
.image-upload-dropzone:hover,.image-upload-dropzone.drag-over{border-color:#269765;background:#e8f6ed;transform:translateY(-1px)}
.image-upload-dropzone input[type=file]{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}
.image-upload-dropzone b{font-size:13px;color:#245b3e}
.image-upload-dropzone small{font-size:10px;line-height:1.5;max-width:330px}
.upload-drop-icon{width:43px;height:43px;border-radius:13px;display:grid;place-items:center;background:#d9f0e1;color:#218454;font-size:25px;font-weight:800}
.image-upload-preview{display:block;max-width:min(100%,230px);max-height:180px;object-fit:contain;border-radius:12px;background:#fff;padding:5px;box-shadow:0 4px 16px #163b241c}
.image-upload-preview[hidden]{display:none!important}
.image-upload-filename{max-width:100%;font-size:10px;color:var(--muted);overflow-wrap:anywhere}
body.dark-mode .image-upload-dropzone{background:linear-gradient(145deg,#142119,#1b3023);border-color:#426c52}
body.dark-mode .image-upload-dropzone:hover,body.dark-mode .image-upload-dropzone.drag-over{background:#1d3828;border-color:#67c18c}
body.dark-mode .image-upload-dropzone b{color:#b8e7c8}
body.dark-mode .upload-drop-icon{background:#244b34;color:#a8e6c2}


/* Selected workspace ID shown in administrator tools. */
.admin-current-group-id{margin:.55rem 0 0;font-size:.9rem;color:var(--muted)}
.admin-current-group-id code{display:inline-block;padding:.18rem .45rem;border:1px solid var(--line);border-radius:7px;color:var(--ink);font-weight:700}

.code-row>.feature-actions{flex-direction:row;align-items:center;flex-wrap:wrap;justify-content:flex-end}

/* Persistent, hideable workspace navigation on desktop and mobile. */
.feature-shell .feature-sidebar{transition:width .22s ease,transform .25s ease;padding-right:15px;padding-left:15px}
.feature-shell .feature-menu-toggle{display:grid;place-items:center;position:fixed;left:260px;top:13px;z-index:40;width:38px;height:38px;border:1px solid #ffffff20;border-radius:11px;background:#17251e;color:#fff;font-size:19px;line-height:1;box-shadow:0 5px 18px #0002;transition:left .22s ease,background .2s ease}
.feature-shell .feature-menu-toggle:hover{background:#238c63}
.feature-shell.sidebar-collapsed .feature-sidebar{width:76px;padding-left:12px;padding-right:12px}
.feature-shell.sidebar-collapsed .feature-wrap{width:calc(100% - 76px);margin-left:76px}
.feature-shell.sidebar-collapsed .main-content{margin-left:76px;width:calc(100% - 76px)}
.feature-shell.sidebar-collapsed .feature-menu-toggle{left:88px}
.feature-shell.sidebar-collapsed .feature-sidebar .brand{padding-left:8px;padding-right:8px;justify-content:center}
.feature-shell.sidebar-collapsed .feature-sidebar .brand>span:last-child,
.feature-shell.sidebar-collapsed .feature-sidebar .sidebar-label,
.feature-shell.sidebar-collapsed .feature-sidebar .side-label-text,
.feature-shell.sidebar-collapsed .feature-sidebar .group-menu-chevron,
.feature-shell.sidebar-collapsed .feature-sidebar .sidebar-submenu,
.feature-shell.sidebar-collapsed .feature-sidebar .crew-card,
.feature-shell.sidebar-collapsed .feature-sidebar .profile-info,
.feature-shell.sidebar-collapsed .feature-sidebar .logout-link{display:none!important}
.feature-shell.sidebar-collapsed .feature-sidebar .side-link{justify-content:center;gap:0;padding:12px 6px}
.feature-shell.sidebar-collapsed .feature-sidebar .side-link>span:first-child{width:auto;font-size:19px}
.feature-shell.sidebar-collapsed .feature-sidebar .sidebar-group-menu>summary{display:flex}
.feature-shell.sidebar-collapsed .feature-sidebar .profile-row{justify-content:center;padding-top:15px}
.feature-shell.sidebar-collapsed .feature-sidebar .profile-avatar-link{margin:0}

/* Modal plan detail overlay shared by every workspace tab. */
.plan-view-modal-backdrop[hidden]{display:none!important}
.plan-view-modal-backdrop{position:fixed;inset:0;z-index:1100;display:grid;place-items:center;padding:24px;background:rgba(8,17,13,.68);backdrop-filter:blur(4px);overflow-y:auto}
.plan-view-modal{width:min(820px,100%);max-height:min(92dvh,980px);overflow-y:auto;border:1px solid var(--line);border-radius:20px;background:#fff;padding:24px;box-shadow:0 28px 90px #0005;overscroll-behavior:contain}
.plan-view-modal-loading,.plan-view-error{min-height:180px;display:grid;place-content:center;gap:12px;text-align:center;color:var(--muted)}
.plan-view-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}
.plan-view-modal-head h2{font:800 25px Manrope,sans-serif;letter-spacing:-.8px;margin:5px 0}
.plan-view-modal-head p{margin:0}
.plan-view-summary{display:grid;grid-template-columns:76px minmax(0,1fr);gap:17px;padding:17px;border:1px solid var(--line);border-radius:14px;background:var(--bg)}
.plan-view-summary .detail-date{width:65px;height:74px;border-radius:11px;background:#e8f6ef;color:#238c63;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.plan-view-summary .detail-date span{font-size:10px;text-transform:uppercase;font-weight:800}
.plan-view-summary .detail-date b{font:800 24px Manrope;line-height:1}
.plan-view-summary .detail-date small{font-size:9px}
.plan-view-summary .detail-meta{display:flex;flex-wrap:wrap;gap:7px 15px;font-size:11px;color:var(--muted)}
.plan-view-summary .detail-info p{font-size:12px;line-height:1.6;margin:12px 0 0;color:var(--ink);overflow-wrap:anywhere}
.plan-view-section{margin:13px 0;padding:17px;border:1px solid var(--line);border-radius:14px;background:#fff}
.plan-view-section .section-heading{margin-bottom:12px}
.plan-view-section .section-heading h3{font:800 15px Manrope;margin:0 0 4px}
.plan-view-section .section-heading p{margin:0;font-size:11px}
.plan-view-section .member-list{display:grid;gap:8px}
.plan-view-section .comment-list{max-height:230px;overflow-y:auto}
.plan-view-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;flex-wrap:wrap;margin-top:16px}
.plan-view-actions form{margin:0}
.plan-view-message{margin-top:12px;padding:10px 12px;border-radius:9px;background:#fff0f0;color:#b54444;font-size:12px}
.plan-view-message[hidden]{display:none!important}
body.plan-view-open{overflow:hidden}
body.dark-mode .plan-view-modal{background:#18251e;border-color:#34483d;color:var(--ink)}
body.dark-mode .plan-view-section{background:#18251e;border-color:#34483d}
body.dark-mode .plan-view-summary{background:#111d17;border-color:#34483d}
body.dark-mode .plan-view-summary .detail-date{background:#244333;color:#bcebd0}
body.dark-mode .plan-view-section .member-row{border-color:#34483d}
@media(max-width:800px){
 .feature-shell .feature-menu-toggle{left:13px}
 .feature-shell.sidebar-collapsed .feature-menu-toggle{left:13px}
 .feature-shell .feature-sidebar{width:248px;padding-left:15px;padding-right:15px}
 .feature-shell.sidebar-collapsed .feature-sidebar{width:248px}
 .feature-shell.sidebar-collapsed .feature-wrap,.feature-shell.sidebar-collapsed .main-content{width:100%;margin-left:0}
 .feature-shell.sidebar-collapsed .feature-sidebar .brand>span:last-child,
 .feature-shell.sidebar-collapsed .feature-sidebar .sidebar-label,
 .feature-shell.sidebar-collapsed .feature-sidebar .side-label-text,
 .feature-shell.sidebar-collapsed .feature-sidebar .group-menu-chevron,
 .feature-shell.sidebar-collapsed .feature-sidebar .sidebar-submenu,
 .feature-shell.sidebar-collapsed .feature-sidebar .crew-card,
 .feature-shell.sidebar-collapsed .feature-sidebar .profile-info,
 .feature-shell.sidebar-collapsed .feature-sidebar .logout-link{display:initial!important}
 .feature-shell.sidebar-collapsed .feature-sidebar .side-link{justify-content:flex-start;gap:13px;padding:12px}
 .feature-shell.sidebar-collapsed .feature-sidebar .profile-row{justify-content:flex-start}
 .plan-view-modal-backdrop{padding:10px;align-items:end}
 .plan-view-modal{max-height:94dvh;padding:17px;border-radius:18px 18px 10px 10px}
}
@media(max-width:560px){
 .plan-view-modal-head h2{font-size:21px}
 .plan-view-summary{grid-template-columns:58px minmax(0,1fr);gap:11px;padding:12px}
 .plan-view-summary .detail-date{width:55px;height:66px}
 .plan-view-summary .detail-meta{display:grid;gap:7px}
 .plan-view-actions{display:grid;grid-template-columns:1fr 1fr}
 .plan-view-actions .btn{width:100%}
 .plan-view-actions form{grid-column:1/-1}
 .plan-view-actions form .btn{width:100%}
 .plan-view-section{padding:13px}
}
.plan-full-page [data-plan-view-close]{display:none!important}
.plan-full-page .plan-view-modal-head{padding-bottom:14px;border-bottom:1px solid var(--line)}
.loading-spinner{display:block;width:28px;height:28px;margin:0 auto;border:3px solid #d8e9de;border-top-color:#238c63;border-radius:50%;animation:jibjib-spin .75s linear infinite}
@keyframes jibjib-spin{to{transform:rotate(360deg)}}
/* Keep the hamburger clear of page titles and topbar breadcrumbs on desktop. */
.feature-shell .feature-head{padding-left:48px}
.feature-shell .topbar{padding-left:56px}
@media(max-width:800px){
 .feature-shell .feature-head{padding-left:46px}
 .feature-shell .topbar{padding-left:64px}
 .feature-shell.sidebar-collapsed .feature-sidebar .brand{justify-content:flex-start}
 .feature-shell.sidebar-collapsed .feature-sidebar .brand>span:last-child,
 .feature-shell.sidebar-collapsed .feature-sidebar .side-label-text,
 .feature-shell.sidebar-collapsed .feature-sidebar .group-menu-chevron,
 .feature-shell.sidebar-collapsed .feature-sidebar .profile-info,
 .feature-shell.sidebar-collapsed .feature-sidebar .logout-link{display:initial!important}
 .feature-shell.sidebar-collapsed .feature-sidebar .sidebar-label{display:block!important}
 .feature-shell.sidebar-collapsed .feature-sidebar .sidebar-submenu{display:grid!important}
 .feature-shell.sidebar-collapsed .feature-sidebar .crew-card{display:flex!important}
}

/* JibJib Plans responsive polish: narrower sidebar, centered work areas, and adaptive grids. */
:root{
  --jib-sidebar-width:210px;
  --jib-sidebar-mini:60px;
  --jib-content-max:1360px;
}

/* Slightly slimmer navigation across every workspace tab. */
.feature-shell .feature-sidebar{
  width:var(--jib-sidebar-width);
  padding:22px 13px 18px;
}
.feature-shell .feature-sidebar .brand{
  gap:9px;
  padding:0 6px 27px;
  font-size:16px;
}
.feature-shell .feature-sidebar .brand-mark{
  width:31px;
  height:31px;
  border-radius:10px;
  font-size:16px;
}
.feature-shell .feature-sidebar .sidebar-label{padding:0 10px 10px;font-size:8px}
.feature-shell .feature-sidebar .side-link{
  gap:10px;
  padding:10px 10px;
  font-size:12px;
  margin:2px 0;
}
.feature-shell .feature-sidebar .side-link>span:first-child{font-size:16px;width:17px}
.feature-shell .feature-sidebar .sidebar-submenu{margin-left:23px;padding-left:9px}
.feature-shell .feature-sidebar .sidebar-sub-link{padding:7px 8px;font-size:10.5px}
.feature-shell .feature-sidebar .crew-card{gap:9px;padding:10px 9px;margin-bottom:14px}
.feature-shell .feature-sidebar .crew-icon{width:29px;height:29px}
.feature-shell .feature-sidebar .profile-row{gap:7px;padding-top:14px}
.feature-shell .feature-menu-toggle{left:222px}

/* Keep feature pages centered in the available area to the right of the sidebar.
   This prevents the page from clinging to the left when browser zoom changes. */
.feature-shell .feature-wrap{
  width:min(calc(100vw - var(--jib-sidebar-width)),var(--jib-content-max));
  max-width:none;
  margin-left:max(var(--jib-sidebar-width),calc((100vw - var(--jib-content-max) + var(--jib-sidebar-width))/2));
  margin-right:auto;
  padding:clamp(18px,2.35vw,34px) clamp(14px,2.2vw,34px) 56px;
  min-width:0;
}
.feature-shell .main-content{
  width:calc(100% - var(--jib-sidebar-width));
  margin-left:var(--jib-sidebar-width);
  min-width:0;
}
.feature-shell .content-wrap{width:100%;max-width:1320px;margin:0 auto;min-width:0}
.feature-shell .topbar{min-width:0}
.feature-panel,.panel,.feature-list>*,.feature-columns>*{min-width:0}
.feature-shell .feature-head{gap:12px;flex-wrap:wrap}
.feature-shell .feature-actions{min-width:0;flex-wrap:wrap}
.feature-shell .page-intro h1,.feature-shell .welcome-row h1{font-size:clamp(24px,2.2vw,31px);overflow-wrap:anywhere}
.feature-shell .page-intro p{max-width:76ch;line-height:1.55}
.feature-list,.feature-columns{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));
}
.photo-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}
.feature-title-row{flex-wrap:wrap}
.feature-title-row>div{min-width:0}
.group-row,.expense-row{flex-wrap:wrap}
.calendar-toolbar{flex-wrap:wrap}
.calendar-grid{min-width:660px}
.feature-panel:has(.calendar-grid){overflow-x:auto}

/* Adaptive Overview cards also respond to the actual space left by navigation. */
.feature-shell .stats-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr))}
.feature-shell .plan-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.feature-shell .hero-banner{min-width:0}
.feature-shell .stat-card,.feature-shell .plan-card{min-width:0}

/* Compact sidebar mode. */
.feature-shell.sidebar-collapsed .feature-sidebar{
  width:var(--jib-sidebar-mini);
  padding-left:10px;
  padding-right:10px;
}
.feature-shell.sidebar-collapsed .feature-wrap{
  width:min(calc(100vw - var(--jib-sidebar-mini)),var(--jib-content-max));
  margin-left:max(var(--jib-sidebar-mini),calc((100vw - var(--jib-content-max) + var(--jib-sidebar-mini))/2));
}
.feature-shell.sidebar-collapsed .main-content{
  width:calc(100% - var(--jib-sidebar-mini));
  margin-left:var(--jib-sidebar-mini);
}
.feature-shell.sidebar-collapsed .feature-menu-toggle{left:72px}

/* Plan detail modal: center every section, text block, and control consistently. */
.plan-view-modal-backdrop{place-items:center;padding:clamp(10px,2.4vw,26px)}
.plan-view-modal{
  width:min(780px,100%);
  max-height:min(92dvh,960px);
  padding:clamp(16px,2.5vw,27px);
}
.plan-view-detail{
  display:grid;
  gap:14px;
  text-align:center;
}
.plan-view-modal-head{
  position:relative;
  display:grid;
  justify-items:center;
  text-align:center;
  gap:8px;
  padding:4px 42px 3px;
  margin-bottom:2px;
}
.plan-view-modal-head>div{width:100%;min-width:0}
.plan-view-modal-head h2{font-size:clamp(21px,3vw,27px);line-height:1.25;overflow-wrap:anywhere}
.plan-view-modal-head p{line-height:1.5}
.plan-view-modal-head .modal-close{position:absolute;right:0;top:0}
.plan-view-summary{
  grid-template-columns:1fr;
  justify-items:center;
  gap:12px;
  padding:19px;
  text-align:center;
}
.plan-view-summary .detail-date{margin:0 auto}
.plan-view-summary .detail-info{width:100%;display:grid;justify-items:center;gap:0}
.plan-view-summary .detail-meta{justify-content:center;align-items:center;gap:9px 17px;line-height:1.5}
.plan-view-summary .detail-info p{max-width:68ch;margin:10px auto 0;text-align:center;line-height:1.7}
.plan-view-section{text-align:center;padding:18px}
.plan-view-section .section-heading{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  text-align:center;
}
.plan-view-section .section-heading>div{width:100%}
.plan-view-section .section-heading h3{margin:0 0 5px}
.plan-view-section .section-heading p{line-height:1.5}
.plan-view-section .count-pill{align-self:center}
.plan-view-section .rsvp-actions{justify-content:center;align-items:center}
.plan-view-section .member-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:8px 14px}
.plan-view-section .member-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:7px 9px;
  text-align:center;
  padding:12px 8px;
}
.plan-view-section .member-row b{flex:0 1 auto;overflow-wrap:anywhere}
.plan-view-section .member-status{flex:0 0 100%;text-align:center}
.plan-view-section .comment-list{width:100%;max-height:260px}
.plan-view-section .comment{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
  text-align:center;
  padding:14px 8px;
}
.plan-view-section .comment>div:last-child{width:100%;max-width:64ch}
.plan-view-section .comment p{line-height:1.65;overflow-wrap:anywhere}
.plan-view-section .comment-form{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  width:100%;
}
.plan-view-section .comment-form input{width:min(100%,560px);min-height:43px;text-align:center}
.plan-view-section .comment-form .btn{min-width:120px}
.plan-view-actions{justify-content:center;align-items:center}
.plan-view-actions form{display:inline-flex;justify-content:center}
.plan-view-message{text-align:center}

@media(max-width:800px){
  .feature-shell .feature-sidebar{
    width:var(--jib-sidebar-width);
    padding:20px 13px 16px;
    transform:translateX(-100%);
  }
  .feature-shell .feature-sidebar.sidebar-open{transform:translateX(0)}
  .feature-shell .feature-wrap{
    width:100%;
    max-width:none;
    margin:0;
    padding:22px 18px 44px;
  }
  .feature-shell .main-content{width:100%;margin-left:0}
  .feature-shell .feature-menu-toggle{left:12px;top:12px}
  .feature-shell.sidebar-collapsed .feature-sidebar{width:var(--jib-sidebar-width)}
  .feature-shell.sidebar-collapsed .feature-wrap,
  .feature-shell.sidebar-collapsed .main-content{width:100%;margin:0}
  .feature-shell.sidebar-collapsed .feature-menu-toggle{left:12px}
  .feature-shell.sidebar-collapsed .feature-sidebar .brand>span:last-child,
  .feature-shell.sidebar-collapsed .feature-sidebar .sidebar-label,
  .feature-shell.sidebar-collapsed .feature-sidebar .side-label-text,
  .feature-shell.sidebar-collapsed .feature-sidebar .group-menu-chevron,
  .feature-shell.sidebar-collapsed .feature-sidebar .sidebar-submenu,
  .feature-shell.sidebar-collapsed .feature-sidebar .crew-card,
  .feature-shell.sidebar-collapsed .feature-sidebar .profile-info,
  .feature-shell.sidebar-collapsed .feature-sidebar .logout-link{display:initial!important}
  .feature-shell.sidebar-collapsed .feature-sidebar .side-link{justify-content:flex-start;gap:10px;padding:10px}
  .feature-shell.sidebar-collapsed .feature-sidebar .profile-row{justify-content:flex-start}
  .feature-shell .feature-head{padding-left:48px}
  .feature-shell .topbar{padding-left:62px}
  .plan-view-modal-backdrop{padding:10px}
  .plan-view-modal{max-height:94dvh}
}
@media(max-width:560px){
  .feature-shell .feature-wrap{padding:17px 13px 36px}
  .feature-shell .feature-head{align-items:flex-start}
  .feature-shell .feature-actions{justify-content:flex-end}
  .feature-shell .topbar{height:58px;padding-left:60px;padding-right:12px}
  .feature-shell .content-wrap{padding:22px 13px 28px}
  .feature-shell .hero-banner{padding:22px 18px;min-height:215px}
  .feature-shell .hero-art{opacity:.28;right:-35px}
  .feature-shell .welcome-row{gap:12px}
  .feature-shell .stats-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))}
  .feature-shell .plan-grid{grid-template-columns:1fr}
  .feature-shell .feature-panel{padding:14px}
  .feature-shell .feature-title-row{align-items:flex-start}
  .calendar-toolbar h2{min-width:0;font-size:15px}
  .plan-view-modal-backdrop{align-items:center;place-items:center;padding:8px}
  .plan-view-modal{width:100%;max-height:96dvh;padding:14px;border-radius:16px}
  .plan-view-modal-head{padding:38px 8px 0}
  .plan-view-modal-head .modal-close{right:0;top:0}
  .plan-view-summary{padding:14px}
  .plan-view-section{padding:13px}
  .plan-view-actions{display:flex;flex-direction:column}
  .plan-view-actions>.btn,.plan-view-actions form,.plan-view-actions form .btn{width:100%}
}


/* Dedicated full-page plan details (not a modal). */
.plan-full-page{width:min(900px,100%);margin:clamp(18px,4vw,42px) auto;padding:0 0 36px;min-width:0}
.plan-full-page .plan-view-detail{display:grid;gap:18px;min-width:0}
.plan-full-page .plan-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:0 0 18px;border-bottom:1px solid var(--line)}
.plan-full-page .plan-detail-head>div{min-width:0;width:100%}
.plan-full-page .plan-detail-head h2{font:800 clamp(24px,3vw,32px) Manrope,sans-serif;letter-spacing:-.8px;margin:6px 0;overflow-wrap:anywhere}
.plan-full-page .plan-detail-head p{margin:0}
.plan-full-page .plan-view-section{width:100%;min-width:0}
.plan-full-page .plan-view-summary{width:100%;min-width:0}
.plan-full-page .plan-view-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}
@media(max-width:700px){.plan-full-page{margin:18px auto;padding:0 0 28px}.plan-full-page .plan-view-summary{grid-template-columns:1fr}.plan-full-page .plan-view-actions{justify-content:stretch}.plan-full-page .plan-view-actions>*{flex:1 1 100%}.plan-full-page .plan-detail-head{gap:8px}}

/* Interactive OpenStreetMap location picker. */
.location-picker{display:grid;gap:9px;min-width:0;width:100%}
.location-picker>label{display:block;margin:0;font-size:12px;font-weight:750;color:var(--ink)}
.location-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;min-width:0}
.location-input-row input{min-width:0;width:100%;margin-top:0}
.location-picker-help,.map-selection-status{font-size:11px;line-height:1.5;color:var(--muted)}
.location-map{display:block;width:100%;height:185px;min-height:165px;border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#e8eee9;z-index:0}
/* The Leaflet map element is the same element as .location-map. Do not set height:100% here: that creates a zero-height map when there is no sized parent. */
.location-map.leaflet-container{width:100%;height:185px;min-height:165px;font-family:'DM Sans',sans-serif;z-index:0}
.location-map .leaflet-tile{max-width:none!important;max-height:none!important}
.location-map .leaflet-control-attribution{font-size:9px}
.map-search-results{display:grid;gap:5px;max-height:170px;overflow:auto}
.map-search-results:empty{display:none}
.map-search-result{display:block;width:100%;padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:var(--panel,#fff);color:var(--ink);font:inherit;font-size:11px;line-height:1.45;text-align:left;cursor:pointer}
.map-search-result:hover,.map-search-result:focus{border-color:#55ad7b;background:#eff9f3}
.map-results-empty{margin:0;padding:8px 2px;color:var(--muted);font-size:11px}
.map-picker-footer{display:grid;gap:8px}
.map-picker-actions{display:flex;flex-wrap:wrap;gap:7px}
.map-picker-actions .btn{padding:8px 11px;font-size:11px}
.location-map-display{height:250px;max-height:40vh;min-height:210px;margin-top:4px}
.location-map-display.leaflet-container{height:250px;min-height:210px}
.map-display-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px;font-size:12px}
.plan-location-text{margin:0 0 8px;overflow-wrap:anywhere}
body.dark-mode .map-search-result{background:#18251e;border-color:#34483d;color:var(--ink)}
body.dark-mode .map-search-result:hover,body.dark-mode .map-search-result:focus{background:#20362a;border-color:#55ad7b}
@media(max-width:560px){
  .location-map,.location-map.leaflet-container{height:165px;min-height:155px}
  .location-map-display,.location-map-display.leaflet-container{height:215px;min-height:190px;max-height:none}
  .location-input-row{grid-template-columns:minmax(0,1fr) auto}
  .map-display-footer{align-items:flex-start;flex-direction:column}
}

/* View Plan is a normal detail page: use a clear left-aligned reading layout. */
.plan-full-page{width:min(100%,1040px);max-width:1040px;margin:24px 0 42px;padding:0 0 36px;text-align:left}
.plan-full-page .plan-view-detail{text-align:left;gap:18px}
.plan-full-page .plan-detail-head{justify-content:flex-start;text-align:left}
.plan-full-page .plan-view-summary{grid-template-columns:76px minmax(0,1fr);justify-items:stretch;gap:17px;text-align:left;padding:20px}
.plan-full-page .plan-view-summary .detail-date{margin:0}
.plan-full-page .plan-view-summary .detail-info{width:100%;display:block;text-align:left}
.plan-full-page .plan-view-summary .detail-meta{justify-content:flex-start;align-items:flex-start}
.plan-full-page .plan-view-summary .detail-info p{max-width:76ch;margin:12px 0 0;text-align:left;line-height:1.7}
.plan-full-page .plan-view-section{text-align:left;padding:19px}
.plan-full-page .plan-view-section .section-heading{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;text-align:left}
.plan-full-page .plan-view-section .section-heading>div{width:auto}
.plan-full-page .plan-view-section .count-pill{align-self:center}
.plan-full-page .plan-view-section .rsvp-actions{justify-content:flex-start}
.plan-full-page .plan-view-section .member-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:8px 12px}
.plan-full-page .plan-view-section .member-row{justify-content:flex-start;flex-wrap:nowrap;gap:9px;text-align:left;padding:10px 8px}
.plan-full-page .plan-view-section .member-status{flex:0 0 auto;margin-left:auto;text-align:right}
.plan-full-page .plan-view-section .comment{display:flex;flex-direction:row;align-items:flex-start;gap:10px;text-align:left;padding:12px 4px}
.plan-full-page .plan-view-section .comment>div:last-child{width:auto;max-width:100%;min-width:0;text-align:left}
.plan-full-page .plan-view-section .comment-form{display:flex;flex-direction:row;align-items:center;gap:9px;width:100%}
.plan-full-page .plan-view-section .comment-form input{width:100%;min-width:0;text-align:left}
.plan-full-page .plan-view-actions{justify-content:flex-start;align-items:center}
.plan-full-page .plan-view-message{text-align:left}
@media(max-width:700px){
  .plan-full-page{margin:16px 0 28px;padding:0 0 28px}
  .plan-full-page .plan-view-summary{grid-template-columns:62px minmax(0,1fr);gap:12px;padding:14px}
  .plan-full-page .plan-view-summary .detail-date{width:58px;height:68px}
  .plan-full-page .plan-view-section{padding:14px}
  .plan-full-page .plan-view-section .member-row{flex-wrap:wrap}
  .plan-full-page .plan-view-section .member-status{flex:0 0 100%;margin-left:43px;text-align:left}
  .plan-full-page .plan-view-section .comment-form{flex-direction:column;align-items:stretch}
  .plan-full-page .plan-view-section .comment-form .btn{width:100%}
}
@media(max-width:430px){
  .plan-full-page .plan-view-summary{grid-template-columns:1fr}
  .plan-full-page .plan-view-summary .detail-date{width:58px;height:68px}
  .plan-full-page .plan-view-summary .detail-meta{display:grid;gap:7px}
}

/* Compact sidebar typography: reduce navigation text without shrinking page content. */
.feature-shell .feature-sidebar .brand{font-size:14px;letter-spacing:-.2px}
.feature-shell .feature-sidebar .sidebar-label{font-size:7.5px;letter-spacing:1.2px}
.feature-shell .feature-sidebar .side-link{font-size:10.5px;line-height:1.35;gap:9px;padding:9px 9px}
.feature-shell .feature-sidebar .side-link>span:first-child{font-size:15px;width:16px}
.feature-shell .feature-sidebar .sidebar-sub-link{font-size:9.5px;line-height:1.3;padding:6px 7px;gap:7px}
.feature-shell .feature-sidebar .crew-card b{font-size:10px}
.feature-shell .feature-sidebar .crew-card small{font-size:9px}
.feature-shell .feature-sidebar .profile-info b{font-size:10px}
.feature-shell .feature-sidebar .profile-info small{font-size:9px}
.feature-shell .feature-sidebar .logout-link{font-size:16px}


/* Member profile modal, unread notification state and account security. */
.notification-nav-link{position:relative}
.notification-badge{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;margin-left:7px;border-radius:999px;background:#e53945;color:#fff;font-size:9px;line-height:1;font-weight:900;box-shadow:0 0 0 2px #18251e;font-variant-numeric:tabular-nums}
.dashboard-notification-link{display:inline-flex;align-items:center;gap:3px}
.dashboard-notification-link .notification-badge{box-shadow:none;margin-left:4px}
.notification-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap;margin-bottom:12px}
.notification-toolbar h2{margin-bottom:4px}
.notification-bulk-actions{display:flex;gap:7px;flex-wrap:wrap}
.notification-bulk-actions form{margin:0}
.notification-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.notification-main{display:flex;align-items:flex-start;gap:11px;min-width:0;flex:1;color:inherit}
.notification-copy{display:grid;gap:5px;min-width:0}
.notification-copy b{overflow-wrap:anywhere}
.notification-toggle-form{flex:0 0 auto;margin:0}
.notification-row.unread{background:#fff6f6;border-radius:9px;padding-left:9px;padding-right:9px}
.notification-row.unread .notification-dot{background:#e53945;box-shadow:0 0 0 3px #ffe2e4}
.unread-count-text{color:#dc3545;font-weight:900}
body.dark-mode .notification-row.unread{background:#342124}
.member-profile-trigger{display:inline-flex;align-items:center;gap:9px;min-width:0;max-width:100%;border:0;padding:0;background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit}
.member-profile-trigger b{font-size:11px;overflow-wrap:anywhere}
.member-profile-trigger:hover b,.member-profile-name:hover{color:#21895f;text-decoration:underline}
.member-directory-row .member-profile-trigger{flex:1}
.member-profile-name{border:0;background:transparent;padding:0;color:var(--ink);font-family:inherit;font-size:11px;font-weight:700;cursor:pointer;text-align:left}
.member-profile-modal[hidden]{display:none!important}
.member-profile-modal{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:18px}
.member-profile-backdrop{position:absolute;inset:0;background:rgba(7,17,12,.64);backdrop-filter:blur(3px)}
.member-profile-dialog{position:relative;width:min(440px,100%);max-height:min(88dvh,680px);overflow:auto;padding:25px;border:1px solid var(--line);border-radius:19px;background:#fff;color:#17192d;box-shadow:0 25px 80px #0005}
body.dark-mode .member-profile-dialog{background:#18251e;color:var(--ink)}
.member-profile-close{position:absolute;top:12px;right:12px;z-index:1}
.member-profile-hero{display:flex;align-items:center;gap:16px;padding:8px 38px 20px 0;border-bottom:1px solid var(--line)}
.member-profile-avatar{width:82px;height:82px;flex:0 0 82px;object-fit:cover;border-radius:50%;background:#e5f5ec;border:3px solid var(--line)}
.member-profile-initial{display:grid;place-items:center;background:linear-gradient(135deg,#c7efd6,#58b783);color:#145a3a;font:800 32px Manrope,sans-serif}
.member-profile-hero h2{margin:4px 0;font-size:21px;overflow-wrap:anywhere}
.member-profile-facts{display:grid;gap:0;padding-top:9px}
.member-profile-facts>div{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}
.member-profile-facts small{font-size:11px;color:var(--muted)}
.member-profile-facts b{font-size:12px;text-align:right;overflow-wrap:anywhere}
.profile-password-card{margin-top:18px;padding:22px}
.profile-password-card h2{font:800 17px Manrope,sans-serif;margin:0 0 5px}
.profile-password-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:16px}
.profile-password-form label{display:grid;gap:6px;font-size:11px;font-weight:750;color:var(--ink);min-width:0}
.profile-password-form label:first-of-type{grid-column:1/-1}
.profile-password-form input{width:100%;min-width:0;border:1px solid var(--line);border-radius:9px;padding:11px 12px;background:var(--bg);color:var(--ink);font:inherit;font-size:13px}
.profile-password-form .btn{grid-column:1/-1;justify-self:start}
.hidden-form{display:none}
.qr-options-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.qr-option{display:grid;align-content:start;gap:9px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:12px}
.qr-option-preview{height:154px;display:grid;place-items:center;background:#f5faf6;border:1px dashed #b4d7c0;border-radius:9px;color:#789184;font-size:11px;text-align:center;padding:8px}
.qr-option-preview img{width:100%;height:100%;object-fit:contain}
.qr-option label{display:grid;gap:5px;font-size:12px;font-weight:750}
.qr-option label small{font-size:10px;font-weight:400}
.qr-option input[type=file]{width:100%;min-width:0;font-size:11px}
.qr-remove-link{justify-self:start}
.gcash-number-field{display:grid;gap:7px;margin-top:14px;font-size:12px;font-weight:750}
.gcash-number-field input{width:100%;border:1px solid var(--line);border-radius:9px;padding:11px 12px;background:var(--bg);color:var(--ink);font:inherit;font-size:13px}
.gcash-number-field .optional{font-weight:400}
.payer-gcash-number{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 12px;border:1px solid #b8dec6;background:#f2faf5;border-radius:10px;font-size:12px}
.payer-gcash-number b{font-size:11px;color:#4d6e5b}
.payer-gcash-number a{font-weight:800;color:#167849;letter-spacing:.2px}
.payer-qr-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:9px}
body.dark-mode .qr-option-preview{background:#142119;border-color:#426c52;color:var(--muted)}
body.dark-mode .payer-gcash-number{background:#1c3226;border-color:#355b43}
body.dark-mode .payer-gcash-number b{color:#bbd5c5}
.payer-exclusion-note{margin:8px 0 0;font-size:10px;color:var(--muted)}

/* Responsive refinements for compact phones and tablets. */
@media(max-width:900px){
 .feature-shell .feature-wrap{padding-left:16px;padding-right:16px}
 .feature-shell .content-wrap{max-width:100%}
 .feature-shell .plan-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))}
 .member-directory .member-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .profile-password-form{grid-template-columns:1fr}
 .profile-password-form label:first-of-type,.profile-password-form .btn{grid-column:auto}
}
@media(max-width:680px){
 .feature-shell .feature-wrap{padding:15px 12px 30px}
 .feature-shell .page-intro{margin:8px 0 17px}
 .feature-shell .page-intro h1{font-size:clamp(21px,6vw,26px);line-height:1.2}
 .feature-shell .page-intro p{font-size:12px}
 .feature-shell .feature-head{margin-bottom:20px;align-items:center}
 .feature-shell .feature-actions{gap:6px}
 .feature-shell .feature-actions .btn{padding:8px 10px;font-size:10px}
 .feature-shell .feature-panel{padding:13px;margin:12px 0;border-radius:12px}
 .feature-shell .feature-panel h2{font-size:15px}
 .feature-shell .feature-form{gap:10px}
 .feature-shell .feature-form label{font-size:11px}
 .feature-shell .feature-form input:not([type=radio]):not([type=file]),.feature-shell .feature-form textarea,.feature-shell .feature-form select{font-size:12px;padding:10px}
 .feature-shell .btn{font-size:11px}
 .feature-shell .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .feature-shell .photo-card img{height:140px}
 .member-directory .member-list{grid-template-columns:1fr}
 .member-profile-dialog{padding:18px;border-radius:15px}
 .notification-toolbar{display:grid;gap:10px}
 .notification-bulk-actions{width:100%}
 .notification-bulk-actions form{flex:1}
 .notification-bulk-actions .btn{width:100%;padding:8px 7px;font-size:10px}
 .notification-row{align-items:flex-start;gap:7px;padding:11px 2px}
 .notification-toggle-form .btn{padding:7px 8px;font-size:9px;white-space:nowrap}
 .notification-copy b{font-size:11px}
 .notification-copy small{font-size:9px}
 .calendar-toolbar{gap:7px}
 .calendar-toolbar h2{font-size:13px;flex:1 1 100%;order:-1}
 .calendar-day{min-height:83px;padding:4px}
 .weekday{font-size:9px;padding:7px 2px}
 .event-chip{white-space:normal;line-height:1.15;padding:4px;font-size:8px}
 .event-chip small{display:block;font-size:7px;opacity:.85;overflow-wrap:anywhere}
 .week-day{grid-template-columns:56px minmax(0,1fr);gap:8px;padding:9px 0}
 .week-event{padding:9px;font-size:11px}
 .group-row,.expense-row{align-items:flex-start;gap:9px}
 .group-row>div,.expense-row>div{flex:1 1 100%}
 .group-row .feature-actions{width:100%;justify-content:flex-start}
 .qr-options-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .qr-option{padding:8px;gap:7px}
 .qr-option-preview{height:120px;font-size:10px}
 .pay-qr-inline{padding:9px;gap:9px}
 .pay-qr-inline img{width:82px;height:82px;flex:0 0 82px}
 .pay-qr-inline b{font-size:10px}
 .pay-qr-inline small{font-size:9px}
 .payer-qr-grid{grid-template-columns:1fr}
 .balance-payment-main{align-items:flex-start}
 .balance-payment-main b{font-size:12px}
 .balance-payment-main>strong{font-size:16px}
 .payment-details-form>.btn{width:100%}
 .profile-card,.profile-account-card,.profile-password-card{padding:14px}
 .profile-password-form{gap:10px}
 .profile-password-form .btn{width:100%}
}
@media(max-width:390px){
 .feature-shell .feature-wrap{padding-left:10px;padding-right:10px}
 .feature-shell .topbar{padding-right:9px}
 .feature-shell .content-wrap{padding-left:10px;padding-right:10px}
 .feature-shell .feature-panel{padding:11px}
 .feature-shell .photo-grid{grid-template-columns:1fr}
 .qr-options-grid{grid-template-columns:1fr}
 .qr-option-preview{height:140px}
 .notification-row{display:grid;grid-template-columns:minmax(0,1fr) auto}
 .member-profile-hero{gap:11px}
 .member-profile-avatar{width:66px;height:66px;flex-basis:66px}
 .member-profile-facts>div{gap:8px;align-items:flex-start}
 .member-profile-facts b{max-width:58%;font-size:11px}
}

.custom-share-name{display:grid;gap:3px;min-width:0}.payer-share-label{font-size:9px;font-weight:600;color:#17804e;line-height:1.3}.custom-share-row.is-expense-payer{border-color:#91c9a6;background:#f3fbf6}.custom-share-row.is-expense-payer .custom-share-person{color:#176b45}body.dark-mode .custom-share-row.is-expense-payer{background:#1b3326;border-color:#437653}body.dark-mode .payer-share-label{color:#9be0b5}

.feature-sidebar .side-link .notification-badge{color:#fff!important;background:#e53945!important;width:auto;min-width:19px;height:19px;margin-left:auto;flex:0 0 auto;padding:0 5px;font-size:9px;line-height:1;box-shadow:0 0 0 2px #18251e}
.feature-shell.sidebar-collapsed .feature-sidebar .side-link .notification-badge{margin-left:0;position:absolute;transform:translate(13px,-11px);min-width:16px;height:16px;padding:0 3px;font-size:8px}

.member-profile-trigger:focus-visible,.member-profile-name:focus-visible,.notification-toggle-form button:focus-visible{outline:2px solid #269765;outline-offset:3px;border-radius:5px}
.notification-nav-link .notification-badge{position:relative;top:0}

/* Clickable calendar authors and member names. */
.calendar-event-item,.week-event-item{display:grid;gap:2px;min-width:0}.calendar-creator{justify-self:start;font-size:8px!important;line-height:1.2;overflow-wrap:anywhere}.week-event-item .calendar-creator{margin:0 0 2px 9px;font-size:10px!important}.expense-share-chip .member-profile-name{font-size:11px}.expense-row .member-profile-name,.balance-payment-main .member-profile-name{font-size:inherit}
@media(max-width:680px){.calendar-creator{font-size:7px!important}.week-event-item .calendar-creator{font-size:9px!important}}

.group-member-directory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:9px}
.group-member-profile-card{display:flex;align-items:center;gap:10px;min-width:0;text-align:left;padding:10px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--ink);cursor:pointer;font:inherit;transition:border-color .15s,transform .15s}
.group-member-profile-card:hover{border-color:#69b98d;transform:translateY(-1px)}
.group-member-profile-card>span:nth-child(2){display:grid;gap:3px;min-width:0;flex:1}
.group-member-profile-card b{font-size:11px;overflow-wrap:anywhere}
.group-member-profile-card small{font-size:9px;color:var(--muted)}
.group-member-open-icon{font-size:13px;color:var(--muted)}
body.dark-mode .group-member-profile-card{background:#18251e;border-color:#34483d;color:var(--ink)}
@media(max-width:520px){.group-member-directory-grid{grid-template-columns:1fr}.group-member-profile-card{padding:9px}}

/* JibJib maintenance update: remove viewport-level side scrolling on all workspace tabs. */
html,body.feature-shell{width:100%;max-width:100%;overflow-x:hidden}
.feature-shell .app-layout,.feature-shell .main-content,.feature-shell .feature-wrap,.feature-shell .content-wrap,
.feature-shell .panel,.feature-shell .section-heading,.feature-shell .welcome-row,.feature-shell .feature-head{min-width:0;max-width:100%}
.feature-shell img,.feature-shell video,.feature-shell iframe,.feature-shell canvas{max-width:100%}
.feature-shell .feature-wrap,.feature-shell .main-content{overflow-x:clip}
.feature-shell .responsive-table{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.feature-shell .section-heading>div,.feature-shell .feature-title-row>div,.feature-shell .plan-card,.feature-shell .photo-card,
.feature-shell .expense-row>div,.feature-shell .group-row>div{min-width:0}
.feature-shell .plan-card,.feature-shell .photo-card,.feature-shell .group-row,.feature-shell .expense-row{overflow-wrap:anywhere}

/* Keep the collapsed sidebar clean; use the existing menu toggle to expand it. */
.feature-shell .feature-sidebar{position:fixed;min-width:0}
.feature-shell.sidebar-collapsed .feature-sidebar .brand{padding-bottom:30px}

/* Updated member profile page: clear hierarchy, balanced panels and equal form fields. */
.profile-page-redesign{padding-top:30px}
.profile-welcome-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 25px;margin-bottom:18px;border:1px solid #dcefe3;border-radius:17px;background:linear-gradient(115deg,#f0faf4 0%,#fff 72%);box-shadow:0 8px 25px #1b5b3510}
.profile-welcome-identity{display:flex;align-items:center;gap:17px;min-width:0}
.profile-welcome-avatar{width:76px;height:76px;flex:0 0 76px;border:3px solid #fff;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#dff4e7;box-shadow:0 5px 16px #1b5b3520}
.profile-welcome-avatar img{width:100%;height:100%;object-fit:cover}
.profile-welcome-avatar>span{font:800 30px Manrope,sans-serif;color:#176b45}
.profile-welcome-copy{min-width:0}
.profile-welcome-copy .eyebrow{font-size:9px;letter-spacing:1.6px}
.profile-welcome-copy h1{font:800 clamp(21px,3vw,28px)/1.2 Manrope,sans-serif;letter-spacing:-.7px;margin:5px 0}
.profile-welcome-copy p{font-size:12px;color:#778579;margin:0;overflow-wrap:anywhere}
.profile-welcome-side{display:grid;justify-items:end;gap:7px;flex:0 0 auto}
.profile-welcome-side small{font-size:10px;color:var(--muted)}
.profile-role-chip,.profile-active-tag{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:99px;background:#e4f6eb;color:#19734a;font-size:10px;font-weight:800}
.profile-settings-grid,.profile-groups-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:stretch}
.profile-settings-grid>.panel,.profile-groups-grid>.panel{min-width:0;margin:0;padding:19px;border:1px solid var(--line);border-radius:15px;box-shadow:0 5px 20px #1b1e4005}
.profile-section-heading{display:flex;align-items:center;gap:11px;margin-bottom:15px;min-width:0}
.profile-section-heading>div:last-child{min-width:0;flex:1}
.profile-section-heading h2{font:800 16px Manrope,sans-serif;margin:0 0 4px}
.profile-section-heading p{font-size:10px;margin:0;line-height:1.45}
.profile-section-icon{width:36px;height:36px;flex:0 0 36px;border-radius:11px;display:grid;place-items:center;background:#e5f6eb;color:#21875d;font-size:18px}
.profile-security-icon{background:#eef0ff;color:#5b62a7}
.profile-join-icon{background:#fff2df;color:#b87520}
.profile-picture-layout{grid-template-columns:112px minmax(0,1fr);gap:15px;margin-top:4px;align-items:center}
.profile-picture-preview{width:104px;height:104px;border-width:3px}
.profile-picture-placeholder{font-size:37px}
.profile-picture-controls{display:grid;gap:8px;min-width:0}
.profile-upload-form{width:100%;min-width:0;gap:8px}
.profile-photo-dropzone{min-height:120px!important;padding:12px!important;border-radius:12px!important;gap:5px!important}
.profile-photo-dropzone b{font-size:11px!important}
.profile-photo-dropzone small{font-size:9px!important}
.profile-upload-form .btn,.profile-picture-controls>.btn,.profile-picture-controls form .btn{width:100%;justify-self:stretch}
.profile-password-form{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:4px;width:100%;min-width:0}
.profile-password-form>label,.profile-password-pair>label{display:grid;gap:6px;width:100%;min-width:0;margin:0;font-size:10px;font-weight:750;color:var(--ink)}
.profile-password-form input{display:block;width:100%;max-width:100%;min-width:0;height:42px;box-sizing:border-box;margin:0;border:1px solid var(--line);border-radius:9px;padding:10px 12px;background:var(--bg);color:var(--ink);font:inherit;font-size:12px}
.profile-password-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.profile-password-pair small{font-size:9px;font-weight:400}
.profile-password-form .btn{grid-column:auto;justify-self:start;min-height:39px;padding:10px 14px;font-size:11px}
.profile-groups-grid{margin-top:16px}
.profile-section-count{margin-left:auto;min-width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:var(--bg);color:var(--muted);font-size:10px;font-weight:800}
.profile-group-list{display:grid;gap:0;margin:1px 0 12px}
.profile-group-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-top:1px solid var(--line);min-width:0}
.profile-group-item>div{display:grid;gap:3px;min-width:0}
.profile-group-item b{font-size:11px;overflow-wrap:anywhere}
.profile-group-item small{font-size:9px;color:var(--muted)}
.profile-manage-groups{width:100%;margin-top:8px}
.profile-join-form{display:grid;gap:7px}
.profile-join-form label{font-size:10px;font-weight:800;color:var(--ink)}
.profile-join-form input{width:100%;min-width:0;height:42px;box-sizing:border-box;border:1px solid var(--line);border-radius:9px;padding:10px 12px;background:var(--bg);color:var(--ink);font:inherit;font-size:12px}
.profile-join-form .btn{width:100%;margin-top:4px}
.profile-join-card>p{margin:10px 0 0}
body.dark-mode .profile-welcome-card{background:linear-gradient(115deg,#1b3326,#18251e 75%);border-color:#34483d}
body.dark-mode .profile-welcome-copy p{color:#a9b8ae}
body.dark-mode .profile-welcome-avatar{border-color:#24382b;background:#244333}
body.dark-mode .profile-welcome-avatar>span{color:#c5efd4}
body.dark-mode .profile-role-chip,body.dark-mode .profile-active-tag{background:#244333;color:#bcebd0}
body.dark-mode .profile-section-icon{background:#244333;color:#bcebd0}
body.dark-mode .profile-security-icon{background:#292b46;color:#d0d2ff}
body.dark-mode .profile-join-icon{background:#3e3020;color:#f4c987}
body.dark-mode .profile-password-form input,body.dark-mode .profile-join-form input{background:#111d17;border-color:#34483d;color:var(--ink)}
@media(max-width:980px){.profile-settings-grid,.profile-groups-grid{grid-template-columns:1fr}.profile-picture-layout{grid-template-columns:112px minmax(0,1fr)}}
@media(max-width:560px){
 .profile-page-redesign{padding-top:16px}
 .profile-welcome-card{align-items:flex-start;padding:15px;gap:12px}
 .profile-welcome-identity{gap:11px}
 .profile-welcome-avatar{width:58px;height:58px;flex-basis:58px}
 .profile-welcome-avatar>span{font-size:24px}
 .profile-welcome-copy h1{font-size:20px}
 .profile-welcome-copy p{font-size:10px}
 .profile-welcome-side{align-items:flex-end}
 .profile-welcome-side small{font-size:8px;text-align:right}
 .profile-settings-grid,.profile-groups-grid{gap:11px}
 .profile-settings-grid>.panel,.profile-groups-grid>.panel{padding:14px}
 .profile-picture-layout{grid-template-columns:1fr;justify-items:center;gap:11px}
 .profile-picture-preview{width:88px;height:88px}
 .profile-picture-controls{width:100%}
 .profile-password-pair{grid-template-columns:1fr;gap:11px}
 .profile-password-form .btn{width:100%}
}

/* Original-quality group photo cloud: no image crop, resizing, or compression. */
.cloud-upload-panel{padding:18px}
.cloud-photo-dropzone{min-height:170px;padding:17px;border-radius:14px}
.cloud-photo-dropzone .dropzone-icon{font-size:22px}
.cloud-file-count{display:inline-flex;padding:6px 11px;border-radius:99px;background:#e4f6eb;color:#19734a;font-size:10px;font-weight:800}
.photo-batch-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(95px,1fr));gap:8px;width:100%;margin-top:5px}
.photo-batch-preview:empty{display:none}
.photo-batch-preview-item{display:grid;gap:4px;min-width:0;padding:6px;border:1px solid #dcefe3;border-radius:9px;background:#fff;text-align:left}
.photo-batch-preview-item img{width:100%;height:68px;object-fit:contain;background:#f4f7f5;border-radius:6px}
.photo-batch-preview-item small{font-size:8px;color:#657469;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.photo-batch-dimensions{font-size:8px;color:#20835b}
.cloud-upload-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.cloud-photo-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));align-items:start}
.cloud-photo-card{min-width:0}
.cloud-photo-open{position:relative;display:grid;place-items:center;min-width:0;min-height:170px;overflow:hidden;background:#eef2ef}
.cloud-photo-open img,.cloud-photo-card .photo-open img{display:block;width:100%;height:250px;max-height:36vh;object-fit:contain;object-position:center;background:#eef2ef;transition:opacity .2s}
.cloud-photo-open:hover img{opacity:.93;transform:none}
.photo-original-label{position:absolute;right:9px;bottom:9px;padding:5px 8px;border-radius:99px;background:#101a16d9;color:#fff;font-size:8px;font-weight:800;letter-spacing:.2px}
.cloud-photo-card .photo-card-info{padding:12px}
.cloud-photo-card .photo-card-info>b{overflow-wrap:anywhere}
body.dark-mode .cloud-photo-open,body.dark-mode .photo-batch-preview-item img{background:#101d16}
body.dark-mode .photo-batch-preview-item{background:#18251e;border-color:#34483d}
body.dark-mode .photo-batch-preview-item small{color:#b2c5b8}
body.dark-mode .cloud-file-count{background:#244333;color:#bcebd0}
@media(max-width:560px){
 .cloud-photo-dropzone{min-height:145px;padding:12px}
 .photo-batch-preview{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .photo-batch-preview-item{padding:4px}
 .photo-batch-preview-item img{height:55px}
 .photo-batch-preview-item small,.photo-batch-dimensions{font-size:7px}
 .cloud-upload-footer{align-items:stretch;flex-direction:column}
 .cloud-upload-footer .btn{width:100%}
 .cloud-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .cloud-photo-open img,.cloud-photo-card .photo-open img{height:155px;max-height:none}
 .cloud-photo-card .photo-card-info{padding:9px}
}
@media(max-width:380px){.cloud-photo-grid{grid-template-columns:1fr}.cloud-photo-open img,.cloud-photo-card .photo-open img{height:210px}}

/* The comment author now has a real, clickable avatar alongside the message. */
.plan-full-page .plan-view-section .comment{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:10px;padding:12px 4px;text-align:left;min-width:0}
.plan-full-page .comment-avatar-button{display:block;flex:0 0 29px;width:29px;height:29px;padding:0;border:0;background:transparent;border-radius:50%;cursor:pointer}
.plan-full-page .comment-avatar-button .avatar{width:29px;height:29px}
.plan-full-page .comment-avatar-button .avatar-image{display:block;object-fit:cover}
.plan-full-page .plan-view-section .comment .comment-body{width:auto;max-width:none;min-width:0;flex:1;text-align:left}
.plan-full-page .plan-view-section .comment-body p{margin:5px 0;overflow-wrap:anywhere;text-align:left}
.plan-full-page .plan-view-section .comment-body small{font-size:9px;color:var(--muted)}

/* Put polls in the Overview workspace instead of nesting them under Friend groups. */
.overview-polls-section{margin:38px 0 34px;min-width:0}
.overview-polls-section>.section-heading{align-items:flex-end;gap:12px}
.overview-polls-section>.section-heading h2{font:800 20px Manrope,sans-serif;margin:5px 0}
.overview-polls-layout{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(0,1.2fr);gap:14px;align-items:start}
.overview-polls-layout>.panel,.overview-poll-card{min-width:0;margin:0;padding:16px;border:1px solid var(--line);border-radius:13px;background:#fff}
.overview-poll-create h3,.overview-poll-empty h3{font:800 14px Manrope;margin:0 0 12px}
.overview-poll-create .feature-form{gap:10px}
.overview-poll-create .feature-form label{font-size:10px}
.overview-poll-create .feature-form input{padding:9px 10px;font-size:11px}
.overview-poll-create .poll-option-inputs{gap:7px}
.poll-extra-options{display:grid;gap:10px;border-top:1px solid var(--line);padding-top:8px}
.poll-extra-options summary{font-size:10px;font-weight:800;color:var(--muted);cursor:pointer}
.poll-extra-options .poll-option-inputs{margin-top:9px}
.overview-poll-list{display:grid;gap:10px;min-width:0}
.overview-poll-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:7px}
.overview-poll-card-head>div{min-width:0}
.overview-poll-card-head h3{font:800 13px Manrope;margin:0 0 5px;overflow-wrap:anywhere}
.overview-poll-card-head p{margin:0;font-size:9px}
.overview-poll-vote-form{min-width:0}
.overview-poll-vote-form .poll-choice{font-size:10px;gap:8px;min-width:0}
.overview-poll-vote-form .poll-choice>span:first-child{min-width:0;overflow-wrap:anywhere}
.overview-poll-vote-form .poll-count{font-size:9px}
.overview-poll-vote-form .btn{margin-top:8px}
.overview-poll-empty{text-align:center;display:grid;justify-items:center;align-content:center;min-height:190px}
body.dark-mode .overview-polls-layout>.panel,body.dark-mode .overview-poll-card{background:#18251e;border-color:#34483d}
body.dark-mode .overview-poll-create .feature-form input{background:#111d17;border-color:#34483d;color:var(--ink)}
@media(max-width:900px){.overview-polls-layout{grid-template-columns:1fr}}
@media(max-width:560px){
 .overview-polls-section{margin:27px 0}
 .overview-polls-section>.section-heading{align-items:flex-start;flex-direction:column}
 .overview-polls-section>.section-heading>.btn{align-self:flex-start}
 .overview-polls-layout>.panel,.overview-poll-card{padding:13px}
 .overview-poll-create .poll-option-inputs{grid-template-columns:1fr}
}
.cloud-photo-dropzone{display:grid;justify-items:center;align-content:center;gap:9px;position:relative}
.cloud-photo-picker{display:grid;justify-items:center;gap:7px;max-width:100%;cursor:pointer;text-align:center}
.cloud-photo-picker b{font-size:13px}
.cloud-photo-picker .small{font-size:10px}

/* Photo reactions and comments modal. Two-column on desktop/tablet, stacked on phones. */
.photo-modal-trigger{border:0;width:100%;padding:0;cursor:pointer;color:inherit;font:inherit;text-align:inherit}
.photo-modal-trigger:focus-visible{outline:3px solid var(--green,#2aab75);outline-offset:-3px}
.photo-detail-backdrop[hidden]{display:none!important}
.photo-detail-backdrop{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px;background:rgba(9,17,13,.68);backdrop-filter:blur(5px)}
.photo-detail-modal{position:relative;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(300px,.95fr);width:min(100%,1040px);max-height:min(86dvh,760px);min-height:440px;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:var(--card,#fff);box-shadow:0 24px 80px #0004}
.photo-detail-close{position:absolute;top:12px;right:12px;z-index:3;width:36px;height:36px;border:0;border-radius:50%;background:#17251edb;color:#fff;font-size:25px;line-height:1;cursor:pointer}
.photo-detail-image-side{display:flex;min-width:0;min-height:0;flex-direction:column;justify-content:center;background:#101813;overflow:hidden}
.photo-detail-image-side>img{display:block;width:100%;height:100%;min-height:0;max-height:calc(86dvh - 105px);object-fit:contain;background:#101813}
.photo-detail-image-caption{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:13px 16px;background:var(--card,#fff);color:var(--ink)}
.photo-detail-image-caption>b{flex:1 1 100%;font-size:13px;overflow-wrap:anywhere}
.photo-detail-image-caption>small{flex:1;color:var(--muted);font-size:10px}
.photo-detail-discussion{display:flex;flex-direction:column;min-width:0;min-height:0;padding:22px 20px 16px;background:var(--card,#fff)}
.photo-detail-heading h2{margin:3px 0 13px;font-size:19px}
.photo-reaction-picker{display:flex;gap:7px;flex-wrap:wrap;padding:0 0 12px;border-bottom:1px solid var(--line)}
.photo-reaction-button{width:39px;height:37px;border:1px solid var(--line);border-radius:11px;background:var(--surface,#f5f8f6);font-size:19px;cursor:pointer;transition:transform .15s,border-color .15s}
.photo-reaction-button:hover{transform:translateY(-2px)}
.photo-reaction-button.selected{border-color:#269c6b;background:#e1f5e9;box-shadow:0 0 0 2px #269c6b22}
.photo-reaction-summary{display:flex;gap:6px;flex-wrap:wrap;min-height:34px;align-items:center;padding:8px 0}
.photo-reaction-pill{padding:5px 8px;border:1px solid var(--line);border-radius:99px;font-size:10px;background:var(--surface,#f5f8f6)}
.photo-reaction-pill.mine{border-color:#269c6b;background:#e1f5e9}
.photo-comment-list{flex:1;min-height:90px;overflow-y:auto;overscroll-behavior:contain;padding:3px 2px 12px}
.photo-comment-item{display:flex;align-items:flex-start;gap:9px;padding:10px 0;border-bottom:1px solid var(--line)}
.photo-comment-avatar{display:grid;place-items:center;flex:0 0 31px;width:31px;height:31px;border-radius:50%;overflow:hidden;background:#e2f1e8;color:#24734e;font-size:12px;font-weight:800}
.photo-comment-avatar img{width:100%;height:100%;object-fit:cover}
.photo-comment-body{flex:1;min-width:0}
.photo-comment-body>b{font-size:11px}
.photo-comment-body>p{margin:3px 0 4px;font-size:12px;line-height:1.45;overflow-wrap:anywhere;white-space:pre-wrap}
.photo-comment-body>small{font-size:9px;color:var(--muted)}
.photo-no-comments{padding:18px 0;font-size:12px}
.photo-comment-form{display:flex;gap:8px;align-items:center;padding-top:12px;border-top:1px solid var(--line)}
.photo-comment-form input{flex:1;min-width:0;width:100%;height:39px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff);color:var(--ink);font:inherit;font-size:12px}
.photo-modal-open{overflow:hidden}
body.dark-mode .photo-reaction-button,body.dark-mode .photo-reaction-pill{background:#1d2c23;color:#e4f2e8}
body.dark-mode .photo-reaction-button.selected,body.dark-mode .photo-reaction-pill.mine{background:#244b35;border-color:#43b77e}
@media(max-width:700px){
 .photo-detail-backdrop{padding:10px;align-items:center}
 .photo-detail-modal{grid-template-columns:minmax(0,1fr);width:min(100%,560px);max-height:94dvh;min-height:0;overflow-y:auto;border-radius:16px}
 .photo-detail-image-side{min-height:0}
 .photo-detail-image-side>img{height:min(38dvh,320px);max-height:38dvh;min-height:180px}
 .photo-detail-image-caption{padding:9px 13px;gap:6px}
 .photo-detail-image-caption>b{font-size:12px}
 .photo-detail-discussion{padding:13px 14px 12px;min-height:250px}
 .photo-detail-heading h2{font-size:16px;margin-bottom:9px}
 .photo-reaction-picker{gap:6px;padding-bottom:9px}
 .photo-reaction-button{width:36px;height:34px;font-size:17px}
 .photo-comment-list{max-height:26dvh;min-height:90px}
 .photo-comment-form{position:sticky;bottom:0;padding:9px 0 0;background:var(--card,#fff)}
}
@media(max-width:380px){
 .photo-detail-backdrop{padding:6px}
 .photo-detail-modal{max-height:96dvh}
 .photo-detail-image-side>img{height:31dvh;min-height:145px}
 .photo-detail-discussion{padding:11px}
 .photo-detail-image-caption .btn{padding:6px 8px;font-size:9px}
}

/* Dark mode: photo comments and discussion modal */
body.dark-mode .photo-detail-modal,
body.dark-mode .photo-detail-discussion,
body.dark-mode .photo-detail-image-caption {
  background: #18251e;
  color: #e6f1eb;
  border-color: #34483d;
}
body.dark-mode .photo-detail-heading h2,
body.dark-mode .photo-comment-body > b,
body.dark-mode .photo-comment-body > p,
body.dark-mode .photo-no-comments {
  color: #e6f1eb;
}
body.dark-mode .photo-comment-item,
body.dark-mode .photo-comment-form {
  border-color: #34483d;
}
body.dark-mode .photo-comment-form {
  background: #18251e;
}
body.dark-mode .photo-comment-form input {
  background: #111d17;
  border-color: #34483d;
  color: #e6f1eb;
}
body.dark-mode .photo-comment-form input::placeholder {
  color: #82978a;
}
body.dark-mode .photo-comment-body > small,
body.dark-mode .photo-detail-image-caption > small {
  color: #9aafa4;
}
body.dark-mode .photo-comment-avatar {
  background: #294b38;
  color: #b7e8c9;
}

/* Photo engagement counts and reaction-name details */
.photo-card-stats{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:3px;color:var(--muted);font-size:10px;font-weight:700}
.photo-card-stats span{display:inline-flex;align-items:center;gap:4px}
.photo-detail-counts{display:block;margin-top:-7px;margin-bottom:10px;color:var(--muted);font-size:10px}
.photo-reaction-pill{position:relative;display:inline-flex;align-items:center;gap:4px;color:var(--ink);font:inherit;cursor:pointer}
.photo-reaction-pill:hover .photo-reaction-people,.photo-reaction-pill:focus-visible .photo-reaction-people,.photo-reaction-pill.show-people .photo-reaction-people{display:block}
.photo-reaction-people{display:none;position:absolute;z-index:5;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);width:max-content;max-width:min(260px,75vw);padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--card,#fff);color:var(--ink);box-shadow:0 8px 24px #0002;font-size:10px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
body.dark-mode .photo-reaction-people{background:#18251e;border-color:#405548;color:#e6f1eb}

/* Flexible poll option builder and full poll history */
.poll-option-builder{display:grid;gap:9px;min-width:0}
.poll-option-row{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:end;gap:7px;min-width:0}
.poll-option-row>label{display:grid;gap:6px;min-width:0;margin:0}
.poll-remove-option{width:34px;height:36px;border:1px solid var(--line);border-radius:9px;background:var(--card,#fff);color:var(--danger,#c45e5e);font-size:20px;line-height:1;cursor:pointer}
.poll-remove-option:disabled{opacity:.35;cursor:not-allowed}
body.dark-mode .poll-remove-option{background:#18251e;border-color:#405548;color:#f0a0a0}
.poll-option-builder .poll-option-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}
.poll-add-option{justify-self:start}
.poll-history-list{align-items:start}
.poll-history-card{min-width:0}
.poll-history-card .feature-title-row>div{min-width:0}
.poll-history-card h2{overflow-wrap:anywhere}
.poll-closed-note{margin:10px 0 0}
body.dark-mode .poll-option-builder input{background:#111d17;color:var(--ink);border-color:#34483d}
@media(max-width:900px){.poll-history-list{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.poll-option-builder .poll-option-inputs{grid-template-columns:1fr}.poll-history-list{grid-template-columns:minmax(0,1fr)}.photo-card-stats{gap:8px;font-size:9px}.photo-reaction-people{left:0;transform:none}}


/* Poll overview single-card indicator */
.poll-open-all-link{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.poll-multiple-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#dc3545;color:#fff;font-size:10px;font-weight:800;line-height:1;box-shadow:0 0 0 2px #fff}
body.dark-mode .poll-multiple-badge{box-shadow:0 0 0 2px #18251e}
@media(max-width:700px){.poll-open-all-link{white-space:normal}.poll-multiple-badge{flex-shrink:0}}

/* Creator-controlled poll closing */
.poll-close-form{display:flex;justify-content:flex-end;margin-top:9px}
.poll-close-button{font-size:11px;border-color:var(--line);color:var(--danger,#c45e5e)}
body.dark-mode .poll-close-button{border-color:#594044;color:#ffaaaa}

/* Activity feed and RSVP summaries: fluid on desktop, tablet and phones. */
.activity-feed-list{display:grid;gap:0}.activity-feed-item{display:flex;align-items:flex-start;gap:13px;padding:15px 2px;border-top:1px solid var(--line);color:var(--ink);text-decoration:none;min-width:0}.activity-feed-item:hover{background:var(--soft,#f7faf8)}.activity-feed-icon{width:40px;height:40px;flex:0 0 40px;border-radius:12px;background:var(--soft,#eef6f1);display:grid;place-items:center;font-size:18px}.activity-feed-copy{display:grid;gap:5px;min-width:0;flex:1}.activity-feed-copy b{font-size:12px;overflow-wrap:anywhere}.activity-feed-copy>span{font-size:12px;color:var(--muted);overflow-wrap:anywhere;white-space:normal}.activity-feed-copy small{font-size:10px;color:var(--muted)}.activity-feed-arrow{font-size:22px;color:var(--muted);padding:3px 5px}.rsvp-summary-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:12px 0 5px}.rsvp-summary-counts span{display:flex;align-items:center;gap:6px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;font-size:10px;color:var(--muted);min-width:0}.rsvp-summary-counts b{font-size:15px;color:var(--ink)}.settlement-history-list{display:grid}.settlement-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:13px 0;border-top:1px solid var(--line)}.settlement-history-people{display:grid;gap:5px;min-width:0}.settlement-history-people>b{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px}.settlement-history-people small{font-size:10px;color:var(--muted);overflow-wrap:anywhere}.settlement-history-row>strong{font-size:13px;white-space:nowrap}.settlement-arrow{color:var(--muted)}
body.dark-mode .activity-feed-item:hover{background:#203329}body.dark-mode .activity-feed-icon{background:#243a2d}
@media(max-width:700px){.rsvp-summary-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.settlement-history-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}.settlement-history-row .status-tag{grid-column:1/-1;justify-self:start}.activity-feed-item{gap:10px;padding:13px 0}.activity-feed-icon{width:35px;height:35px;flex-basis:35px}}
@media(max-width:420px){.rsvp-summary-counts span{padding:9px;font-size:9px}.rsvp-summary-counts b{font-size:14px}.settlement-history-row>strong{font-size:12px}}

/* All Plans: compact, touch-friendly list that adapts to phones and tablets. */
.all-plans-list{display:grid;gap:0}.all-plans-section-label{padding:15px 2px 8px;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:1px;text-transform:uppercase}.all-plan-row{display:flex;align-items:center;gap:13px;padding:13px 4px;border-top:1px solid var(--line);color:var(--ink);min-width:0;transition:background .15s}.all-plan-row:hover{background:var(--soft,#f5f8f6)}.all-plan-date{width:52px;min-width:52px;min-height:55px;border-radius:11px;background:#e8f6ef;color:#238c63;display:flex;flex-direction:column;align-items:center;justify-content:center}.all-plan-date b{font:800 19px Manrope;line-height:1}.all-plan-date small{font-size:9px;margin-top:4px}.all-plan-main{display:grid;gap:4px;min-width:0;flex:1}.all-plan-main>b{font-size:13px;overflow-wrap:anywhere}.all-plan-main small{font-size:10px;color:var(--muted);overflow-wrap:anywhere}.all-plan-status{display:flex;flex-direction:column;align-items:flex-end;gap:7px;flex-shrink:0}.all-plan-open{font-size:10px;font-weight:700;color:#238c63}.all-plans-panel .section-heading{gap:12px}.all-plans-panel .section-heading .btn{white-space:nowrap}body.dark-mode .all-plan-row:hover{background:#20352a}body.dark-mode .all-plan-date{background:#244333;color:#bcebd0}
@media(max-width:560px){.all-plan-row{gap:9px;padding:12px 0;align-items:flex-start}.all-plan-date{width:45px;min-width:45px;min-height:50px}.all-plan-main>b{font-size:12px}.all-plan-main small{font-size:9px}.all-plan-status .status-tag{font-size:8px;padding:5px 7px}.all-plan-open{font-size:9px}.all-plans-panel{padding:14px}.all-plans-panel .section-heading{align-items:flex-start}.all-plans-panel .section-heading .btn{font-size:9px;padding:8px}}


/* Reliability and responsive polish */
html,body{max-width:100%;overflow-x:hidden}img,video,iframe{max-width:100%}button,a,input,select,textarea{touch-action:manipulation}button,.btn,.side-link{min-height:40px} .notification-preferences-form{display:grid;gap:12px}.preference-toggle{display:flex!important;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}.preference-toggle input{width:20px;height:20px;flex:0 0 auto;accent-color:#25865d}body.dark-mode .notification-preferences-card,body.dark-mode .notification-preferences-form{color:var(--ink)}body.dark-mode .preference-toggle{border-color:var(--line)}body.dark-mode input,body.dark-mode textarea,body.dark-mode select{color:var(--ink)}body.dark-mode input::placeholder,body.dark-mode textarea::placeholder{color:#81968a}@media(max-width:760px){.profile-settings-grid{grid-template-columns:minmax(0,1fr)!important}.feature-wrap,.main-content,.content-wrap{min-width:0;width:100%;max-width:100%}.feature-head,.section-heading{gap:10px;flex-wrap:wrap}.notification-toolbar,.notification-bulk-actions{flex-wrap:wrap}.admin-table-wrap,.table-wrap{max-width:100%;overflow-x:auto}.btn,.btn-small{min-height:42px}.form-row{grid-template-columns:minmax(0,1fr)!important}}

body.dark-mode .profile-welcome-card,body.dark-mode .profile-card,body.dark-mode .notification-preferences-card,body.dark-mode .member-profile-dialog,body.dark-mode .plan-modal,body.dark-mode .photo-modal-dialog{background:#18251e;border-color:var(--line);color:var(--ink)}body.dark-mode .profile-welcome-copy h1,body.dark-mode .profile-card h2,body.dark-mode .notification-preferences-card h2,body.dark-mode .profile-section-heading h2{color:var(--ink)}body.dark-mode .profile-card input:not([type=checkbox]):not([type=file]),body.dark-mode .profile-card textarea,body.dark-mode .profile-card select,body.dark-mode .notification-preferences-card input{background:#111d17;border-color:#34483d;color:var(--ink)}body.dark-mode .profile-group-item,body.dark-mode .profile-section-heading,body.dark-mode .profile-group-list{border-color:var(--line)}body.dark-mode .feature-sidebar{background:#142119;border-color:#293b32}body.dark-mode .side-link{color:#c6d8cd}body.dark-mode .side-link.active{background:#244333;color:#bcebd0}
@media(min-width:761px) and (max-width:1024px){.feature-wrap,.main-content{min-width:0}.plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.member-directory .member-list{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-settings-grid,.profile-groups-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Shared group identity and QR upload polish. */
.sidebar-group-photo{width:100%;height:100%;object-fit:cover;border-radius:8px;display:block}
.group-photo-edit-layout{display:grid;grid-template-columns:112px minmax(0,1fr);gap:16px;align-items:center;margin:12px 0 16px}
.group-photo-current{width:112px;height:112px;border-radius:22px;overflow:hidden;display:grid;place-items:center;background:#e8f6ef;color:#23865e;font:800 38px Manrope,sans-serif;border:1px solid var(--line)}
.group-photo-current img{width:100%;height:100%;object-fit:cover}
.group-photo-dropzone{min-height:132px;padding:14px}
.group-customize-form>label{display:grid;gap:7px;font-size:12px;font-weight:700;margin:12px 0}
.group-customize-form>label input{width:100%;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--surface,#fff);color:var(--ink)}
.qr-image-dropzone{min-height:135px;padding:12px;gap:6px}
.qr-image-dropzone .upload-drop-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#dff3e6;color:#23865e;font-size:19px}
.qr-image-dropzone .image-upload-preview{max-width:100%;max-height:110px;object-fit:contain;border-radius:8px}
.qr-option-preview{height:150px}
@media(max-width:600px){.group-photo-edit-layout{grid-template-columns:1fr}.group-photo-current{margin:0 auto}.group-photo-dropzone{min-height:130px}.qr-options-grid{grid-template-columns:1fr}.qr-option-preview{height:150px}}
body.dark-mode .group-photo-current{background:#142119;border-color:#34483d}
body.dark-mode .group-customize-form>label input{background:#111d17;border-color:#34483d;color:var(--ink)}

.group-row-identity{display:flex;align-items:center;gap:11px;min-width:0}
.group-row-identity>div{display:grid;gap:4px;min-width:0}
.group-row-photo{width:42px;height:42px;border-radius:12px;object-fit:cover;flex:0 0 42px}
.group-row-photo-placeholder{display:grid;place-items:center;background:#e7f5ec;color:#23865e;font-weight:800}
body.dark-mode .group-row-photo-placeholder{background:#142119;color:#b8e7c8}

/* Distinct, consistent sidebar navigation icons */
.feature-sidebar .side-link .side-icon-wrap{display:inline-flex;align-items:center;justify-content:center;width:20px;min-width:20px;height:20px;flex:0 0 20px;color:currentColor}
.feature-sidebar .side-link .side-icon{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.feature-sidebar .side-link.active .side-icon-wrap{color:#9be2bc}
.feature-sidebar .side-link:hover .side-icon-wrap{color:#fff}
@media(max-width:760px){.feature-sidebar .side-link .side-icon-wrap{width:22px;min-width:22px;height:22px;flex-basis:22px}.feature-sidebar .side-link .side-icon{width:19px;height:19px}}

/* Compact, neatly aligned notification preferences on the profile page */
.profile-page-redesign .notification-preferences-card{
  max-width:720px;
  width:100%;
  padding:16px 18px;
  margin:14px 0 18px!important;
}
.profile-page-redesign .notification-preferences-card .profile-section-heading{
  gap:10px;
  margin-bottom:10px;
}
.profile-page-redesign .notification-preferences-card .profile-section-icon{
  width:34px;height:34px;min-width:34px;font-size:16px;border-radius:10px;
}
.profile-page-redesign .notification-preferences-card .profile-section-heading h2{
  font-size:16px;line-height:1.25;margin:0 0 3px;
}
.profile-page-redesign .notification-preferences-card .profile-section-heading p{
  font-size:11px;line-height:1.4;margin:0;
}
.profile-page-redesign .notification-preferences-form{
  display:flex;flex-direction:column;gap:0;
}
.profile-page-redesign .notification-preferences-form .preference-toggle{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 20px;
  align-items:center;
  justify-content:initial;
  gap:12px;
  width:100%;
  min-height:38px;
  padding:7px 2px;
  margin:0;
  font-size:12px;
  line-height:1.35;
  box-sizing:border-box;
}
.profile-page-redesign .notification-preferences-form .preference-toggle span{
  min-width:0;
  text-align:left;
}
.profile-page-redesign .notification-preferences-form .preference-toggle input[type="checkbox"]{
  display:block;
  width:17px;height:17px;
  min-width:17px;
  margin:0!important;
  padding:0;
  justify-self:center;
  align-self:center;
  vertical-align:middle;
  accent-color:#25865d;
}
.profile-page-redesign .notification-preferences-form .btn{
  align-self:flex-start;
  margin-top:11px;
  min-height:34px;
  padding:7px 13px;
  font-size:12px;
}
@media(max-width:760px){
 .profile-page-redesign .notification-preferences-card{max-width:100%;padding:14px}
 .profile-page-redesign .notification-preferences-form .preference-toggle{min-height:40px}
}


/* Smooth, accessible page navigation and activity-feed controls */
html{scroll-behavior:smooth}
body{opacity:1;transition:opacity .16s ease,transform .16s ease}
body.page-leaving{opacity:0;transform:translateY(4px)}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}body{transition:none}body.page-leaving{transform:none}}
.activity-filter-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 18px}
.activity-filter-tabs a,.activity-pagination a{display:inline-flex;align-items:center;justify-content:center;padding:8px 13px;border:1px solid var(--border);border-radius:999px;color:var(--muted);font-size:13px;text-decoration:none;transition:background .18s ease,color .18s ease,border-color .18s ease}
.activity-filter-tabs a:hover,.activity-filter-tabs a.active{background:var(--accent,#25865d);border-color:var(--accent,#25865d);color:#fff}
.activity-pagination{display:flex;align-items:center;justify-content:center;gap:18px;padding-top:18px;color:var(--muted);font-size:13px}
.activity-pagination a{color:var(--ink)}
@media(max-width:600px){.activity-filter-tabs{gap:6px}.activity-filter-tabs a{padding:7px 10px;font-size:12px}.activity-pagination{gap:10px;flex-wrap:wrap}}


/* Privacy & account data: clear, responsive account-management design */
.privacy-data-card{margin:18px 0!important;padding:21px!important;border:1px solid #e6d9d2!important;border-radius:17px!important;background:linear-gradient(145deg,#fff 0%,#fffaf7 100%)}
.privacy-data-heading{display:flex;align-items:center;gap:13px;margin-bottom:17px}
.privacy-data-icon{width:44px;height:44px;flex:0 0 44px;border-radius:14px;display:grid;place-items:center;background:#fff0e9;color:#b65e3d;font-size:22px}
.privacy-data-heading h2{font:800 17px Manrope,sans-serif;margin:3px 0 4px;color:var(--ink)}
.privacy-data-heading p{margin:0;font-size:11px;line-height:1.5}
.privacy-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.privacy-action-card{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:16px;border:1px solid var(--line);border-radius:13px;background:var(--surface,#fff)}
.privacy-action-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#eaf7ef;color:#23865b;font-weight:800}
.privacy-action-card>div{min-width:0}
.privacy-action-card>div>b{font-size:13px;color:var(--ink)}
.privacy-action-card p{font-size:11px;line-height:1.55;color:var(--muted);margin:5px 0 0}
.privacy-action-card>.btn{margin-top:auto}
.privacy-danger-action{border-color:#f0d6cc;background:#fffaf8}
.privacy-danger-action .privacy-action-icon{background:#ffebe5;color:#b94f36}
.privacy-delete-form{display:grid;gap:8px;width:100%;margin-top:2px}
.privacy-delete-form label{font-size:11px;font-weight:700;color:var(--ink)}
.privacy-delete-form input{width:100%;min-width:0}
.privacy-delete-form .btn{width:100%;white-space:normal}
.privacy-data-footnote{margin:13px 0 0;padding:10px 12px;border-radius:9px;background:#fff3ed;color:#805441;font-size:10px;line-height:1.55}
body.dark-mode .privacy-data-card{background:#18251e;border-color:#4c423b!important}
body.dark-mode .privacy-action-card{background:#142119;border-color:#34483d}
body.dark-mode .privacy-danger-action{background:#251d1a;border-color:#69483d}
body.dark-mode .privacy-data-footnote{background:#30231e;color:#e4b9a7}

/* Expense split controls: clearer equal-split action and live amount summary */
.participant-picker{background:var(--surface,#fff)}
.participant-picker-head{align-items:center;gap:12px;flex-wrap:wrap}
.participant-picker-head>div{display:grid;gap:3px}
.participant-picker-head>div>b{font-size:13px;color:var(--ink)}
.participant-picker-head>div>small{font-size:10px;color:var(--muted);font-weight:400}
.equal-split-button{display:inline-flex;align-items:center;gap:9px;padding:8px 12px;border:1px solid #b9dfc8;border-radius:11px;background:#eff9f2;color:#176b45;cursor:pointer;text-align:left;transition:background .18s,border-color .18s,transform .18s}
.equal-split-button:hover{background:#e2f4e8;border-color:#80c69c;transform:translateY(-1px)}
.equal-split-button>span:last-child{display:grid;gap:2px}
.equal-split-button b{font-size:11px;line-height:1.2}
.equal-split-button small{font-size:9px;color:#5d8b70}
.equal-split-icon{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:#d9f0e1;font-size:19px;font-weight:800}
.custom-share-list{gap:8px}
.custom-share-row{min-width:0;gap:10px;padding:10px 12px;background:var(--surface,#fff);transition:border-color .18s,background .18s}
.custom-share-row:focus-within{border-color:#82c69d;background:#f8fcf9}
.custom-share-person{min-width:0}
.custom-share-name{min-width:0;overflow-wrap:anywhere}
.custom-share-amount input{max-width:100%;font-variant-numeric:tabular-nums}
.share-summary-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;padding:10px;border-radius:11px;background:#f3f8f4}
.share-summary-panel .share-total-line{display:grid;gap:4px;padding:3px 5px}
.share-summary-panel .share-total-line span{font-size:10px;color:var(--muted)}
.share-summary-panel .share-total-line strong{font-size:14px;color:var(--ink)}
body.dark-mode .equal-split-button{background:#183326;border-color:#38674c;color:#b9e8c9}
body.dark-mode .equal-split-button:hover{background:#204331}
body.dark-mode .equal-split-button small{color:#a0c9ae}
body.dark-mode .equal-split-icon{background:#28533b;color:#d1f0da}
body.dark-mode .custom-share-row{background:#142119}
body.dark-mode .custom-share-row:focus-within{background:#1a3023}
body.dark-mode .share-summary-panel{background:#142119}
@media(max-width:760px){
 .privacy-data-card{padding:15px!important}
 .privacy-action-grid{grid-template-columns:minmax(0,1fr)}
 .privacy-action-card{padding:13px}
 .privacy-data-heading{align-items:flex-start}
 .participant-picker{padding:11px}
 .participant-picker-head{align-items:stretch}
 .equal-split-button{width:100%;justify-content:flex-start}
 .custom-share-row{align-items:center;padding:9px;gap:7px}
 .custom-share-person{flex:1 1 auto;min-width:0}
 .custom-share-amount{flex:0 0 112px;justify-content:flex-end}
 .custom-share-amount input{width:88px!important;min-width:0;padding:9px 7px!important}
 .share-summary-panel{grid-template-columns:minmax(0,1fr)}
 .share-summary-panel .share-total-line{display:flex;align-items:center}
}
@media(max-width:380px){
 .custom-share-amount{flex-basis:100px}
 .custom-share-amount input{width:76px!important}
 .mini-avatar{flex:0 0 27px}
}


/* Dark mode completion: privacy/account data and expense split components */
body.dark-mode .privacy-data-card{
  background:#17251d!important;
  border-color:#3a5143!important;
  color:#e7f1e9!important;
}
body.dark-mode .privacy-data-heading h2,
body.dark-mode .privacy-action-card>div>b,
body.dark-mode .privacy-delete-form label,
body.dark-mode .privacy-data-footnote strong{
  color:#edf7ef!important;
}
body.dark-mode .privacy-data-heading p,
body.dark-mode .privacy-action-card p{
  color:#a9bdb0!important;
}
body.dark-mode .privacy-data-icon{
  background:#294936!important;color:#bde8ca!important;
}
body.dark-mode .privacy-action-card{
  background:#1b2c22!important;
  border-color:#3a5143!important;
  color:#e7f1e9!important;
}
body.dark-mode .privacy-action-icon{
  background:#294936!important;color:#bde8ca!important;
}
body.dark-mode .privacy-danger-action{
  background:#30231f!important;
  border-color:#68483d!important;
}
body.dark-mode .privacy-danger-action .privacy-action-icon{
  background:#513329!important;color:#ffc0a9!important;
}
body.dark-mode .privacy-data-footnote{
  background:#30251f!important;color:#d8b9aa!important;
}
body.dark-mode .privacy-delete-form input{
  background:#101a14!important;
  border-color:#465c4c!important;
  color:#edf7ef!important;
}
body.dark-mode .privacy-delete-form input::placeholder{color:#91a698!important}
body.dark-mode .privacy-action-card .btn-ghost{
  background:#24382b!important;
  border-color:#46634f!important;
  color:#d9f0df!important;
}
body.dark-mode .participant-picker{
  background:#17251d!important;
  border-color:#3a5143!important;
  color:#e7f1e9!important;
}
body.dark-mode .participant-picker-head>div>b,
body.dark-mode .custom-share-name,
body.dark-mode .share-summary-panel .share-total-line strong{
  color:#edf7ef!important;
}
body.dark-mode .participant-picker-head>div>small,
body.dark-mode .custom-share-row .muted,
body.dark-mode .share-summary-panel .share-total-line span{
  color:#a9bdb0!important;
}
body.dark-mode .custom-share-row{
  background:#1b2c22!important;
  border-color:#3a5143!important;
  color:#e7f1e9!important;
}
body.dark-mode .custom-share-row:focus-within{
  background:#20392a!important;
  border-color:#5b9b70!important;
}
body.dark-mode .custom-share-amount{color:#a9bdb0!important}
body.dark-mode .custom-share-amount input{
  background:#101a14!important;
  border-color:#465c4c!important;
  color:#edf7ef!important;
}
body.dark-mode .custom-share-amount input:focus{
  outline:2px solid #5b9b70!important;
  border-color:#5b9b70!important;
}
body.dark-mode .share-summary-panel{
  background:#101a14!important;
  border:1px solid #344b3b!important;
}
body.dark-mode .share-total-line strong{color:#edf7ef}
body.dark-mode .equal-split-button{
  background:#244431!important;
  border-color:#477b56!important;
  color:#d8f3df!important;
}
body.dark-mode .equal-split-button:hover{
  background:#2d563b!important;
  border-color:#66a879!important;
}
body.dark-mode .equal-split-button small{color:#b0d8ba!important}
body.dark-mode .equal-split-icon{
  background:#356347!important;color:#e4f8e9!important;
}
body.dark-mode .expense-detail-card{
  border-color:#344b3b!important;
}
body.dark-mode .expense-share-chip{
  background:#20372a!important;color:#e7f1e9!important;
}
body.dark-mode .expense-share-chip b,
body.dark-mode .expense-share-chip .member-profile-name{
  color:#edf7ef!important;
}
body.dark-mode .expense-share-chip small,
body.dark-mode .payer-exclusion-note{
  color:#a9bdb0!important;
}
body.dark-mode .expense-detail-card .expense-row>div>b,
body.dark-mode .expense-detail-card .expense-row>strong{
  color:#edf7ef!important;
}
@media(max-width:760px){
 body.dark-mode .privacy-action-card,
 body.dark-mode .custom-share-row,
 body.dark-mode .share-summary-panel{box-shadow:none}
}

/* Barkada Quests visual identity */
.brand .brand-mark{width:46px;height:46px;flex:0 0 46px;object-fit:contain;background:transparent;border-radius:0;box-shadow:none;display:block}
.feature-shell .feature-sidebar .brand .brand-mark{width:48px;height:48px;flex-basis:48px}
.auth-brand>.brand .brand-mark{width:54px;height:54px;flex-basis:54px}
@media(max-width:480px){.feature-shell .feature-head .brand .brand-mark{width:38px;height:38px;flex-basis:38px}}

/* Barkada Quests — prevent payment QR images and their labels from overflowing balance cards. */
.balance-payment-card,
.payer-qr-grid,
.pay-qr-inline,
.pay-qr-inline > div {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.payer-qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
  width: 100%;
}

.pay-qr-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
  overflow-wrap: anywhere;
}

.pay-qr-inline img {
  display: block;
  width: clamp(76px, 22vw, 112px);
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  flex: 0 1 112px;
  object-fit: contain;
  box-sizing: border-box;
}

.pay-qr-inline > div {
  flex: 1 1 110px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pay-qr-inline b,
.pay-qr-inline small {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .payer-qr-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pay-qr-inline {
    align-items: center;
    gap: 10px;
    padding: 10px;
  }

  .pay-qr-inline img {
    width: 88px;
    flex-basis: 88px;
  }
}

/* Final balance-card containment: keep QR images and all related text inside cards. */
.balance-payment-card,
.balance-payment-card > *,
.balance-payment-main,
.balance-payment-main > div,
.payer-qr-grid,
.pay-qr-inline,
.pay-qr-inline > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.balance-payment-card {
  width: 100%;
}

.balance-payment-main {
  align-items: flex-start;
  flex-wrap: wrap;
}

.balance-payment-main > div {
  flex: 1 1 190px;
  overflow-wrap: anywhere;
}

.balance-payment-main > strong {
  flex: 0 0 auto;
  margin-left: auto;
}

.payer-qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 10px;
  width: 100%;
}

.pay-qr-inline {
  display: grid;
  grid-template-columns: minmax(76px, 112px) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  overflow: hidden;
}

.pay-qr-inline img {
  display: block;
  width: 100%;
  max-width: 112px;
  min-width: 0;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex: none;
}

.pay-qr-inline > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pay-qr-inline b,
.pay-qr-inline small {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.payment-submit-form,
.payment-submit-form label,
.payment-submit-form input {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .payer-qr-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pay-qr-inline {
    grid-template-columns: minmax(72px, 88px) minmax(0, 1fr);
    gap: 9px;
    padding: 9px;
  }

  .pay-qr-inline img {
    max-width: 88px;
  }

  .balance-payment-main > div {
    flex-basis: 150px;
  }
}

@media (max-width: 360px) {
  .pay-qr-inline {
    grid-template-columns: minmax(64px, 76px) minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .pay-qr-inline b {
    font-size: 10px;
  }

  .pay-qr-inline small {
    font-size: 9px;
  }
}


/* Barkada Quests: styled remove-QR actions */
.qr-remove-button{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  justify-self:start;min-height:38px;margin-top:2px;padding:7px 13px;
  border:1px solid #e5a5a5;border-radius:999px;
  background:linear-gradient(180deg,#fff8f8 0%,#fff0f0 100%);
  color:#b4232f;font:inherit;font-size:11px;font-weight:800;letter-spacing:.1px;
  cursor:pointer;transition:background .18s ease,border-color .18s ease,
    color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.qr-remove-button:hover{background:#b4232f;border-color:#b4232f;color:#fff;
  box-shadow:0 5px 14px rgba(180,35,47,.18);transform:translateY(-1px)}
.qr-remove-button:focus-visible{outline:3px solid rgba(220,65,75,.28);outline-offset:3px}
.qr-remove-icon{display:grid;place-items:center;width:19px;height:19px;
  border-radius:50%;background:rgba(180,35,47,.11);font-size:17px;
  line-height:1;font-weight:500}
.qr-remove-button:hover .qr-remove-icon{background:rgba(255,255,255,.2)}
body.dark-mode .qr-remove-button{background:#321d20;border-color:#754047;color:#ff9da5}
body.dark-mode .qr-remove-button:hover{background:#a92d3b;border-color:#a92d3b;color:#fff}
body.dark-mode .qr-remove-icon{background:rgba(255,157,165,.12)}
@media(max-width:600px){.qr-remove-button{min-height:40px;padding:8px 13px}}

/* Plan comments and reactions on the dashboard overview */
.plan-overview-social{margin-top:14px;padding-top:11px;border-top:1px solid var(--line)}
.plan-overview-stats{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:9px;font-size:12px;color:var(--muted)}
.plan-overview-stats a{color:inherit;text-decoration:none}
.plan-overview-stats a:hover{color:var(--accent,#269c6b);text-decoration:underline}
.plan-overview-reactions{display:flex;gap:6px;flex-wrap:wrap}
.plan-overview-reactions .photo-reaction-button{width:34px;height:32px;border-radius:10px;font-size:16px}
.plan-overview-reactions .photo-reaction-button:disabled{opacity:.65;cursor:wait}


/* Plan reaction people tooltips and compact poll date controls on small screens */
.plan-overview-reactions .plan-reaction-button{position:relative;cursor:pointer}
.plan-overview-reactions .plan-reaction-button[data-reaction-people]:not([data-reaction-people=""]):hover::after,.plan-overview-reactions .plan-reaction-button:focus-visible::after{content:attr(data-reaction-people);position:absolute;z-index:30;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);width:max-content;max-width:min(240px,75vw);padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--card,#fff);color:var(--ink);box-shadow:0 8px 24px #0002;font:500 11px/1.4 'DM Sans',sans-serif;white-space:normal;overflow-wrap:anywhere;pointer-events:none}
.plan-overview-reactions .plan-reaction-button:focus-visible{outline:2px solid var(--accent,#269c6b);outline-offset:2px}
.poll-closing-time{display:inline-block;max-width:100%;overflow-wrap:anywhere}
.overview-poll-create input[type="datetime-local"]{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;font-size:12px}
@media(max-width:600px){
 .plan-overview-social{min-width:0}
 .plan-overview-reactions{gap:5px}
 .plan-overview-reactions .photo-reaction-button{width:36px;height:36px;flex:0 0 36px}
 .plan-overview-reactions .plan-reaction-button[data-reaction-people]:not([data-reaction-people=""]):hover::after,.plan-overview-reactions .plan-reaction-button:focus-visible::after{left:0;transform:none;max-width:70vw}
 .overview-poll-create .feature-form label{min-width:0}
 .overview-poll-create input[type="datetime-local"]{font-size:11px;padding:9px 7px;letter-spacing:-.2px}
 .poll-closing-time{display:block;margin-top:3px;font-size:10px;line-height:1.35}
 .poll-closing-label{white-space:nowrap}
 .poll-history-card .feature-title-row{align-items:flex-start;gap:7px}
 .poll-history-card .feature-title-row>div{min-width:0;flex:1}
}


/* Plan reactions inside the full plan view */
.plan-detail-social{min-width:0;overflow:visible}
.plan-detail-reactions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:10px 0 2px}
.plan-detail-reactions .plan-reaction-button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:5px;width:auto;min-width:48px;height:44px;padding:0 10px;border-radius:13px;font-size:20px}
.plan-detail-reactions .plan-reaction-button .plan-emoji-count{font-size:11px;font-weight:700;color:var(--muted)}
.plan-detail-reactions .plan-reaction-button[data-reaction-people]:not([data-reaction-people=""]):hover::after,.plan-detail-reactions .plan-reaction-button:focus-visible::after{content:attr(data-reaction-people);position:absolute;z-index:40;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);width:max-content;max-width:min(260px,75vw);padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:var(--card,#fff);color:var(--ink);box-shadow:0 8px 24px #0002;font:500 11px/1.45 'DM Sans',sans-serif;white-space:normal;overflow-wrap:anywhere;pointer-events:none}
.plan-reaction-hint{margin:8px 0 0}
@media(max-width:600px){.plan-detail-reactions{gap:7px}.plan-detail-reactions .plan-reaction-button{min-width:43px;height:42px;padding:0 8px;font-size:18px}.plan-detail-reactions .plan-reaction-button[data-reaction-people]:not([data-reaction-people=""]):hover::after,.plan-detail-reactions .plan-reaction-button:focus-visible::after{left:0;transform:none;max-width:72vw}.plan-detail-social .section-heading{align-items:flex-start;gap:8px;flex-wrap:wrap}}


/* Persistent sign-in option on the login page. */
.remember-me-row.remember-me-label {
  display: block;
  position: static;
  padding-left: 20px;
  margin-bottom: 0;
  cursor: pointer;
}

.remember-me-label input[type="checkbox"] {
  position: flex;
  opacity: 0;
  cursor: pointer;
}

.remember-me-label span {
  position: flex;
  left: 0;
  top: 0;
  line-height: 20px;
  transition: all 0.2s ease;
}

.remember-me-label input[type="checkbox"]:checked + span {
  color: #238b62;
}


/* Payment QR positioning fix: keep saved QR previews in their own fixed frame. */
.payment-details-form .qr-options-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 14px !important;
  width: 100%;
}
.payment-details-form .qr-option {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 154px auto auto !important;
  align-content: start !important;
  align-items: start !important;
  justify-items: stretch !important;
  gap: 9px !important;
  position: relative !important;
  min-width: 0 !important;
  overflow: visible !important;
}
.payment-details-form .qr-option-preview {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 154px !important;
  min-height: 0 !important;
  max-height: 154px !important;
  padding: 8px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
.payment-details-form .qr-option-preview img {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  flex: 0 1 auto !important;
  margin: 0 auto !important;
}
.payment-details-form .qr-option > label.qr-image-dropzone {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 135px !important;
  max-height: none !important;
  margin: 0 !important;
  transform: none !important;
  box-sizing: border-box !important;
}
.payment-details-form .qr-option > .qr-remove-button {
  position: static !important;
  inset: auto !important;
  grid-column: 1 !important;
  grid-row: 3 !important;
  justify-self: start !important;
  align-self: start !important;
  margin: 0 !important;
  z-index: 1 !important;
}
@media (max-width: 600px) {
  .payment-details-form .qr-options-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .payment-details-form .qr-option-preview {
    height: 170px !important;
    max-height: 170px !important;
  }
  .payment-details-form .qr-option {
    grid-template-rows: 170px auto auto !important;
  }
}


/* Barkada Quests responsive + dark-theme consistency repair */
body.dark-mode .feature-panel,
body.dark-mode .profile-card,
body.dark-mode .social-profile-head,
body.dark-mode .social-profile-post,
body.dark-mode .activity-feed-panel,
body.dark-mode .member-profile-about,
body.dark-mode .feed-composer,
body.dark-mode .feed-post,
body.dark-mode .online-panel {
  background: #18251e !important;
  color: var(--ink, #e6f1eb) !important;
  border-color: #34483d !important;
}
body.dark-mode .feature-panel h1,
body.dark-mode .feature-panel h2,
body.dark-mode .feature-panel h3,
body.dark-mode .profile-card h1,
body.dark-mode .profile-card h2,
body.dark-mode .profile-card h3,
body.dark-mode .social-profile-head h1,
body.dark-mode .social-profile-post h3,
body.dark-mode .member-profile-dialog h2,
body.dark-mode .member-profile-dialog h3,
body.dark-mode .member-profile-dialog h4 {
  color: #e6f1eb !important;
}
body.dark-mode .feature-panel p,
body.dark-mode .profile-card p,
body.dark-mode .social-profile-post p,
body.dark-mode .member-profile-dialog p,
body.dark-mode .member-profile-dialog small,
body.dark-mode .member-profile-dialog label {
  color: #a9beb2;
}
body.dark-mode .feature-panel input,
body.dark-mode .feature-panel textarea,
body.dark-mode .profile-card input,
body.dark-mode .profile-card textarea,
body.dark-mode .profile-card select,
body.dark-mode .member-profile-dialog input,
body.dark-mode .member-profile-dialog textarea {
  background: #101a16 !important;
  color: #e6f1eb !important;
  border-color: #40564a !important;
}
body.dark-mode .image-upload-dropzone {
  background: #1d3026 !important;
  border-color: #527b62 !important;
  color: #e6f1eb !important;
}
body.dark-mode .image-upload-dropzone b,
body.dark-mode .image-upload-dropzone small,
body.dark-mode .image-upload-filename {
  color: #c7ded0 !important;
}
.image-upload-dropzone {
  min-height: 112px !important;
  padding: 12px !important;
  gap: 6px !important;
  border-radius: 13px !important;
}
.image-upload-dropzone .upload-drop-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  font-size: 19px !important;
}
.image-upload-preview {
  width: auto !important;
  max-width: min(100%, 220px) !important;
  max-height: 145px !important;
  object-fit: contain !important;
}
.compact-image-upload { min-height: 105px !important; }
.profile-upload-form > .btn,
.profile-upload-form button,
.cover-upload-form > button {
  width: auto !important;
  min-width: 0 !important;
  min-height: 36px !important;
  padding: 8px 14px !important;
  font-size: 12px !important;
}
.social-profile-cover {
  width: 100%;
  max-width: 100%;
  background-size: cover !important;
  background-position: center !important;
}
.social-profile-grid { min-width: 0; }
.social-profile-post, .social-profile-head, .social-profile-grid > * { min-width: 0; }
.about-you-profile-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.about-you-form textarea { width: 100%; min-height: 100px; resize: vertical; }
.about-you-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.member-profile-dialog {
  width: min(620px, calc(100vw - 28px)) !important;
  max-height: min(90dvh, 820px) !important;
  overflow-y: auto !important;
}
.member-profile-modal-content { min-width: 0; overflow-wrap: anywhere; }
.member-profile-card-content > div:first-child {
  width: 100%;
  max-width: 100%;
  background-size: cover !important;
  background-position: center !important;
}
.member-profile-about {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line, #dce5df);
  border-radius: 12px;
  background: var(--panel, #fff);
}
.member-profile-about p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.activity-filter-list { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 18px; }
.activity-filter-chip { display:inline-flex; align-items:center; min-height:34px; padding:7px 12px; border:1px solid var(--line); border-radius:999px; color:var(--ink); text-decoration:none; font-size:12px; font-weight:700; }
.activity-filter-chip.active { background:#1f9568; border-color:#1f9568; color:#fff; }
.activity-list { display:grid; gap:0; }
.activity-item { display:flex; align-items:center; gap:13px; padding:14px 4px; border-top:1px solid var(--line); color:var(--ink); text-decoration:none; min-width:0; }
.activity-item:hover { background:var(--bg); }
.activity-item-icon { display:grid; place-items:center; width:40px; height:40px; flex:0 0 40px; border-radius:12px; background:var(--bg); font-size:19px; }
.activity-item-copy { display:grid; gap:4px; min-width:0; flex:1; }
.activity-item-copy b { font-size:13px; overflow-wrap:anywhere; }
.activity-item-copy small { color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.activity-item-copy time { color:var(--muted); font-size:10px; }
.activity-item-arrow { color:var(--muted); font-size:22px; }
.activity-empty-state { padding:35px 14px; text-align:center; }
.activity-empty-state > span { font-size:25px; color:#269765; }
.activity-pagination { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding-top:16px; border-top:1px solid var(--line); }
@media(max-width:700px) {
  .social-profile-cover { height:170px !important; max-height:none !important; min-height:130px !important; }
  .social-profile-head { padding:0 14px 16px !important; }
  .social-profile-id { align-items:center !important; flex-wrap:wrap; }
  .social-profile-grid { grid-template-columns:minmax(0,1fr) !important; }
  .activity-item { align-items:flex-start; }
  .member-profile-dialog { padding:18px !important; }
}

/* Core theme surface tokens: several feature pages consume these inline. */
body.dark-mode {
  --panel: #18251e !important;
  --border: #34483d !important;
  --line: #34483d !important;
  --bg: #101a16 !important;
  --ink: #e6f1eb !important;
  --muted: #a9beb2 !important;
  color: #e6f1eb !important;
}
body.dark-mode .feed-composer,
body.dark-mode .feed-post,
body.dark-mode .online-panel {
  background: #18251e !important;
  border-color: #34483d !important;
  color: #e6f1eb !important;
}
body.dark-mode .feed-composer label,
body.dark-mode .feed-post b,
body.dark-mode .online-panel h3,
body.dark-mode .online-name b { color: #e6f1eb !important; }
body.dark-mode .feed-composer textarea {
  background: #101a16 !important;
  border-color: #40564a !important;
  color: #e6f1eb !important;
}
body.dark-mode .feed-composer textarea::placeholder { color: #9aafa4 !important; }
body.dark-mode .feed-post-foot { border-color: #34483d !important; }
body.dark-mode .member-profile-dialog {
  background: #18251e !important;
  color: #e6f1eb !important;
  border-color: #40564a !important;
}
body.dark-mode .member-profile-dialog .member-profile-facts > div,
body.dark-mode .member-profile-dialog article {
  background: #142019 !important;
  border-color: #34483d !important;
  color: #e6f1eb !important;
}
body.dark-mode .member-profile-dialog a { color: #7bd5a8; }

.social-profile-cover img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.social-profile-cover-placeholder { width:100%; height:100%; background:linear-gradient(120deg,#174c38,#7dbb91); }
.member-profile-cover { width:100%; height:130px; overflow:hidden; border-radius:12px; background:linear-gradient(120deg,#174c38,#7dbb91); }
.member-profile-cover img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.member-profile-cover-placeholder { width:100%; height:100%; }

/* Newsfeed typography and separator contrast */
.feed-composer, .feed-post, .online-panel { color: var(--ink, #26352d); }
.feed-post small, .feed-post .muted, .online-panel .muted,
.feed-post-foot, .feed-seen, .online-name small { color: #65766c !important; }
.feed-post-foot { border-top: 1px solid #cbd7cf !important; }
.activity-item { border-color: #cbd7cf !important; }
body.dark-mode .feed-composer,
body.dark-mode .feed-post,
body.dark-mode .online-panel { color: #e6f1eb !important; }
body.dark-mode .feed-post small,
body.dark-mode .feed-post .muted,
body.dark-mode .online-panel .muted,
body.dark-mode .feed-post-foot,
body.dark-mode .feed-seen,
body.dark-mode .online-name small { color: #c0cec5 !important; }
body.dark-mode .feed-post-foot,
body.dark-mode .activity-item { border-color: #52665a !important; }
body.dark-mode .feed-post-body,
body.dark-mode .feed-post-head b,
body.dark-mode .online-name b { color: #e6f1eb !important; }
.social-profile-id { position:relative; margin-top:16px !important; }
.social-profile-avatar { flex:0 0 112px; }
@media(max-width:760px) {
 .social-profile-id { margin-top:14px !important; align-items:center !important; }
 .social-profile-avatar { flex-basis:88px; }
}

.member-profile-modal[hidden] { display:none !important; }
.member-profile-modal { position:fixed; inset:0; z-index:1500; display:grid; place-items:center; padding:18px; }
.member-profile-backdrop { position:absolute; inset:0; background:rgba(5,15,10,.72); }
.member-profile-dialog { position:relative; z-index:1; width:min(680px,calc(100vw - 28px)); max-height:90vh; overflow:auto; padding:22px; border-radius:18px; background:var(--panel,#fff); color:var(--ink,#26352d); border:1px solid var(--border,#d5dfd8); box-shadow:0 24px 80px rgba(0,0,0,.3); }
.member-profile-close { position:sticky; top:0; float:right; z-index:2; }
.member-profile-cover { width:100%; height:150px; overflow:hidden; border-radius:12px; }
.member-profile-cover img { width:100%; height:100%; display:block; object-fit:cover; }
.member-profile-hero { margin-top:14px !important; padding:0 12px !important; display:flex; align-items:center; gap:14px; }
.member-profile-avatar { width:84px; height:84px; flex:0 0 84px; border-radius:50%; object-fit:cover; border:3px solid var(--panel,#fff); }
body.dark-mode .member-profile-dialog { background:#18251e; color:#e6f1eb; border-color:#52665a; }
body.dark-mode .member-profile-dialog p, body.dark-mode .member-profile-dialog small { color:#c0cec5; }
@media(max-width:560px) {
 .member-profile-modal { padding:8px; }
 .member-profile-dialog { width:calc(100vw - 16px); max-height:94vh; padding:14px; }
 .member-profile-cover { height:120px; }
 .member-profile-hero { align-items:flex-start; gap:10px; }
 .member-profile-avatar { width:68px; height:68px; flex-basis:68px; }
}


/* Barkada Quests profile inline editing + consistent themed scrollbars */
:root{scrollbar-color:#7c9d89 #eaf0ec;scrollbar-width:thin}
*{scrollbar-width:thin;scrollbar-color:#7c9d89 transparent}
*::-webkit-scrollbar{width:10px;height:10px}
*::-webkit-scrollbar-track{background:rgba(110,135,119,.10);border-radius:20px}
*::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#8eae99,#527b62);border:2px solid transparent;background-clip:padding-box;border-radius:20px}
*::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#6f987d,#3e6b50);border:2px solid transparent;background-clip:padding-box}
*::-webkit-scrollbar-corner{background:transparent}
body.dark-mode,:root:has(body.dark-mode){scrollbar-color:#587764 #17251d}
body.dark-mode *{scrollbar-color:#668b73 transparent}
body.dark-mode *::-webkit-scrollbar-track{background:rgba(190,220,200,.07)}
body.dark-mode *::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#739b80,#42634e);border:2px solid transparent;background-clip:padding-box}
/* Consistent scrolling behavior for all overlay and modal content */
[class*="modal"],[class*="dialog"],[class*="modal"] *{overscroll-behavior:contain}
.plan-modal,.plan-view-modal,.member-profile-dialog,.photo-detail-modal,.modal-content{scrollbar-gutter:stable;overscroll-behavior:contain}
.profile-cover-editable{position:relative}
.profile-cover-change{position:absolute;right:16px;bottom:14px;z-index:3}
.profile-cover-change label{display:inline-flex;align-items:center;gap:7px;padding:10px 13px;border-radius:10px;background:rgba(12,28,19,.78);color:#fff;font-size:12px;font-weight:750;cursor:pointer;backdrop-filter:blur(8px)}
.profile-cover-change input,.profile-avatar-change input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.profile-avatar-editable{position:relative;flex:0 0 auto}
.profile-avatar-change{position:absolute;right:3px;bottom:7px;z-index:4}
.profile-avatar-change label{width:34px;height:34px;display:grid;place-items:center;border:3px solid var(--panel,#fff);border-radius:50%;background:#237c53;color:#fff;cursor:pointer;font-size:14px}
.profile-avatar-editable:hover .profile-avatar-change label,.profile-cover-editable:hover .profile-cover-change label{background:#155c3b}
.profile-inline-heading{display:flex;align-items:center;gap:9px;min-width:0}
.profile-inline-heading h1,.profile-inline-heading h2{margin:0;overflow-wrap:anywhere}
.profile-pencil{width:30px;height:30px;min-height:30px;flex:0 0 30px;border:1px solid var(--line);border-radius:9px;background:var(--bg,#f4f7f5);color:var(--ink);cursor:pointer}
.profile-pencil:hover{background:#dff3e6;color:#176b46}
.profile-inline-editor{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:9px;max-width:100%}
.profile-inline-editor[hidden]{display:none!important}
.profile-inline-editor input,.profile-inline-editor textarea{min-width:0;flex:1 1 190px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--bg,#fff);color:var(--ink);font:inherit}
.profile-inline-editor textarea{flex-basis:100%;resize:vertical}
.profile-editor-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:100%}
.profile-about-editor{padding:14px 0 4px;border-top:1px solid var(--line);margin-top:15px}
.profile-about-editor .about-you-profile-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}
.profile-member-since{margin-top:12px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.dark-mode .profile-pencil{background:#20352a;border-color:#40594a;color:#e4f0e8}
body.dark-mode .profile-inline-editor input,body.dark-mode .profile-inline-editor textarea{background:#111d17;border-color:#40594a;color:#e6f1eb}
@media(max-width:760px){.profile-cover-change{right:9px;bottom:9px}.profile-cover-change label{padding:9px 10px;font-size:10px}.profile-inline-heading{flex-wrap:wrap}.profile-inline-editor{align-items:stretch}.profile-inline-editor .btn{flex:1 1 auto}.social-profile-id{align-items:center!important}.profile-about-editor{min-width:0}}

/* v5: Profile banner and member modal layout correction */
.feature-shell .profile-page-wrap{width:100%;max-width:1160px;margin:0 auto;padding-top:24px;min-width:0}
.feature-shell .profile-page-wrap .social-profile-cover{position:relative;display:block;width:100%;height:clamp(190px,25vw,310px)!important;min-height:0!important;max-height:310px!important;aspect-ratio:auto!important;overflow:hidden;border-radius:16px 16px 0 0;background:#183a2b}
.feature-shell .profile-page-wrap .social-profile-cover>img{display:block;width:100%;height:100%!important;max-height:none!important;object-fit:cover;object-position:center}
.feature-shell .profile-page-wrap .social-profile-head{position:relative;padding:0 26px 22px;background:var(--panel,#fff);border:1px solid var(--line);border-top:0;border-radius:0 0 16px 16px;min-width:0}
.feature-shell .profile-page-wrap .social-profile-id{display:flex;align-items:flex-end;gap:18px;flex-wrap:wrap;margin-top:0!important;min-width:0}
.feature-shell .profile-page-wrap .profile-avatar-editable{width:112px;height:112px;margin-top:-40px;z-index:2;flex:0 0 112px}
.feature-shell .profile-page-wrap .social-profile-avatar{display:grid;place-items:center;width:112px!important;height:112px!important;max-width:112px!important;max-height:112px!important;border-radius:50%;border:4px solid var(--panel,#fff);object-fit:cover;overflow:hidden}
.feature-shell .profile-page-wrap .social-profile-name{padding:12px 0 5px;min-width:0;flex:1 1 180px}
.feature-shell .profile-page-wrap .social-profile-name h1{font-size:clamp(22px,2.5vw,30px);line-height:1.25}
.feature-shell .profile-page-wrap .profile-about-editor{margin-top:18px;padding-top:16px}
.feature-shell .profile-page-wrap .social-profile-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,300px);gap:18px;margin-top:22px;align-items:start}
.feature-shell .profile-page-wrap .social-profile-post{min-width:0}
.feature-shell .profile-page-wrap .profile-cover-change{bottom:14px;right:14px}
/* Keep member modal compact, avoid large blank header and inset scrollbar */
.member-profile-modal{padding:16px!important}
.member-profile-dialog{box-sizing:border-box;width:min(620px,calc(100vw - 32px))!important;max-height:min(86dvh,760px)!important;padding:20px!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#668b73 transparent}
.member-profile-dialog .member-profile-close{position:sticky;top:0;float:right;margin:0 0 -46px 0;z-index:5}
.member-profile-modal-content{clear:both;min-width:0;padding-top:20px}
.member-profile-dialog .member-profile-cover{height:150px!important;min-height:0!important;max-height:150px!important;overflow:hidden}
.member-profile-dialog .member-profile-cover img{height:100%!important;width:100%!important;object-fit:cover}
.member-profile-dialog .member-profile-hero{margin-top:14px!important;padding:0 4px 14px!important;min-height:0!important}
.member-profile-dialog .member-profile-facts{padding-top:4px}
.member-profile-dialog .member-profile-facts>div{padding:11px 0}
.member-profile-dialog .member-profile-about{margin-top:16px}
@media(max-width:760px){
 .feature-shell .profile-page-wrap{padding-top:12px}
 .feature-shell .profile-page-wrap .social-profile-cover{height:clamp(155px,37vw,215px)!important;max-height:215px!important;border-radius:12px 12px 0 0}
 .feature-shell .profile-page-wrap .social-profile-head{padding:0 15px 18px!important}
 .feature-shell .profile-page-wrap .profile-avatar-editable{width:84px;height:84px;flex-basis:84px;margin-top:-28px}
 .feature-shell .profile-page-wrap .social-profile-avatar{width:84px!important;height:84px!important;max-width:84px!important;max-height:84px!important}
 .feature-shell .profile-page-wrap .social-profile-id{gap:12px;align-items:center!important}
 .feature-shell .profile-page-wrap .social-profile-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 .member-profile-dialog{width:calc(100vw - 16px)!important;max-height:92dvh!important;padding:12px!important}
 .member-profile-modal-content{padding-top:14px}
 .member-profile-dialog .member-profile-cover{height:120px!important;max-height:120px!important}
}

/* Profile Bio Design v8: compact bio panel and refined profile content cards. */
.feature-shell .profile-page-wrap .profile-bio-card{margin-top:12px;padding:13px 15px;border:1px solid var(--line,#344b3e);border-radius:13px;background:rgba(255,255,255,.025)}
.feature-shell .profile-page-wrap .profile-bio-card .profile-inline-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.feature-shell .profile-page-wrap .profile-bio-card .profile-inline-heading h2{font-size:17px;line-height:1.3;margin:0}
.feature-shell .profile-page-wrap .profile-bio-card .about-you-profile-text{margin:8px 0 1px;font-size:14px;line-height:1.55}
.feature-shell .profile-page-wrap .profile-bio-empty-hint{margin:7px 0 0;color:var(--muted,#9aafa2);font-size:12px;line-height:1.45}
.feature-shell .profile-page-wrap .profile-bio-empty-action{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border:1px solid rgba(46,160,105,.35);border-radius:9px;background:rgba(35,124,83,.14);color:#55c58b;font-size:12px;font-weight:700;cursor:pointer}
.feature-shell .profile-page-wrap .profile-bio-card .profile-inline-editor{margin-top:10px}
.feature-shell .profile-page-wrap .profile-bio-card .profile-inline-editor textarea{min-height:76px;max-height:180px}
.feature-shell .profile-page-wrap .social-profile-grid{gap:16px;margin-top:18px}
.feature-shell .profile-page-wrap .social-profile-grid .social-profile-post{padding:14px 16px;margin:0 0 10px;border:1px solid var(--line,#344b3e);border-radius:12px;background:var(--panel,#17271f);box-sizing:border-box}
.feature-shell .profile-page-wrap .profile-info-card{padding:13px 14px;border-radius:12px}
.feature-shell .profile-page-wrap .profile-info-card h3{font-size:15px;margin:0 0 9px}
@media(max-width:760px){.feature-shell .profile-page-wrap .profile-bio-card{padding:11px 12px}.feature-shell .profile-page-wrap .social-profile-grid{margin-top:14px}.feature-shell .profile-page-wrap .social-profile-grid .social-profile-post{padding:12px}}

/* V12: compact top-right theme and profile controls */
.feature-actions,.topbar-right{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.header-profile-link{width:40px;height:40px;flex:0 0 40px;border-radius:50%;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line,#34483d);background:var(--panel,#18251e);color:var(--ink,#edf6f0);text-decoration:none;font-weight:800;font-size:14px;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.header-profile-link img{display:block;width:100%;height:100%;object-fit:cover}
.header-profile-link span{display:grid;place-items:center;width:100%;height:100%;background:rgba(40,145,99,.22)}
.header-profile-link:focus-visible{outline:2px solid #29a879;outline-offset:3px}
.feature-head,.topbar{min-width:0}
@media(max-width:520px){.feature-actions,.topbar-right{gap:7px}.header-profile-link{width:36px;height:36px;flex-basis:36px}.theme-toggle{white-space:nowrap}}

/* V13: shared appearance/profile controls on every page that loads feature_sidebar.php */
.global-page-controls{position:fixed;top:14px;right:18px;z-index:1200;display:flex;align-items:center;gap:9px;padding:5px;border:1px solid var(--line,#34483d);border-radius:15px;background:var(--panel,#17251d);box-shadow:0 8px 24px rgba(0,0,0,.18)}
.global-page-controls .theme-toggle{white-space:nowrap}
.global-page-controls .header-profile-link{width:40px;height:40px;flex:0 0 40px;border-radius:50%;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line,#34483d);background:var(--panel,#18251e);color:var(--ink,#edf6f0);text-decoration:none;font-weight:800;font-size:14px}
.global-page-controls .header-profile-link img{display:block;width:100%;height:100%;object-fit:cover}
.global-page-controls .header-profile-link span{display:grid;place-items:center;width:100%;height:100%;background:rgba(40,145,99,.22)}
.global-page-controls .header-profile-link:focus-visible{outline:2px solid #29a879;outline-offset:3px}
@media(max-width:520px){.global-page-controls{top:10px;right:10px;gap:6px;padding:4px}.global-page-controls .header-profile-link{width:36px;height:36px;flex-basis:36px}}

/* V14: explicit light/dark styling and viewport-safe positioning for global controls */
body:not(.dark-mode) .global-page-controls{
  background:#ffffff;
  border:1px solid #dce7df;
  box-shadow:0 8px 24px rgba(24,55,39,.12);
  color:#183326;
}
body:not(.dark-mode) .global-page-controls .theme-toggle{
  background:#f2f8f4;
  border:1px solid #d6e5db;
  color:#176b49;
}
body:not(.dark-mode) .global-page-controls .theme-toggle:hover{background:#e7f3eb}
body:not(.dark-mode) .global-page-controls .header-profile-link{
  background:#f2f8f4;
  border-color:#d6e5db;
  color:#176b49;
}
body.dark-mode .global-page-controls{
  background:#17251d;
  border-color:#34483d;
  color:#edf6f0;
}
body.dark-mode .global-page-controls .theme-toggle{
  background:#22352a;
  border-color:#3b5546;
  color:#c5ead5;
}
body.dark-mode .global-page-controls .theme-toggle:hover{background:#2a4334}
body.dark-mode .global-page-controls .header-profile-link{
  background:#18251e;
  border-color:#3b5546;
  color:#edf6f0;
}
.global-page-controls{
  max-width:calc(100vw - 76px);
  min-width:0;
  box-sizing:border-box;
}
.global-page-controls .theme-toggle{
  min-width:0;
  max-width:100%;
  padding:8px 11px;
  line-height:1.2;
  font-size:12px;
  flex:0 1 auto;
}
.global-page-controls .header-profile-link{flex-shrink:0}
@media(max-width:600px){
  .global-page-controls{top:9px;right:9px;gap:6px;padding:4px;border-radius:13px;max-width:calc(100vw - 64px)}
  .global-page-controls .theme-toggle{padding:7px 9px;font-size:11px;gap:4px}
  .global-page-controls .header-profile-link{width:34px;height:34px;flex-basis:34px}
}
@media(max-width:360px){
  .global-page-controls{right:7px;top:7px;gap:4px;padding:3px;max-width:calc(100vw - 56px)}
  .global-page-controls .theme-toggle{padding:6px 7px;font-size:10px}
  .global-page-controls .header-profile-link{width:32px;height:32px;flex-basis:32px}
}


/* Plan details: keep owner actions visible and tappable on every screen size. */
.plan-view-actions .plan-delete-form{
  display:flex !important;
  flex:0 1 auto;
  align-items:center;
  justify-content:flex-end;
  min-width:0;
  margin:0;
  visibility:visible;
  opacity:1;
}
.plan-view-actions .plan-delete-form .btn{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  white-space:normal;
  min-height:42px;
}
@media(max-width:700px){
  .plan-view-actions{
    display:flex !important;
    flex-direction:column;
    align-items:stretch !important;
    justify-content:flex-start !important;
    gap:10px;
    width:100%;
  }
  .plan-view-actions > a,
  .plan-view-actions > .plan-delete-form,
  .plan-view-actions .plan-delete-form .btn{
    display:flex !important;
    width:100% !important;
    max-width:100%;
    box-sizing:border-box;
  }
  .plan-view-actions .plan-delete-form{
    flex:0 0 auto;
    align-items:stretch;
  }
}


/* v34: Plan modal action buttons must remain visible on narrow phones.
   The modal is injected into Newsfeed, so bust the parent stylesheet cache too. */
.plan-view-detail .plan-view-actions{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  gap:10px !important;
  width:100% !important;
  min-width:0 !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}
.plan-view-detail .plan-view-actions > a,
.plan-view-detail .plan-view-actions > form{
  min-width:0 !important;
  max-width:100% !important;
  margin:0 !important;
  box-sizing:border-box !important;
}
.plan-view-detail .plan-view-actions > .plan-delete-form{
  display:flex !important;
  flex:0 1 auto !important;
  visibility:visible !important;
  opacity:1 !important;
}
@media(max-width:700px){
  .plan-view-detail .plan-view-actions{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
  }
  .plan-view-detail .plan-view-actions > a,
  .plan-view-detail .plan-view-actions > form,
  .plan-view-detail .plan-view-actions > form > button{
    display:flex !important;
    width:100% !important;
    max-width:100% !important;
    min-height:44px !important;
    box-sizing:border-box !important;
    justify-content:center !important;
    white-space:normal !important;
  }
  .plan-view-detail .plan-view-actions > .plan-delete-form{
    flex:0 0 auto !important;
    align-items:stretch !important;
  }
}


/* v45: Mobile fixes for profile notes, plan actions, and date/time fields */
@media (max-width: 700px) {
  /* Keep note bubbles beside their own avatar instead of above the member row,
     where they can collide with the Add/Edit Note control or be clipped. */
  .note-member-wrap { position:relative !important; overflow:visible !important; z-index:2; }
  .note-member-wrap.has-note { z-index:4; }
  .note-member-wrap .note-bubble {
    left:38px !important;
    right:auto !important;
    top:-5px !important;
    bottom:auto !important;
    transform:none !important;
    width:max-content;
    max-width:min(150px, calc(100vw - 110px)) !important;
    min-width:54px;
    white-space:normal !important;
    text-align:left !important;
    z-index:20 !important;
  }
  .note-member-wrap .note-bubble:after {
    left:8px !important;
    bottom:auto !important;
    top:10px !important;
    transform:translateX(-50%) rotate(45deg) !important;
  }
  #groupMembersPanel .online-list,
  #groupMembersPanel .online-member { overflow:visible !important; }
  #groupMembersPanel .online-member { position:relative; min-height:54px; }

  /* Make Edit and Delete visible as separate full-width actions. */
  .plan-view-detail .plan-view-actions {
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
    overflow:visible !important;
  }
  .plan-view-detail .plan-view-actions > a,
  .plan-view-detail .plan-view-actions > form,
  .plan-view-detail .plan-view-actions > form.plan-delete-form,
  .plan-view-detail .plan-view-actions > form.plan-delete-form > button {
    display:flex !important;
    position:relative !important;
    visibility:visible !important;
    opacity:1 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    min-height:46px !important;
    flex:0 0 auto !important;
    box-sizing:border-box !important;
    justify-content:center !important;
    align-items:center !important;
  }
  .plan-view-detail .plan-view-actions > form.plan-delete-form > button {
    white-space:normal !important;
  }

  /* Safari/iOS date and time controls have intrinsic widths. Let the grid
     shrink and stack the fields so they never spill outside the form card. */
  .feature-form .form-row,
  .feature-form .form-row:has(input[type="date"]),
  .feature-form .form-row:has(input[type="time"]) {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:12px !important;
    width:100% !important;
    min-width:0 !important;
  }
  .feature-form .form-row > label,
  .feature-form label { min-width:0 !important; width:100%; box-sizing:border-box; }
  .feature-form input[type="date"],
  .feature-form input[type="time"] {
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    -webkit-appearance:none;
    appearance:none;
  }
  .feature-panel, .feature-form { min-width:0 !important; max-width:100% !important; }
}


/* v46: Notes placement — desktop above avatar, phones inline after member name. */
#groupMembersPanel .online-member { position:relative; }
#groupMembersPanel .online-name { position:static; }
#groupMembersPanel .online-name .note-bubble {
  position:absolute !important;
  left:0 !important;
  right:auto !important;
  top:auto !important;
  bottom:calc(100% - 5px) !important;
  transform:none !important;
  display:block;
  width:max-content;
  max-width:118px;
  min-width:54px;
  white-space:normal;
  z-index:12;
}
#groupMembersPanel .online-name .note-bubble:after {
  left:50% !important;
  top:auto !important;
  bottom:-5px !important;
  transform:translateX(-50%) rotate(45deg) !important;
}
@media(max-width:700px) {
  #groupMembersPanel .online-member {
    display:flex !important;
    align-items:center !important;
    gap:9px !important;
    min-height:58px !important;
    overflow:visible !important;
  }
  #groupMembersPanel .online-name {
    display:block !important;
    flex:1 1 auto !important;
    min-width:0 !important;
    position:relative !important;
    overflow:visible !important;
  }
  #groupMembersPanel .online-name b {
    display:inline !important;
    vertical-align:middle;
  }
  #groupMembersPanel .online-name .note-bubble {
    position:static !important;
    display:inline-block !important;
    vertical-align:middle !important;
    margin-left:8px !important;
    transform:none !important;
    max-width:min(150px, calc(100vw - 220px)) !important;
    min-width:0 !important;
    width:auto !important;
    padding:5px 9px !important;
    border-radius:14px !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    font-size:11px !important;
    line-height:1.25 !important;
    z-index:2 !important;
  }
  #groupMembersPanel .online-name .note-bubble:after {
    display:none !important;
  }
  #groupMembersPanel .online-name small {
    display:block !important;
    margin-top:2px !important;
  }
}


/* v47: Compact note controls and previews in the Group Members list. */
#groupMembersPanel .online-name-line{
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  gap:7px;
  min-width:0;
}
#groupMembersPanel .note-inline-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  border:1px solid var(--line);
  border-radius:999px;
  padding:3px 8px;
  background:transparent;
  color:var(--muted);
  font-family:inherit; font-size:10px; font-weight:600; line-height:1.2;
  cursor:pointer;
  white-space:nowrap;
}
#groupMembersPanel .note-inline-action:hover{
  color:var(--ink);
  border-color:var(--accent,#269b75);
}
#groupMembersPanel .online-name .note-bubble{
  display:block !important;
  width:100%;
  max-width:180px !important;
  min-width:0 !important;
  padding:0 !important;
  margin-top:3px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:var(--muted) !important;
  font-size:11px !important;
  line-height:1.3 !important;
  text-align:left !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
#groupMembersPanel .online-name .note-bubble:after{display:none!important}
@media(max-width:700px){
  #groupMembersPanel .online-name .note-bubble{
    display:block !important;
    position:static !important;
    width:100% !important;
    max-width:190px !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    margin:3px 0 0 !important;
  }
  #groupMembersPanel .online-name-line{gap:6px}
  #groupMembersPanel .note-inline-action{font-size:10px;padding:3px 7px}
}

/* Full note text on profile pages: wrap naturally, never truncate. */
.member-note-bubble,.profile-note-bubble{
  max-width:min(260px,calc(100vw - 48px)) !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  overflow-wrap:anywhere !important;
}


/* v48: Notes preview in member list; full, responsive note on profile pages */
#groupMembersPanel .online-name .note-bubble {
  position:static !important;
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:2 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  width:auto !important;
  max-width:220px !important;
  min-width:0 !important;
  max-height:2.6em !important;
  margin:4px 0 2px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  color:var(--muted) !important;
  font-size:11px !important;
  line-height:1.3 !important;
  text-align:left !important;
}
#groupMembersPanel .online-name .note-bubble:after { display:none !important; }
#groupMembersPanel .online-name-line { display:flex !important; align-items:center !important; flex-wrap:wrap !important; gap:7px !important; }
#groupMembersPanel .note-inline-action {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:4px 8px !important;
  min-height:25px !important;
  border:1px solid var(--line) !important;
  border-radius:999px !important;
  background:transparent !important;
  color:var(--muted) !important;
  font-size:10px !important;
  line-height:1 !important;
  cursor:pointer !important;
}
#groupMembersPanel .note-inline-action:hover { color:var(--ink) !important; border-color:var(--accent) !important; }
.profile-note-full {
  display:block;
  width:calc(100% - 24px);
  max-width:100%;
  box-sizing:border-box;
  margin:12px 12px 16px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--panel);
  color:var(--ink);
  font-size:13px;
  line-height:1.55;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
  max-height:none !important;
  height:auto !important;
}
@media(max-width:700px) {
  #groupMembersPanel .online-name .note-bubble { max-width:min(220px, calc(100vw - 190px)) !important; }
  .profile-note-full { margin:10px 10px 14px; width:calc(100% - 20px); padding:11px 12px; }
}


/* v49: Notes remain speech bubbles everywhere.
   Group list uses a compact two-line bubble; profile pages show the full note bubble. */
#groupMembersPanel .online-name .note-bubble {
  position:relative !important;
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:2 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  width:fit-content !important;
  max-width:220px !important;
  min-width:64px !important;
  max-height:2.8em !important;
  margin:5px 0 3px !important;
  padding:6px 10px !important;
  border:1px solid var(--line) !important;
  border-radius:13px !important;
  box-shadow:0 3px 10px rgba(0,0,0,.12) !important;
  background:var(--panel) !important;
  color:var(--ink) !important;
  font-size:11px !important;
  line-height:1.35 !important;
  text-align:left !important;
}
#groupMembersPanel .online-name .note-bubble:after {
  display:block !important;
  content:"" !important;
  position:absolute !important;
  left:13px !important;
  bottom:-5px !important;
  top:auto !important;
  width:8px !important;
  height:8px !important;
  background:var(--panel) !important;
  border-right:1px solid var(--line) !important;
  border-bottom:1px solid var(--line) !important;
  transform:rotate(45deg) !important;
}
#groupMembersPanel .online-name-line { display:flex !important; align-items:center !important; flex-wrap:wrap !important; gap:7px !important; }
#groupMembersPanel .note-inline-action { position:relative; z-index:5; }
.member-note-anchor,.profile-note-anchor { position:relative !important; overflow:visible !important; }
.member-note-bubble,.profile-note-bubble {
  position:absolute !important;
  left:50% !important;
  bottom:calc(100% + 9px) !important;
  top:auto !important;
  transform:translateX(-50%) !important;
  z-index:20 !important;
  display:block !important;
  width:max-content !important;
  min-width:110px !important;
  max-width:min(270px, 72vw) !important;
  max-height:none !important;
  height:auto !important;
  padding:9px 12px !important;
  border-radius:15px !important;
  background:var(--panel) !important;
  color:var(--ink) !important;
  border:1px solid var(--line) !important;
  box-shadow:0 5px 16px rgba(0,0,0,.18) !important;
  font-size:12px !important;
  line-height:1.4 !important;
  text-align:center !important;
  white-space:pre-wrap !important;
  overflow:visible !important;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
}
.member-note-bubble:after,.profile-note-bubble:after {
  content:"" !important;
  position:absolute !important;
  left:50% !important;
  bottom:-5px !important;
  top:auto !important;
  width:9px !important;
  height:9px !important;
  background:var(--panel) !important;
  border-right:1px solid var(--line) !important;
  border-bottom:1px solid var(--line) !important;
  transform:translateX(-50%) rotate(45deg) !important;
}
body.dark-mode .member-note-bubble,body.dark-mode .profile-note-bubble {background:#18251e!important;color:#e6f1eb!important;border-color:#34483d!important}
body.dark-mode .member-note-bubble:after,body.dark-mode .profile-note-bubble:after {background:#18251e!important;border-color:#34483d!important}
@media(max-width:700px) {
  #groupMembersPanel .online-name .note-bubble { max-width:min(220px,calc(100vw - 190px)) !important; }
  .member-note-bubble,.profile-note-bubble { max-width:min(260px,78vw) !important; }
}


/* v50: Instagram/Facebook Notes bubble in Group Members list.
   Float above the avatar (not beside the name), with a short clamped preview. */
#groupMembersPanel .online-member {
  position:relative !important;
  overflow:visible !important;
}
#groupMembersPanel .online-name {
  position:static !important;
  overflow:visible !important;
}
#groupMembersPanel .online-name .note-bubble {
  position:absolute !important;
  left:-10px !important;
  right:auto !important;
  bottom:calc(100% - 7px) !important;
  top:auto !important;
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:3 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  width:max-content !important;
  max-width:min(205px, calc(100vw - 125px)) !important;
  min-width:82px !important;
  max-height:4.05em !important;
  margin:0 !important;
  padding:9px 13px !important;
  border:1px solid rgba(255,255,255,.12) !important;
  border-radius:19px !important;
  background:#6b2938 !important;
  color:#fff !important;
  box-shadow:0 4px 14px rgba(0,0,0,.24) !important;
  font-size:13px !important;
  line-height:1.35 !important;
  text-align:left !important;
  z-index:30 !important;
}
#groupMembersPanel .online-name .note-bubble:after {
  display:block !important;
  content:"" !important;
  position:absolute !important;
  left:25px !important;
  bottom:-6px !important;
  top:auto !important;
  width:11px !important;
  height:11px !important;
  background:#6b2938 !important;
  border:0 !important;
  border-right:1px solid rgba(255,255,255,.12) !important;
  border-bottom:1px solid rgba(255,255,255,.12) !important;
  transform:rotate(45deg) !important;
}
#groupMembersPanel .online-list {
  overflow:visible !important;
  padding-top:34px !important;
}
#groupMembersPanel { overflow:visible !important; }
@media(max-width:700px) {
  #groupMembersPanel .online-name .note-bubble {
    left:-10px !important;
    max-width:min(190px, calc(100vw - 115px)) !important;
    min-width:76px !important;
    padding:8px 11px !important;
    font-size:12px !important;
    line-height:1.3 !important;
    -webkit-line-clamp:3 !important;
    max-height:3.9em !important;
  }
  #groupMembersPanel .online-name .note-bubble:after {
    left:23px !important;
  }
}


/* v51: true Instagram Notes bubble anchored to each avatar in the member list */
#groupMembersPanel .online-list { overflow:visible !important; }
#groupMembersPanel .online-member {
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  min-height:76px !important;
  padding:30px 0 8px !important;
  overflow:visible !important;
}
#groupMembersPanel .online-member-link {
  display:flex !important;
  align-items:center !important;
  gap:9px !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  color:inherit !important;
  text-decoration:none !important;
}
#groupMembersPanel .note-member-wrap {
  position:relative !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 40px !important;
  width:40px !important;
  height:40px !important;
  overflow:visible !important;
  z-index:4 !important;
}
#groupMembersPanel .note-member-wrap .note-bubble {
  position:absolute !important;
  left:50% !important;
  right:auto !important;
  bottom:calc(100% + 8px) !important;
  top:auto !important;
  transform:translateX(-50%) !important;
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:3 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  width:180px !important;
  max-width:min(190px, calc(100vw - 105px)) !important;
  min-width:100px !important;
  max-height:4.05em !important;
  padding:9px 12px !important;
  margin:0 !important;
  border:1px solid rgba(255,255,255,.12) !important;
  border-radius:19px !important;
  background:#6b2938 !important;
  color:#fff !important;
  box-shadow:0 4px 14px rgba(0,0,0,.25) !important;
  font-size:12px !important;
  line-height:1.35 !important;
  text-align:left !important;
  z-index:40 !important;
}
#groupMembersPanel .note-member-wrap .note-bubble:after {
  content:"" !important;
  display:block !important;
  position:absolute !important;
  left:50% !important;
  bottom:-6px !important;
  top:auto !important;
  width:11px !important;
  height:11px !important;
  background:#6b2938 !important;
  border:0 !important;
  border-right:1px solid rgba(255,255,255,.12) !important;
  border-bottom:1px solid rgba(255,255,255,.12) !important;
  transform:translateX(-50%) rotate(45deg) !important;
}
#groupMembersPanel .online-name { flex:1 1 auto !important; min-width:0 !important; position:static !important; overflow:visible !important; }
#groupMembersPanel .online-name small { display:block !important; }
#groupMembersPanel .note-inline-action {
  flex:0 0 auto !important;
  display:inline-flex !important;
  position:relative !important;
  z-index:5 !important;
  align-items:center !important;
  justify-content:center !important;
  padding:5px 9px !important;
  min-height:27px !important;
  border:1px solid var(--line) !important;
  border-radius:999px !important;
  background:transparent !important;
  color:var(--muted) !important;
  font-size:10px !important;
  line-height:1 !important;
  cursor:pointer !important;
}
@media(max-width:700px) {
  #groupMembersPanel .online-member { min-height:72px !important; padding-top:29px !important; }
  #groupMembersPanel .note-member-wrap .note-bubble {
    width:170px !important;
    max-width:min(175px, calc(100vw - 100px)) !important;
    min-width:90px !important;
    -webkit-line-clamp:3 !important;
  }
}

/* Profile modal bubbles size to the available modal/viewport, not the avatar width. */
.member-note-anchor,.profile-note-anchor {
  position:relative !important;
  display:inline-flex !important;
  flex:0 0 auto !important;
  overflow:visible !important;
}
.member-note-bubble,.profile-note-bubble {
  box-sizing:border-box !important;
  width:min(230px, calc(100vw - 90px)) !important;
  min-width:min(150px, calc(100vw - 100px)) !important;
  max-width:min(260px, calc(100vw - 64px)) !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
  line-height:1.35 !important;
  max-height:none !important;
  height:auto !important;
  padding:9px 12px !important;
}


/* v52: simple, neutral Notes bubble above avatar; exactly 20-character preview */
#groupMembersPanel .online-member { position:relative !important; overflow:visible !important; }
#groupMembersPanel .note-member-wrap {
  position:relative !important;
  display:inline-flex !important;
  flex:0 0 40px !important;
  overflow:visible !important;
  z-index:4 !important;
}
#groupMembersPanel .note-member-wrap .note-bubble {
  position:absolute !important;
  left:50% !important;
  right:auto !important;
  top:auto !important;
  bottom:calc(100% + 8px) !important;
  transform:translateX(-50%) !important;
  display:block !important;
  width:max-content !important;
  min-width:76px !important;
  max-width:min(190px, calc(100vw - 110px)) !important;
  max-height:none !important;
  padding:8px 11px !important;
  margin:0 !important;
  border:1px solid var(--line) !important;
  border-radius:18px !important;
  background:var(--panel) !important;
  color:var(--ink) !important;
  box-shadow:0 3px 12px rgba(0,0,0,.18) !important;
  font-size:12px !important;
  line-height:1.3 !important;
  text-align:center !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
  overflow:visible !important;
  z-index:40 !important;
}
#groupMembersPanel .note-member-wrap .note-bubble:after {
  content:"" !important;
  display:block !important;
  position:absolute !important;
  left:50% !important;
  bottom:-6px !important;
  top:auto !important;
  width:10px !important;
  height:10px !important;
  background:var(--panel) !important;
  border:0 !important;
  border-right:1px solid var(--line) !important;
  border-bottom:1px solid var(--line) !important;
  transform:translateX(-50%) rotate(45deg) !important;
}
#groupMembersPanel .online-list { padding-top:18px !important; overflow:visible !important; }
#groupMembersPanel .online-member-link { overflow:visible !important; }
@media(max-width:700px) {
  #groupMembersPanel .note-member-wrap .note-bubble {
    max-width:min(170px, calc(100vw - 105px)) !important;
    min-width:70px !important;
    padding:7px 9px !important;
    font-size:11px !important;
  }
}
/* Full profile bubbles adapt to the available viewport/modal width and wrap naturally. */
.member-note-anchor,.profile-note-anchor {
  position:relative !important;
  overflow:visible !important;
  max-width:100% !important;
}
.member-note-bubble,.profile-note-bubble {
  box-sizing:border-box !important;
  width:min(230px, calc(100vw - 48px)) !important;
  min-width:min(130px, calc(100vw - 64px)) !important;
  max-width:min(260px, calc(100vw - 32px)) !important;
  height:auto !important;
  max-height:none !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
  line-height:1.35 !important;
}


/* v53: contain Notes bubbles inside the Group Members panel and tighten rows */
#groupMembersPanel {
  overflow-x:hidden !important;
}
#groupMembersPanel .online-list {
  padding:8px 2px 12px !important;
  overflow-x:hidden !important;
  overflow-y:visible !important;
}
#groupMembersPanel .online-member {
  display:flex !important;
  align-items:center !important;
  gap:7px !important;
  min-height:54px !important;
  height:auto !important;
  padding:3px 0 !important;
  margin:0 !important;
  overflow:visible !important;
}
#groupMembersPanel .online-member:has(.note-member-wrap.has-note) {
  min-height:84px !important;
  padding-top:31px !important;
}
#groupMembersPanel .online-member-link {
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  min-width:0 !important;
  flex:1 1 auto !important;
  overflow:visible !important;
}
#groupMembersPanel .note-member-wrap {
  position:relative !important;
  display:inline-flex !important;
  flex:0 0 40px !important;
  width:40px !important;
  height:40px !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:visible !important;
  z-index:3 !important;
}
#groupMembersPanel .note-member-wrap .note-bubble {
  position:absolute !important;
  left:0 !important;
  right:auto !important;
  bottom:calc(100% + 7px) !important;
  top:auto !important;
  transform:none !important;
  display:block !important;
  box-sizing:border-box !important;
  width:145px !important;
  min-width:0 !important;
  max-width:calc(100vw - 150px) !important;
  height:auto !important;
  max-height:3.9em !important;
  padding:7px 10px !important;
  margin:0 !important;
  border:1px solid var(--line) !important;
  border-radius:17px !important;
  background:var(--panel) !important;
  color:var(--ink) !important;
  box-shadow:0 3px 10px rgba(0,0,0,.16) !important;
  font-size:11px !important;
  line-height:1.3 !important;
  text-align:left !important;
  white-space:normal !important;
  overflow:hidden !important;
  overflow-wrap:anywhere !important;
  z-index:12 !important;
}
#groupMembersPanel .note-member-wrap .note-bubble:after {
  content:"" !important;
  display:block !important;
  position:absolute !important;
  left:13px !important;
  bottom:-6px !important;
  top:auto !important;
  width:10px !important;
  height:10px !important;
  background:var(--panel) !important;
  border:0 !important;
  border-right:1px solid var(--line) !important;
  border-bottom:1px solid var(--line) !important;
  transform:rotate(45deg) !important;
}
#groupMembersPanel .online-name {
  min-width:0 !important;
  flex:1 1 auto !important;
  overflow:hidden !important;
}
#groupMembersPanel .online-name b,
#groupMembersPanel .online-name small {
  display:block !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
#groupMembersPanel .note-inline-action {
  flex:0 0 auto !important;
  margin-left:2px !important;
}
@media(max-width:700px) {
  #groupMembersPanel .online-member { min-height:50px !important; }
  #groupMembersPanel .online-member:has(.note-member-wrap.has-note) {
    min-height:80px !important;
    padding-top:29px !important;
  }
  #groupMembersPanel .note-member-wrap .note-bubble {
    width:140px !important;
    max-width:calc(100vw - 145px) !important;
    font-size:11px !important;
    padding:6px 9px !important;
  }
}


/* v54: Facebook/Instagram-style horizontal group member story rail */
.crew-stories {
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  margin:14px 0 18px;
  padding:8px 4px 12px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--panel);
}
.crew-stories-track {
  display:flex;
  align-items:flex-start;
  gap:18px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:28px 12px 4px;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}
.crew-story {
  flex:0 0 92px;
  width:92px;
  min-width:92px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  text-align:center;
}
.crew-story-link {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
  width:100%;
  color:var(--ink);
  text-decoration:none;
}
.crew-story-avatar-wrap {
  position:relative;
  display:block;
  width:76px;
  height:76px;
  flex:0 0 76px;
}
.crew-story-avatar {
  display:block;
  width:76px!important;
  height:76px!important;
  border-radius:50%!important;
  object-fit:cover!important;
  border:2px solid var(--line);
  box-sizing:border-box;
}
.crew-story-initial {
  display:flex!important;
  align-items:center;
  justify-content:center;
  background:var(--bg);
  color:var(--ink);
  font-weight:700;
}
.crew-story-presence {
  position:absolute;
  right:0;
  bottom:1px;
  width:17px;
  height:17px;
  border:3px solid var(--panel);
  border-radius:50%;
  box-sizing:border-box;
}
.crew-story-presence.is-online {background:#22b35b}
.crew-story-presence.is-offline {background:#929a94}
.crew-story-name {
  display:block;
  width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  font-weight:600;
}
.crew-story-note {
  position:absolute;
  left:50%;
  bottom:calc(100% - 8px);
  transform:translateX(-50%);
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
  text-overflow:ellipsis;
  width:118px;
  max-width:calc(100vw - 48px);
  max-height:3.9em;
  box-sizing:border-box;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:19px;
  background:var(--bg);
  color:var(--ink);
  box-shadow:0 3px 10px rgba(0,0,0,.15);
  font-size:11px;
  line-height:1.3;
  text-align:center;
  overflow-wrap:anywhere;
  z-index:4;
}
.crew-story-note:after {
  content:"";
  position:absolute;
  left:50%;
  bottom:-6px;
  width:10px;
  height:10px;
  background:var(--bg);
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  transform:translateX(-50%) rotate(45deg);
}
.crew-story .note-inline-action {
  padding:3px 7px!important;
  min-height:22px!important;
  font-size:9px!important;
  line-height:1!important;
  border-radius:999px!important;
}
@media(max-width:700px) {
  .crew-stories {margin:10px 0 14px;padding:6px 0 9px;border-radius:13px}
  .crew-stories-track {gap:14px;padding:28px 10px 4px}
  .crew-story {flex-basis:82px;width:82px;min-width:82px}
  .crew-story-avatar-wrap,.crew-story-avatar {width:70px!important;height:70px!important;flex-basis:70px}
  .crew-story-name {font-size:11px}
  .crew-story-note {width:112px;font-size:10px;padding:7px 8px}
}


/* v55: clean, centered Stories strip matching the Newsfeed column width */
.feed-column {
  width:100%;
  max-width:780px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  min-width:0;
}
.crew-stories {
  width:100%!important;
  max-width:780px!important;
  box-sizing:border-box!important;
  margin:0 auto 18px!important;
  padding:4px 0 8px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.crew-stories-track {
  display:flex!important;
  align-items:flex-start!important;
  gap:16px!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  padding:24px 4px 8px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:var(--line) transparent;
  cursor:grab;
}
.crew-stories-track:active {cursor:grabbing}
.crew-story {
  flex:0 0 76px!important;
  width:76px!important;
  min-width:76px!important;
  gap:4px!important;
}
.crew-story-link {gap:5px!important}
.crew-story-avatar-wrap {
  width:62px!important;
  height:62px!important;
  flex:0 0 62px!important;
}
.crew-story-avatar {
  width:62px!important;
  height:62px!important;
}
.crew-story-presence {
  width:15px!important;
  height:15px!important;
  right:0!important;
  bottom:0!important;
}
.crew-story-note {
  width:62px!important;
  min-width:62px!important;
  max-width:62px!important;
  left:50%!important;
  bottom:calc(100% - 7px)!important;
  transform:translateX(-50%)!important;
  padding:6px 5px!important;
  border-radius:15px!important;
  font-size:10px!important;
  line-height:1.25!important;
  text-align:center!important;
  overflow-wrap:anywhere!important;
  -webkit-line-clamp:3!important;
}
.crew-story-note:after {left:50%!important}
.crew-story .note-inline-action {
  align-self:center!important;
  margin-top:1px!important;
}
@media(max-width:850px) {
  .feed-column {max-width:780px!important;margin-left:auto!important;margin-right:auto!important}
  .crew-stories {max-width:100%!important}
}
@media(max-width:520px) {
  .crew-stories {padding:2px 0 8px!important;margin-bottom:14px!important}
  .crew-stories-track {gap:13px!important;padding:22px 3px 7px!important}
  .crew-story {flex-basis:70px!important;width:70px!important;min-width:70px!important}
  .crew-story-avatar-wrap {width:58px!important;height:58px!important;flex-basis:58px!important}
  .crew-story-avatar {width:58px!important;height:58px!important}
  .crew-story-note {width:58px!important;min-width:58px!important;max-width:58px!important}
}


/* v56: Instagram-style Notes bubbles overlapping the avatar slightly */
.crew-story {overflow:visible!important; position:relative!important}
.crew-story-link {overflow:visible!important}
.crew-story-avatar-wrap {
  position:relative!important;
  overflow:visible!important;
  isolation:isolate;
}
.crew-story-note {
  position:absolute!important;
  z-index:5!important;
  left:50%!important;
  top:-25px!important;
  bottom:auto!important;
  transform:translateX(-50%)!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:3!important;
  box-sizing:border-box!important;
  width:112px!important;
  min-width:112px!important;
  max-width:112px!important;
  height:auto!important;
  max-height:4.05em!important;
  padding:7px 9px!important;
  margin:0!important;
  border:1px solid var(--line)!important;
  border-radius:17px!important;
  background:var(--panel)!important;
  color:var(--ink)!important;
  box-shadow:0 3px 10px rgba(0,0,0,.18)!important;
  font-size:11px!important;
  font-weight:600!important;
  line-height:1.35!important;
  text-align:center!important;
  white-space:normal!important;
  overflow:hidden!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
.crew-story-note:after {
  content:""!important;
  display:block!important;
  position:absolute!important;
  left:50%!important;
  bottom:-6px!important;
  width:10px!important;
  height:10px!important;
  background:var(--panel)!important;
  border-right:1px solid var(--line)!important;
  border-bottom:1px solid var(--line)!important;
  transform:translateX(-50%) rotate(45deg)!important;
}
.crew-story-avatar {position:relative!important;z-index:2!important}
.crew-story-presence {z-index:4!important}
.note-inline-action {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:27px!important;
  padding:5px 10px!important;
  margin:3px auto 0!important;
  border:1px solid var(--line)!important;
  border-radius:999px!important;
  background:var(--panel)!important;
  color:var(--ink)!important;
  font:600 10px/1.1 inherit!important;
  cursor:pointer!important;
  box-shadow:0 1px 3px rgba(0,0,0,.12)!important;
}
.note-inline-action:hover {border-color:var(--accent)!important;background:var(--bg)!important}
@media(max-width:700px) {
  .crew-stories-track {padding-top:31px!important}
  .crew-story-note {
    top:-24px!important;
    width:108px!important;
    min-width:108px!important;
    max-width:108px!important;
    padding:6px 8px!important;
    font-size:10px!important;
    line-height:1.3!important;
  }
  .note-inline-action {min-height:26px!important;padding:5px 9px!important;font-size:10px!important}
}


/* v57: compact, fully readable Notes bubbles; reserve scrollport space to prevent clipping */
.crew-stories {
  overflow:visible!important;
}
.crew-stories-track {
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding-top:82px!important;
  padding-bottom:8px!important;
  align-items:flex-start!important;
}
.crew-story,
.crew-story-link,
.crew-story-avatar-wrap {
  overflow:visible!important;
}
.crew-story-avatar-wrap {
  position:relative!important;
  isolation:isolate!important;
}
.crew-story-note {
  position:absolute!important;
  z-index:8!important;
  left:50%!important;
  top:-56px!important;
  bottom:auto!important;
  transform:translateX(-50%)!important;
  display:block!important;
  box-sizing:border-box!important;
  width:82px!important;
  min-width:82px!important;
  max-width:82px!important;
  height:auto!important;
  max-height:none!important;
  min-height:0!important;
  margin:0!important;
  padding:7px 6px!important;
  border:1px solid var(--line)!important;
  border-radius:15px!important;
  background:var(--panel)!important;
  color:var(--ink)!important;
  box-shadow:0 3px 9px rgba(0,0,0,.18)!important;
  font-size:10px!important;
  font-weight:600!important;
  line-height:1.3!important;
  text-align:center!important;
  white-space:normal!important;
  overflow:visible!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  -webkit-line-clamp:unset!important;
  -webkit-box-orient:initial!important;
}
.crew-story-note:after {
  content:""!important;
  display:block!important;
  position:absolute!important;
  left:50%!important;
  bottom:-6px!important;
  top:auto!important;
  width:10px!important;
  height:10px!important;
  background:var(--panel)!important;
  border:0!important;
  border-right:1px solid var(--line)!important;
  border-bottom:1px solid var(--line)!important;
  transform:translateX(-50%) rotate(45deg)!important;
}
@media(max-width:700px) {
  .crew-stories-track {
    padding-top:82px!important;
    padding-bottom:8px!important;
  }
  .crew-story-note {
    top:-56px!important;
    width:78px!important;
    min-width:78px!important;
    max-width:78px!important;
    padding:6px 5px!important;
    font-size:10px!important;
    line-height:1.28!important;
  }
}


/* v58: bring the Notes bubble down so it overlaps the avatar by roughly one-quarter */
.crew-story-avatar-wrap .crew-story-note {
  top:-40px!important;
}
@media(max-width:700px) {
  .crew-story-avatar-wrap .crew-story-note {
    top:-38px!important;
  }
}


/* v59: Keep full Notes bubbles inside the member-profile modal boundaries.
   Left-align above the avatar instead of centering a wide bubble beyond the modal edge. */
.member-profile-dialog { overflow-x:hidden !important; }
.member-profile-dialog .member-note-anchor,
.member-profile-dialog .profile-note-anchor {
  position:relative !important;
  overflow:visible !important;
}
.member-profile-dialog .member-note-bubble,
.member-profile-dialog .profile-note-bubble {
  left:0 !important;
  right:auto !important;
  transform:none !important;
  width:max-content !important;
  min-width:110px !important;
  max-width:min(245px, calc(100vw - 105px)) !important;
  box-sizing:border-box !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
  z-index:30 !important;
}
.member-profile-dialog .member-note-bubble:after,
.member-profile-dialog .profile-note-bubble:after {
  left:27px !important;
  transform:rotate(45deg) !important;
}
@media(max-width:520px) {
  .member-profile-dialog { padding:18px !important; }
  .member-profile-dialog .member-note-bubble,
  .member-profile-dialog .profile-note-bubble {
    max-width:min(220px, calc(100vw - 90px)) !important;
    min-width:100px !important;
    padding:8px 10px !important;
    font-size:11px !important;
  }
}


/* v63: Global temporary toast for success, error, warning and info messages */
.bq-toast-host{
  position:fixed!important;top:18px!important;left:50%!important;
  transform:translateX(-50%)!important;z-index:99999!important;
  width:min( min(440px, calc(100vw - 28px)), 440px)!important;
  pointer-events:none!important;display:flex!important;flex-direction:column!important;
  gap:8px!important;
}
.bq-toast-host .alert,
body .alert.bq-toast{
  box-sizing:border-box!important;width:100%!important;margin:0!important;
  padding:13px 42px 13px 16px!important;border-radius:14px!important;
  box-shadow:0 12px 36px rgba(0,0,0,.28)!important;
  backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important;
  pointer-events:auto!important;position:relative!important;
  opacity:0;transform:translateY(-12px) scale(.98);
  transition:opacity .22s ease,transform .22s ease!important;
}
body .alert.bq-toast.bq-toast-visible{
  opacity:1!important;transform:translateY(0) scale(1)!important;
}
body .alert.bq-toast.bq-toast-leaving{
  opacity:0!important;transform:translateY(-8px) scale(.98)!important;
}
.bq-toast-close{
  position:absolute!important;right:9px!important;top:8px!important;
  width:27px!important;height:27px!important;border:0!important;
  border-radius:50%!important;background:rgba(127,127,127,.16)!important;
  color:inherit!important;font-size:18px!important;line-height:1!important;
  cursor:pointer!important;display:grid!important;place-items:center!important;
}
@media(max-width:600px){
 .bq-toast-host{top:10px!important;width:calc(100vw - 20px)!important}
 .bq-toast-host .alert,body .alert.bq-toast{padding:12px 40px 12px 13px!important;font-size:13px!important}
}
@media(prefers-reduced-motion:reduce){
 body .alert.bq-toast{transition:none!important}
}


/* v64: Server-rendered flash messages are always floating, temporary toasts.
   CSS animation is the fallback, so this still works if page JavaScript is cached or blocked. */
.bq-toast-server{
  position:fixed!important;z-index:100000!important;
  top:18px!important;left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;
  width:min(440px,calc(100vw - 28px))!important;
  box-sizing:border-box!important;margin:0!important;
  padding:13px 44px 13px 16px!important;
  border:1px solid var(--line)!important;border-radius:14px!important;
  background:var(--panel)!important;color:var(--ink)!important;
  box-shadow:0 12px 36px rgba(0,0,0,.28)!important;
  font-size:14px!important;line-height:1.45!important;
  animation:bqToastAutoHide 5.25s ease forwards!important;
}
.bq-toast-server-success{border-color:rgba(40,170,115,.42)!important}
.bq-toast-server-error{border-color:rgba(220,75,75,.5)!important}
.bq-toast-server-close{
  position:absolute!important;right:9px!important;top:8px!important;
  width:27px!important;height:27px!important;border:0!important;
  border-radius:50%!important;background:rgba(127,127,127,.16)!important;
  color:inherit!important;font-size:18px!important;line-height:1!important;
  cursor:pointer!important;display:grid!important;place-items:center!important;
}
@keyframes bqToastAutoHide{
  0%,82%{opacity:1;visibility:visible}
  100%{opacity:0;visibility:hidden;pointer-events:none}
}
@media(max-width:600px){.bq-toast-server{top:10px!important;width:calc(100vw - 20px)!important;padding:12px 40px 12px 13px!important;font-size:13px!important}}
@media(prefers-reduced-motion:reduce){.bq-toast-server{animation-duration:5s!important}}


/* v65: polished Barkada Quests notification toast */
.bq-toast-server{
  position:fixed!important;z-index:100000!important;
  top:20px!important;left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;
  display:flex!important;align-items:center!important;gap:12px!important;
  width:min(390px,calc(100vw - 32px))!important;
  min-height:72px!important;box-sizing:border-box!important;
  margin:0!important;padding:14px 48px 16px 15px!important;
  overflow:hidden!important;
  border:1px solid rgba(67,190,139,.38)!important;
  border-radius:17px!important;
  background:linear-gradient(135deg,rgba(23,58,44,.98),rgba(17,39,31,.98))!important;
  color:#effaf3!important;
  box-shadow:0 14px 38px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.045)!important;
  font-size:13px!important;line-height:1.4!important;
  animation:bqToastAutoHide 5.25s ease forwards!important;
  backdrop-filter:blur(16px)!important;-webkit-backdrop-filter:blur(16px)!important;
}
.bq-toast-icon{
  flex:0 0 34px!important;width:34px!important;height:34px!important;
  display:grid!important;place-items:center!important;
  border-radius:50%!important;
  background:rgba(51,190,128,.17)!important;
  border:1px solid rgba(90,220,160,.27)!important;
  color:#70e0a8!important;font-size:18px!important;font-weight:800!important;
}
.bq-toast-copy{display:flex!important;flex:1 1 auto!important;min-width:0!important;flex-direction:column!important;gap:2px!important}
.bq-toast-copy strong{font-size:13px!important;line-height:1.2!important;font-weight:750!important;color:#8ce4b5!important;letter-spacing:.01em!important}
.bq-toast-copy>span{font-size:12px!important;line-height:1.4!important;color:rgba(242,250,245,.88)!important;overflow-wrap:anywhere!important}
.bq-toast-server-close{
  position:absolute!important;right:10px!important;top:10px!important;
  width:27px!important;height:27px!important;border:1px solid rgba(255,255,255,.08)!important;
  border-radius:50%!important;background:rgba(255,255,255,.075)!important;
  color:rgba(255,255,255,.8)!important;font-size:17px!important;line-height:1!important;
  cursor:pointer!important;display:grid!important;place-items:center!important;
  transition:background .16s ease,transform .16s ease!important;
}
.bq-toast-server-close:hover{background:rgba(255,255,255,.16)!important;transform:scale(1.06)!important}
.bq-toast-progress{
  position:absolute!important;left:0!important;bottom:0!important;height:3px!important;
  width:100%!important;background:rgba(89,218,154,.9)!important;
  transform-origin:left center!important;
  animation:bqToastProgress 5s linear forwards!important;
}
.bq-toast-server-error{border-color:rgba(238,105,105,.42)!important;background:linear-gradient(135deg,rgba(67,34,37,.98),rgba(39,24,28,.98))!important}
.bq-toast-server-error .bq-toast-icon{background:rgba(239,91,91,.16)!important;border-color:rgba(239,120,120,.28)!important;color:#ff9a9a!important}
.bq-toast-server-error .bq-toast-copy strong{color:#ffaaaa!important}
.bq-toast-server-error .bq-toast-progress{background:#ef7777!important}
.bq-toast-server-warning{border-color:rgba(228,181,82,.4)!important}
.bq-toast-server-warning .bq-toast-icon{color:#f2ce78!important;background:rgba(228,181,82,.15)!important}
.bq-toast-server-warning .bq-toast-copy strong{color:#f2ce78!important}
.bq-toast-server-warning .bq-toast-progress{background:#e7bd62!important}
@keyframes bqToastProgress{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@media(max-width:600px){
 .bq-toast-server{top:12px!important;width:calc(100vw - 24px)!important;min-height:66px!important;padding:12px 44px 14px 12px!important;gap:10px!important;border-radius:15px!important}
 .bq-toast-icon{width:31px!important;height:31px!important;flex-basis:31px!important;font-size:16px!important}
 .bq-toast-copy strong{font-size:12px!important}
 .bq-toast-copy>span{font-size:11px!important}
}
@media(prefers-reduced-motion:reduce){.bq-toast-server{animation-duration:5s!important}.bq-toast-progress{animation:none!important}}


/* v66: compact original-style toast, without a close button */
.bq-toast-server{
  position:fixed!important;z-index:100000!important;
  top:16px!important;left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;
  display:block!important;
  width:min(440px,calc(100vw - 28px))!important;
  min-height:0!important;box-sizing:border-box!important;
  margin:0!important;padding:12px 16px!important;
  overflow:hidden!important;
  border:1px solid rgba(67,190,139,.34)!important;
  border-radius:14px!important;
  background:var(--panel,#17271f)!important;
  color:var(--ink,#edf6ef)!important;
  box-shadow:0 8px 24px rgba(0,0,0,.18)!important;
  font-size:13px!important;line-height:1.4!important;
  animation:bqToastAutoHide 5.25s ease forwards!important;
  backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;
}
.bq-toast-server-success{border-color:rgba(67,190,139,.34)!important}
.bq-toast-server-error{border-color:rgba(220,85,85,.42)!important}
.bq-toast-server-warning{border-color:rgba(220,175,80,.42)!important}
.bq-toast-icon,.bq-toast-copy,.bq-toast-progress,.bq-toast-server-close{display:none!important}
@media(max-width:600px){
 .bq-toast-server{top:10px!important;width:calc(100vw - 20px)!important;padding:11px 13px!important;font-size:12px!important;border-radius:12px!important}
}


/* v67: unified premium icon language across Barkada Quests */
.ui-icon{
  display:inline-block!important;width:18px!important;height:18px!important;
  flex:0 0 18px!important;fill:none!important;stroke:currentColor!important;
  stroke-width:1.85!important;stroke-linecap:round!important;stroke-linejoin:round!important;
  vertical-align:middle!important;
}
.theme-toggle .ui-icon{width:16px!important;height:16px!important;flex-basis:16px!important}
.feature-menu-toggle .ui-icon{width:21px!important;height:21px!important;flex-basis:21px!important}
.logout-link .ui-icon{width:17px!important;height:17px!important;flex-basis:17px!important}
.feature-sidebar .side-link .side-icon-wrap{
  border-radius:8px;transition:background .18s ease,color .18s ease,transform .18s ease;
}
.feature-sidebar .side-link .side-icon{
  width:19px!important;height:19px!important;stroke-width:1.8!important;
  transition:transform .18s ease,stroke-width .18s ease;
}
.feature-sidebar .side-link:hover .side-icon-wrap{
  background:rgba(110,205,157,.11);color:#a7e7c4!important;
}
.feature-sidebar .side-link:hover .side-icon{transform:scale(1.07)}
.feature-sidebar .side-link.active .side-icon-wrap{
  background:rgba(73,177,126,.15);color:#8fe0b2!important;
}
.feature-sidebar .side-link.active .side-icon{stroke-width:2.05!important}
.theme-toggle{
  min-height:38px!important;padding:8px 12px!important;gap:8px!important;
  border-radius:11px!important;transition:background .18s ease,border-color .18s ease,transform .18s ease!important;
}
.theme-toggle:hover{transform:translateY(-1px)}
.header-profile-link,.profile-avatar-link{
  transition:box-shadow .18s ease,transform .18s ease!important;
}
.header-profile-link:hover,.profile-avatar-link:hover{transform:translateY(-1px);box-shadow:0 0 0 3px rgba(76,181,128,.2)!important}
.logout-link{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:32px!important;height:32px!important;border-radius:9px!important;
  transition:background .18s ease,color .18s ease!important;
}
.logout-link:hover{background:rgba(220,90,90,.12)!important;color:#e88b8b!important}
button .ui-icon, a .ui-icon{pointer-events:none}
@media(max-width:760px){
 .feature-sidebar .side-link .side-icon{width:20px!important;height:20px!important}
 .theme-toggle{min-height:36px!important}
}

/* v68: dedicated social-feed icon refinement */
.feature-sidebar .side-link .newsfeed-nav-icon{
  width:20px!important;height:20px!important;
  stroke-width:1.9!important;
}
.feature-sidebar .side-link.active .newsfeed-nav-icon{stroke-width:2.05!important}

/* Group Photos: folder-style monthly albums and date filtering */
.photo-library-tools{margin:24px 0 14px}
.photo-library-tools .photo-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.photo-date-filter{display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--card, #fff)}
.photo-date-filter label{display:grid;gap:5px;min-width:150px;flex:1;color:var(--muted);font-size:11px;font-weight:700}
.photo-date-filter input{width:100%;min-height:39px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface,var(--card,#fff));color:var(--ink);font:inherit;color-scheme:light}
.photo-album-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:16px;margin:16px 0 28px}
.photo-album-folder{display:block;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:15px;background:var(--card,#fff);color:var(--ink);text-decoration:none;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.photo-album-folder:hover{transform:translateY(-3px);border-color:var(--accent,#4d9b70);box-shadow:0 12px 28px #00000012}
.photo-album-cover{position:relative;aspect-ratio:1.35;overflow:hidden;background:var(--surface,#edf2ee)}
.photo-album-cover>img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.photo-album-folder:hover .photo-album-cover>img{transform:scale(1.04)}
.photo-album-folder-icon{position:absolute;right:11px;bottom:10px;display:grid;place-items:center;width:36px;height:30px;border:1px solid #ffffff70;border-radius:8px;background:#183b2bd9;color:#fff;font-size:19px;box-shadow:0 3px 12px #0003}
.photo-album-info{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 13px}
.photo-album-info b{min-width:0;font-size:13px;overflow-wrap:anywhere}
.photo-album-info small{flex:none;color:var(--muted);font-size:10px}
body.dark-mode .photo-date-filter{background:var(--card,#18231d)}
body.dark-mode .photo-date-filter input{color-scheme:dark}
@media(max-width:600px){
 .photo-date-filter{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:11px}
 .photo-date-filter label{min-width:0}
 .photo-date-filter button,.photo-date-filter>a{width:100%;justify-content:center;text-align:center}
 .photo-album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .photo-album-info{align-items:flex-start;flex-direction:column;gap:3px;padding:10px}
 .photo-album-info b{font-size:12px}
 .photo-library-tools .photo-section-heading{align-items:flex-start}
}


/* Group Photos v72 — social memory gallery */
.gallery-upload-panel{padding:22px!important;border-radius:20px!important;background:linear-gradient(145deg,var(--card,#17251e),var(--surface,#101b16))!important}
.gallery-upload-panel .upload-panel-heading{align-items:center;gap:13px;margin-bottom:18px}
.gallery-upload-panel .upload-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#dff4e8;color:#16875e}
.gallery-upload-panel svg,.gallery-library-tools svg,.memory-post svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.gallery-upload-panel .upload-icon svg{width:23px;height:23px;fill:currentColor;stroke:none}
.gallery-dropzone{min-height:185px;border:1.5px dashed color-mix(in srgb,var(--accent,#279b70) 55%,var(--line));border-radius:17px;background:color-mix(in srgb,var(--surface,#101b16) 80%,transparent);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:22px;gap:10px}
.gallery-dropzone .cloud-photo-picker{display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;text-align:center}
.gallery-dropzone .dropzone-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:#dff4e8;color:#16875e}
.gallery-dropzone .dropzone-icon svg{width:24px;height:24px}
.gallery-pick-cta{display:inline-flex;margin-top:5px;padding:9px 16px;border-radius:999px;background:var(--accent,#279b70);color:white;font-weight:800;font-size:11px}
.gallery-upload-panel .caption-field{display:grid;gap:7px;margin-top:15px;font-size:12px;font-weight:750}
.gallery-upload-panel .caption-field input{min-height:45px;border-radius:12px}
.gallery-upload-panel .cloud-upload-footer{align-items:center;gap:14px;margin-top:15px}
.gallery-upload-panel .cloud-upload-footer button{display:inline-flex;align-items:center;gap:8px;border-radius:12px;padding:12px 17px}
.gallery-upload-panel .cloud-upload-footer button svg{width:17px;height:17px}
.gallery-library-tools{margin-top:30px}
.gallery-library-tools .photo-section-heading h2{margin:4px 0}
.gallery-date-filter{display:flex;align-items:end;gap:12px;padding:14px 16px;border-radius:16px;background:var(--card,#17251e)}
.gallery-filter-label{display:flex;align-items:center;gap:8px;margin-right:auto;padding-bottom:10px;color:var(--ink);font-weight:800;font-size:12px}
.gallery-filter-label svg{color:var(--accent,#279b70)}
.gallery-date-filter label{min-width:145px;max-width:210px}
.gallery-date-filter input{min-height:42px;border-radius:10px}
.gallery-date-filter button,.gallery-date-filter>a{min-height:42px;display:inline-flex;align-items:center;gap:6px}
.gallery-album-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px;margin-top:18px}
.gallery-album-folder{border-radius:18px;background:var(--card,#17251e);box-shadow:0 8px 24px #00000012}
.gallery-album-cover{aspect-ratio:1.55}
.gallery-album-cover:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#07150fc9)}
.gallery-album-icon{position:absolute;left:13px;bottom:12px;z-index:1;color:#fff}
.gallery-album-icon svg{width:27px;height:27px;fill:#ffffff22;stroke:#fff;stroke-width:1.7}
.gallery-album-count{position:absolute;right:12px;bottom:15px;z-index:1;color:white;font-size:10px;font-weight:800}
.gallery-album-folder .photo-album-info{padding:14px 15px}
.gallery-album-folder .photo-album-info small{color:var(--accent,#279b70);font-weight:800}
.memory-post-list{display:grid;gap:20px;max-width:900px;margin:18px auto 40px}
.memory-post{overflow:hidden;border:1px solid var(--line);border-radius:19px;background:var(--card,#17251e);box-shadow:0 10px 28px #00000012}
.memory-post-head{display:flex;align-items:center;gap:11px;padding:16px 18px 10px}
.memory-post-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#b9ead0,#258a62);color:#103d2b;font-weight:900}
.memory-post-byline{display:grid;gap:3px;min-width:0}
.memory-post-byline b{font-size:13px}
.memory-post-byline small{color:var(--muted);font-size:10px}
.memory-set-count{display:flex;align-items:center;gap:6px;margin-left:auto;padding:7px 10px;border-radius:999px;background:var(--surface,#101b16);color:var(--muted);font-size:10px;font-weight:800;white-space:nowrap}
.memory-post-caption{padding:2px 18px 14px;font-size:13px;font-weight:650;overflow-wrap:anywhere}
.memory-post-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;background:var(--surface,#101b16);overflow:hidden}
.memory-post-grid.count-1{grid-template-columns:1fr}
.memory-post-image-wrap{position:relative;min-width:0;overflow:hidden;aspect-ratio:1.45;background:var(--surface,#101b16)}
.memory-post-grid.count-1 .memory-post-image-wrap{aspect-ratio:16/9;max-height:480px}
.memory-post-grid.count-3 .memory-post-image-wrap:first-child{grid-row:span 2;aspect-ratio:auto}
.memory-post-image{position:relative;display:block;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:pointer}
.memory-post-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}
.memory-post-image:hover img{transform:scale(1.025)}
.memory-more-overlay{position:absolute;inset:0;display:grid;place-items:center;background:#06150da8;color:white;font-size:30px;font-weight:850}
.memory-image-download{position:absolute;right:10px;bottom:10px;display:grid;place-items:center;width:36px;height:36px;border:1px solid #ffffff88;border-radius:50%;background:#10251dd9;color:#fff;box-shadow:0 3px 12px #0004}
.memory-image-download svg{width:18px;height:18px}
.memory-post-footer{display:flex;align-items:center;gap:18px;padding:13px 17px;color:var(--muted);font-size:10px;border-top:1px solid var(--line)}
.memory-post-footer span{display:inline-flex;align-items:center;gap:6px}
.memory-post-footer svg{width:15px;height:15px}
.memory-post-footer .memory-download-hint{margin-left:auto}
.memory-admin-action{padding:0 17px 14px}
.memory-admin-action form{display:flex;justify-content:flex-end}
.memory-admin-action button{display:inline-flex;align-items:center;gap:6px}
@media(max-width:680px){
 .gallery-upload-panel{padding:15px!important;border-radius:16px!important}
 .gallery-upload-panel .cloud-upload-footer{align-items:stretch;flex-direction:column}
 .gallery-upload-panel .cloud-upload-footer button{width:100%;justify-content:center}
 .gallery-date-filter{display:grid;grid-template-columns:1fr 1fr;gap:9px}
 .gallery-filter-label{grid-column:1/-1;padding:0 0 3px}
 .gallery-date-filter label{min-width:0;max-width:none}
 .gallery-date-filter button,.gallery-date-filter>a{width:100%;justify-content:center}
 .gallery-album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .gallery-album-folder .photo-album-info{align-items:flex-start;flex-direction:column;gap:5px;padding:10px}
 .memory-post-list{gap:13px;margin-top:14px}
 .memory-post{border-radius:15px}
 .memory-post-head{padding:13px 13px 8px}
 .memory-post-caption{padding:2px 13px 11px}
 .memory-post-footer{gap:10px;flex-wrap:wrap;padding:11px 13px}
 .memory-post-footer .memory-download-hint{width:100%;margin-left:0}
 .memory-post-image-wrap{aspect-ratio:1.12}
}
@media(max-width:380px){.gallery-album-grid{grid-template-columns:1fr}.memory-set-count{font-size:9px;padding:6px 7px}}

.memory-extra-photos{padding:0 17px 12px}
.memory-extra-photos summary{cursor:pointer;color:var(--accent,#279b70);font-size:11px;font-weight:800}
.memory-extra-photos>div{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
.memory-extra-photos a{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;color:var(--ink);text-decoration:none;font-size:10px}
.memory-extra-photos svg{width:14px;height:14px}
@media(max-width:680px){.memory-extra-photos{padding:0 13px 12px}.memory-extra-photos a{max-width:100%}}


/* Group Photos v73: album grid and date filter */
.gallery-date-filter{display:block!important;margin:18px 0 22px;padding:18px 20px;border:1px solid var(--border,#29483b);border-radius:16px;background:var(--panel,#14251d);box-shadow:0 8px 24px rgba(0,0,0,.12)}
.gallery-filter-top{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.gallery-filter-top>div{display:grid;gap:3px}
.gallery-filter-top b{font-size:14px;color:var(--text,#f3f7f4)}
.gallery-filter-top small{font-size:12px;color:var(--muted,#9bb0a4)}
.gallery-filter-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:rgba(37,177,128,.14);color:#36c995}
.gallery-filter-icon svg,.gallery-filter-submit svg,.gallery-photo-meta svg,.gallery-tile-download svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.gallery-filter-fields{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.gallery-filter-fields label{display:grid;gap:7px;min-width:190px;flex:1}
.gallery-filter-fields label span{font-size:11px;font-weight:700;color:var(--muted,#9bb0a4)}
.gallery-filter-fields input[type=date]{width:100%;min-height:44px;padding:0 12px;border:1px solid var(--border,#345344);border-radius:10px;background:var(--surface,#0e1b15);color:var(--text,#f3f7f4);color-scheme:light dark;font:inherit;font-size:13px}
.gallery-filter-fields input[type=date]:focus{outline:2px solid rgba(48,194,143,.35);border-color:#30b98a}
.gallery-filter-separator{padding:0 2px 13px;color:var(--muted,#9bb0a4);font-size:12px}
.gallery-filter-submit{min-height:44px;display:inline-flex;align-items:center;gap:8px}
.gallery-filter-reset{padding:12px 4px;color:var(--muted,#9bb0a4);font-size:12px;text-decoration:none}
.gallery-filter-reset:hover{color:#45d3a0}
.gallery-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 32px}
.gallery-photo-tile{min-width:0;overflow:hidden;border:1px solid var(--border,#29483b);border-radius:14px;background:var(--panel,#14251d);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.gallery-photo-tile:hover{transform:translateY(-2px);border-color:rgba(49,194,142,.55);box-shadow:0 10px 26px rgba(0,0,0,.16)}
.gallery-photo-open{display:block;position:relative;width:100%;padding:0;border:0;background:#09130e;cursor:pointer;aspect-ratio:1/1;overflow:hidden}
.gallery-photo-open img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.gallery-photo-tile:hover .gallery-photo-open img{transform:scale(1.035)}
.gallery-photo-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px}
.gallery-photo-meta>div{display:grid;gap:4px;min-width:0}
.gallery-photo-meta b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text,#f3f7f4)}
.gallery-photo-meta small{font-size:10px;color:var(--muted,#9bb0a4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gallery-tile-download{flex:0 0 34px;width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:rgba(39,174,126,.13);color:#39c995;text-decoration:none}
.gallery-tile-download:hover{background:rgba(39,174,126,.25)}
@media(max-width:1050px){.gallery-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.gallery-date-filter{padding:14px;border-radius:13px}.gallery-filter-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.gallery-filter-fields label{min-width:0}.gallery-filter-separator{display:none}.gallery-filter-submit{grid-column:1/-1;width:100%;justify-content:center}.gallery-filter-reset{grid-column:1/-1;text-align:center;padding:5px}.gallery-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.gallery-photo-meta{padding:8px}.gallery-photo-meta b{font-size:11px}.gallery-photo-meta small{font-size:9px}}
@media(max-width:360px){.gallery-photo-grid{gap:7px}.gallery-photo-meta{gap:5px;padding:7px}.gallery-tile-download{width:30px;height:30px;flex-basis:30px}}


/* v74: per-photo admin delete action */
.gallery-photo-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.gallery-tile-delete-form{margin:0;padding:0}
.gallery-tile-delete{width:34px;height:34px;display:grid;place-items:center;border:1px solid rgba(226,91,91,.25);border-radius:9px;background:rgba(220,76,76,.09);color:#e77b7b;cursor:pointer;transition:background .18s ease,border-color .18s ease}
.gallery-tile-delete svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.gallery-tile-delete:hover{background:rgba(220,76,76,.2);border-color:rgba(226,91,91,.55);color:#ff9292}


/* v75: compact custom gallery date-range picker */
.gallery-library-tools{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;margin:22px 0 18px}
.gallery-library-tools .photo-section-heading{margin:0;min-width:0}
.gallery-range-form{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin:0;position:relative;z-index:20}
.gallery-range-control{position:relative}
.gallery-range-trigger{display:flex;align-items:center;gap:10px;min-width:260px;max-width:340px;padding:10px 13px;border:1px solid var(--border,#345344);border-radius:12px;background:var(--panel,#14251d);color:var(--text,#f3f7f4);text-align:left;cursor:pointer}
.gallery-range-trigger>svg:first-child{width:19px;height:19px;flex:none;fill:none;stroke:#39c995;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.gallery-range-trigger span{display:grid;gap:3px;min-width:0;flex:1}
.gallery-range-trigger small{font-size:9px;letter-spacing:.09em;color:var(--muted,#9bb0a4);font-weight:800}
.gallery-range-trigger b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gallery-range-chevron{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;flex:none;opacity:.7}
.gallery-range-popover{position:absolute;right:0;top:calc(100% + 9px);width:306px;padding:14px;border:1px solid var(--border,#345344);border-radius:15px;background:var(--panel,#14251d);color:var(--text,#f3f7f4);box-shadow:0 18px 50px rgba(0,0,0,.38);z-index:100}
.gallery-range-popover[hidden]{display:none!important}
.gallery-calendar-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.gallery-calendar-head b{font-size:13px}
.gallery-calendar-head button{width:30px;height:30px;border:1px solid var(--border,#345344);border-radius:8px;background:var(--surface,#0e1b15);color:var(--text,#f3f7f4);font-size:19px;cursor:pointer}
.gallery-calendar-weekdays,.gallery-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}
.gallery-calendar-weekdays{margin-bottom:6px}
.gallery-calendar-weekdays span{font-size:10px;color:var(--muted,#9bb0a4);font-weight:800;padding:5px 0}
.gallery-calendar-day,.gallery-calendar-blank{height:32px}
.gallery-calendar-day{border:0;border-radius:8px;background:transparent;color:var(--text,#f3f7f4);font-size:11px;cursor:pointer}
.gallery-calendar-day:hover{background:rgba(48,190,140,.16)}
.gallery-calendar-day.is-between{background:rgba(48,190,140,.13);border-radius:0}
.gallery-calendar-day.is-edge{background:#23a879;color:#fff;font-weight:800;border-radius:8px}
.gallery-calendar-footer{display:flex;align-items:center;gap:8px;margin-top:12px;padding-top:11px;border-top:1px solid var(--border,#345344)}
.gallery-calendar-footer span{font-size:10px;color:var(--muted,#9bb0a4);flex:1}
.gallery-calendar-footer button{border:0;background:transparent;color:#39c995;font-size:11px;font-weight:800;cursor:pointer}
.gallery-calendar-footer .gallery-calendar-apply{padding:8px 11px;border-radius:8px;background:#239d73;color:#fff}
.gallery-range-reset{font-size:11px;color:var(--muted,#9bb0a4);text-decoration:none;white-space:nowrap}
.gallery-range-reset:hover{color:#39c995}
@media(max-width:760px){
 .gallery-library-tools{grid-template-columns:1fr;gap:12px}
 .gallery-range-form{justify-content:flex-start}
 .gallery-range-control{width:min(100%,360px)}
 .gallery-range-trigger{width:100%;max-width:none}
 .gallery-range-popover{left:0;right:auto}
}
@media(max-width:380px){
 .gallery-range-control{width:100%}
 .gallery-range-popover{width:min(306px,calc(100vw - 42px))}
}


/* v76 cache refresh + enforce custom album calendar layout */
.gallery-range-form{display:flex!important;align-items:center!important;gap:10px!important;position:relative!important;margin:0!important}
.gallery-range-control{position:relative!important;display:block!important}
.gallery-range-popover{position:absolute!important;display:block!important;top:calc(100% + 10px)!important;right:0!important;left:auto!important;width:306px!important;max-width:calc(100vw - 32px)!important;padding:15px!important;border-radius:15px!important;background:#14251d!important;border:1px solid #345344!important;box-shadow:0 18px 50px rgba(0,0,0,.42)!important;z-index:9999!important}
.gallery-range-popover[hidden]{display:none!important}
.gallery-calendar-weekdays,.gallery-calendar-days{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:4px!important;width:100%!important}
.gallery-calendar-day,.gallery-calendar-blank{display:grid!important;place-items:center!important;min-width:0!important;width:100%!important;height:32px!important;padding:0!important;margin:0!important}
.gallery-calendar-day{border:0!important;border-radius:8px!important;background:transparent!important;color:#eaf5ee!important;font-size:11px!important;font-weight:600!important}
.gallery-calendar-day:hover{background:rgba(48,190,140,.18)!important}
.gallery-calendar-day.is-between{background:rgba(48,190,140,.15)!important}
.gallery-calendar-day.is-edge{background:#23a879!important;color:#fff!important}
.gallery-library-tools{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:16px!important}
@media(max-width:760px){.gallery-library-tools{grid-template-columns:1fr!important}.gallery-range-form{justify-content:flex-start!important}.gallery-range-control{width:min(100%,360px)!important}.gallery-range-trigger{width:100%!important;max-width:none!important}.gallery-range-popover{left:0!important;right:auto!important}}


/* v77: user-created albums, kept separate from monthly auto albums */
.create-album-panel{margin:18px 0 22px;padding:20px;border:1px solid var(--border,#29483b);border-radius:16px;background:var(--panel,#14251d)}
.create-album-intro{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.create-album-intro h2{margin:0 0 4px;font-size:16px}
.create-album-intro p{margin:0}
.create-album-icon{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border-radius:12px;background:rgba(39,177,128,.14);color:#36c995}
.create-album-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.create-album-form{display:grid;grid-template-columns:1fr 1.35fr auto;align-items:end;gap:12px}
.create-album-form label,.gallery-upload-options .caption-field{display:grid;gap:7px;min-width:0;font-size:12px;font-weight:700;color:var(--text,#f3f7f4)}
.create-album-form input,.gallery-upload-options select{width:100%;min-width:0;min-height:42px;padding:0 12px;border:1px solid var(--border,#345344);border-radius:10px;background:var(--surface,#0e1b15);color:var(--text,#f3f7f4);font:inherit;font-size:12px}
.create-album-form input:focus,.gallery-upload-options select:focus{outline:2px solid rgba(48,194,143,.28);border-color:#30b98a}
.create-album-form button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}
.create-album-form button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.gallery-upload-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.album-category-heading{margin:24px 0 12px}
.album-category-heading h3{margin:4px 0;font-size:18px}
.album-category-heading p{margin:0}
.monthly-album-heading{margin-top:34px;padding-top:20px;border-top:1px solid var(--border,#29483b)}
.custom-album-empty-cover{height:100%;min-height:150px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(41,179,131,.22),rgba(23,64,48,.55))}
.custom-album-empty-cover svg{width:54px;height:54px;fill:none;stroke:#58d8a7;stroke-width:1.3;stroke-linejoin:round}
.custom-album-folder .photo-album-cover{background:var(--surface,#0e1b15)}
@media(max-width:760px){.create-album-form{grid-template-columns:1fr 1fr}.create-album-form button{grid-column:1/-1;width:100%}}
@media(max-width:560px){.create-album-panel{padding:14px}.create-album-form,.gallery-upload-options{grid-template-columns:1fr}.create-album-form button{grid-column:auto}.create-album-intro h2{font-size:14px}}


/* v78: polished custom album creation and empty album cover */
.create-album-panel{
  position:relative;isolation:isolate;overflow:hidden;
  margin:20px 0 26px;padding:22px 24px;
  border:1px solid rgba(67,151,112,.34);border-radius:18px;
  background:linear-gradient(125deg,rgba(31,76,55,.34),rgba(18,34,26,.96) 58%,rgba(20,54,40,.8));
  box-shadow:0 14px 34px rgba(0,0,0,.12)
}
.create-album-panel:before{content:"";position:absolute;z-index:-1;width:220px;height:220px;right:-70px;top:-120px;border-radius:50%;background:radial-gradient(circle,rgba(54,201,149,.18),transparent 70%)}
.create-album-intro{gap:14px;margin-bottom:19px}
.create-album-icon{width:48px;height:48px;flex-basis:48px;border:1px solid rgba(72,211,157,.2);border-radius:15px;background:linear-gradient(145deg,rgba(53,197,144,.22),rgba(31,103,73,.12));box-shadow:inset 0 1px rgba(255,255,255,.06)}
.create-album-intro h2{font-size:17px;letter-spacing:-.2px}
.create-album-intro p{max-width:620px;line-height:1.55}
.create-album-form{grid-template-columns:minmax(180px,1fr) minmax(220px,1.25fr) auto;gap:14px}
.create-album-form label{gap:8px;font-size:11px;letter-spacing:.15px}
.create-album-form input{min-height:45px;padding:0 14px;border-radius:11px;background:rgba(8,20,14,.55);border-color:rgba(119,163,139,.32);transition:border-color .18s,box-shadow .18s}
.create-album-form input:focus{border-color:#38c995;box-shadow:0 0 0 3px rgba(56,201,149,.12);outline:0}
.create-album-form input::placeholder{color:rgba(190,211,198,.55)}
.create-album-form button{min-height:45px;padding:0 17px;border-radius:11px;box-shadow:0 5px 14px rgba(20,150,102,.18)}
.gallery-upload-options{gap:14px}
.gallery-upload-options select{min-height:44px;border-radius:10px}
.album-category-heading{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin:26px 0 14px}
.album-category-heading h3{font-size:19px;letter-spacing:-.35px}
.album-category-heading .eyebrow{color:#46c99a;letter-spacing:1.15px}
.monthly-album-heading{margin-top:36px;padding-top:24px}
.custom-album-folder .photo-album-cover{background:#10251b}
.custom-album-empty-cover{
  position:relative;isolation:isolate;overflow:hidden;
  min-height:170px;height:100%;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:7px;
  background:radial-gradient(ellipse at 50% 38%,rgba(53,190,137,.24),transparent 55%),linear-gradient(145deg,#1c3d2d,#10251b 72%);
  color:#dff8eb
}
.custom-album-empty-cover:after{content:"";position:absolute;inset:12px;border:1px solid rgba(177,235,205,.09);border-radius:12px;pointer-events:none}
.custom-album-empty-cover svg{
  display:block!important;width:34px!important;height:34px!important;max-width:34px!important;max-height:34px!important;
  fill:none!important;stroke:#7ce0b3!important;stroke-width:1.55!important;stroke-linecap:round!important;stroke-linejoin:round!important
}
.empty-cover-folder{z-index:1;display:grid;place-items:center;width:62px;height:58px;border:1px solid rgba(126,224,179,.23);border-radius:17px;background:linear-gradient(145deg,rgba(69,194,140,.19),rgba(33,105,72,.12));box-shadow:0 8px 22px rgba(0,0,0,.16)}
.custom-album-empty-cover>b{z-index:1;font-size:11px;letter-spacing:.1px}
.custom-album-empty-cover>small{z-index:1;color:rgba(218,244,229,.65);font-size:9px;text-align:center}
.empty-cover-orbit{position:absolute;border:1px solid rgba(122,225,177,.1);border-radius:50%;pointer-events:none}
.empty-cover-orbit-one{width:190px;height:190px}
.empty-cover-orbit-two{width:135px;height:135px}
.custom-album-folder .photo-album-info{min-height:65px}
.custom-album-folder .photo-album-info b{font-size:13px}
@media(max-width:760px){
 .create-album-panel{padding:18px}
 .create-album-form{grid-template-columns:1fr 1fr}
 .create-album-form button{grid-column:1/-1;width:100%}
}
@media(max-width:560px){
 .create-album-panel{padding:15px;border-radius:15px}
 .create-album-intro{align-items:flex-start}
 .create-album-form,.gallery-upload-options{grid-template-columns:1fr}
 .create-album-form button{grid-column:auto}
 .custom-album-empty-cover{min-height:138px}
}


/* v79: explicit light-mode palette for Group Photos and custom albums.
   The shared stylesheet's base components use several dark fixed colors,
   so these scoped overrides ensure this page follows the selected theme. */
body:not(.dark-mode) .create-album-panel{
  background:linear-gradient(125deg,#f0faf4 0%,#ffffff 58%,#eaf7ef 100%)!important;
  border-color:#cfe5d7!important;
  box-shadow:0 12px 30px rgba(31,91,58,.08)!important;
}
body:not(.dark-mode) .create-album-panel:before{
  background:radial-gradient(circle,rgba(54,175,119,.13),transparent 70%)!important;
}
body:not(.dark-mode) .create-album-intro h2,
body:not(.dark-mode) .album-category-heading h3,
body:not(.dark-mode) .photo-section-heading h2,
body:not(.dark-mode) .gallery-filter-top b{color:#183c2b!important}
body:not(.dark-mode) .create-album-intro p,
body:not(.dark-mode) .album-category-heading p,
body:not(.dark-mode) .gallery-filter-top small{color:#687d70!important}
body:not(.dark-mode) .create-album-form label,
body:not(.dark-mode) .gallery-upload-options .caption-field{
  color:#355b45!important;
}
body:not(.dark-mode) .create-album-form input,
body:not(.dark-mode) .gallery-upload-options select{
  color:#203d2d!important;background:#fff!important;border-color:#cbded1!important;
}
body:not(.dark-mode) .create-album-form input::placeholder{color:#91a499!important}
body:not(.dark-mode) .create-album-form input:focus,
body:not(.dark-mode) .gallery-upload-options select:focus{
  border-color:#239b70!important;box-shadow:0 0 0 3px rgba(35,155,112,.12)!important;
}
body:not(.dark-mode) .create-album-icon{
  color:#21885e!important;background:linear-gradient(145deg,#e0f5e8,#f1fbf4)!important;
  border-color:#c9e9d5!important;
}
body:not(.dark-mode) .album-category-heading .eyebrow{color:#23865e!important}
body:not(.dark-mode) .monthly-album-heading{border-top-color:#dce9e0!important}
body:not(.dark-mode) .custom-album-folder .photo-album-cover{background:#edf7f0!important}
body:not(.dark-mode) .custom-album-empty-cover{
  background:radial-gradient(ellipse at 50% 38%,rgba(59,174,117,.13),transparent 57%),linear-gradient(145deg,#e8f6ed,#d9eee1 72%)!important;
  color:#24553a!important;
}
body:not(.dark-mode) .custom-album-empty-cover:after{border-color:rgba(42,121,75,.14)!important}
body:not(.dark-mode) .custom-album-empty-cover svg{
  stroke:#27865b!important;
}
body:not(.dark-mode) .empty-cover-folder{
  background:linear-gradient(145deg,#f7fff9,#e4f5e9)!important;
  border-color:#c5e5d0!important;box-shadow:0 8px 22px rgba(45,110,69,.10)!important;
}
body:not(.dark-mode) .custom-album-empty-cover>b{color:#28583d!important}
body:not(.dark-mode) .custom-album-empty-cover>small{color:#63816e!important}
body:not(.dark-mode) .empty-cover-orbit{border-color:rgba(42,121,75,.12)!important}
body:not(.dark-mode) .gallery-date-filter{
  background:#fff!important;border-color:#dce9e0!important;
  box-shadow:0 8px 22px rgba(34,82,52,.06)!important;
}
body:not(.dark-mode) .gallery-filter-icon{background:#e8f7ee!important;color:#23865e!important}
body:not(.dark-mode) .gallery-filter-fields label span{color:#657c6d!important}
body:not(.dark-mode) .gallery-filter-fields input[type=date]{
  background:#fff!important;color:#294536!important;border-color:#d1e1d6!important;color-scheme:light!important;
}
body:not(.dark-mode) .gallery-range-popover{
  background:#fff!important;border-color:#d7e7dc!important;color:#234332!important;
  box-shadow:0 18px 50px rgba(26,70,43,.18)!important;
}
body:not(.dark-mode) .gallery-calendar-day{color:#355a43!important}
body:not(.dark-mode) .gallery-calendar-day:hover,
body:not(.dark-mode) .gallery-calendar-day.is-between{background:#e8f6ed!important}
body:not(.dark-mode) .gallery-calendar-day.is-edge{background:#239b70!important;color:#fff!important}
body:not(.dark-mode) .gallery-calendar-footer{border-top-color:#e1ece4!important}
body:not(.dark-mode) .gallery-calendar-footer span{color:#718477!important}
body:not(.dark-mode) .gallery-range-reset{color:#60796a!important}
body:not(.dark-mode) .gallery-photo-tile,
body:not(.dark-mode) .photo-album-folder{
  background:#fff!important;border-color:#dce9e0!important;
  box-shadow:0 7px 20px rgba(34,82,52,.07)!important;
}
body:not(.dark-mode) .photo-album-info b,
body:not(.dark-mode) .gallery-photo-meta b{color:#234332!important}
body:not(.dark-mode) .photo-album-info small,
body:not(.dark-mode) .gallery-photo-meta small{color:#718477!important}
body:not(.dark-mode) .gallery-photo-meta{background:#fff!important}
body:not(.dark-mode) .gallery-tile-download{background:#e8f6ed!important;color:#23865e!important}
body:not(.dark-mode) .gallery-tile-delete{background:#fff1f0!important;color:#c65353!important}
body:not(.dark-mode) .gallery-upload-panel,
body:not(.dark-mode) .upload-panel,
body:not(.dark-mode) .photo-library-tools,
body:not(.dark-mode) .empty-album{
  color:#234332!important;
}
body:not(.dark-mode) .photo-dropzone,
body:not(.dark-mode) .cloud-photo-dropzone{
  background:#f5fbf7!important;border-color:#bcd9c7!important;
}
body:not(.dark-mode) .photo-dropzone label,
body:not(.dark-mode) .cloud-photo-picker{color:#315b43!important}
body:not(.dark-mode) .photo-dropzone .muted,
body:not(.dark-mode) .cloud-photo-dropzone .muted{color:#708779!important}
body:not(.dark-mode) .caption-field input,
body:not(.dark-mode) .caption-field select{
  color:#294536!important;background:#fff!important;border-color:#d1e1d6!important;
}
body:not(.dark-mode) .cloud-upload-footer small{color:#718477!important}
body:not(.dark-mode) .gallery-library-tools{color:#234332!important}


/* v80: compact, theme-aware Group Photos upload panel */
.gallery-upload-panel{
  padding:18px!important;
  border-radius:16px!important;
  margin:14px 0 18px!important;
  transition:background .2s ease,border-color .2s ease,color .2s ease;
}
.gallery-upload-panel .upload-panel-heading{margin:0 0 14px!important;gap:10px!important}
.gallery-upload-panel .upload-panel-heading h2{font-size:15px!important;margin:0 0 3px!important}
.gallery-upload-panel .upload-panel-heading p{font-size:11px!important;margin:0!important}
.gallery-upload-panel .gallery-dropzone{
  min-height:86px!important;height:auto!important;
  padding:12px 16px!important;border-radius:12px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
}
.gallery-upload-panel .cloud-photo-picker{
  display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:center!important;gap:12px!important;width:auto!important;
  min-height:0!important;padding:0!important;text-align:left!important;
}
.gallery-upload-panel .cloud-photo-picker b{font-size:13px!important;font-weight:700!important}
.gallery-upload-panel .cloud-photo-picker .dropzone-icon{
  width:34px!important;height:34px!important;min-width:34px!important;
  margin:0!important;border-radius:10px!important;
}
.gallery-upload-panel .cloud-photo-picker .gallery-pick-cta{margin:0!important}
.gallery-upload-panel .cloud-photo-picker .muted{display:none!important}
.gallery-upload-panel .cloud-file-count{
  margin:8px 0 0!important;font-size:10px!important;
}
.gallery-upload-panel .photo-batch-preview{margin-top:8px!important}
.gallery-upload-panel .gallery-upload-options{
  display:grid!important;grid-template-columns:1fr 1fr!important;
  gap:12px!important;margin-top:14px!important;
}
.gallery-upload-panel .caption-field{gap:5px!important;font-size:11px!important}
.gallery-upload-panel .caption-field input,
.gallery-upload-panel .caption-field select{
  min-height:39px!important;height:39px!important;padding:0 11px!important;
  border-radius:9px!important;font-size:11px!important;
}
.gallery-upload-panel .cloud-upload-footer{
  display:flex!important;justify-content:flex-end!important;
  align-items:center!important;margin-top:12px!important;
}
.gallery-upload-panel .cloud-upload-footer small{display:none!important}
.gallery-upload-panel .cloud-upload-footer .btn{
  min-height:38px!important;padding:0 15px!important;font-size:11px!important;
}
body:not(.dark-mode) .gallery-upload-panel{
  background:#fff!important;color:#203d2d!important;
  border:1px solid #d7e7dc!important;
  box-shadow:0 8px 24px rgba(28,76,46,.07)!important;
}
body:not(.dark-mode) .gallery-upload-panel .upload-panel-heading h2,
body:not(.dark-mode) .gallery-upload-panel .caption-field{color:#244b35!important}
body:not(.dark-mode) .gallery-upload-panel .upload-panel-heading p,
body:not(.dark-mode) .gallery-upload-panel .cloud-file-count{color:#718779!important}
body:not(.dark-mode) .gallery-upload-panel .gallery-dropzone{
  background:#f7fbf8!important;border:1px dashed #a9cdb6!important;color:#254b35!important;
}
body:not(.dark-mode) .gallery-upload-panel .cloud-photo-picker b{color:#254b35!important}
body:not(.dark-mode) .gallery-upload-panel .cloud-photo-picker .dropzone-icon{
  background:#e3f4e9!important;color:#21865b!important;
}
body:not(.dark-mode) .gallery-upload-panel .caption-field input,
body:not(.dark-mode) .gallery-upload-panel .caption-field select{
  background:#fff!important;color:#244b35!important;border:1px solid #d2e2d7!important;
}
body:not(.dark-mode) .gallery-upload-panel .caption-field input::placeholder{color:#91a397!important}
body.dark-mode .gallery-upload-panel{
  background:#14241b!important;color:#edf7f0!important;
  border:1px solid #2d4b39!important;
}
body.dark-mode .gallery-upload-panel .gallery-dropzone{
  background:#192d22!important;border:1px dashed #426b50!important;color:#eaf7ee!important;
}
body.dark-mode .gallery-upload-panel .caption-field input,
body.dark-mode .gallery-upload-panel .caption-field select{
  background:#0f1d15!important;color:#edf7f0!important;border-color:#355342!important;
}
@media(max-width:640px){
  .gallery-upload-panel{padding:13px!important}
  .gallery-upload-panel .gallery-upload-options{grid-template-columns:1fr!important;gap:9px!important}
  .gallery-upload-panel .gallery-dropzone{min-height:76px!important;padding:10px!important}
  .gallery-upload-panel .cloud-photo-picker{gap:9px!important}
  .gallery-upload-panel .cloud-photo-picker b{font-size:12px!important}
  .gallery-upload-panel .cloud-upload-footer .btn{width:100%;justify-content:center}
}


/* v82: Group Photos theme correction. Theme is stored on BODY, not HTML. */
body.dark-mode .gallery-upload-panel,
body.dark-mode .create-album-panel{
  background:#14241b!important;background-image:none!important;
  color:#e8f2eb!important;border:1px solid #304b3a!important;
  box-shadow:0 8px 24px rgba(0,0,0,.22)!important;
}
body.dark-mode .gallery-upload-panel .upload-panel-heading h2,
body.dark-mode .gallery-upload-panel .caption-field,
body.dark-mode .create-album-panel h2,
body.dark-mode .create-album-form label,
body.dark-mode .gallery-upload-options .caption-field{color:#e5f1e9!important}
body.dark-mode .gallery-upload-panel .upload-panel-heading p,
body.dark-mode .gallery-upload-panel .cloud-file-count,
body.dark-mode .create-album-panel p{color:#a9bbae!important}
body.dark-mode .gallery-upload-panel .gallery-dropzone{
  background:#192d22!important;background-image:none!important;
  border:1px dashed #426b50!important;color:#eaf7ee!important;
}
body.dark-mode .gallery-upload-panel .cloud-photo-picker b{color:#e5f1e9!important}
body.dark-mode .gallery-upload-panel .cloud-photo-picker .dropzone-icon,
body.dark-mode .gallery-upload-panel .upload-icon,
body.dark-mode .create-album-icon{background:#244633!important;color:#8ce0ad!important}
body.dark-mode .gallery-upload-panel .caption-field input,
body.dark-mode .gallery-upload-panel .caption-field select,
body.dark-mode .create-album-form input{
  background:#0f1d15!important;background-image:none!important;
  color:#edf7f0!important;border:1px solid #355342!important;
}
body.dark-mode .gallery-upload-panel input::placeholder,
body.dark-mode .create-album-form input::placeholder{color:#91a698!important}
body.dark-mode .gallery-upload-panel select option{background:#14241b;color:#edf7f0}
body.dark-mode .gallery-date-filter,
body.dark-mode .gallery-range-trigger,
body.dark-mode .gallery-range-popover{
  background:#14241b!important;background-image:none!important;
  color:#e8f2eb!important;border-color:#355342!important;
  box-shadow:0 14px 36px rgba(0,0,0,.4)!important;
}
body.dark-mode .gallery-range-trigger small,
body.dark-mode .gallery-calendar-weekdays span,
body.dark-mode .gallery-calendar-footer span{color:#a9bbae!important}
body.dark-mode .gallery-calendar-head button{background:#1b3023!important;color:#e8f2eb!important;border-color:#3b5a46!important}
body.dark-mode .gallery-calendar-day{color:#e8f2eb!important}
body.dark-mode .gallery-calendar-day:hover,
body.dark-mode .gallery-calendar-day.is-between{background:#244633!important}
body.dark-mode .gallery-calendar-day.is-edge{background:#239d73!important;color:#fff!important}
body.dark-mode .gallery-calendar-footer{border-color:#355342!important}
body.dark-mode .gallery-range-reset{color:#a9bbae!important}
body.dark-mode .gallery-photo-tile,
body.dark-mode .photo-album-folder{background:#14241b!important;color:#e8f2eb!important;border-color:#304b3a!important}
body.dark-mode .photo-album-info b,
body.dark-mode .gallery-photo-meta b{color:#e8f2eb!important}
body.dark-mode .photo-album-info small,
body.dark-mode .gallery-photo-meta small{color:#a9bbae!important}
body.dark-mode .gallery-photo-meta{background:#14241b!important}
body.dark-mode .custom-album-empty-cover{background:linear-gradient(145deg,#1b3425,#14241b)!important}
body.dark-mode .empty-cover-folder{background:#203b2b!important;border-color:#426b50!important}
body.dark-mode .custom-album-empty-cover b{color:#e5f1e9!important}
body.dark-mode .custom-album-empty-cover small{color:#a9bbae!important}

/* Light theme: explicit matching surfaces and readable controls. */
body:not(.dark-mode) .gallery-upload-panel,
body:not(.dark-mode) .create-album-panel{
  background:#fff!important;background-image:linear-gradient(135deg,#fff 0%,#f3faf5 100%)!important;
  color:#203d2d!important;border:1px solid #d5e7db!important;
  box-shadow:0 8px 24px rgba(28,76,46,.07)!important;
}
body:not(.dark-mode) .gallery-upload-panel .upload-panel-heading h2,
body:not(.dark-mode) .gallery-upload-panel .caption-field,
body:not(.dark-mode) .create-album-panel h2,
body:not(.dark-mode) .create-album-form label{color:#244b35!important}
body:not(.dark-mode) .gallery-upload-panel .upload-panel-heading p,
body:not(.dark-mode) .gallery-upload-panel .cloud-file-count,
body:not(.dark-mode) .create-album-panel p{color:#718779!important}
body:not(.dark-mode) .gallery-upload-panel .gallery-dropzone{
  background:#f7fbf8!important;background-image:none!important;
  border:1px dashed #a9cdb6!important;color:#254b35!important;
}
body:not(.dark-mode) .gallery-upload-panel .cloud-photo-picker b{color:#254b35!important}
body:not(.dark-mode) .gallery-upload-panel .cloud-photo-picker .dropzone-icon,
body:not(.dark-mode) .gallery-upload-panel .upload-icon,
body:not(.dark-mode) .create-album-icon{background:#e3f4e9!important;color:#21865b!important}
body:not(.dark-mode) .gallery-upload-panel .caption-field input,
body:not(.dark-mode) .gallery-upload-panel .caption-field select,
body:not(.dark-mode) .create-album-form input{
  background:#fff!important;background-image:none!important;
  color:#244b35!important;border:1px solid #d2e2d7!important;
}
body:not(.dark-mode) .gallery-upload-panel input::placeholder,
body:not(.dark-mode) .create-album-form input::placeholder{color:#91a397!important}
body:not(.dark-mode) .gallery-date-filter,
body:not(.dark-mode) .gallery-range-trigger,
body:not(.dark-mode) .gallery-range-popover{
  background:#fff!important;background-image:none!important;color:#244b35!important;
  border-color:#d2e2d7!important;box-shadow:0 14px 36px rgba(28,76,46,.14)!important;
}
body:not(.dark-mode) .gallery-range-trigger small,
body:not(.dark-mode) .gallery-calendar-weekdays span,
body:not(.dark-mode) .gallery-calendar-footer span{color:#718779!important}
body:not(.dark-mode) .gallery-calendar-head button{background:#f3faf5!important;color:#244b35!important;border-color:#d2e2d7!important}
body:not(.dark-mode) .gallery-calendar-day{color:#244b35!important}
body:not(.dark-mode) .gallery-calendar-day:hover,
body:not(.dark-mode) .gallery-calendar-day.is-between{background:#e5f4e9!important}
body:not(.dark-mode) .gallery-calendar-day.is-edge{background:#239d73!important;color:#fff!important}
body:not(.dark-mode) .gallery-calendar-footer{border-color:#dce9e0!important}
body:not(.dark-mode) .gallery-range-reset{color:#60796a!important}
body:not(.dark-mode) .gallery-photo-tile,
body:not(.dark-mode) .photo-album-folder{background:#fff!important;color:#244b35!important;border-color:#dce9e0!important}
body:not(.dark-mode) .photo-album-info b,
body:not(.dark-mode) .gallery-photo-meta b{color:#234332!important}
body:not(.dark-mode) .photo-album-info small,
body:not(.dark-mode) .gallery-photo-meta small{color:#718477!important}
body:not(.dark-mode) .gallery-photo-meta{background:#fff!important}
body:not(.dark-mode) .custom-album-empty-cover{background:linear-gradient(145deg,#e8f6ed,#d9eee1)!important}
body:not(.dark-mode) .empty-cover-folder{background:#f7fff9!important;border-color:#c5e5d0!important}
body:not(.dark-mode) .custom-album-empty-cover b{color:#28583d!important}
body:not(.dark-mode) .custom-album-empty-cover small{color:#63816e!important}

/* Date range popup must stay above gallery content and work on touch screens. */
.gallery-range-control{position:relative;z-index:20}
.gallery-range-trigger{min-height:46px}
.gallery-range-popover{min-width:306px;max-width:calc(100vw - 32px);z-index:9999}
.gallery-calendar-days{grid-template-columns:repeat(7,minmax(0,1fr))!important}
.gallery-calendar-day{display:grid;place-items:center;min-width:0;min-height:34px;padding:0!important}
.gallery-calendar-footer button{min-height:34px;padding:7px 10px}
@media(max-width:480px){
 .gallery-range-popover{left:0;right:auto;width:min(306px,calc(100vw - 32px));}
 .gallery-calendar-footer{flex-wrap:wrap}
 .gallery-calendar-footer span{flex-basis:100%}
}


/* v83: resolve theme cascade for Group Photos. Do not infer theme from <html>.
   The app toggles body.dark-mode; these scoped rules now control the upload panel. */
body.dark-mode .gallery-upload-panel,
body.dark-mode .gallery-upload-panel .gallery-dropzone{
  background:#14241b!important;background-image:none!important;color:#e8f2eb!important;
  border-color:#355342!important;
}
body.dark-mode .gallery-upload-panel .upload-panel-heading h2,
body.dark-mode .gallery-upload-panel .upload-panel-heading b,
body.dark-mode .gallery-upload-panel .caption-field,
body.dark-mode .gallery-upload-panel .caption-field span,
body.dark-mode .gallery-upload-panel .cloud-photo-picker,
body.dark-mode .gallery-upload-panel .cloud-photo-picker b{
  color:#e8f2eb!important;
}
body.dark-mode .gallery-upload-panel .upload-panel-heading p,
body.dark-mode .gallery-upload-panel .cloud-file-count,
body.dark-mode .gallery-upload-panel .cloud-photo-picker .muted,
body.dark-mode .gallery-upload-panel .cloud-upload-footer small{
  color:#a9bbae!important;
}
body.dark-mode .gallery-upload-panel .caption-field input,
body.dark-mode .gallery-upload-panel .caption-field select{
  background:#0f1d15!important;background-image:none!important;color:#edf7f0!important;
  border-color:#355342!important;
}
body.dark-mode .gallery-upload-panel .cloud-photo-picker .dropzone-icon,
body.dark-mode .gallery-upload-panel .upload-icon{
  background:#244633!important;color:#8ce0ad!important;
}
body:not(.dark-mode) .gallery-upload-panel{
  background:linear-gradient(135deg,#fff 0%,#f3faf5 100%)!important;
  color:#244b35!important;border-color:#d5e7db!important;
}
body:not(.dark-mode) .gallery-upload-panel .gallery-dropzone{
  background:#f7fbf8!important;color:#254b35!important;border-color:#a9cdb6!important;
}
body:not(.dark-mode) .gallery-upload-panel .upload-panel-heading h2,
body:not(.dark-mode) .gallery-upload-panel .caption-field,
body:not(.dark-mode) .gallery-upload-panel .cloud-photo-picker,
body:not(.dark-mode) .gallery-upload-panel .cloud-photo-picker b{
  color:#254b35!important;
}
body:not(.dark-mode) .gallery-upload-panel .upload-panel-heading p,
body:not(.dark-mode) .gallery-upload-panel .cloud-file-count,
body:not(.dark-mode) .gallery-upload-panel .cloud-upload-footer small{
  color:#718779!important;
}
body:not(.dark-mode) .gallery-upload-panel .caption-field input,
body:not(.dark-mode) .gallery-upload-panel .caption-field select{
  background:#fff!important;color:#244b35!important;border-color:#d2e2d7!important;
}

/* Note expiry indicator */
.note-expiry-hint{display:block;margin-top:5px;padding-top:4px;border-top:1px solid var(--line);font-size:9px;line-height:1.2;font-weight:650;color:var(--muted);white-space:normal}
body.dark-mode .note-expiry-hint{color:#b7c9be}

/* Notes bubbles: force a clear white surface in light mode on every profile surface. */
html body:not(.dark-mode) .crew-story-note,
html body:not(.dark-mode) .note-bubble,
html body:not(.dark-mode) .member-note-bubble,
html body:not(.dark-mode) .profile-note-bubble {
  background:#fff!important;
  background-color:#fff!important;
  color:#24352b!important;
  border:1px solid #cbd9cf!important;
  box-shadow:0 4px 14px rgba(24,52,36,.20)!important;
  opacity:1!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
html body:not(.dark-mode) .crew-story-note:after,
html body:not(.dark-mode) .note-bubble:after,
html body:not(.dark-mode) .member-note-bubble:after,
html body:not(.dark-mode) .profile-note-bubble:after {
  background:#fff!important;
  background-color:#fff!important;
  border-right:1px solid #cbd9cf!important;
  border-bottom:1px solid #cbd9cf!important;
}
html body:not(.dark-mode) .note-expiry-hint {
  color:#617568!important;
  border-top-color:#dce6df!important;
}
body:not(.dark-mode) .note-expiry-hint {
  color:#617568!important;
  border-top-color:#dce6df!important;
}
body.dark-mode .crew-story-note,
body.dark-mode .note-bubble,
body.dark-mode .member-note-bubble,
body.dark-mode .profile-note-bubble {
  background-color:#18251e!important;
  color:#e6f1eb!important;
  border-color:#34483d!important;
}
body.dark-mode .crew-story-note:after,
body.dark-mode .note-bubble:after,
body.dark-mode .member-note-bubble:after,
body.dark-mode .profile-note-bubble:after {
  background-color:#18251e!important;
  border-color:#34483d!important;
}

/* Global profile-avatar fallback and small-screen safety improvements */
.avatar-fallback,
img.avatar-fallback,
.feed-avatar.avatar-fallback,
.crew-story-avatar.avatar-fallback,
.member-profile-avatar.avatar-fallback,
.social-profile-avatar.avatar-fallback,
.profile-feed-avatar.avatar-fallback,
.note-avatar.avatar-fallback,
.payment-person-avatar.avatar-fallback,
.expense-person-avatar.avatar-fallback {
  display:inline-grid!important;place-items:center!important;flex:0 0 auto;
  border-radius:50%;object-fit:cover;overflow:hidden;
  background:var(--avatar-fallback-bg,linear-gradient(135deg,#dcefe4,#b9ddc8))!important;
  color:var(--avatar-fallback-ink,#245b40)!important;font-weight:800;
  text-transform:uppercase;line-height:1;letter-spacing:.02em;
}
body.dark-mode .avatar-fallback,
body.dark-mode img.avatar-fallback,
body.dark-mode .feed-avatar.avatar-fallback,
body.dark-mode .crew-story-avatar.avatar-fallback,
body.dark-mode .member-profile-avatar.avatar-fallback,
body.dark-mode .social-profile-avatar.avatar-fallback,
body.dark-mode .profile-feed-avatar.avatar-fallback,
body.dark-mode .note-avatar.avatar-fallback,
body.dark-mode .payment-person-avatar.avatar-fallback,
body.dark-mode .expense-person-avatar.avatar-fallback {
  --avatar-fallback-bg:linear-gradient(135deg,#294b39,#1b3528);
  --avatar-fallback-ink:#e2f4e9;
}
@media(max-width:760px){
  html,body{max-width:100%;overflow-x:hidden}
  img,video,iframe{max-width:100%}
  input,select,textarea,button{max-width:100%}
  .panel,.feature-panel,.feed-post,.note-card,.notes-composer{min-width:0}
  .section-heading,.feed-post-head,.feed-composer-tools{flex-wrap:wrap}
  .feed-post-head>div,.profile-feed-author,.note-meta{min-width:0;overflow-wrap:anywhere}
  .table-wrap,.table-responsive{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
@media(max-width:480px){
  .btn,button{touch-action:manipulation}
  .modal,.dialog,.modal-content{max-width:calc(100vw - 20px)}
  .feed-avatar,.avatar{flex-shrink:0}
}


/* Default person silhouette for accounts without an uploaded profile photo. */
.avatar-person-placeholder{display:grid!important;place-items:center;overflow:hidden;background:#e5f3ea!important;color:#438363!important;border-radius:50%;flex-shrink:0}
.avatar-person-placeholder svg{display:block;width:58%;height:58%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.profile-picture-placeholder.avatar-person-placeholder{border-radius:50%;background:#e5f3ea!important;color:#438363!important}
body.dark-mode .avatar-person-placeholder{background:#294638!important;color:#b9dfc8!important}
body.dark-mode .profile-picture-placeholder.avatar-person-placeholder{background:#294638!important;color:#b9dfc8!important}
@media(max-width:560px){.avatar-person-placeholder svg{width:62%;height:62%}}
