:root{--ink:#292637;--muted:#88869b;--line:#eceaf4;--paper:#f7f6fb;--white:#fff;--purple:#8369d0;--purple-light:#f1edfd;--pink:#ff79b0;--green:#82bc94;--shadow:0 6px 36px rgba(42,30,82,.035);--font:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI",Arial,sans-serif;--emoji:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
*{box-sizing:border-box}html{height:100%}body{margin:0;color:var(--ink);font-family:var(--font);background:var(--paper);line-height:1.45}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #bdb0ee;outline-offset:2px}.emoji{font-family:var(--emoji);font-style:normal}a{color:inherit}h1,h2,h3,p{margin:0}.boot{padding:30vh 20px;text-align:center;color:#8674cc;font-weight:800;letter-spacing:.1em}#toast{position:fixed;bottom:24px;right:25px;z-index:80;display:none;max-width:360px;background:#2e293e;color:white;padding:13px 19px;border-radius:14px;box-shadow:0 12px 32px #271e4438;font-size:13px}#toast.visible{display:block}#toast.bad{background:#ad465b}
/* LOGIN */
.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(330px,1fr) minmax(360px,1fr);background:white}.login-art{position:relative;overflow:hidden;background:linear-gradient(155deg,#eadfff 0%,#fbe4ed 49%,#e1eafc 100%);padding:60px 9%;display:flex;flex-direction:column;justify-content:space-between;min-height:750px}.login-art:before{content:"";position:absolute;border:1px solid rgba(255,255,255,.6);width:550px;height:550px;border-radius:50%;top:24%;left:14%;box-shadow:0 0 0 75px rgba(255,255,255,.13),0 0 0 165px rgba(255,255,255,.10)}.brand{display:flex;gap:10px;align-items:center;font-weight:900;letter-spacing:.02em;font-size:20px;position:relative;z-index:1}.brand-mark{width:35px;height:35px;border-radius:12px;background:#7964c9;color:white;display:grid;place-items:center;font-size:21px}.brand small{font-size:10px;display:block;letter-spacing:.16em;color:#a09ab0;font-weight:750}.art-copy{position:relative;z-index:1;max-width:570px}.art-copy .kicker{font-size:12px;letter-spacing:.2em;font-weight:800;color:#866ab8}.art-copy h1{font-size:clamp(48px,6vw,86px);font-weight:850;letter-spacing:-.065em;line-height:1.03;margin:14px 0 20px}.art-copy h1 em{font-style:normal;color:#9278d6}.art-copy p{color:#756d85;font-size:17px;max-width:380px}.art-bottom{z-index:1;display:flex;justify-content:space-between;color:#827891;font-size:12px;gap:10px}.float-bubble{z-index:1;position:absolute;border:1px solid #ffffffa8;background:#ffffffad;backdrop-filter:blur(18px);padding:14px 20px;border-radius:24px;box-shadow:0 18px 44px #8473b428;font-weight:750;font-size:15px;transform:rotate(-7deg);right:7%;top:22%}.float-bubble.two{left:14%;right:auto;top:70%;transform:rotate(9deg)}.login-panel{display:flex;align-items:center;justify-content:center;padding:40px 7%}.login-inner{width:min(440px,100%)}.mini-label{display:block;color:#8d82ab;text-transform:uppercase;letter-spacing:.16em;font-size:10px;font-weight:850;margin-bottom:10px}.login-inner h2{font-size:35px;letter-spacing:-.045em;line-height:1.1;margin:0 0 10px}.sub{color:var(--muted);font-size:14px;line-height:1.6}.step{display:flex;align-items:center;gap:8px;color:#bcb9ca;font-size:12px;font-weight:750;margin-bottom:30px}.step b{color:var(--purple)}.group-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:28px 0 25px}.group-card{background:#fff;border:1.5px solid var(--line);border-radius:18px;padding:23px 17px;text-align:left;transition:all .15s}.group-card:hover,.group-card.selected{border-color:#a995e9;background:#f9f7ff;box-shadow:0 5px 20px #8476ad1b}.group-card .group-emoji{font-size:29px;display:block;margin-bottom:15px}.group-card strong{font-size:17px;display:block}.group-card small{font-size:12px;color:var(--muted)}.member-select{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:24px 0}.member-choice{display:flex;gap:10px;align-items:center;text-align:left;border:1.5px solid var(--line);border-radius:14px;background:white;padding:12px 13px;font-weight:700;font-size:13px}.member-choice span:first-child{font-size:23px}.member-choice.selected{border-color:var(--purple);background:#f8f5ff}.member-choice:hover{border-color:#b7a6e8}.avatar{width:36px;height:36px;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;border-radius:12px;background:var(--avatar-bg,#f0edf9);font-size:19px}.member-dot{width:9px;height:9px;border-radius:50%;display:inline-block;background:var(--dot,#aaa)}.login-action{margin-top:15px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border:1px solid transparent;border-radius:12px;font-size:13px;font-weight:750;background:white;white-space:nowrap;transition:background .13s,transform .13s}.btn:hover{transform:translateY(-1px)}.btn-primary{background:#8169d0;color:white}.btn-primary:hover{background:#7059c2}.btn-outline{border-color:var(--line);background:white;color:#534e67}.btn-soft{background:var(--purple-light);color:#7962c1}.btn-quiet{background:transparent;color:#857e99}.btn-danger{background:#fff0f0;color:#ad4660}.btn-wide{width:100%;padding:15px;font-size:14px}.back{border:none;background:transparent;font-size:13px;font-weight:700;color:#8370b9;padding:0;margin:0 0 16px}.color-swatches{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.swatch{height:35px;width:35px;border-radius:50%;background:var(--color);border:3px solid white;outline:1px solid #eae7f2;box-shadow:0 2px 3px #8881a222}.swatch.selected{outline:3px solid #7360bf;outline-offset:1px}
/* APP */
.shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:30px 17px 20px;display:flex;flex-direction:column;gap:28px;position:sticky;top:0;height:100vh;overflow:auto}.sidebar .brand{padding:0 9px}.side-label{font-size:10px;font-weight:850;letter-spacing:.12em;color:#aaa4b5;padding:0 14px 9px}.nav-item{display:flex;gap:12px;align-items:center;width:100%;padding:12px 14px;border:0;background:transparent;text-align:left;border-radius:12px;color:#7a7589;font-size:13px;font-weight:650;margin:2px 0}.nav-item .navico{font-size:18px;width:23px;text-align:center}.nav-item:hover{background:#f8f7fc}.nav-item.active{background:#f2eefc;color:#765dbe;font-weight:800}.nav-list{display:flex;flex-direction:column}.side-bottom{margin-top:auto}.side-team{border:1px solid #ede9f5;border-radius:14px;background:#faf8ff;padding:14px}.side-team strong{font-size:13px}.side-team p{font-size:11px;color:#9892a7;margin:4px 0 10px}.side-user{display:flex;gap:9px;align-items:center;padding:10px 5px}.side-user strong{font-size:13px}.side-user small{display:block;color:#aca5b7;font-size:11px}.logout{border:0;background:transparent;font-size:11px;color:#9a94a6;text-decoration:underline;text-align:left;padding:3px 5px}.main{padding:29px clamp(20px,3.4vw,58px) 70px;min-width:0;max-width:1650px;width:100%;margin:0 auto}.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:35px}.breadcrumb{color:#aaa5b8;font-weight:700;font-size:12px}.breadcrumb b{color:#70678d}.top-right{display:flex;gap:9px;align-items:center}.group-pill{display:flex;align-items:center;gap:7px;border:1px solid #e9e4f5;background:white;border-radius:999px;padding:8px 13px;color:#7158b8;font-size:11px;font-weight:800}.user-pill{display:flex;align-items:center;gap:8px;border:1px solid #e9e4f5;border-radius:999px;background:white;padding:5px 12px 5px 5px;font-weight:750;font-size:12px}.page-head{display:flex;gap:20px;align-items:flex-start;justify-content:space-between;margin-bottom:25px}.eyebrow{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#a195b7;font-weight:850;margin-bottom:8px}.page-head h1{font-size:clamp(29px,3vw,39px);letter-spacing:-.055em;line-height:1.05;margin-bottom:7px}.page-head p{color:var(--muted);font-size:13px}.panel{background:var(--white);border:1px solid var(--line);border-radius:19px;box-shadow:var(--shadow);padding:22px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.panel-head h2,.section-heading{font-size:16px;font-weight:850;letter-spacing:-.025em}.muted{color:var(--muted)}.tiny{font-size:11px}.small{font-size:12px}.metric{font-size:30px;font-weight:850;letter-spacing:-.045em}.badge{display:inline-flex;gap:5px;align-items:center;background:#f4f1fb;color:#836abf;font-size:10px;font-weight:850;border-radius:999px;padding:6px 11px}.badge.good{color:#4c9970;background:#e9f7ef}.badge.neutral{color:#8b849b;background:#f5f3f8}.tag{display:inline-flex;align-items:center;gap:5px;background:var(--tbg,#f4f1fb);color:var(--tcolor,#7d64bd);border-radius:999px;padding:5px 10px;font-weight:800;font-size:10px}.tag .emoji{font-size:12px}.empty{border:1px dashed #ded8ec;background:#fbfaff;border-radius:15px;padding:30px;color:#a098af;text-align:center;font-size:13px}.empty b{color:#665879;display:block;margin:6px 0}.empty .empty-icon{font-size:25px}.split{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:18px}.cards3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}.stat{min-height:150px}.stat .stat-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#f3efff;font-size:22px;margin-bottom:15px}.stat small{display:block;color:var(--muted);font-size:11px}.hello{position:relative;overflow:hidden;background:linear-gradient(110deg,#e9e2ff,#ffeff4 75%);border-radius:20px;padding:28px 30px;margin-bottom:20px;min-height:162px;display:flex;align-items:center;justify-content:space-between;gap:20px}.hello h2{font-size:28px;letter-spacing:-.05em}.hello p{font-size:12px;color:#817891;max-width:460px;margin-top:8px}.hello .hero-icons{font-size:57px;letter-spacing:-18px;white-space:nowrap;padding-right:30px}.list-row{padding:13px 0;display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid #f0eef5}.list-row:last-child{border:0}.list-title{font-size:13px;font-weight:750}.list-sub{font-size:11px;color:#9690a6;margin-top:3px}.row{display:flex;align-items:center;gap:10px}.row-between{display:flex;justify-content:space-between;align-items:center;gap:12px}.stack{display:flex;flex-direction:column;gap:12px}
/* FORMS */
input[type=text],input[type=password],input[type=url],textarea,select{width:100%;border:1px solid #e9e5f2;border-radius:11px;padding:11px 12px;background:#fbfaff;color:#353045;outline:0;font-size:13px}input:focus,textarea:focus,select:focus{border-color:#ad99e4;box-shadow:0 0 0 3px #b9a6e826}textarea{resize:vertical;min-height:92px}label{display:block;font-size:12px;color:#5e596e;font-weight:750;margin-bottom:7px}.field{margin-bottom:16px}.hint{color:#a19bae;font-size:11px;margin-top:6px}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}.seg-tabs{display:flex;gap:5px;background:#f2eff7;border-radius:11px;padding:4px;max-width:max-content}.seg-tabs button{border:0;padding:8px 15px;background:transparent;border-radius:9px;color:#948ca7;font-size:12px;font-weight:800}.seg-tabs button.active{color:#7961bf;background:white;box-shadow:0 1px 4px #8881a11d}.modal-overlay{position:fixed;z-index:70;inset:0;background:#241c38a3;display:grid;place-items:center;padding:20px}.modal{background:white;border-radius:20px;width:min(520px,100%);padding:28px;box-shadow:0 25px 100px #1a153a50;max-height:90vh;overflow:auto}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.modal h2{font-size:22px;letter-spacing:-.04em}.x{border:0;background:#f5f3f8;width:31px;height:31px;border-radius:10px;font-size:16px;color:#6f697d}.option-field{display:flex;gap:8px;align-items:center;margin:9px 0}.option-field input{flex:1}.option-field button{border:0;background:#fff0f3;border-radius:9px;color:#ba6a7b;padding:9px}
/* CALENDAR */
.calendar-top{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.week-switch{display:flex;align-items:center;gap:7px}.week-switch .iconbtn{width:35px;height:35px;border:1px solid var(--line);background:white;border-radius:10px;font-size:19px;color:#74658d}.week-text{font-size:14px;font-weight:850;margin:0 9px;min-width:200px;text-align:center}.legend{display:flex;gap:9px;flex-wrap:wrap}.legend .tag{font-size:11px;padding:7px 10px}.legend .tag.current{outline:2px solid #9e83d4}.calendar-wrap{overflow:auto;border:1px solid #eceaf4;border-radius:14px;background:#fff;max-height:660px}.cal-grid{display:grid;grid-template-columns:65px repeat(7,minmax(112px,1fr));min-width:850px}.cal-day,.cal-corner{position:sticky;top:0;z-index:3;text-align:center;background:#fdfcff;border-bottom:1px solid #ece9f3;padding:11px 2px;color:#9d97aa;font-size:11px;font-weight:800}.cal-day strong{display:block;color:#4b405e;font-size:14px}.cal-day.today strong{color:#8064c9}.cal-day.today{background:#f6f2ff}.cal-time{display:flex;align-items:flex-start;justify-content:center;font-size:10px;color:#aca6b9;padding-top:0;position:relative;top:-6px;transform:translateY(11px);background:white;border-right:1px solid #f1eef7;height:25px}.cal-cell{border:0;border-bottom:1px solid #f1eff7;border-right:1px solid #f1eff7;height:25px;position:relative;background:var(--cell-bg,#fff);transition:background .1s;padding:0;touch-action:none}.cal-cell:nth-child(16n){}.cal-cell:hover{outline:2px solid #a58bd7;outline-offset:-2px;z-index:1}.cal-cell.mine{box-shadow:inset 0 0 0 1.5px var(--mine-color,#8e7cc3)}.cal-cell .stripe{display:flex;position:absolute;left:0;right:0;bottom:0;height:5px;gap:1px}.cal-cell .stripe i{flex:1;background:var(--stripe);border-radius:2px 2px 0 0}.cal-cell .ct{font-size:9px;font-weight:850;color:#605279;position:absolute;top:3px;right:6px}.calendar-info{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:9px;margin-top:13px;color:#918a9f;font-size:11px}.overlap{border-radius:15px;background:#f8f6ff;border:1px solid #ebe6fa;padding:13px 15px;margin-top:14px}.overlap strong{font-size:12px}.overlap span{font-size:11px;color:#837993}.weekday-note{font-size:11px;color:#a19aac}
/* POSTS, POLLS & IDEAS */
.idea-card,.poll-card,.post-card,.link-card{padding:19px 20px;background:white;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.feed{display:flex;flex-direction:column;gap:12px}.idea-card p,.post-card p{font-size:13px;line-height:1.7;white-space:pre-wrap}.meta{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.meta time{color:#aaa4b7;font-size:10px}.reactions{display:flex;gap:7px;margin-top:15px}.reaction{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;background:#f8f7fc;border:1px solid #eeebf5;border-radius:9px;font-size:12px;font-weight:750;color:#8c8499}.reaction.active.like{background:#eafaef;border-color:#bce7cb;color:#529e70}.reaction.active.dislike{background:#fff0f1;border-color:#f6ced8;color:#c36a83}.poll-card h3,.post-card h3{font-size:17px;letter-spacing:-.025em;margin-bottom:5px}.poll-card p{color:#8c8799;font-size:12px;margin-bottom:16px}.poll-option{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid #e9e7f1;border-radius:11px;margin:8px 0;font-size:13px;font-weight:650;cursor:pointer;transition:background .15s}.poll-option:hover{background:#faf8ff}.poll-option.selected{border-color:#a998da;background:#f8f5ff}.poll-option input{accent-color:#8c72d7}.progressline{height:6px;background:#f0eef5;border-radius:100px;margin:14px 0 9px;overflow:hidden}.progressline div{background:#9a82da;height:100%;border-radius:100px}.poll-result{margin-top:12px}.result-row{display:grid;grid-template-columns:100px 1fr 45px;gap:12px;align-items:center;margin:12px 0;font-size:12px}.result-bar{background:#efedf6;border-radius:100px;height:8px;overflow:hidden}.result-bar div{height:100%;background:#9a82da;border-radius:100px}.vote-person{display:flex;align-items:center;justify-content:space-between;font-size:12px;padding:8px 0;border-top:1px solid #f1eef7}.winner{background:#effaf2;border:1px solid #d5efdc;color:#4a9568;border-radius:12px;padding:12px;font-size:13px;font-weight:800;margin:15px 0}.pending{display:flex;flex-wrap:wrap;gap:5px;margin-top:11px}.post-card .post-body{font-size:13px;color:#555060;line-height:1.8;margin-top:12px}.post-card .tag{margin:7px 0 3px}.link-card{display:flex;justify-content:space-between;align-items:center;gap:14px}.link-card h3{font-size:14px;margin:0 0 4px}.link-card p{color:#928ba4;font-size:11px}.link-icon{width:43px;height:43px;flex-shrink:0;border-radius:13px;background:#f3effe;display:grid;place-items:center;color:#8871c7;font-size:20px}.tabs-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:15px;margin-bottom:19px}.announce-badge{font-size:11px;color:#9e94b0}.admin-list .list-row strong{font-size:12px}
/* SETTINGS */
.settings-grid{display:grid;grid-template-columns:minmax(250px,1fr) minmax(260px,1fr);gap:18px}.profile-preview{display:flex;gap:13px;align-items:center;background:#faf8ff;padding:15px;border-radius:14px;margin-bottom:18px}.profile-preview .avatar{width:51px;height:51px;font-size:26px}.settings-card{max-width:600px}.section-gap{margin-top:22px}.line-sep{border:0;border-top:1px solid #f0ecf5;margin:18px 0}.mobile-nav{display:none}.responsive-stack{min-width:0}
@media(max-width:1050px){.shell{grid-template-columns:205px 1fr}.sidebar{padding:22px 10px}.main{padding:25px 21px 65px}.split{grid-template-columns:1fr}.cards3{gap:10px}.panel{padding:18px}.hello{padding:24px}}
@media(max-width:760px){.login-page{grid-template-columns:1fr}.login-art{min-height:300px;padding:27px}.art-copy h1{font-size:43px}.art-copy p{font-size:13px}.art-bottom,.float-bubble{display:none}.login-panel{padding:32px 24px 60px}.shell{display:block;padding-bottom:64px}.sidebar{display:none}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:60;border-top:1px solid #e7e3f1;background:#fffc;backdrop-filter:blur(15px);justify-content:space-around;padding:8px 3px max(7px,env(safe-area-inset-bottom))}.mobile-nav button{background:none;border:0;color:#aaa1b6;font-size:9px;display:flex;align-items:center;gap:1px;flex-direction:column;font-weight:700;min-width:40px}.mobile-nav button .emoji{font-size:20px}.mobile-nav button.active{color:#785dc0}.main{padding:23px 16px 35px}.topbar{margin-bottom:27px}.top-right .group-pill{display:none}.page-head h1{font-size:30px}.page-head{align-items:flex-start}.cards3{grid-template-columns:1fr 1fr}.stat{min-height:125px}.stat .stat-icon{margin-bottom:10px}.hello .hero-icons{font-size:39px;padding-right:18px}.settings-grid{grid-template-columns:1fr}.modal{padding:22px}.week-text{min-width:155px;font-size:12px}.page-head .btn{padding:9px 10px;font-size:11px}.section-heading{font-size:14px}}
@media(max-width:420px){.member-select{grid-template-columns:1fr 1fr}.cards3{grid-template-columns:1fr 1fr}.top-right .user-pill{font-size:10px}.hello .hero-icons{display:none}.form-actions{flex-wrap:wrap}.panel-head{align-items:flex-start}}
/* FIFTY HQ 2.0 · personal tasks and home-screen mobile experience */
.cards3{grid-template-columns:repeat(4,minmax(0,1fr))}
.task-page{max-width:1040px;margin:auto}
.task-banner{position:relative;display:flex;align-items:center;justify-content:space-between;overflow:hidden;border-radius:24px;background:linear-gradient(110deg,#eee5ff 0%,#fce8f0 100%);padding:27px 30px;margin-bottom:18px;min-height:155px}
.task-banner h2{font-size:27px;letter-spacing:-.05em;color:#4d3d6f;margin:7px 0 4px}
.task-banner p{font-size:12px;color:#877a99}
.task-big-check{display:grid;place-items:center;flex-shrink:0;width:95px;height:95px;border:1px solid #fff9;border-radius:100%;font-size:64px;color:#9879d6;background:#fff8;transform:rotate(-8deg)}
.task-admin{margin-bottom:18px;display:grid;grid-template-columns:1fr;gap:4px;padding:17px 20px}
.task-admin select{max-width:420px}
.task-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:21px 0 11px}
.task-progress-text{font-size:12px;color:#8c7ba6;font-weight:800}
.task-progress-track{background:#ece8f3;border-radius:100px;overflow:hidden;height:7px;margin-bottom:19px}
.task-progress-track div{height:100%;background:linear-gradient(90deg,#ae92e8,#eb98ca);border-radius:100px;transition:width .2s}
.task-list{display:flex;flex-direction:column;gap:10px}
.task-item{display:flex;align-items:flex-start;gap:14px;background:#fff;border:1px solid #e9e4f1;box-shadow:0 8px 24px #3a1c7108;border-radius:17px;padding:18px 16px}
.task-item.completed{background:#fdfcff;opacity:.82}
.task-check{display:grid;place-items:center;flex-shrink:0;height:27px;width:27px;border:2px solid #c2b0e7;border-radius:9px;background:#fff;color:#fff;font-weight:800;font-size:16px;margin-top:3px}
.task-item.completed .task-check{background:#9580d2;border-color:#9580d2}
.task-content{flex:1;min-width:0}
.task-content h3{font-size:14px;font-weight:800;color:#4b3f59;line-height:1.45;overflow-wrap:anywhere}
.task-item.completed .task-content h3{text-decoration:line-through;color:#aaa5b2}
.task-content p{font-size:12px;color:#928ba2;margin:5px 0 8px;white-space:pre-wrap;line-height:1.65;overflow-wrap:anywhere}
.task-tags{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:10px}
.priority,.due-tag{font-size:10px;font-weight:800;display:inline-flex;gap:3px;align-items:center;padding:5px 9px;border-radius:100px;background:#f8f6fc;color:#8d829a}
.priority.high{background:#fff0f1;color:#c36d85}.priority.low{background:#eaf9f5;color:#469c86}.due-tag.overdue{background:#fff0ef;color:#c05065}
.task-edit,.task-remove{border:0;background:transparent;color:#b1a4c8;padding:5px 8px;font-size:22px;border-radius:10px;line-height:1}
.task-edit:hover,.task-remove:hover{background:#f7f3ff;color:#775db3}
.task-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:18px;flex-wrap:wrap}
.task-form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
input[type=date]{width:100%;padding:10px 12px;border:1px solid #e9e5f2;border-radius:11px;background:#fbfaff;color:#353045;min-height:43px;font:inherit}
.more-grid{display:grid;gap:12px;max-width:800px}
.more-item{display:flex;gap:15px;align-items:center;width:100%;text-align:left;background:#fff;border:1px solid #ebe6f2;border-radius:17px;padding:17px;box-shadow:var(--shadow)}
.more-icon{display:grid;place-items:center;background:#f4edff;border-radius:14px;font-size:23px;width:49px;height:49px}
.more-item strong{display:block;font-size:14px}.more-item small{display:block;color:#968ca8;font-size:12px;margin-top:3px}.more-arrow{margin-left:auto;color:#9883b1;font-size:26px}
.admin-member-row{border-bottom:1px solid #eee9f2;padding:11px 0}.admin-member-actions{display:flex;gap:7px;margin-top:9px;flex-wrap:wrap}
/* Compact bottom navigation with native-app safe areas */
@media(max-width:1100px){.cards3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  html,body{overscroll-behavior-y:contain}
  body{background:#fbfaff}
  .main{padding:14px 15px calc(109px + env(safe-area-inset-bottom));min-height:100dvh}
  .topbar{margin-bottom:20px;display:flex;align-items:center;justify-content:space-between;min-height:42px}
  .breadcrumb{font-size:10px}
  .top-right .user-pill{padding:5px 8px;border-radius:40px;font-size:10px;white-space:nowrap}
  .top-right .avatar{width:23px;height:23px;font-size:15px}
  .page-head{margin-bottom:19px;gap:12px;align-items:center}
  .page-head h1{font-size:27px;line-height:1.08}
  .page-head p{line-height:1.6;font-size:11px}
  .page-head .btn{font-size:11px;padding:10px 12px;white-space:nowrap}
  .eyebrow{font-size:9px}
  .hello{padding:21px 20px;border-radius:22px;min-height:143px;margin-bottom:14px}
  .hello h2{font-size:25px}
  .hello .hero-icons{display:none}
  .cards3{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .stat{min-height:130px;border-radius:17px;padding:15px}
  .stat .metric{font-size:28px}
  .split{gap:14px}
  .panel{border-radius:17px;padding:17px}
  .mobile-nav{height:calc(66px + env(safe-area-inset-bottom));border-top:1px solid #e7e0f0;background:rgba(255,255,255,.95);box-shadow:0 -8px 25px #5946740c;padding:6px 7px calc(6px + env(safe-area-inset-bottom));align-items:stretch;justify-content:space-around}
  .mobile-nav button{min-height:47px;min-width:58px;flex:1;justify-content:center;border-radius:13px;font-size:10px;gap:2px}
  .mobile-nav button.active{background:#f3edff;color:#7758bc}
  .mobile-nav button .emoji{font-size:21px;line-height:1.2}
  .task-banner{padding:20px 20px;min-height:137px;border-radius:20px}
  .task-banner h2{font-size:23px;line-height:1.2}
  .task-big-check{width:68px;height:68px;font-size:45px}
  .task-item{gap:10px;padding:15px 11px}
  .task-edit,.task-remove{font-size:19px;padding:5px}
  .calendar-top{gap:8px;margin-bottom:13px}
  .week-switch{width:100%;justify-content:space-between}
  .week-text{min-width:0;font-size:12px;margin:0}
  .calendar-wrap{margin:0 -6px;max-height:65dvh;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .cal-grid{min-width:735px;grid-template-columns:52px repeat(7,minmax(97px,1fr))}
  .cal-cell{height:33px}
  .cal-time{height:33px}
  .cal-day,.cal-corner{padding:10px 2px}
  .modal{border-radius:22px 22px 0 0;max-height:87dvh;width:100%;padding:23px 19px max(28px,env(safe-area-inset-bottom))}
  .modal-overlay{place-items:end center;padding:0}
  .login-art{min-height:200px;padding:24px}
  .art-copy h1{font-size:36px;line-height:1.05}
  .login-panel{padding:30px 22px 60px}
}
@media(max-width:420px){.task-form-row{grid-template-columns:1fr}.page-head{flex-wrap:wrap}.page-head .btn{margin-top:7px}.task-banner .task-big-check{width:54px;height:54px;font-size:36px}.task-banner h2{font-size:21px}}
/* FIFTY HQ v3 · team chat and dedicated management portal */
.admin-entry{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin:0 0 12px;padding:14px 17px;border:1px solid #e2daed;background:#fbf9ff;border-radius:14px;color:#6e56a2;font-weight:850;font-size:13px}.admin-entry>span:last-child{margin-left:auto}.admin-entry:hover{background:#f2edfb}.admin-hero{display:flex;align-items:center;justify-content:space-between;min-height:173px;padding:30px 33px;border-radius:23px;background:linear-gradient(118deg,#e5ddff,#fae6f5 78%)}.admin-hero h2{font-size:27px;letter-spacing:-.045em}.admin-hero p{color:#807793;margin-top:8px;font-size:12px}.admin-hero-icon{font-size:73px}.admin-switch{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:18px}.admin-switch h2{font-size:16px}.admin-switch p{margin-top:5px}.admin-actions{margin-top:18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.admin-action{min-height:142px;background:#fff;border:1px solid #eee9f6;border-radius:18px;text-align:left;padding:21px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:5px}.admin-action:hover{border-color:#b6a1e3;transform:translateY(-1px)}.admin-action>.emoji{font-size:25px;margin-bottom:7px}.admin-action b{font-size:14px}.admin-action small{font-size:11px;color:#948ca4}.chat-layout{display:grid;grid-template-columns:260px minmax(0,1fr);height:min(710px,calc(100dvh - 230px));min-height:490px;background:#fff;border:1px solid #eae5f2;border-radius:22px;overflow:hidden;box-shadow:var(--shadow)}.chat-list{background:#fcfbff;border-right:1px solid #eee9f4;overflow:auto;padding:18px 11px}.chat-list-title{display:flex;justify-content:space-between;padding:12px 10px 10px;font-size:10px;color:#998ba9;font-weight:900;letter-spacing:.10em}.chat-list-title span{letter-spacing:0;color:#bdafca}.chat-room-list{display:flex;flex-direction:column;gap:3px}.chat-room{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid transparent;background:transparent;color:#6b637b;padding:10px;border-radius:13px;width:100%}.chat-room>.emoji{font-size:21px;display:grid;place-items:center;flex:none;width:33px;height:33px;border-radius:12px;background:#f2edfb}.chat-room.active{background:#f0eaff;border-color:#e8ddfc}.chat-room:hover{background:#f7f4ff}.chat-room > .chat-room-meta{display:flex;flex-direction:column;gap:2px;min-width:0}.chat-room b{font-size:12px;line-height:1.3}.chat-room small{font-size:10px;color:#a49bac;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:168px}.chat-conversation{display:flex;flex-direction:column;min-width:0;min-height:0}.chat-header{flex-shrink:0;display:flex;align-items:center;gap:12px;border-bottom:1px solid #f0edf6;padding:15px 21px;min-height:76px}.chat-header-icon{width:42px;height:42px;display:grid;place-items:center;font-size:25px;background:#f2edfb;border-radius:14px}.chat-header h2{font-size:17px;letter-spacing:-.03em}.chat-header p{font-size:11px;color:#9a91aa;margin-top:3px}.chat-private-badge{margin-left:auto;color:#9c6bb8;background:#f9efff;padding:6px 9px;border-radius:100px;font-size:10px;font-weight:800;white-space:nowrap}.chat-disclaimer{flex-shrink:0;background:#fff8fd;color:#a16f90;font-size:11px;padding:10px 20px;border-bottom:1px solid #f7e7f4}.chat-scroll{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:21px 20px;display:flex;flex-direction:column;gap:14px;background:radial-gradient(circle at 100% 0%,#fdfaff,transparent 48%),#fff;min-height:0}.chat-empty{margin:auto;text-align:center;max-width:270px;color:#a19aaf;font-size:12px}.chat-empty .emoji{font-size:43px}.chat-empty h3{font-size:17px;color:#6d6184;margin-top:10px}.chat-empty p{margin-top:7px}.chat-date{text-align:center;color:#b7b0be;font-size:10px;letter-spacing:.06em;margin:8px 0}.chat-msg{display:flex;align-items:flex-end;gap:8px;max-width:89%}.chat-msg .avatar{width:30px;height:30px;flex:none}.chat-msg.mine{align-self:flex-end}.chat-msg-main{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:3px}.chat-msg.mine .chat-msg-main{align-items:flex-end}.chat-sender{display:flex;align-items:baseline;gap:8px;margin-left:3px;color:#6a5c87;font-weight:800;font-size:11px}.chat-sender span{font-size:10px;font-weight:450;color:#b2a9bd}.chat-bubble{font-size:13px;padding:11px 14px;border-radius:5px 15px 15px 15px;background:#f5f1fc;color:#574d65;max-width:min(400px,100%);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.chat-msg.mine .chat-bubble{border-radius:15px 5px 15px 15px;background:#9078ce;color:white}.chat-bubble small{display:block;font-size:9px;opacity:.65;margin-top:2px}.chat-tools{display:flex;gap:8px}.chat-tools button{font-size:10px;color:#a69bab;padding:2px 3px;border:0;background:none}.chat-tools button:hover{text-decoration:underline;color:#7358ad}.chat-compose{display:flex;align-items:flex-end;gap:10px;border-top:1px solid #f0edf5;padding:14px 18px calc(14px + env(safe-area-inset-bottom,0px));background:#fff}.chat-compose textarea{flex:1;resize:none;min-height:45px;max-height:120px;border:1px solid #e7e0f0;border-radius:14px;background:#fcfaff;padding:12px 14px;font-size:13px}.chat-compose button{height:45px;padding:0 19px}.chat-conversation .chat-scroll{scrollbar-color:#d8cde8 transparent}
@media(max-width:1100px){.admin-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-layout{grid-template-columns:205px minmax(0,1fr)}}
@media(max-width:760px){.admin-hero{min-height:125px;padding:20px 18px}.admin-hero h2{font-size:22px}.admin-hero-icon{font-size:44px}.admin-switch{align-items:flex-start;flex-direction:column}.admin-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.admin-action{padding:15px;min-height:130px}.chat-layout{display:flex;flex-direction:column;height:calc(100dvh - 220px);min-height:480px;border-radius:19px}.chat-list{flex:none;padding:7px 10px;border-right:0;border-bottom:1px solid #eeeaf5;overflow-x:auto;overflow-y:hidden}.chat-list-title{padding:7px 4px 5px}.chat-list-title span{display:none}.chat-room-list{display:flex;flex-direction:row;gap:6px;margin-bottom:6px;overflow-x:auto;scrollbar-width:none}.chat-room-list::-webkit-scrollbar{display:none}.chat-room{flex:none;width:auto;min-width:103px;max-width:155px;padding:7px 9px;gap:5px;border-radius:12px}.chat-room>.emoji{font-size:17px;width:26px;height:27px}.chat-room .avatar{width:28px;height:28px;font-size:16px}.chat-room b{font-size:10px}.chat-room small{display:none}.chat-list-title:nth-of-type(2){display:none}.chat-room-list:nth-of-type(4){margin-top:4px}.chat-header{min-height:60px;padding:10px 13px}.chat-header-icon{width:35px;height:35px;font-size:19px}.chat-header h2{font-size:14px}.chat-header p{font-size:10px}.chat-private-badge{font-size:9px;padding:5px 7px}.chat-disclaimer{font-size:10px;padding:8px 12px}.chat-scroll{padding:12px 12px;gap:12px}.chat-compose{padding:9px}.chat-compose textarea{min-height:43px}.chat-compose button{height:43px}.chat-msg{max-width:94%}.chat-bubble{font-size:12px}.chat-msg .avatar{width:26px;height:26px}.chat-tools{gap:8px}}
@media(max-width:420px){.admin-actions{grid-template-columns:1fr 1fr}.chat-room{max-width:135px}.chat-layout{height:calc(100dvh - 205px);min-height:410px}.chat-private-badge{display:none}}

/* v4: always-visible admin workspace chooser */
.workspace-switch{display:inline-flex;align-items:center;gap:3px;background:#f3effa;border:1px solid #e7dff2;border-radius:13px;padding:4px;max-width:100%}
.workspace-switch button{border:0;background:transparent;border-radius:9px;padding:9px 11px;color:#8c82a0;font:inherit;font-size:11px;font-weight:650;white-space:nowrap;cursor:pointer;transition:background .15s,color .15s,box-shadow .15s}
.workspace-switch button:first-child{font-weight:900;color:#67538f}
.workspace-switch button.active{background:#fff;color:#6750a6;font-weight:900;box-shadow:0 2px 7px #70539616}
.workspace-switch button:focus-visible{outline:2px solid #795ebc;outline-offset:1px}
.sidebar .side-team .workspace-switch{width:100%;margin-top:11px;display:flex;justify-content:space-between}
.sidebar .side-team .workspace-switch button{flex:1;padding:9px 4px;font-size:10px}
.topbar .breadcrumb .workspace-switch{vertical-align:middle}
.topbar .breadcrumb{display:flex;align-items:center;min-width:0}
.admin-hero-compact{min-height:135px}
.admin-hero-compact .admin-hero-icon{font-size:54px}
@media(max-width:760px){
 .topbar{gap:8px;align-items:center}
 .topbar .breadcrumb .workspace-switch button{padding:8px 9px;font-size:10px}
 .topbar .user-pill{max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .admin-hero-compact{min-height:110px}
}
@media(max-width:360px){.topbar .breadcrumb .workspace-switch button{padding:8px 6px;font-size:9px}}

/* v5 · editable rich text + private photo/GIF attachment layout */
.rich-content{overflow-wrap:anywhere;word-break:break-word;white-space:normal}
.rich-content div{min-height:1em}.rich-content .rich-spacer{min-height:.85em}.rich-content .rich-list{padding-left:12px}
.rich-content a{color:#7860bd;text-decoration:underline;text-underline-offset:2px}
.rich-content strong{font-weight:850}.rich-content em{font-style:italic}
.rich-toolbar{display:flex;align-items:center;gap:5px;width:100%;min-width:0;overflow-x:auto;padding:6px;background:#f8f6fe;border:1px solid #eee9f7;border-bottom:0;border-radius:12px 12px 0 0;scrollbar-width:thin}
.rich-toolbar button{display:flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:31px;min-height:30px;padding:4px 8px;border:0;border-radius:7px;color:#6e5b9d;background:transparent;font-size:12px;font-weight:700}
.rich-toolbar button:hover,.rich-toolbar button:focus-visible{background:#e9e0fc}
.rich-toolbar .toolbar-line{width:1px;height:18px;flex-shrink:0;background:#dfd5ee;margin:0 3px}
.rich-toolbar+textarea{border-radius:0 0 12px 12px;margin-top:0}
.media-upload{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}
.media-upload input[type=file]{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.media-upload .attach-label{border:1px solid #dbd0ed;border-radius:10px;padding:8px 11px;background:#fff;color:#7259a3;font-size:12px;white-space:nowrap;cursor:pointer;font-weight:800}
.media-upload .attach-label:hover{background:#f3ecfe}.media-upload .attach-label:focus-within{outline:2px solid #b6a6e4}
.media-preview{width:100%}.media-preview-card{display:flex;gap:9px;align-items:center;background:#faf8ff;border:1px solid #eee7f6;border-radius:12px;padding:7px;min-width:0}
.media-preview-card img{width:60px;height:60px;object-fit:cover;border-radius:9px;background:#eee9f5}
.media-preview-card span{flex:1;min-width:0;font-size:12px;color:#5d526e;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.media-preview-card small{font-size:11px;color:#9e93ad;font-weight:500}
.media-preview-card button{background:#f0eaf8;border:0;border-radius:9px;font-size:21px;width:30px;height:30px;color:#75638f}
.media-attachment{display:block;width:fit-content;max-width:100%;margin-top:9px}
.media-attachment img{display:block;width:auto;height:auto;max-width:min(100%,440px);max-height:380px;object-fit:contain;border-radius:13px;border:1px solid #e8e2ef;background:#f6f3f9}
.chat-bubble .media-attachment img{max-width:min(100%,280px);max-height:300px;border:0;border-radius:12px}
.chat-compose{align-items:flex-end;gap:9px}.chat-editor{flex:1;min-width:0}.chat-editor textarea{width:100%;display:block;min-height:59px;resize:vertical;max-height:185px}
.chat-compose .media-upload{margin-top:5px;gap:7px}.chat-compose .media-upload .attach-label{padding:6px 10px;font-size:11px}
.chat-compose .media-upload .tiny{font-size:10px}.chat-compose .btn{margin-bottom:2px}
.chat-compose .media-preview-card img{width:45px;height:45px}
@media(max-width:760px){.chat-compose{gap:7px}.chat-compose .btn{padding:12px 13px}.rich-toolbar button{min-height:34px;min-width:34px}.media-attachment img{max-width:100%}.chat-bubble .media-attachment img{max-width:100%}}

.approve-panel{margin-top:13px;padding:13px;border:1px solid #e8def5;background:#faf7ff;border-radius:12px}
.approve-panel label{display:block;font-weight:800;font-size:12px;margin-bottom:9px;color:#665380}
.approval-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.approval-actions select{flex:1;min-width:155px;min-height:38px;border:1px solid #e9e0f2;border-radius:9px;padding:8px}
.poll-approval{background:#f2f8f1;border-radius:12px;color:#4d8d5d;margin-top:13px;padding:11px;font-size:12px}
.poll-approval span{display:block;color:#688374;margin-top:2px}

/* Text/highlight palettes are present in chat, new announcements, and edit-message dialogs. */
.rich-toolbar .format-palette{display:inline-flex;align-items:center;gap:3px;flex:0 0 auto;border:1px solid #e3dded;border-radius:8px;background:white;padding:2px 5px}
.rich-toolbar .format-palette:focus-within{outline:2px solid #b3a5ea;outline-offset:1px}
.rich-toolbar .palette-icon{font-size:15px;font-weight:900;color:#7555ac;line-height:20px;min-width:15px;text-align:center}
.rich-toolbar select[data-format-palette]{background:transparent;border:0;color:#60547c;font-size:11px;font-weight:750;max-width:98px;min-height:28px;outline:none;cursor:pointer}
.rich-toolbar .format-custom{display:flex;align-items:center;justify-content:center;width:23px;height:26px;cursor:pointer;flex-shrink:0}
.rich-toolbar .format-custom input[type=color]{width:21px;height:23px;border:0;padding:0;background:transparent;cursor:pointer}
.rich-toolbar .format-custom input[type=color]::-webkit-color-swatch-wrapper{padding:2px}
.rich-toolbar .format-custom input[type=color]::-webkit-color-swatch{border:1px solid #aaa4bb;border-radius:5px}
.rich-color-mark{box-decoration-break:clone;-webkit-box-decoration-break:clone;border-radius:2px}
@media(max-width:600px){.rich-toolbar{gap:3px;padding:5px 3px}.rich-toolbar .format-palette{padding:2px}.rich-toolbar select[data-format-palette]{max-width:80px;font-size:10px}.rich-toolbar button{padding:4px 6px}}

.rich-preview{padding:12px 14px;border:1px solid #e7deef;background:white;border-radius:10px;margin:8px 0;color:#2f2a3e;max-height:220px;overflow:auto;font-size:13px;line-height:1.55}
.rich-preview[hidden]{display:none!important}
.rich-toolbar [aria-pressed=true]{background:#e8ddfb;color:#6448ac}


/* FIFTY HQ v6 — mobile chat, movable/sizable scheduler, round color previews */
.swatch{flex:0 0 35px;width:35px;height:35px;min-width:35px;min-height:35px;aspect-ratio:1;border-radius:50%;padding:0}
.profile-preview{min-width:0}
.profile-preview .avatar{width:52px;height:52px;flex:0 0 52px;border-radius:50%}
.profile-color-preview{flex:0 0 28px;width:28px;height:28px;min-width:28px;min-height:28px;aspect-ratio:1;border:3px solid #fff;border-radius:50%;background:var(--preview-color);box-shadow:0 0 0 1px #dcd3e8}
.custom-color-row{display:flex;align-items:center;gap:10px}
.profile-color-custom{width:44px;height:44px;min-width:44px;min-height:44px;flex:0 0 44px;aspect-ratio:1;padding:0!important;border:2px solid #fff!important;outline:1px solid #ddd3ea;border-radius:50%;overflow:hidden;background:transparent;cursor:pointer}
.profile-color-custom::-webkit-color-swatch-wrapper{padding:0}
.profile-color-custom::-webkit-color-swatch{border:0;border-radius:50%}
.profile-color-custom::-moz-color-swatch{border:0;border-radius:50%}
.chat-compose{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0}
.chat-compose .chat-editor{display:block;width:100%;min-width:0;flex:none}
.chat-compose .chat-editor textarea{display:block;width:100%;min-width:0;box-sizing:border-box}
.chat-send-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%}
.chat-send-row .btn{flex:0 0 auto;margin:0}
.chat-send-tip{font-size:10px;color:#a49aaf}
.chat-room-toggle{display:none}
.calendar-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:8px 0 12px}
.calendar-control-group{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap}
.cal-tool{display:inline-flex;align-items:center;justify-content:center;border:1px solid #e9e4f5;border-radius:9px;background:#fff;padding:8px 11px;min-height:36px;font-size:12px;font-weight:800;color:#7b6b92;white-space:nowrap}
.cal-tool.active{background:#eee9fc;border-color:#a99bd9;color:#7055af}
.cal-size-label{font-size:11px;color:#9f94ae;padding:0 4px}
.calendar-days{display:none}
.calendar-wrap{height:var(--calendar-height,660px);max-height:85dvh;min-height:280px;resize:vertical;position:relative;overscroll-behavior:contain}
.calendar-wrap.move-mode .cal-cell{touch-action:pan-x pan-y;cursor:grab}
.calendar-wrap.select-mode .cal-cell{touch-action:none;cursor:crosshair}
.calendar-close{display:none}
.cal-time,.cal-corner{position:sticky;left:0;z-index:2;background:#fff}
.cal-corner{z-index:6}
.cal-day{z-index:4}
.calendar-wrap.calendar-full{position:fixed!important;inset:max(10px,env(safe-area-inset-top,0px)) 10px max(10px,env(safe-area-inset-bottom,0px));height:auto!important;max-height:none!important;min-height:0!important;width:auto!important;margin:0!important;z-index:120;border:2px solid #a995df;box-shadow:0 0 0 100vmax #2f2249a6,0 12px 55px #31244e60;border-radius:16px;resize:none}
.calendar-wrap.calendar-full .calendar-close{display:block;position:sticky;left:calc(100% - 76px);top:0;float:right;z-index:12;background:#7c62c5;color:#fff;border:0;border-radius:0 0 0 10px;padding:8px 13px;font-weight:850;font-size:12px}
body.calendar-overlay-open{overflow:hidden}
@media(max-width:760px){
  .main.chat-page{display:flex;flex-direction:column;height:100dvh;min-height:0;overflow:hidden;padding:8px 8px calc(70px + env(safe-area-inset-bottom,0px))}
  .main.chat-page .topbar{flex:0 0 auto;margin-bottom:7px;padding:0 4px;min-height:39px}
  .main.chat-page .page-head{flex:0 0 auto;margin-bottom:7px;padding:0 4px;align-items:center}
  .main.chat-page .page-head h1{font-size:19px;margin:0}
  .main.chat-page .page-head .eyebrow,.main.chat-page .page-head p,.main.chat-page .page-head .badge{display:none}
  .chat-layout{display:flex;flex:1 1 auto;position:relative;flex-direction:column;width:100%;height:auto;min-height:0;max-height:none;overflow:hidden;border-radius:17px;margin:0}
  .chat-conversation{flex:1;min-height:0;width:100%}
  .chat-list{display:none}
  .chat-layout.show-chat-list .chat-list{display:block;position:absolute;top:60px;left:0;right:0;z-index:20;max-height:min(63dvh,510px);padding:11px;overflow-y:auto;overflow-x:hidden;border:1px solid #eee9f4;border-radius:0 0 16px 16px;background:#fff;box-shadow:0 15px 25px #32213b30}
  .chat-layout.show-chat-list .chat-room-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:6px 0}
  .chat-layout.show-chat-list .chat-room{width:100%;max-width:none;min-width:0;padding:9px;gap:9px}
  .chat-layout.show-chat-list .chat-room b{font-size:12px}
  .chat-layout.show-chat-list .chat-list-title:nth-of-type(2){display:flex}
  .chat-header{flex:none;padding:8px 10px;min-height:58px;gap:8px}
  .chat-header-meta{min-width:0;flex:1}
  .chat-header-meta p{display:none}
  .chat-header h2{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .chat-room-toggle{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;background:#f5f0fc;border:1px solid #e9defb;border-radius:10px;padding:9px;font-size:11px;color:#7459ad;font-weight:850;min-height:38px;white-space:nowrap}
  .chat-private-badge{display:none}
  .chat-disclaimer{font-size:9px;line-height:1.35;padding:6px 10px}
  .chat-scroll{flex:1;min-height:0;padding:10px;overflow-y:auto;gap:9px}
  .chat-compose{display:flex;flex-direction:column;flex:0 0 auto;gap:5px;padding:8px 10px 9px;width:100%;min-width:0;box-sizing:border-box}
  .chat-compose .chat-editor{display:block;flex:none;width:100%;min-width:0}
  .chat-compose .chat-editor textarea{width:100%;min-height:52px;max-height:110px;resize:vertical;padding:9px 11px;font-size:16px}
  .chat-compose .rich-toolbar{max-width:100%;padding:4px 3px}
  .chat-compose .media-upload{margin-top:4px}
  .chat-compose .media-upload .tiny{display:none}
  .chat-send-row{width:100%;min-width:0;gap:6px}
  .chat-send-row .btn{height:37px;min-height:37px;padding:8px 14px;font-size:12px;margin:0}
  .chat-send-tip{font-size:9px;max-width:62%;line-height:1.2}
  .chat-msg{max-width:96%}
  .chat-bubble{max-width:100%}
  .main.calendar-page .panel{padding:13px 10px}
  .calendar-controls{gap:7px;margin:9px 0}
  .calendar-control-group{gap:5px}
  .cal-tool{min-height:39px;padding:8px 10px;font-size:11px}
  .calendar-days{display:flex;gap:5px;overflow-x:auto;scrollbar-width:none;margin:0 0 8px;padding-bottom:2px}
  .cal-day-jump{flex:1 0 0;min-width:36px;font-size:10px;color:#806f9c;background:#f5f2fc;border:1px solid #e9e1f6;border-radius:9px;padding:9px 3px;font-weight:850}
  .cal-day-jump.active{background:#e6dbfa;color:#6749b0}
  .calendar-wrap{width:100%;height:var(--calendar-height,520px);min-height:280px;max-height:85dvh;margin:0;resize:none;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:auto}
  .cal-grid{min-width:800px;grid-template-columns:52px repeat(7,minmax(106px,1fr))}
  .calendar-wrap.move-mode .cal-cell{touch-action:auto}
  .calendar-wrap.select-mode .cal-cell{touch-action:none}
  .cal-cell,.cal-time{height:38px}
  .cal-time{z-index:2;box-shadow:1px 0 0 #eae5f3}
  .cal-day{z-index:5}
  .cal-corner{z-index:8}
  .calendar-info{line-height:1.5}
  .profile-preview{gap:9px;padding:12px}
  .profile-preview .avatar{width:52px;height:52px;flex-basis:52px}
  .profile-color-preview{flex:0 0 26px;width:26px;height:26px;min-width:26px;min-height:26px}
}
@media(max-width:370px){.chat-send-tip{display:none}.cal-tool{padding:8px}.cal-size-label{display:none}}

/* v7: show each half-hour time inside every availability block, including mobile. */
.cal-cell-time{position:absolute;top:50%;left:5px;transform:translateY(-50%);pointer-events:none;white-space:nowrap;font-size:10px;line-height:1;font-weight:800;letter-spacing:-.2px;color:#615572;text-shadow:0 1px 0 #ffffff7a}
.cal-cell.mine .cal-cell-time{color:#46315f}
.cal-cell .ct{pointer-events:none}
.cal-cell .stripe{pointer-events:none}
@media(max-width:760px){.cal-cell-time{left:7px;font-size:11px;letter-spacing:0}}
@media(min-width:761px){.cal-cell,.cal-time{height:29px}}

/* v8 mobile notification preferences */
.push-options{display:flex;flex-direction:column;gap:8px;margin:18px 0 14px}
.push-pref{display:flex;gap:11px;align-items:center;padding:10px 12px;border:1px solid var(--border,#e5e0ec);border-radius:13px;cursor:pointer;font-size:14px;font-weight:650}
.push-pref input{width:19px;height:19px;accent-color:#9278cd;flex:none}
#push-settings .row{display:flex;flex-wrap:wrap;gap:8px}
#push-settings .row .btn{flex:1 1 155px}


/* v9 — per-member chat bubbles; white with a member-colored outline by default. */
.chat-msg .chat-bubble,
.chat-msg.mine .chat-bubble,
.chat-bubble.bubble-example{
  background:#fff;
  color:#30273d;
  border:2px solid var(--bubble-accent,#8E7CC3);
  box-sizing:border-box;
  overflow-wrap:anywhere;
  word-break:break-word;
  max-width:100%;
}
.chat-msg .chat-bubble[data-bubble-style="soft"],
.chat-bubble.bubble-example[data-bubble-style="soft"]{
  background:color-mix(in srgb,var(--bubble-accent,#8E7CC3) 13%, white);
  border-color:var(--bubble-accent,#8E7CC3);
  color:#30273d;
}
.chat-msg .chat-bubble[data-bubble-style="solid"],
.chat-bubble.bubble-example[data-bubble-style="solid"]{
  background:var(--bubble-accent,#8E7CC3);
  color:var(--bubble-fg,#fff);
  border-color:var(--bubble-accent,#8E7CC3);
}
.chat-bubble .rich-content{overflow-wrap:anywhere;word-break:break-word;min-width:0;max-width:100%}
.chat-msg .chat-msg-main{max-width:100%;min-width:0}
.chat-bubble a{overflow-wrap:anywhere}
.bubble-settings-card{min-width:0}
.bubble-settings-card .panel-head{flex-wrap:wrap}
.bubble-settings-form{display:flex;flex-direction:column;gap:13px;min-width:0}
.bubble-preview-stage{background:#f8f6fc;border:1px solid #ede7f8;border-radius:16px;padding:17px;display:flex;align-items:flex-end;flex-direction:column;gap:10px;min-width:0}
.bubble-preview-label{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#827394;align-self:flex-start}
.bubble-example{align-self:flex-end;width:fit-content;padding:11px 14px;font-size:13px;line-height:1.5;border-radius:15px 5px 15px 15px;max-width:min(100%,320px)}
.bubble-follow{display:flex;gap:10px;align-items:center;font-size:12px;font-weight:750;color:#675a80;cursor:pointer}
.bubble-follow input{flex:none;width:17px;height:17px;accent-color:#8E7CC3}
.bubble-picker-swatches{display:flex;gap:8px;flex-wrap:wrap;max-width:100%}
.bubble-picker-swatches .swatch{width:30px;height:30px;min-width:30px;min-height:30px;flex:0 0 30px}
.bubble-settings-card .field{min-width:0}
@media(max-width:760px){
 .chat-msg{min-width:0;max-width:100%}
 .chat-msg .chat-bubble{min-width:0;max-width:100%}
 .chat-scroll{min-width:0;box-sizing:border-box}
 .bubble-preview-stage{padding:12px}
 .bubble-example{max-width:100%}
}

/* Narrow-screen rich editor: show the full toolset rather than clipping the color/highlight controls. */
@media(max-width:760px){
 .chat-compose .rich-toolbar,
 .modal .rich-toolbar{
   flex-wrap:wrap;
   overflow-x:visible;
   row-gap:3px;
   column-gap:4px;
   max-width:100%;
 }
 .chat-compose .rich-toolbar .format-palette,
 .modal .rich-toolbar .format-palette{flex:0 1 auto;max-width:100%}
 .chat-compose .rich-toolbar select[data-format-palette],
 .modal .rich-toolbar select[data-format-palette]{max-width:91px}
 .chat-compose .rich-toolbar .toolbar-line,
 .modal .rich-toolbar .toolbar-line{margin:0 1px}
}

.format-expand{display:none!important}
@media(max-width:760px){
 .rich-toolbar .format-expand{display:inline-flex!important;order:10;margin-left:auto;background:#ede7fa;border:1px solid #dbd0f2;border-radius:8px;font-size:11px;color:#66518d;padding:4px 8px;min-width:56px}
 .rich-toolbar:not(.expanded) .format-palette,
 .rich-toolbar:not(.expanded) .toolbar-line,
 .rich-toolbar:not(.expanded) [data-mark="heart"],
 .rich-toolbar:not(.expanded) [data-mark="star"],
 .rich-toolbar:not(.expanded) [data-mark="link"],
 .rich-toolbar:not(.expanded) [data-action="preview-format"]{display:none}
 .rich-toolbar:not(.expanded){flex-wrap:nowrap;overflow:hidden}
 .rich-toolbar.expanded{flex-wrap:wrap;overflow:visible}
}


/* v10: Mobile-safe link cards; long Google Drive URLs must never push Open offscreen. */
.link-card{min-width:0;max-width:100%;box-sizing:border-box;}
.link-body{display:flex;align-items:center;gap:13px;flex:1 1 auto;min-width:0;max-width:100%;}
.link-details{min-width:0;flex:1 1 auto;max-width:100%;}
.link-details h3,.link-description,.link-meta{max-width:100%;min-width:0;overflow-wrap:anywhere;word-break:break-word;}
.link-description{line-height:1.55;white-space:normal;}
.link-card .link-open{flex-shrink:0;white-space:nowrap;display:inline-flex;justify-content:center;align-items:center;}
/* Decorative text bullets retain copy-friendly symbols instead of emoji. */
.rich-list{display:flex;align-items:flex-start;gap:9px;min-width:0;}
.rich-list-symbol{flex:none;color:#9172ca;font-size:1.12em;font-weight:800;line-height:1.55;}
.rich-list-copy{min-width:0;flex:1;overflow-wrap:anywhere;}
@media(max-width:760px){
  .link-card{display:flex;flex-direction:column;align-items:stretch;padding:16px;gap:12px;}
  .link-body{align-items:flex-start;width:100%;}
  .link-details{max-width:100%;}
  .link-icon{width:42px;height:42px;}
  .link-card .link-open{width:100%;min-width:0;min-height:43px;}
}
@media(max-width:360px){
  .link-card{padding:13px;}
  .link-body{gap:10px;}
}

/* v11 — three-state scheduler, notes, and mobile inspection */
.calendar-brush{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0 12px;padding:12px;border-radius:13px;background:#faf8ff;border:1px solid #ebe5f5}
.calendar-brush-modes{display:flex;gap:7px;flex-wrap:wrap}
.cal-brush-btn{padding:9px 12px;min-height:38px;border-radius:10px;border:1px solid #e3dfeb;background:white;color:#695e7d;font-size:12px;font-weight:850;cursor:pointer}
.cal-brush-btn.active.available{background:#e7f4e9;border-color:#7eba98;color:#266946}
.cal-brush-btn.active.unavailable{background:#fff0ef;border-color:#e4a7a3;color:#ae5658}
.cal-brush-btn.active.clear{background:#ece8f5;border-color:#b8acc9;color:#5d5373}
.cal-reason-field{flex:1 1 260px;min-width:0;display:flex;flex-direction:column;gap:5px;color:#615674;font-size:12px;font-weight:850}
.cal-reason-field[hidden]{display:none}
.cal-reason-field span{font-size:10px;color:#9b8fae;font-weight:500}
.cal-reason-field input{box-sizing:border-box;display:block;min-width:0;width:100%;padding:10px 12px;border:1px solid #dfd7ed;background:#fff;border-radius:9px;font:inherit;font-weight:500}
.cal-cell.mine-busy{background:repeating-linear-gradient(135deg,#fff6f4,#fff6f4 6px,#ffe9e6 6px,#ffe9e6 12px);box-shadow:inset 0 0 0 2px #cc777a}
.cal-cell.mine-busy .cal-cell-time{color:#773f49}
.cal-cell.has-busy:not(.mine-busy){background-image:linear-gradient(135deg,transparent 88%,#e4aaa8 88%)}
.busy-cross,.busy-count{position:absolute;right:3px;top:2px;color:#ba6567;font-weight:900;font-size:10px;pointer-events:none;line-height:1}
.cal-cell.mine-busy .ct,.cal-cell.has-busy .ct{right:23px}
.calendar-wrap.inspect-mode .cal-cell{touch-action:pan-x pan-y;cursor:help}
.cal-details{margin-top:14px;border:1px solid #ede5f4;background:#fff;border-radius:12px;padding:12px 14px}
.cal-detail-title{font-weight:900;color:#5b4c76;margin-bottom:10px}
.cal-detail-group{display:grid;gap:6px;margin:10px 0;font-size:12px}
.cal-detail-line{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.cal-reason{overflow-wrap:anywhere;flex:1;min-width:130px;color:#746d7b;font-size:12px}
@media(max-width:760px){.calendar-brush{align-items:stretch;padding:10px;gap:8px}.calendar-brush-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.cal-brush-btn{font-size:10px;padding:9px 4px}.cal-reason-field{flex-basis:100%}.calendar-wrap.inspect-mode .cal-cell{touch-action:auto}.cal-detail-line{align-items:flex-start}}

/* v12: multi-recipient tasks and recurrence schedule controls */
.task-admin-buttons{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
.recurring-panel{margin-top:22px;padding:20px}
.recurring-panel .panel-head{margin-bottom:15px}
.recurring-list{display:flex;flex-direction:column;gap:10px}
.recurring-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #e9e3f1;background:#fcfaff;border-radius:15px;padding:13px 15px;min-width:0}
.recurring-desc{flex:1;min-width:0;overflow-wrap:anywhere}
.recurring-desc strong{font-size:13px}
.recurring-desc .small{margin-top:4px;font-size:11px}
.recurring-live{color:#328468;font-weight:800}.recurring-paused{color:#9e7981;font-weight:800}
.recurring-tag{color:#7254b6!important;background:#f1e9ff!important}
.recipient-shortcuts{display:flex;gap:7px;flex-wrap:wrap;margin:7px 0 10px}
.recipient-shortcuts .btn{font-size:11px;padding:8px 12px}
.recipient-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:230px;overflow:auto;overscroll-behavior:contain;padding:2px}
.recipient-option{display:flex;align-items:center;gap:8px;padding:12px;background:#fbf9ff;border:1px solid #e9e3f1;border-radius:12px;font-weight:700;margin:0;min-width:0;flex-wrap:wrap;cursor:pointer}
.recipient-option input{width:18px;height:18px;flex-shrink:0;accent-color:#8668ca}
.recipient-option span{min-width:0;overflow-wrap:anywhere}.recipient-option small{width:100%;font-size:10px;color:#9a8cab;padding-left:26px}
@media(max-width:420px){.recipient-grid{grid-template-columns:1fr}.recurring-row{align-items:flex-start;flex-direction:column}.recurring-row .btn{width:100%}}

/* v13: calendar switcher, unread notification circles, and announcement summary */
.unread-dot{display:none;flex:none;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 5px;border-radius:999px;background:var(--unread-color,#8e7cc3);color:#fff;font-size:10px;font-weight:900;line-height:1;box-shadow:0 0 0 2px #fff;white-space:nowrap}
.unread-dot.visible{display:inline-flex}
.nav-item .unread-dot{margin-left:auto}.mobile-nav button{position:relative}.mobile-nav .unread-dot{position:absolute;right:10%;top:2px;box-shadow:0 0 0 2px #fff}
.more-item .unread-dot{margin-left:auto}.chat-room .unread-dot{margin-left:auto}.seg-tabs .unread-dot{margin-left:6px}
.calendar-workspace{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 20px;padding:13px;border:1px solid #eee8f6;border-radius:16px;background:#fcfaff}
.calendar-workspace-label{font-size:11px;font-weight:850;color:#716589;letter-spacing:.03em}
.calendar-workspace .seg-tabs{display:flex;gap:5px;flex-wrap:wrap}
.latest-announcement{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:5px 0}
.latest-announcement h3{font-size:18px;letter-spacing:-.025em;overflow-wrap:anywhere}
.latest-announcement-by{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#8c829c;font-size:11px}
.latest-announcement p{font-size:12px;line-height:1.7;color:#746e7c;overflow-wrap:anywhere;white-space:pre-line}
@media(max-width:760px){.calendar-workspace{flex-direction:column;align-items:stretch}.calendar-workspace .seg-tabs button{flex:1;font-size:11px}.chat-room .unread-dot{margin-left:auto}}

/* v14 - member-to-Arielle private feedback channel */
.feedback-category{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap;padding:10px 13px;background:#faf7ff;border:1px solid #eae4f5;border-radius:12px;margin-bottom:8px}
.feedback-category label{font-size:12px;font-weight:700;color:#665e80}
.feedback-category select{flex:1;min-width:160px;max-width:260px;border:1px solid #e0d8ef;border-radius:9px;padding:7px;background:white;color:#403957;font-size:13px}
.feedback-type{display:inline-block;font-size:11px;font-weight:800;color:#7760ad;background:#f0e9fb;border-radius:8px;padding:4px 8px;margin-bottom:8px}
@media(max-width:480px){.feedback-category{align-items:stretch;flex-direction:column}.feedback-category select{max-width:100%}}

/* v15: personal time-zone display for shared USA50 meetings. */
.meeting-zone-note{margin:-4px 0 15px;font-size:12px;line-height:1.55;color:#63597a;border-radius:12px;padding:10px 13px;background:#f7f3ff;border:1px solid #ebe4fa}
.cal-date-adjust{display:block;font-size:9px;font-weight:750;line-height:1.2;opacity:.75;white-space:normal}
.cal-cell-time{white-space:normal}
@media(max-width:480px){.meeting-zone-note{font-size:11px;padding:9px}.cal-date-adjust{font-size:8px}}


/* v16: circular unread indicators and mobile channel-description wrapping */
.unread-dot,
.chat-room .unread-dot,
.nav-item .unread-dot,
.more-item .unread-dot,
.seg-tabs .unread-dot {
  display: none;
  flex: 0 0 11px;
  width: 11px;
  min-width: 11px;
  max-width: 11px;
  height: 11px;
  min-height: 11px;
  max-height: 11px;
  aspect-ratio: 1;
  padding: 0;
  margin-block: 0;
  border: 0;
  border-radius: 50%;
  background: var(--unread-color, #8e7cc3);
  box-shadow: 0 0 0 2px #fff;
  font-size: 0;
  line-height: 0;
  align-self: center;
}
.unread-dot.visible,
.chat-room .unread-dot.visible,
.nav-item .unread-dot.visible,
.more-item .unread-dot.visible,
.seg-tabs .unread-dot.visible { display: inline-block; }
.chat-room .unread-dot { margin-left: auto; }
.chat-room .chat-room-meta {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}
.chat-room .chat-room-meta b,
.chat-room .chat-room-meta small {
  display: block;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}
.chat-room .chat-room-meta small {font-size: 10px;color: #a49bac;}
.chat-header-meta {flex: 1 1 auto;min-width: 0;overflow-wrap: anywhere;}
.chat-header-meta h2,.chat-header-meta p {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}
.chat-header-icon{flex:none;}
@media(max-width:760px) {
  .chat-header {align-items:flex-start;height:auto;min-height:62px;}
  .chat-header-meta {align-self:center;}
  .chat-header-meta h2 {white-space:normal;line-height:1.25;}
  .chat-header-meta p {display:block;font-size:10px;line-height:1.35;margin-top:3px;}
  .chat-room-toggle{align-self:center;}
  .chat-layout.show-chat-list .chat-room-list {align-items:stretch;}
  .chat-layout.show-chat-list .chat-room {align-items:flex-start;}
  .chat-layout.show-chat-list .chat-room .chat-room-meta small {display:block;}
  .chat-layout.show-chat-list .chat-room .unread-dot {align-self:center;}
}

/* v16.1: unread indicators must never inherit the channel-content flex rules. */
.chat-room > .unread-dot:not(.visible),
.chat-room span.unread-dot:not(.visible) { display:none; }
.chat-room > .unread-dot.visible { display:block; width:11px; height:11px; min-width:11px; min-height:11px; border-radius:50%; flex:0 0 11px; }
.chat-list, .chat-room-list, .chat-conversation, .chat-header, .chat-room {min-width:0;}
.chat-header-meta {min-width:0; flex:1 1 0%;}
.chat-header-meta p, .chat-header-meta h2 {overflow-wrap:anywhere; white-space:normal;}

/* v17: admin progress and accessible in-chat emoji reactions */
.admin-task-card{margin-top:18px;min-width:0}
.admin-task-card .panel-head{gap:12px;flex-wrap:wrap}
.admin-task-card .panel-head p{margin-top:5px}
.admin-task-totals{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:13px 0 16px;font-size:12px;font-weight:800;color:#72638b}
.admin-task-totals span{background:#f8f5fd;border-radius:999px;padding:6px 10px}
.admin-task-overdue{color:#bb5266!important}
.admin-task-list{display:flex;flex-direction:column;gap:9px}
.admin-task-row{display:grid;grid-template-columns:minmax(135px,1.1fr) 86px minmax(100px,1.1fr) minmax(100px,.8fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid #eee9f6;border-radius:14px;min-width:0}
.admin-task-member{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap}
.admin-task-count{display:flex;flex-direction:column;gap:3px;font-size:13px}
.admin-task-count .tiny{font-weight:500}
.admin-task-progress{height:9px;background:#f0ecf6;border-radius:99px;overflow:hidden;min-width:55px}
.admin-task-progress>div{height:100%;border-radius:99px;transition:width .15s ease}
.admin-task-status{font-size:11px;display:flex;flex-direction:column;gap:4px}
.admin-task-open{white-space:nowrap;justify-self:end}
.chat-reaction-area{display:flex;flex-direction:column;max-width:100%;gap:5px}
.chat-reactions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;max-width:100%}
.chat-react-chip,.chat-react-add{display:inline-flex;align-items:center;justify-content:center;gap:4px;background:#fff;border:1px solid #e8e1f1;border-radius:999px;padding:4px 8px;color:#615477;font-size:12px;line-height:1.2;min-height:28px;cursor:pointer}
.chat-react-chip.mine{background:#f2ecff;border-color:#baa7e2;color:#6f50a5}
.chat-react-chip:hover,.chat-react-add:hover{border-color:#a58ad5;background:#f7f2ff}
.chat-emoji-picker{display:flex;gap:4px;flex-wrap:wrap;max-width:min(325px,100%);padding:7px;border:1px solid #eae2f6;border-radius:13px;background:#fff;box-shadow:0 6px 16px #42335f17;position:relative;z-index:1}
.chat-emoji-picker button{border:0;border-radius:8px;background:transparent;min-width:32px;min-height:32px;font-size:19px;cursor:pointer}
.chat-emoji-picker button:hover{background:#f2ebff}
@media(max-width:900px){.admin-task-row{grid-template-columns:minmax(130px,1fr) 65px minmax(80px,1fr);gap:9px}.admin-task-status{grid-column:1/3;flex-direction:row;flex-wrap:wrap;gap:10px}.admin-task-open{grid-column:3;grid-row:2}}
@media(max-width:540px){.admin-task-row{grid-template-columns:minmax(0,1fr) auto;gap:9px}.admin-task-member{grid-column:1}.admin-task-count{grid-column:2;text-align:right}.admin-task-progress{grid-column:1/-1;grid-row:2}.admin-task-status{grid-column:1;grid-row:3}.admin-task-open{grid-column:2;grid-row:3;white-space:nowrap}.chat-reactions{gap:3px}.chat-react-chip,.chat-react-add{font-size:11px;padding:4px 6px}}

/* v19: admin-only read-only moderation view. Core design stays lavender. */
.moderation-tabs{display:flex;flex:none;align-items:center;gap:5px;width:max-content;max-width:100%;margin:0 0 12px;padding:4px;border:1px solid #e9e3f4;border-radius:14px;background:#f8f5fc}
.moderation-tabs button{font:inherit;font-size:12px;font-weight:800;color:#877c99;border:0;background:transparent;border-radius:10px;padding:9px 16px;cursor:pointer;white-space:nowrap}
.moderation-tabs button.active{color:#7152ad;background:#fff;box-shadow:0 2px 9px #5240741f}
.moderation-layout{min-height:420px}
.moderation-layout .chat-room-meta{min-width:0;flex:1}
.moderation-layout .chat-room-meta b,.moderation-layout .chat-room-meta small{overflow-wrap:anywhere;white-space:normal}
.moderation-layout .chat-header{min-width:0}
.moderation-layout .chat-header-meta{min-width:0;flex:1}
.moderation-layout .chat-scroll{padding-top:13px}
.moderation-messages{display:flex;flex-direction:column;gap:14px;min-width:0}
.moderation-layout .chat-msg{align-self:flex-start;max-width:95%}
.moderation-layout .chat-msg-main{align-items:flex-start}
.moderation-layout .chat-bubble{max-width:100%}
.moderation-refresh{flex:none;border:1px solid #e7def4;background:#faf8ff;color:#7757b1;border-radius:10px;width:37px;height:37px;font-size:22px;cursor:pointer}
.moderation-older{display:block;align-self:center;padding:9px 17px;border:1px solid #ded3ee;border-radius:12px;background:white;color:#7859b0;font-weight:750;font-size:12px;cursor:pointer}
@media(max-width:760px){
  .moderation-tabs{margin:0 0 7px;width:100%;box-sizing:border-box;justify-content:stretch}
  .moderation-tabs button{flex:1;padding:10px 7px;font-size:11px}
  .moderation-layout .chat-list{top:58px}
  .moderation-layout .chat-header{align-items:center}
  .moderation-layout .chat-room .chat-room-meta small{display:block}
  .moderation-layout .chat-msg{max-width:100%}
}

/* v21: scheduled practice cards, compact inline emoji reactions, and chat polls */
.practice-panel{margin-bottom:18px}.practice-list{display:grid;gap:10px;margin-top:12px}
.practice-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:1px solid #eee9f3;border-radius:14px;min-width:0}
.practice-item>div{min-width:0;overflow-wrap:anywhere}.practice-item p{font-size:12px;color:#766d83;margin:4px 0}.practice-item small{color:#81768c}
.chat-tools{display:flex!important;align-items:center;flex-wrap:wrap;gap:5px}.chat-tools .chat-reaction-area{display:inline-flex;min-width:0;margin-right:3px}
.chat-reaction-area{gap:2px}.chat-reactions{gap:3px}.chat-react-chip,.chat-react-add{min-height:22px;padding:2px 5px;font-size:11px;line-height:1}
.chat-emoji-picker{max-width:min(340px,80vw)!important}.custom-emoji-row{display:flex;width:100%;gap:5px;padding:5px}
.custom-reaction-input{min-width:0;width:100%;flex:1;border:1px solid #e4ddec;border-radius:7px;padding:6px;font-size:14px}
.custom-emoji-row button{border:1px solid #e3ddf0;border-radius:7px;background:#f7f3ff;padding:4px 8px}
.embedded-poll{margin-top:10px;padding:10px;border:1px solid #dfd5f1;background:#f9f7ff;border-radius:12px;max-width:100%;min-width:0}
.embedded-poll>strong{display:block;overflow-wrap:anywhere;margin:5px 0}.embedded-poll p{font-size:12px;margin:5px 0}.mini-poll-options{display:grid;gap:5px;margin:8px 0}
.mini-poll-option{display:flex;gap:8px;align-items:center;border:1px solid #e8e2ef;padding:7px;border-radius:8px;background:white;font-size:13px}
.mini-poll-result{display:flex;justify-content:space-between;gap:15px;font-size:12px}.chat-share-poll{margin:8px 0;align-self:flex-start}
.poll-edit-button{margin-top:10px}@media(max-width:600px){.practice-item{align-items:flex-start}.chat-reactions{max-width:100%}.practice-panel .panel-head{flex-wrap:wrap;gap:8px}}

.cal-cell .practice-marker{display:block;font-size:13px;line-height:1;margin-bottom:2px}.cal-cell:has(.practice-marker){box-shadow:inset 0 0 0 2px #a28ad2}

.poll-delete-button{color:#ad4252!important;margin-left:8px}.poll-delete-button:hover{background:#fff0f2!important}@media(max-width:430px){.poll-delete-button{margin-left:0}}

/* v22: member card, link ordering, edge-to-edge full-height messaging */
.profile-name-trigger{font:inherit;font-weight:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;text-align:inherit;line-height:inherit;min-width:0;overflow-wrap:anywhere}
.profile-name-trigger:hover,.profile-name-trigger:focus-visible{text-decoration:underline;text-underline-offset:3px}
.tag .profile-name-trigger{font-weight:inherit}
.member-profile-card{display:flex;flex-direction:column;gap:17px;padding:3px 0 8px}
.member-profile-header{display:flex;gap:13px;align-items:center}.member-profile-header .avatar{width:56px;height:56px;font-size:29px;flex:none}
.member-profile-header h3{font-size:19px;margin:0 0 8px}.member-bio{line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;background:#faf8ff;border:1px solid #eee8fa;padding:13px 15px;border-radius:14px}
.member-profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.member-profile-facts>div{display:flex;flex-direction:column;gap:5px;padding:12px;border-radius:12px;background:#f8f6fc;min-width:0}
.member-profile-facts small{color:#8d849c;font-size:10px;font-weight:750}.member-profile-facts strong{overflow-wrap:anywhere;font-size:13px}
.member-profile-actions{display:flex;flex-wrap:wrap;gap:9px}
.links-feed .link-card .link-details{min-width:0}.link-controls{display:flex;align-items:center;gap:12px;flex-shrink:0;flex-wrap:wrap}
.link-order-controls{display:flex;align-items:center;gap:5px}.link-order-button{border:1px solid #e6def4;border-radius:9px;padding:8px 10px;background:#f8f5fd;color:#7864a1;font-size:11px;font-weight:800;min-height:34px;cursor:pointer}
.link-order-button:hover:not(:disabled){background:#eee6fc}.link-order-button:disabled{opacity:.35;cursor:default}
.link-pinned-label{display:inline-block;vertical-align:middle;color:#8c6fcb;font-size:10px;letter-spacing:.02em;font-weight:800}
.pinned-link{border-color:#d9ccec;background:#fffefd}
.main.chat-page{display:flex;flex-direction:column;min-height:0;height:100dvh;overflow:hidden}
.main.chat-page .chat-layout{flex:1 1 auto;min-height:0;height:auto;max-height:none;margin-bottom:0}
.main.chat-page .moderation-tabs{flex:0 0 auto}
@media(max-width:760px){
 .main.chat-page{height:100dvh;padding:0 0 calc(65px + env(safe-area-inset-bottom,0px))!important;min-width:0}
 .main.chat-page .topbar,.main.chat-page .page-head{display:none!important}
 .main.chat-page .chat-layout{border-radius:0!important;border-left:0;border-right:0;border-bottom:0;min-height:0;max-height:none;width:100%;margin:0}
 .main.chat-page .chat-header{padding:12px 14px;min-height:61px;background:#fff}
 .main.chat-page .chat-scroll{flex:1;min-height:0;overflow:auto;padding:15px 12px}
 .main.chat-page .chat-compose{flex-shrink:0;padding:8px 12px calc(9px + env(safe-area-inset-bottom,0px))}
 .main.chat-page .chat-header-meta p{display:block;font-size:10px;max-width:100%;overflow-wrap:anywhere;white-space:normal}
 .main.chat-page .chat-header h2{white-space:normal;line-height:1.2}
 .main.chat-page .chat-layout.show-chat-list .chat-list{top:61px}
 .links-feed .link-card{display:flex;flex-direction:column;gap:12px;max-width:100%}
 .links-feed .link-controls{display:flex;flex-direction:column;align-items:stretch;width:100%;gap:9px}
 .links-feed .link-order-controls{width:100%;justify-content:flex-start}
 .links-feed .link-open{width:100%;box-sizing:border-box}
 .member-profile-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:350px){.member-profile-facts{grid-template-columns:1fr}}

/* v24: profile editor fits small phones; multi-choice poll switch */
.settings-grid,.settings-grid > .panel,.member-profile-editor,.member-profile-editor form,.member-profile-editor .field{min-width:0;max-width:100%}
.member-profile-editor .task-form-row{grid-template-columns:repeat(2,minmax(0,1fr))}
.member-profile-editor input,.member-profile-editor textarea,.member-profile-editor select{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;border:1px solid #e9e5f2;border-radius:11px;padding:11px 12px;background:#fbfaff;color:#353045;font-size:16px}
.member-profile-editor input[type=date]{min-height:46px;-webkit-appearance:none;appearance:none}
.member-profile-editor textarea{resize:vertical;overflow-wrap:anywhere}
.member-profile-editor .panel-head{min-width:0;flex-wrap:wrap}
.member-profile-editor .btn{max-width:100%;white-space:normal;text-align:center}
.poll-mode-field{margin:16px 0}
.poll-mode-control{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0;padding:13px 14px;border:1px solid #e9e5f2;background:#faf9ff;border-radius:14px;cursor:pointer;min-width:0}
.poll-mode-control>span:first-child{min-width:0;flex:1}
.poll-mode-control strong{font-size:13px;display:block;color:#4c4165}
.poll-mode-control small{font-size:11px;font-weight:500;display:block;color:#898097;margin-top:3px;line-height:1.4}
.poll-mode-switch{position:relative;display:block;flex:0 0 48px;width:48px;height:28px}
.poll-mode-switch input{position:absolute;inset:0;margin:0;opacity:0;z-index:2;cursor:pointer}
.poll-mode-track{display:block;width:48px;height:28px;border-radius:999px;background:#d9d4e3;position:relative;transition:background .2s}
.poll-mode-track:before{content:'';position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #2b1d3e2b;transition:transform .2s}
.poll-mode-switch input:checked+.poll-mode-track{background:#8a6bcf}
.poll-mode-switch input:checked+.poll-mode-track:before{transform:translateX(20px)}
.poll-mode-switch input:focus-visible+.poll-mode-track{outline:3px solid #c1b1e9;outline-offset:3px}
.poll-mode-switch input:disabled{cursor:not-allowed}
.poll-mode-switch input:disabled+.poll-mode-track{opacity:.65}
.poll-mode-caption{font-size:11px;color:#836ba7;font-weight:750;margin:8px 0;overflow-wrap:anywhere}
.vote-person span:last-child{text-align:right;max-width:62%;overflow-wrap:anywhere}
@media(max-width:760px){
 .settings-grid{grid-template-columns:minmax(0,1fr)}
 .member-profile-editor .task-form-row{grid-template-columns:minmax(0,1fr);gap:0}
 .member-profile-editor{padding:16px}
 .member-profile-editor .panel-head h2{min-width:0;overflow-wrap:anywhere}
}
@media(max-width:380px){.poll-mode-control{padding:12px 10px;gap:7px}}

/* v24 polish: answer fields and unobstructed save action on narrow screens */
.poll-mode-field + label{margin-bottom:8px}
.option-field{min-width:0}
.option-field input{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:11px 12px;border:1px solid #e9e5f2;border-radius:11px;background:#fbfaff;color:#353045;font-size:16px}
.member-profile-editor .btn[type=submit]{scroll-margin-bottom:calc(86px + env(safe-area-inset-bottom, 0px))}
@media(max-width:760px){.settings-grid{padding-bottom:calc(80px + env(safe-area-inset-bottom, 0px))}}

/* v25: Trends approval tab within the To-dos section. */
.task-section-tabs{display:flex;gap:7px;padding:5px;background:#f2eff9;border-radius:15px;margin:0 0 19px;max-width:480px}
.task-section-tabs button{flex:1;border:0;background:transparent;padding:12px 15px;border-radius:11px;color:#857b98;font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap}
.task-section-tabs button.active{background:#fff;color:#785bb6;box-shadow:0 3px 12px #47316312}
.trends-intro{display:flex;justify-content:space-between;align-items:center;gap:15px;background:linear-gradient(110deg,#f2ebff,#fff0f6);margin-bottom:16px}
.trends-intro h2{font-size:23px;margin:5px 0 6px;letter-spacing:-.04em}
.trends-intro p{font-size:12px;color:#817791;line-height:1.55}
.trend-pending{flex-shrink:0;background:#fff8;color:#785bb6;font-weight:800;font-size:11px;padding:11px;border-radius:100px}
.trends-top-actions{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:15px 0}
.trend-list{display:flex;flex-direction:column;gap:12px}
.trend-card{padding:16px 18px;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;min-width:0}
.trend-main{display:flex;gap:13px;align-items:flex-start;flex:1;min-width:0}
.trend-icon{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:13px;background:#f1ebfd;color:#866ac6;font-size:24px}
.trend-details{min-width:0;flex:1}
.trend-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-bottom:8px}
.trend-details h3{font-size:15px;overflow-wrap:anywhere;margin-bottom:5px}
.trend-details p{font-size:12px;color:#827b91;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;margin:4px 0 9px}
.trend-author{font-size:11px;color:#928ba2;margin:8px 0}
.trend-url{display:inline-block;color:#7655be;font-size:12px;font-weight:800;overflow-wrap:anywhere;text-decoration:underline}
.trend-status{font-size:10px;font-weight:800;border-radius:100px;padding:6px 9px;background:#f7f0df;color:#9b7433}
.trend-status.approved{background:#e7f7eb;color:#387e56}
.trend-status.declined{background:#fce8ee;color:#b8516a}
.trend-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.trend-review{display:flex;gap:5px}
.trend-vote{width:39px;height:37px;display:grid;place-items:center;border-radius:11px;border:1px solid #e7e2ef;background:#fff;font-size:18px;cursor:pointer}
.trend-vote:hover{background:#f5f0fd}
.trend-vote.selected.approved{background:#e7f7eb;border-color:#93ccab}
.trend-vote.selected.declined{background:#fce8ee;border-color:#e7a2b0}
.trend-delete{font-size:11px!important}
@media(max-width:650px){.trend-card{flex-direction:column;padding:15px}.trend-actions{width:100%;justify-content:flex-end;border-top:1px solid #f2eef8;padding-top:10px}.trends-intro{align-items:flex-start}.trend-pending{max-width:115px;text-align:center;line-height:1.4}.trends-top-actions{flex-wrap:wrap}.task-section-tabs{max-width:none;width:100%}}
@media(max-width:340px){.trends-intro{flex-wrap:wrap}.trend-pending{max-width:none}}

/* Full-width title field in new trend submission dialog. */
form[data-form='trend'] input[name='title']{display:block;width:100%;min-width:0;max-width:100%;border:1px solid #e9e5f2;border-radius:11px;padding:11px 12px;background:#fbfaff;color:#353045;font-size:16px}
/* v26 — custom group chats */
.chat-custom-title{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:13px 10px 7px;font-size:10px;color:#998ba9;font-weight:900;letter-spacing:.09em;min-width:0}
.chat-custom-title .tiny{font-size:10px;color:#b4a9c2;letter-spacing:normal}
.chat-new-group{border:1px solid #e6dafb;border-radius:9px;background:#f2ecfd;color:#7357b3;padding:5px 9px;font-weight:850;font-size:11px;white-space:nowrap;min-height:28px}
.chat-new-group:hover{background:#e9dffa}
.chat-no-groups{display:block;padding:8px 11px;font-size:11px;line-height:1.45;white-space:normal;max-width:100%;overflow-wrap:anywhere}
.chat-manage-group{flex:none;border:1px solid #e6ddf3;background:#f6f1fd;color:#755cb1;border-radius:10px;padding:8px 10px;font-size:11px;font-weight:800;white-space:nowrap}
.group-member-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:10px 0;max-height:43dvh;overflow-y:auto;padding:3px}
.group-member-option{display:flex;align-items:center;gap:8px;border:1px solid #e9e3f1;background:#fffdff;border-radius:13px;padding:10px;min-width:0;margin:0;font-weight:normal;cursor:pointer}
.group-member-option:has(input:checked){border-color:#aa91df;background:#f7f1ff}
.group-member-option input{flex:none;width:17px;height:17px;accent-color:#8e7cc3;margin:0}
.group-member-name{display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}
.group-member-name .avatar{width:31px;height:31px;flex:none}
.group-member-name>span{display:flex;flex-direction:column;gap:1px;min-width:0}
.group-member-name strong{font-size:12px;overflow-wrap:anywhere}
.group-member-name small{font-size:10px;color:#8d829f;overflow-wrap:anywhere}
.group-delete{display:block;margin-top:14px;width:100%;color:#b8526c!important}
@media(max-width:760px){
 .chat-custom-title{padding:5px 6px;min-height:36px}
 .chat-custom-title .chat-new-group{font-size:11px;min-height:30px}
 .chat-manage-group{font-size:10px;padding:7px 8px}
 .group-member-options{grid-template-columns:1fr;max-height:40dvh}
 .group-member-option{min-height:56px}
 .chat-no-groups{padding:6px;font-size:10px}
}
/* Full-width group-name input on narrow phones */
.modal [data-form="new-custom-group"] .field input[name="title"],
.modal [data-form="edit-custom-group"] .field input[name="title"] {display:block;width:100%;max-width:none;min-width:0;box-sizing:border-box}

/* v27 — team-specific dashboard emojis. Keep every emoji visible on large
   screens; on phones show the first four and an expandable ellipsis. */
.hello .hero-icons.member-emojis {
  display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;
  gap:8px;letter-spacing:normal;white-space:normal;padding-right:0;
  max-width:min(55%,500px);min-width:0;font-size:27px;
}
.member-emojis .hero-emoji {
  display:inline-flex;align-items:center;justify-content:center;
  width:auto;height:auto;min-width:0;border:0;border-radius:0;
  background:transparent;box-shadow:none;padding:0;line-height:1;
}
.member-emojis .hero-emoji .emoji {font-size:26px;line-height:1;}
.member-emojis .hero-show-more {
  display:none;border:1px solid #d8c9ed;background:#fff;color:#77619b;
  border-radius:12px;min-width:36px;min-height:36px;padding:3px 7px;
  font-size:16px;font-weight:850;cursor:pointer;
}
@media(max-width:760px){
  .hello .hero-icons.member-emojis{display:flex;max-width:48%;justify-content:flex-end}
  .member-emojis .hero-emoji-extra{display:none}
  .member-emojis.expanded .hero-emoji-extra{display:inline-flex}
  .member-emojis .hero-show-more{display:inline-flex;align-items:center;justify-content:center}
}
@media(max-width:530px){
  .hello{flex-direction:column;align-items:flex-start;gap:12px;min-height:0}
  .hello .hero-icons.member-emojis{display:flex;max-width:100%;justify-content:flex-start}
  .member-emojis .hero-emoji{width:auto;height:auto;min-width:0;border:0;border-radius:0;background:transparent;box-shadow:none;padding:0}
  .member-emojis .hero-emoji .emoji{font-size:22px}
  .member-emojis .hero-show-more{min-width:33px;min-height:33px}
}

/* v30 — optional desktop immersive chat, management pinned message ticker. */
.chat-expand-button,.chat-pin-button{border:1px solid #e9e4f6;background:#fff;color:#775fbb;border-radius:10px;min-width:35px;height:35px;padding:6px 9px;font-weight:800;flex:none;white-space:nowrap}
.chat-expand-button:hover,.chat-pin-button:hover{background:#f2edff}
.chat-header{min-width:0}
.chat-pin{flex:none;display:flex;align-items:center;gap:12px;background:#a71459;color:#fff;min-height:34px;width:100%;padding:4px 13px;overflow:hidden;font-size:12px;font-weight:750}
.chat-pin-label{flex:none;white-space:nowrap;font-size:9px;letter-spacing:.08em;opacity:.85}
.chat-pin-window{min-width:0;flex:1;overflow:hidden;white-space:nowrap}
.chat-pin-scroll{display:inline-block;width:max-content;max-width:none;white-space:nowrap;animation:fifty-ticker var(--chat-pin-duration,35s) linear infinite;animation-delay:1.5s;padding-left:0;transform:translateX(0)}
/* Keep the notice readable: it starts with a pause, moves slowly, and can be paused on desktop or touch. */
@keyframes fifty-ticker{0%{transform:translateX(0)}100%{transform:translateX(calc(-100% - 20px))}}
.chat-pin-window:hover .chat-pin-scroll,.chat-pin-window:focus .chat-pin-scroll,.chat-pin-window:focus-within .chat-pin-scroll,.chat-pin-window:active .chat-pin-scroll{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.chat-pin-scroll{animation:none;padding-left:0;white-space:normal;max-width:100%}.chat-pin-window{white-space:normal;overflow:auto}}
@media(min-width:761px){
 .shell.chat-maximized{grid-template-columns:minmax(0,1fr);height:100dvh;min-height:0;overflow:hidden}
 .shell.chat-maximized .sidebar{display:none}
 .shell.chat-maximized .main.chat-page{max-width:none!important;width:100%;height:100dvh;padding:8px 14px 12px;display:flex;flex-direction:column;min-height:0;overflow:hidden}
 .shell.chat-maximized .main.chat-page .topbar,.shell.chat-maximized .main.chat-page .page-head{display:none}
 .shell.chat-maximized .chat-layout{height:auto!important;max-height:none!important;min-height:0!important;flex:1 1 auto;display:grid;grid-template-columns:minmax(180px,270px) minmax(0,1fr)}
 .shell.chat-maximized .chat-conversation{min-height:0;display:flex;flex-direction:column}
 .shell.chat-maximized .chat-scroll{flex:1;min-height:0;overflow:auto}
 .shell.chat-maximized .chat-compose{flex:none}
 .shell.chat-maximized .moderation-tabs{flex:none}
}
@media(max-width:760px){.chat-expand-button{display:none}.chat-pin-button{font-size:11px;min-width:31px;padding:5px 7px}.chat-pin{gap:6px;min-height:30px;padding:3px 8px;font-size:11px}.chat-pin-label{font-size:8px}}
.recipient-shortcuts{flex-wrap:wrap}.poll-close-field[hidden]{display:none}.poll-close-field{margin-top:12px}.poll-end-button{margin-top:11px!important}.poll-close-time{color:#8b77a7;font-size:11px;margin-top:12px}
/* FIFTY HQ v31 | Account-specific midnight-lavender appearance.
   Keep member identity colors, image attachments and chosen chat bubble colors intact. */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink:#f4effb;
  --muted:#b7afc7;
  --line:#40384f;
  --paper:#15131f;
  --white:#211d2e;
  --purple:#b09cf2;
  --purple-light:#39304f;
  --shadow:0 9px 34px rgba(0,0,0,.20);
}
html[data-theme="dark"] body,
html[data-theme="dark"] .shell { background:var(--paper);color:var(--ink); }
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .chat-layout,
html[data-theme="dark"] .chat-conversation,
html[data-theme="dark"] .chat-header,
html[data-theme="dark"] .main.chat-page .chat-header,
html[data-theme="dark"] .chat-compose,
html[data-theme="dark"] .chat-list,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .idea-card,
html[data-theme="dark"] .post-card,
html[data-theme="dark"] .poll-card,
html[data-theme="dark"] .link-card,
html[data-theme="dark"] .task-item,
html[data-theme="dark"] .task-item.completed,
html[data-theme="dark"] .more-item,
html[data-theme="dark"] .admin-action,
html[data-theme="dark"] .login-panel,
html[data-theme="dark"] .login-page,
html[data-theme="dark"] .modal,
html[data-theme="dark"] .member-choice,
html[data-theme="dark"] .group-card,
html[data-theme="dark"] .workspace-switch button.active,
html[data-theme="dark"] .seg-tabs button.active,
html[data-theme="dark"] .task-section-tabs button.active,
html[data-theme="dark"] .moderation-tabs button.active {
  background:#211d2e;color:#f4effb;border-color:#40384f;
}
html[data-theme="dark"] .chat-list {background:#1b1828;border-right-color:#40384f;border-bottom-color:#40384f}
html[data-theme="dark"] .chat-scroll {background:radial-gradient(circle at 100% 0%,#2b2240,transparent 46%),#211d2e}
html[data-theme="dark"] .chat-compose {border-top-color:var(--line)}
html[data-theme="dark"] .sidebar {border-right-color:var(--line)}
html[data-theme="dark"] .chat-layout {border-color:var(--line)}
html[data-theme="dark"] .panel-head h2,
html[data-theme="dark"] .section-heading,
html[data-theme="dark"] .page-head h1,
html[data-theme="dark"] .chat-header h2,
html[data-theme="dark"] .chat-room b,
html[data-theme="dark"] .task-item h3,
html[data-theme="dark"] .task-content h3,
html[data-theme="dark"] .idea-card h3,
html[data-theme="dark"] .post-card h3,
html[data-theme="dark"] .poll-card h3,
html[data-theme="dark"] .link-card h3,
html[data-theme="dark"] .more-item strong,
html[data-theme="dark"] .login-inner h2,
html[data-theme="dark"] .modal h2,
html[data-theme="dark"] .member-profile-header h3,
html[data-theme="dark"] .list-title,
html[data-theme="dark"] .trend-details h3,
html[data-theme="dark"] .poll-mode-control strong {
  color:#f4effb;
}
html[data-theme="dark"] .muted,
html[data-theme="dark"] .small.muted,
html[data-theme="dark"] .tiny.muted,
html[data-theme="dark"] .page-head p,
html[data-theme="dark"] .chat-header p,
html[data-theme="dark"] .chat-room small,
html[data-theme="dark"] .chat-room-meta small,
html[data-theme="dark"] .list-sub,
html[data-theme="dark"] .side-user small,
html[data-theme="dark"] .side-team p,
html[data-theme="dark"] .task-content p,
html[data-theme="dark"] .poll-card p,
html[data-theme="dark"] .trend-details p,
html[data-theme="dark"] .trend-author,
html[data-theme="dark"] .more-item small,
html[data-theme="dark"] .hint,
html[data-theme="dark"] .sub,
html[data-theme="dark"] .breadcrumb,
html[data-theme="dark"] .chat-sender span,
html[data-theme="dark"] .stat small,
html[data-theme="dark"] .poll-mode-control small,
html[data-theme="dark"] .mini-label {
  color:#b7afc7;
}
html[data-theme="dark"] label,
html[data-theme="dark"] .chat-sender,
html[data-theme="dark"] .chat-room,
html[data-theme="dark"] .nav-item,
html[data-theme="dark"] .breadcrumb b,
html[data-theme="dark"] .group-pill,
html[data-theme="dark"] .user-pill,
html[data-theme="dark"] .workspace-switch button,
html[data-theme="dark"] .side-team strong,
html[data-theme="dark"] .seg-tabs button,
html[data-theme="dark"] .moderation-tabs button,
html[data-theme="dark"] .task-section-tabs button {
  color:#d4c8e8;
}
html[data-theme="dark"] .nav-item:hover,
html[data-theme="dark"] .nav-item.active,
html[data-theme="dark"] .chat-room:hover,
html[data-theme="dark"] .chat-room.active,
html[data-theme="dark"] .member-choice.selected,
html[data-theme="dark"] .group-card:hover,
html[data-theme="dark"] .group-card.selected {
  background:#3b3157;border-color:#66568a;color:#e8ddff;
}
html[data-theme="dark"] .nav-item.active,
html[data-theme="dark"] .chat-room.active,
html[data-theme="dark"] .seg-tabs button.active,
html[data-theme="dark"] .workspace-switch button.active {color:#d6c6ff}
html[data-theme="dark"] .workspace-switch,
html[data-theme="dark"] .seg-tabs,
html[data-theme="dark"] .task-section-tabs,
html[data-theme="dark"] .moderation-tabs,
html[data-theme="dark"] .side-team,
html[data-theme="dark"] .profile-preview,
html[data-theme="dark"] .bubble-preview-stage,
html[data-theme="dark"] .member-bio,
html[data-theme="dark"] .member-profile-facts>div,
html[data-theme="dark"] .recipient-option,
html[data-theme="dark"] .recurring-row,
html[data-theme="dark"] .cal-details,
html[data-theme="dark"] .poll-mode-control,
html[data-theme="dark"] .embedded-poll,
html[data-theme="dark"] .media-preview-card,
html[data-theme="dark"] .poll-approval,
html[data-theme="dark"] .approve-panel {
  background:#2b263b;border-color:#4d425f;color:#eee7f9;
}
html[data-theme="dark"] .badge,
html[data-theme="dark"] .badge.neutral,
html[data-theme="dark"] .priority,
html[data-theme="dark"] .due-tag,
html[data-theme="dark"] .meeting-zone-note,
html[data-theme="dark"] .feedback-type,
html[data-theme="dark"] .feedback-category,
html[data-theme="dark"] .recurring-tag,
html[data-theme="dark"] .trend-pending,
html[data-theme="dark"] .trend-status,
html[data-theme="dark"] .admin-task-totals span {
  background:#3a324f;color:#d9c6ff;border-color:#514365;
}
html[data-theme="dark"] .badge.good,
html[data-theme="dark"] .trend-status.approved,
html[data-theme="dark"] .priority.low {background:#183e36;color:#b5f0d7}
html[data-theme="dark"] .trend-status.declined,
html[data-theme="dark"] .priority.high,
html[data-theme="dark"] .due-tag.overdue {background:#4f273d;color:#ffd0da}
html[data-theme="dark"] .btn-outline,
html[data-theme="dark"] .group-pill,
html[data-theme="dark"] .user-pill,
html[data-theme="dark"] .week-switch .iconbtn,
html[data-theme="dark"] .cal-tool,
html[data-theme="dark"] .cal-day-jump,
html[data-theme="dark"] .cal-brush-btn,
html[data-theme="dark"] .more-item,
html[data-theme="dark"] .link-order-button,
html[data-theme="dark"] .link-order-controls button,
html[data-theme="dark"] .moderation-older,
html[data-theme="dark"] .moderation-refresh,
html[data-theme="dark"] .trend-vote,
html[data-theme="dark"] .reaction,
html[data-theme="dark"] .chat-expand-button,
html[data-theme="dark"] .chat-pin-button,
html[data-theme="dark"] .chat-room-toggle,
html[data-theme="dark"] .poll-option,
html[data-theme="dark"] .mini-poll-option,
html[data-theme="dark"] .link-card .link-open,
html[data-theme="dark"] .btn:not(.btn-primary):not(.btn-danger):not(.btn-soft):not(.btn-quiet),
html[data-theme="dark"] .x {
  background:#322a43;color:#e3d8f7;border-color:#58496e;
}
html[data-theme="dark"] .btn-soft,
html[data-theme="dark"] .chat-room>.emoji,
html[data-theme="dark"] .chat-header-icon,
html[data-theme="dark"] .stat .stat-icon,
html[data-theme="dark"] .more-icon,
html[data-theme="dark"] .link-icon,
html[data-theme="dark"] .trend-icon {
  background:#3b3156;color:#d7c5ff;
}
html[data-theme="dark"] .btn-primary {background:#8e73d5;color:#fff}
html[data-theme="dark"] .btn-primary:hover {background:#775bbc}
html[data-theme="dark"] .btn-danger {background:#502e42;color:#ffceda}
html[data-theme="dark"] .chat-tools button,
html[data-theme="dark"] .task-edit,
html[data-theme="dark"] .task-remove,
html[data-theme="dark"] .link-order-button,
html[data-theme="dark"] .poll-close-time {color:#c4addf}
html[data-theme="dark"] input[type=text],
html[data-theme="dark"] input[type=password],
html[data-theme="dark"] input[type=url],
html[data-theme="dark"] input[type=date],
html[data-theme="dark"] input[type=datetime-local],
html[data-theme="dark"] input[type=number],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .chat-compose textarea,
html[data-theme="dark"] .cal-reason-field input,
html[data-theme="dark"] form[data-form="trend"] input[name="title"],
html[data-theme="dark"] .option-field input,
html[data-theme="dark"] .member-profile-editor input,
html[data-theme="dark"] .member-profile-editor textarea,
html[data-theme="dark"] .member-profile-editor select {
  background:#181521;color:#f4effb;border-color:#4c405e;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {color:#8f829f;opacity:1}
html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus {border-color:#bb9bf5;box-shadow:0 0 0 3px #9b77eb3d}
html[data-theme="dark"] .rich-toolbar,
html[data-theme="dark"] .rich-preview,
html[data-theme="dark"] .rich-toolbar .format-palette {
  background:#29243a;color:#ece3f8;border-color:#4c405f;
}
html[data-theme="dark"] .rich-toolbar button,
html[data-theme="dark"] .rich-toolbar select[data-format-palette],
html[data-theme="dark"] .rich-toolbar .palette-icon {color:#d8c8f5}
html[data-theme="dark"] .rich-toolbar button:hover,
html[data-theme="dark"] .rich-toolbar [aria-pressed=true],
html[data-theme="dark"] .rich-toolbar .format-expand {background:#46365e;color:#fff}
html[data-theme="dark"] .rich-toolbar .toolbar-line {background:#56476c}
html[data-theme="dark"] .media-upload .attach-label,
html[data-theme="dark"] .chat-react-chip,
html[data-theme="dark"] .chat-react-add,
html[data-theme="dark"] .chat-emoji-picker {
  background:#30293f;color:#e7dbfa;border-color:#4e425f;
}
html[data-theme="dark"] .chat-react-chip.mine {background:#493764;border-color:#8569c2}
html[data-theme="dark"] .chat-emoji-picker button:hover {background:#4a3b65}
/* A member's chosen white/soft/solid message bubbles remain independent of app theme. */
html[data-theme="dark"] .chat-bubble[data-bubble-style="outline"] {background:#fff;color:#30283e}
html[data-theme="dark"] .chat-bubble[data-bubble-style="soft"] {color:#30283e}
html[data-theme="dark"] .chat-bubble[data-bubble-style="solid"] {color:var(--bubble-fg,#fff)}
html[data-theme="dark"] .chat-bubble .rich-content a {color:inherit}
html[data-theme="dark"] .calendar-wrap {background:#211d2e;border-color:#4c405f}
html[data-theme="dark"] .cal-day,
html[data-theme="dark"] .cal-corner,
html[data-theme="dark"] .cal-time {background:#2a243b;color:#c9bde0;border-color:#514564}
html[data-theme="dark"] .cal-day strong {color:#f1eaff}
html[data-theme="dark"] .cal-day.today {background:#3c3059}
html[data-theme="dark"] .cal-day.today strong {color:#d7c4ff}
html[data-theme="dark"] .cal-cell {background:var(--cell-bg,#211d2e);border-color:#423950}
html[data-theme="dark"] .cal-cell-time,
html[data-theme="dark"] .cal-cell .ct {color:#dbceed;text-shadow:none}
html[data-theme="dark"] .cal-cell.mine .cal-cell-time {color:#2c2340}
html[data-theme="dark"] .cal-cell.mine-busy {background:repeating-linear-gradient(135deg,#392533,#392533 6px,#503142 6px,#503142 12px);box-shadow:inset 0 0 0 2px #e9a0aa}
html[data-theme="dark"] .cal-cell.mine-busy .cal-cell-time {color:#ffdce5}
html[data-theme="dark"] .cal-details {box-shadow:0 8px 24px #0005}
html[data-theme="dark"] .hello,
html[data-theme="dark"] .task-banner,
html[data-theme="dark"] .admin-hero,
html[data-theme="dark"] .trends-intro {background:linear-gradient(110deg,#3b3057,#482a47 90%)}
html[data-theme="dark"] .hello h2,
html[data-theme="dark"] .task-banner h2,
html[data-theme="dark"] .admin-hero h2 {color:#f7f1ff}
html[data-theme="dark"] .hello p,
html[data-theme="dark"] .task-banner p,
html[data-theme="dark"] .admin-hero p {color:#cbbddc}
html[data-theme="dark"] .task-progress-track,
html[data-theme="dark"] .admin-task-progress,
html[data-theme="dark"] .progressline,
html[data-theme="dark"] .result-bar {background:#483b58}
html[data-theme="dark"] .task-check {background:#201a2c;border-color:#947bbb}
html[data-theme="dark"] .task-item.completed {opacity:.85}
html[data-theme="dark"] .empty {background:#242034;border-color:#58496e;color:#c8bddd}
html[data-theme="dark"] .empty b {color:#eee4ff}
html[data-theme="dark"] .member-profile-header .avatar,
html[data-theme="dark"] .profile-preview .avatar {border-color:var(--line)}
html[data-theme="dark"] .chat-new-group,
html[data-theme="dark"] .chat-manage-group,
html[data-theme="dark"] .group-member-option,
html[data-theme="dark"] .recipient-option,
html[data-theme="dark"] .moderation-tabs,
html[data-theme="dark"] .workspace-switch {border-color:#4b3e5b}
html[data-theme="dark"] .group-member-option:has(input:checked),
html[data-theme="dark"] .recipient-option:has(input:checked) {background:#493963;border-color:#876bbb}
html[data-theme="dark"] .admin-entry,
html[data-theme="dark"] .chat-new-group,
html[data-theme="dark"] .chat-manage-group {background:#29233b;color:#d9caff;border-color:#4b4060}
html[data-theme="dark"] .admin-entry:hover,
html[data-theme="dark"] .chat-new-group:hover,
html[data-theme="dark"] .chat-manage-group:hover {background:#382d51}
html[data-theme="dark"] .pinned-link {background:#30293f}
html[data-theme="dark"] .link-order-button:hover:not(:disabled) {background:#49385c}
html[data-theme="dark"] .poll-option:hover,
html[data-theme="dark"] .poll-option.selected,
html[data-theme="dark"] .mini-poll-option:has(input:checked) {background:#3e3254;border-color:#8066b0}
html[data-theme="dark"] .chat-pin {background:#9d215f;color:#fff}
html[data-theme="dark"] .login-art {background:linear-gradient(155deg,#302447,#46263b 55%,#282a4d)}
html[data-theme="dark"] .login-art .art-copy h1 {color:#fff5ff}
html[data-theme="dark"] .login-art .art-copy p,
html[data-theme="dark"] .login-art .art-bottom {color:#d0bedc}
html[data-theme="dark"] .login-panel {background:#211d2e}
html[data-theme="dark"] .swatch {border-color:#2b263b;outline-color:#77648c}
html[data-theme="dark"] .profile-color-preview {border-color:#292337;box-shadow:0 0 0 1px #665376}
html[data-theme="dark"] .bubble-preview-label {color:#d6c7eb}
html[data-theme="dark"] .bubble-follow {color:#d9cceb}
html[data-theme="dark"] .calendar-workspace {background:#2b263b;border-color:#4d425f}
/* App-wide bottom navigation on phones, including safe areas. */
@media(max-width:760px){
 html[data-theme="dark"] body {background:#15131f}
 html[data-theme="dark"] .mobile-nav {background:rgba(29,25,42,.98);border-top-color:#4b405d;box-shadow:0 -8px 28px #07061180}
 html[data-theme="dark"] .mobile-nav button {color:#c5b8d8}
 html[data-theme="dark"] .mobile-nav button.active {background:#493761;color:#eadbff}
 html[data-theme="dark"] .chat-list {background:#1c182b}
}
/* Profile Settings control: distinct from the member identity and bubble colors. */
.appearance-settings-form {display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.appearance-choice-row {width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.appearance-choice {display:flex;align-items:center;gap:10px;text-align:left;min-width:0;border:1.5px solid var(--line);border-radius:15px;background:var(--white);color:var(--ink);padding:13px;cursor:pointer;transition:border .14s,background .14s}
.appearance-choice.selected {border-color:#9b82e4;box-shadow:0 0 0 2px #a58be32b}
.appearance-choice-icon {font-size:23px;line-height:1.2;flex:none}
.appearance-choice strong {display:block;font-size:13px}
.appearance-choice small {display:block;color:var(--muted);font-size:11px;margin-top:2px;white-space:normal;line-height:1.4}
html[data-theme="dark"] .appearance-choice {background:#2b263b;border-color:#58496e;color:#f4effb}
html[data-theme="dark"] .appearance-choice.selected {background:#403153;border-color:#ab8bec}
@media(max-width:360px){.appearance-choice {padding:10px;gap:7px}.appearance-choice-icon {font-size:20px}}
/* Calendar status brushes stay integrated with the dark workspace. */
html[data-theme="dark"] .calendar-brush{background:#2b263b;border-color:#4d425f;color:#ede4f8}
html[data-theme="dark"] .cal-brush-btn.active.available{background:#234339;color:#b7f0d1;border-color:#50856b}
html[data-theme="dark"] .cal-brush-btn.active.unavailable{background:#4e2938;color:#ffd0d8;border-color:#985e70}
html[data-theme="dark"] .cal-brush-btn.active.clear{background:#4a3d5c;color:#e6d8f9;border-color:#7e6b9a}
html[data-theme="dark"] .calendar-workspace-label{color:#e2d6f1}

/* v31: Announcement text follows the appearance mode. Normal body text is
   light against dark cards; explicit author-selected text colors are retained. */
html[data-theme="dark"] .post-card .post-body,
html[data-theme="dark"] .latest-announcement p {
  color: #f0eaf9;
}
html[data-theme="dark"] .post-card .post-body .rich-content a,
html[data-theme="dark"] .post-card .post-body a {
  color: #d9c2ff;
}

/* v33 Personal calendar: separate from painted availability. */
.personal-calendar-panel{margin-bottom:16px}
.personal-calendar-panel .panel-head{gap:12px;flex-wrap:wrap}
.personal-calendar-panel .panel-head>div{max-width:660px}
.personal-calendar-panel .panel-head p{margin-top:7px;line-height:1.5}
.personal-visibility,.personal-repeat{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:700;cursor:pointer;margin:12px 0}
.personal-visibility input,.personal-repeat input{width:17px;height:17px;accent-color:#9072c7;flex:none}
.personal-event-row{display:flex;align-items:center;gap:10px;padding:11px 0;border-top:1px solid var(--line)}
.personal-event-swatch{width:9px;align-self:stretch;min-height:28px;border-radius:6px;flex:none}
.personal-event-label{flex:1;min-width:120px}
.personal-event-label strong{font-size:13px;display:block}
.personal-event-label .small{overflow-wrap:anywhere;margin-top:4px}
.personal-cell-stripes{display:flex;position:absolute;left:1px;right:1px;top:1px;height:5px;gap:1px;z-index:2;pointer-events:none}
.personal-cell-stripes i{flex:1;min-width:3px;border-radius:2px;box-shadow:0 0 0 1px #1112}
.personal-detail{display:flex;gap:7px;align-items:center;padding:5px 0;font-size:12px;overflow-wrap:anywhere}
.personal-detail span{width:9px;height:18px;flex:none;border-radius:5px}
.personal-detail b{white-space:nowrap}
html[data-theme="dark"] .personal-event-row{border-color:#4b4060}
html[data-theme="dark"] .personal-calendar-panel .personal-event-label,
html[data-theme="dark"] .personal-visibility,
html[data-theme="dark"] .personal-repeat,
html[data-theme="dark"] .personal-detail{color:#eee7f9}
html[data-theme="dark"] .personal-cell-stripes i{box-shadow:0 0 0 1px #211b2d}
@media(max-width:650px){.personal-event-row{flex-wrap:wrap}.personal-event-label{flex-basis:calc(100% - 24px)}.personal-event-row .btn{margin-left:16px}}

/* v33: preserve readable dark-mode calendar cells and shared-window suggestion. */
html[data-theme="dark"]{--calendar-empty-cell-bg:#272237}
html[data-theme="dark"] .overlap{background:#2b263b!important;border-color:#584b70!important;color:#f5efff!important}
html[data-theme="dark"] .overlap strong,html[data-theme="dark"] .overlap span,html[data-theme="dark"] .overlap div{color:#eee4fa!important}
html[data-theme="dark"] .calendar-wrap,html[data-theme="dark"] .cal-time,html[data-theme="dark"] .cal-day,html[data-theme="dark"] .cal-corner{background:#221e30!important;color:#d9cce9!important;border-color:#443b58!important}
html[data-theme="dark"] .cal-day strong{color:#f5efff!important}
html[data-theme="dark"] .cal-day.today{background:#34294b!important}
html[data-theme="dark"] .cal-day.today strong{color:#d6b8ff!important}
html[data-theme="dark"] .cal-cell{border-color:#493e5a!important}
html[data-theme="dark"] .cal-cell .ct,html[data-theme="dark"] .cal-cell-time{color:#f8f2ff!important}
/* Personal reminder selection inside event editor. */
.personal-reminder-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:9px;margin-bottom:10px}
.personal-reminder-choices label{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:10px;padding:9px 10px;font-size:12px;font-weight:650;cursor:pointer;background:var(--white)}
.personal-reminder-choices input{width:16px;height:16px;flex:none;accent-color:#9072c7}
html[data-theme="dark"] .personal-reminder-choices label{background:#2b263b;color:#eee7f9;border-color:#59496e}
@media(max-width:520px){.personal-reminder-choices{grid-template-columns:1fr}}

/* v34: engagements live in expandable date-header bands, never time cells. */
.cal-grid-events{align-items:stretch}
.cal-grid-events .cal-day,.cal-grid-events .cal-corner{min-height:58px;box-sizing:border-box;top:0;z-index:8}
.cal-event-corner,.cal-event-day{
 position:sticky;top:58px;z-index:6;
 height:var(--event-row-height,41px);min-height:41px;
 background:#f9f7ff;border-bottom:1px solid #ded7ed;
 box-sizing:border-box
}
.cal-event-corner{display:flex;align-items:flex-start;justify-content:center;padding:10px 3px;font-size:9px;font-weight:850;color:#8a799d;border-right:1px solid #e6e0f0;letter-spacing:.04em}
.cal-event-day{border-right:1px solid #e9e2f2}
.cal-header-event{
 position:sticky;top:calc(58px + 5px + var(--event-lane,0)*29px);z-index:7;
 align-self:start;margin:var(--event-top,6px) 4px 0;
 min-width:0;height:24px;max-height:24px;display:flex;align-items:center;gap:6px;
 padding:3px 8px;border-radius:7px;border:1px solid var(--event-color,#9474ca);
 background:var(--event-color,#9474ca);color:white;
 font-size:11px;font-weight:800;line-height:1.2;white-space:nowrap;
 cursor:pointer;box-shadow:0 1px 4px #160e2b29;
}
.cal-header-event:hover,.cal-header-event:focus-visible{filter:brightness(1.11);outline:2px solid #ffffff9c;outline-offset:-2px;z-index:9}
.cal-header-event .cal-event-name{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1;text-align:left}
.cal-header-event .cal-event-when{flex:none;font-size:10px;opacity:.9}
.cal-header-event.practice{background:#865b37;border-color:#865b37}
.cal-header-event.group{background:var(--event-color,#7161af);border-color:var(--event-color,#7161af)}
.cal-header-event.personal{border-left-width:5px}
.group-engagement-panel{margin-bottom:16px}
.group-engagement-panel .panel-head{flex-wrap:wrap;gap:12px}
.group-engagement-panel .panel-head>div{max-width:650px}
.personal-event-swatch.group{background:#7161af}
.cal-header-detail{display:flex;gap:12px;align-items:flex-start;padding:8px 0}
.cal-header-detail .personal-event-swatch{min-height:65px}
.cal-header-detail h3{font-size:18px;margin:0 0 5px}
.cal-header-detail p{font-size:13px;margin:6px 0}
html[data-theme="dark"] .cal-event-corner,
html[data-theme="dark"] .cal-event-day{background:#30273e;color:#e0d1ed;border-color:#574665}
html[data-theme="dark"] .cal-header-event{color:#fff;box-shadow:0 1px 5px #100b1980}
html[data-theme="dark"] .cal-event-corner{border-right-color:#574665}

/* v36: Separate account-scoped Important Dates calendar tabs. */
.calendar-primary-tabs{display:flex;gap:8px;align-items:center;overflow-x:auto;padding:4px 1px 14px;margin-bottom:12px;scrollbar-width:thin}
.calendar-primary-tabs button{flex:0 0 auto;border:1px solid #d9cfeb;background:#f8f5fd;color:#625675;border-radius:11px;padding:11px 16px;font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap;transition:background .12s ease}
.calendar-primary-tabs button:hover{background:#eee8f8}
.calendar-primary-tabs button.active{background:#7760b5;border-color:#7760b5;color:#fff;box-shadow:0 2px 10px #66519725}
.important-dates-workspace{margin-top:15px;padding-bottom:16px}
.important-dates-workspace .panel-head{gap:12px;flex-wrap:wrap}
.important-dates-wrap{height:auto!important;max-height:none!important;min-height:122px;overflow-x:auto;overflow-y:visible;overscroll-behavior-x:contain}
.important-dates-wrap .cal-grid-events{align-items:stretch}
.important-dates-wrap .cal-day,.important-dates-wrap .cal-corner{position:relative!important;top:auto!important;min-height:62px}
.important-dates-wrap .cal-event-corner,.important-dates-wrap .cal-event-day{position:relative!important;top:auto!important;min-height:var(--event-row-height,41px)}
.important-dates-wrap .cal-header-event{position:relative!important;top:auto!important;align-self:start;z-index:7}
.important-dates-wrap .cal-event-day{background:#faf7ff}
html[data-theme="dark"] .calendar-primary-tabs button{background:#2d263b;color:#eee0ff;border-color:#54456d}
html[data-theme="dark"] .calendar-primary-tabs button.active{background:#9c81d5;border-color:#9c81d5;color:#1e182c}
html[data-theme="dark"] .important-dates-wrap .cal-event-day{background:#30273e}
html[data-theme="dark"] .important-dates-workspace{color:#f1e8fa}
@media(max-width:760px){.calendar-primary-tabs button{padding:10px 12px;font-size:12px}.important-dates-wrap .cal-grid{min-width:850px}}

/* v37: Full-month Important Dates layout, with Monday as the first day. */
.important-month-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:8px 0 16px}
.important-month-controls{gap:12px;flex-wrap:wrap;margin-bottom:15px}
.important-month-controls .week-switch{flex-wrap:wrap;gap:9px}
.important-month-controls .week-text{min-width:160px;text-align:center;font-size:17px;font-weight:900;color:#4c3d64}
.important-month-scroll{width:100%;overflow-x:auto;border:1px solid #e5dced;border-radius:14px;overscroll-behavior-x:contain}
.important-month-calendar{width:100%;min-width:790px}
.important-month-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:#efebf9;border-bottom:1px solid #ded4ed}
.important-month-weekdays>div{text-align:center;color:#635476;font-size:11px;font-weight:850;padding:12px 6px;letter-spacing:.035em}
.important-month-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:var(--week-height,104px);isolation:isolate}
.important-month-day{position:relative;min-height:var(--week-height,104px);background:#fff;border-right:1px solid #eee7f3;border-bottom:1px solid #eee7f3;padding:0;box-sizing:border-box;z-index:0}
.important-month-day:last-of-type{border-right:0}
.important-month-day.outside-month{background:#f8f6fb}
.important-month-day.today{background:#f3edff}
.important-month-date{display:flex;align-items:center;justify-content:center;width:29px;height:29px;margin:7px 0 0 9px;border-radius:99px;color:#514463;font-size:12px;font-weight:800}
.important-month-day.outside-month .important-month-date{color:#a69bae}
.important-month-day.today .important-month-date{background:#8165c4;color:#fff}
.important-month-pill{
 position:relative;align-self:start;min-width:0;min-height:23px;max-height:23px;
 margin:var(--event-top,42px) 3px 0;padding:4px 7px;
 background:var(--event-color,#8970bb);border:0;border-left:3px solid #ffffff88;
 border-radius:6px;color:white;cursor:pointer;text-align:left;
 z-index:2;display:flex;align-items:center;overflow:hidden;
 box-shadow:0 1px 3px #2315382a;transition:filter .12s ease;
 font-family:inherit;font-size:11px;font-weight:700;line-height:1.1;
}
.important-month-pill span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:750}
.important-month-pill:hover,.important-month-pill:focus-visible{filter:brightness(1.12);outline:2px solid #ffffffb8;outline-offset:-2px;z-index:4}
.important-month-pill.group{background:var(--event-color,#7161af)}
.important-month-pill.practice{background:#98643b}
html[data-theme="dark"] .important-month-controls .week-text{color:#f0e8ff}
html[data-theme="dark"] .important-month-scroll{border-color:#574665}
html[data-theme="dark"] .important-month-weekdays{background:#352944;border-color:#594c6a}
html[data-theme="dark"] .important-month-weekdays>div{color:#e8d8f5}
html[data-theme="dark"] .important-month-day{background:#292236;border-color:#51415f}
html[data-theme="dark"] .important-month-day.outside-month{background:#241d30}
html[data-theme="dark"] .important-month-day.today{background:#43345d}
html[data-theme="dark"] .important-month-date{color:#f2eafa}
html[data-theme="dark"] .important-month-day.outside-month .important-month-date{color:#9f8eaf}
html[data-theme="dark"] .important-month-day.today .important-month-date{background:#ab8de1;color:#23192c}
@media(max-width:700px){
 .important-month-calendar{min-width:840px}
 .important-month-controls .week-switch{justify-content:space-between}
 .important-month-controls .week-text{order:-1;min-width:100%;text-align:left}
 .important-month-actions .btn{flex:1;min-width:125px}
}

/* v38: destructive account management controls are clearly distinguished. */
.btn-danger{background:#a63945!important;border:1px solid #a63945!important;color:#fff!important;font-weight:800}
.btn-danger:hover{background:#842b36!important;border-color:#842b36!important}
.btn-danger:focus-visible{outline:3px solid #ef9b9e;outline-offset:2px}
.account-delete-warning{padding:14px 16px;margin:8px 0 17px;border-radius:12px;background:#fff1f1;border:1px solid #de9e9e;color:#7c242c}
.account-delete-warning strong{font-size:14px;font-weight:850;display:block}
.account-delete-warning p{margin:6px 0 0;font-size:12px;line-height:1.55}
.admin-member-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:10px}
html[data-theme="dark"] .account-delete-warning{background:#3f252c;border-color:#9e555e;color:#ffced2}
html[data-theme="dark"] .btn-danger{background:#9e4552!important;border-color:#b75e6c!important}

/* v39: explicit color control for each event. The server scopes personal overrides
   to the event owner; group color is the shared canonical event color. */
.event-color-choice{margin:12px 0 16px}
.event-color-choice>.personal-repeat{margin:0 0 9px}
.event-color-picker-row{display:flex;align-items:center;gap:13px;line-height:1.45}
.event-color-picker-row input[type="color"]{width:58px;height:40px;flex:none;padding:3px;cursor:pointer;border-radius:9px;border:1px solid #d4c9e7;background:transparent}
.event-color-picker-row input[type="color"]:disabled{cursor:not-allowed;opacity:.4}
.event-color-picker-row span{font-size:12px;color:#756982;max-width:440px}
html[data-theme="dark"] .event-color-picker-row input[type="color"]{border-color:#635474}
html[data-theme="dark"] .event-color-picker-row span{color:#d7c8e9}

/* v40: multiple individually placeable photos embedded inside chat and announcements. */
.media-preview-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:9px;width:100%}
.media-preview-gallery .media-preview-card{display:flex;align-items:flex-start;gap:9px;min-width:0;padding:9px}
.media-preview-gallery .media-preview-card>img{width:62px;height:62px;object-fit:cover;flex:none;border-radius:8px}
.media-preview-gallery .media-preview-caption{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.media-preview-gallery .media-preview-caption strong{font-size:11px;color:#59446d;overflow-wrap:anywhere;line-height:1.3}
.media-preview-gallery .media-preview-caption small{font-size:10px;font-weight:500;color:#837691}
.media-preview-gallery .media-preview-actions{display:flex;gap:4px;flex-wrap:wrap}
.media-preview-gallery .media-preview-actions button{width:auto;height:auto;min-height:28px;padding:5px 7px;font-size:10px;line-height:1.1;border-radius:7px;cursor:pointer}
.inline-media-photo{display:inline-flex;vertical-align:middle;max-width:100%;margin:5px 6px 5px 0;border-radius:12px;overflow:hidden;text-decoration:none}
.inline-media-photo img{display:block;width:auto;height:auto;max-width:min(100%,440px);max-height:390px;object-fit:contain;border-radius:12px;background:#f5f1fb}
.inline-media-gallery{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;margin:9px 0 2px;width:100%;max-width:100%}
.inline-media-gallery .inline-media-photo{margin:0;max-width:min(100%,300px)}
.inline-media-gallery .inline-media-photo img{max-width:100%;max-height:300px}
.chat-bubble .inline-media-photo img{max-width:min(100%,280px);max-height:290px}
.chat-bubble .inline-media-gallery .inline-media-photo{max-width:min(100%,210px)}
.chat-bubble .inline-media-gallery .inline-media-photo img{max-width:100%;max-height:210px}
.post-body .inline-media-gallery{gap:12px}
.post-body .inline-media-gallery .inline-media-photo{max-width:min(100%,300px)}
.inline-media-photo:hover{filter:brightness(.97)}
.inline-media-photo:focus-visible{outline:3px solid #8e7cc3;outline-offset:2px}
html[data-theme="dark"] .media-preview-gallery .media-preview-caption strong{color:#eee5f7}
html[data-theme="dark"] .media-preview-gallery .media-preview-caption small{color:#bfaed0}
@media(max-width:760px){.media-preview-gallery{grid-template-columns:repeat(auto-fill,minmax(155px,1fr))}.chat-bubble .inline-media-photo{max-width:100%}}

/* GIPHY GIF picker */
.giphy-trigger{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;font-size:12px;font-weight:800;line-height:1.1;border:1px solid var(--line);background:var(--white);color:var(--ink);border-radius:11px;padding:6px 10px;margin-top:6px}.giphy-trigger small{font-size:8px;font-weight:500;margin-top:3px}.giphy-picker{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:10px;margin-bottom:10px;max-height:325px;overflow-y:auto}.giphy-picker-top{display:flex;gap:8px}.giphy-picker-top input{flex:1;min-width:0;border:1px solid var(--line);border-radius:9px;padding:8px}.giphy-picker-top button{border:0;background:transparent;color:var(--ink);font-size:20px}.giphy-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:10px 0;min-height:45px;font-size:12px}.giphy-results button{border:0;background:transparent;padding:0;cursor:pointer}.giphy-results img{width:100%;height:88px;object-fit:cover;border-radius:8px;display:block}.giphy-attribution{text-align:right;font-size:11px;font-weight:750}.giphy-chat-image img{max-width:250px;width:100%;border-radius:13px;display:block}.giphy-chat-image span{display:block;font-size:9px;opacity:.65;margin-top:3px}
/* Fifty HQ: dedicated full-panel chat workspace.
   Applied after the versioned release stylesheet. Other views are unchanged. */
@media (min-width: 761px) {
  .shell:not(.chat-maximized) .main.chat-page {
    width: 100%;
    max-width: none;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .shell:not(.chat-maximized) .main.chat-page > .topbar,
  .shell:not(.chat-maximized) .main.chat-page > .page-head {
    display: none !important;
  }

  .shell:not(.chat-maximized) .main.chat-page > .chat-layout {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    overflow: hidden;
  }

  .shell:not(.chat-maximized) .main.chat-page > .moderation-tabs {
    flex: 0 0 auto;
  }

  .shell:not(.chat-maximized) .chat-conversation {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  .shell:not(.chat-maximized) .chat-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }

  .shell:not(.chat-maximized) .chat-compose {
    flex: 0 0 auto;
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .shell:not(.chat-maximized) .main.chat-page > .chat-layout {
    grid-template-columns: 205px minmax(0, 1fr);
  }
}
/* The pre-existing mobile chat workspace already uses the full panel;
   ensure its header stays hidden and the composer remains visible. */
@media (max-width: 760px) {
  .main.chat-page > .topbar,
  .main.chat-page > .page-head { display: none !important; }
  .main.chat-page > .chat-layout { flex: 1 1 auto; min-height: 0; }
}

/* v41: iMessage-style inline replies and compact rich URL cards */
.chat-reply-quote{display:flex;flex-direction:column;gap:3px;text-align:left;width:100%;max-width:380px;padding:8px 11px;margin:0 0 8px;border:0;border-left:3px solid #9279d2;border-radius:5px;background:rgba(143,117,193,.12);color:inherit;cursor:pointer}
.chat-reply-quote strong{font-size:12px}.chat-reply-quote span{font-size:12px;opacity:.8;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.chat-tools .chat-reply-action{
 font-size:10px!important;color:#a69bab!important;padding:2px 3px!important;
 border:0!important;background:none!important;border-radius:0!important;
 min-height:0!important;margin:0!important;font-weight:normal!important;
 line-height:normal!important;cursor:pointer!important;
}
.chat-tools .chat-reply-action:hover{color:#7358ad!important;text-decoration:underline!important}
.chat-tools .chat-reply-action:focus-visible{outline:2px solid #8062c8;outline-offset:2px}
.chat-msg .chat-tools{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start;gap:7px}
.chat-msg.mine .chat-tools{justify-content:flex-end}
.chat-msg .chat-tools > .chat-reaction-area{display:inline-flex;flex:0 0 auto;align-items:center;margin:0}
.chat-msg .chat-tools > .chat-reply-action{flex:0 0 auto;white-space:nowrap;margin:0!important}
.chat-msg .chat-tools > button:not(.chat-reply-action){flex:0 0 auto}
@media (max-width:760px){.chat-msg .chat-tools{flex-wrap:wrap!important}.chat-msg .chat-tools > .chat-reply-action{margin:0!important}}
.chat-reply-composer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 13px;border-left:3px solid #957bd2;border-radius:8px;background:rgba(143,117,193,.10);margin-bottom:8px}
.chat-reply-composer[hidden]{display:none!important}
.chat-reply-composer > div{min-width:0;display:flex;flex-direction:column;gap:2px}
.chat-reply-composer strong{font-size:12px}.chat-reply-composer span{font-size:12px;opacity:.8;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.chat-reply-composer button{border:0;background:transparent;color:inherit;font-size:16px;cursor:pointer}
.chat-link-card{display:flex;flex-direction:column;gap:3px;max-width:410px;min-width:180px;padding:11px 13px;margin-top:8px;border:1px solid #bcb0d8;border-radius:12px;background:rgba(146,121,204,.1);color:inherit!important;text-decoration:none!important;overflow-wrap:anywhere}
.chat-link-card:hover{background:rgba(146,121,204,.18)}
.chat-link-card .link-site{font-size:10px;opacity:.68}
.chat-link-card .link-title{font-size:13px;font-weight:750}
.chat-link-card .link-description{font-size:11px;opacity:.8;line-height:1.4}
.chat-jump-highlight .chat-bubble{outline:3px solid #c4a6f5;outline-offset:3px}
