:root{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#24212a;background:#fff;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:inherit}.hidden{display:none!important}.muted{color:#77727e}.error{color:#ae3038;font-size:13px;min-height:0;margin:0}.error:empty{display:none}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #6b347d;outline-offset:2px}
.center-screen{min-height:100svh;display:flex;align-items:center;justify-content:center;padding:24px}.login-card{display:flex;flex-direction:column;width:min(100%,320px);gap:12px}.login-logo{width:74px;height:74px;object-fit:contain;margin:0 0 4px}.login-card h1{font-size:25px;font-weight:650;letter-spacing:-.7px;margin:0}.login-card p.muted{margin:0 0 12px;font-size:14px}.login-card p.name-help{margin:0;font-size:13px;line-height:1.4}.login-card label{font-size:13px;font-weight:600}.login-card input{height:44px}.login-card .error{margin-top:4px}
.sign-in-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,7rem);gap:8px}.sign-in-filters label{display:flex;flex-direction:column;gap:6px;min-width:0}.sign-in-filters select{width:100%;height:44px}
input,select,textarea{border:1px solid #d9d6dd;border-radius:8px;min-height:40px;padding:9px 11px;width:100%;background:#fff;color:#24212a}textarea{resize:vertical;min-height:60px}.primary{border:1px solid #563164;border-radius:8px;padding:10px 17px;color:#fff;background:#563164;font-weight:600}.primary:hover{background:#43254e}.full{width:100%}.small-btn{background:#fff;border:1px solid #d8d4db;border-radius:7px;padding:7px 10px;color:#45284f;font-size:13px;font-weight:600}.small-btn:hover{background:#f7f5f8}.text-btn{border:0;background:transparent;color:#66616d;font-size:13px;padding:7px 5px}.text-btn:hover{color:#462651}
.header{height:76px;display:flex;justify-content:space-between;align-items:center;padding:12px max(22px,calc((100% - 780px)/2));border-bottom:1px solid #edeaef;gap:16px}.brand{display:flex;align-items:center;gap:10px;min-width:0}.brand img{object-fit:contain;flex:0 0 auto}.brand div{display:flex;flex-direction:column;gap:2px}.brand strong{font-size:14px;line-height:1.1;white-space:nowrap}.brand span{font-size:12px;color:#76697d}.header-actions{display:flex;align-items:center;gap:14px}.content{max-width:780px;margin:0 auto;padding:38px 22px 72px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}.page-heading h1{font-size:23px;letter-spacing:-.7px;font-weight:650;margin:0}.admin-tools{display:flex;gap:8px}.tabs{display:flex;border-bottom:1px solid #e8e5ea;gap:23px;margin-bottom:12px}.tab{background:none;border:0;border-bottom:2px solid transparent;color:#76697d;padding:10px 1px 11px;font-size:14px}.tab.selected{color:#4e2b60;border-bottom-color:#6b3b83;font-weight:650}
.people-list{display:flex;flex-direction:column}.person{padding:20px 0;border-bottom:1px solid #efedf0}.person-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.person-title{min-width:0}.person-title h2{font-size:16px;line-height:1.25;font-weight:650;margin:0 0 4px;overflow-wrap:anywhere}.rank{color:#76697d;font-size:12px;display:flex;flex-wrap:wrap;row-gap:2px}.person-actions,.task-actions{display:flex;gap:10px;flex-shrink:0;align-items:center}.inline-button{background:transparent;border:0;color:#754481;font-size:12px;padding:2px 0}.inline-button:hover{text-decoration:underline}.task-list{list-style:none;margin:12px 0 0;padding:0}.task{display:flex;justify-content:space-between;align-items:start;gap:12px;padding:9px 0 9px 12px;border-left:2px solid #e6dce9;margin-top:7px}.task-copy{font-size:14px;min-width:0;overflow-wrap:anywhere;flex:1}.task-copy strong{font-weight:500}.task-copy p{margin:4px 0;color:#79747e;font-size:12px;white-space:pre-wrap}.due{display:block;color:#77717c;font-size:12px;margin-top:4px}.empty{color:#76697d;font-size:13px;margin:12px 0 0}.no-people{color:#76697d;padding:18px 14px;margin:12px 0;text-align:center;background:#fbf9fc;border:1px solid #e8e1eb;border-radius:10px;font-size:14px}
.people-list:has(>.no-people)+.footer{padding-top:16px}.footer{padding:42px 0 0}.archive-toggle{border-top:1px solid #efedf0;font-size:13px;color:#76697d}.archive-toggle summary{list-style:none;cursor:pointer;display:flex;gap:8px;padding:16px 0;align-items:center;width:fit-content}.archive-toggle summary::-webkit-details-marker{display:none}.ui-arrow{display:inline-block;width:1em;height:1em;vertical-align:-.125em;flex:none}.arrow{transition:transform .12s}.archive-toggle[open] .arrow{transform:rotate(180deg)}.archive-list{margin:0 0 20px}.archived{border-bottom:1px solid #eeeaf0;padding:12px 0;color:#4d4652}.archived strong{font-size:13px;font-weight:500}.archived p{margin:3px 0;font-size:12px;color:#76697d}.archive-empty{font-size:13px;color:#76697d}.archive-meta{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:12px;color:#76697d}
.modal{width:min(92vw,420px);border:1px solid #e7e4ea;border-radius:12px;box-shadow:0 20px 70px #1e102437;padding:22px;color:#26232b;max-height:90vh}.modal::backdrop{background:#17101d76}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.dialog-heading h2{font-size:18px;margin:0}.close{border:0;background:transparent;color:#76697d;font-size:25px;line-height:1;padding:0 5px}.form-fields{display:flex;flex-direction:column;gap:8px}.form-fields label{font-size:12px;font-weight:600;margin-top:5px}.form-fields .error{margin:2px 0}.form-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.form-actions .primary{margin-left:auto}.danger{background:none;border:0;color:#a32d38;padding:7px 0;font-size:13px}.notice{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);padding:11px 16px;border:1px solid #e9e4ec;border-radius:9px;color:#332339;background:#fff;box-shadow:0 8px 25px #25132b1a;font-size:13px;z-index:100;max-width:calc(100% - 30px)}
@media(max-width:760px){.task{display:block}.task-actions{flex-wrap:wrap;gap:8px 14px;margin-top:10px}}
@media(max-width:520px){.header{height:66px;padding:10px 16px}.brand img{width:36px}.brand strong{font-size:13px}.header-actions{gap:8px}.content{padding:28px 17px 64px}.page-heading h1{font-size:21px}.person{padding:17px 0}.modal{padding:19px}}

.task-extras{margin:7px 0 0;border-top:1px solid #eeeaf0;padding-top:10px}.task-extras summary{color:#7d7184;font-size:12px;cursor:pointer}.task-extras label{display:block;margin:13px 0 7px}
/* Individual login and multiple role controls */
.signed-in{font-size:12px;color:#6c6270;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.role{display:inline-block;margin:0 8px 5px 0;white-space:normal}.you{font-size:10px;color:#63346c;background:#f4eef7;padding:2px 6px;border-radius:5px;font-weight:500;vertical-align:middle}.needs-password{font-size:11px;color:#9f6334}
.roles-checkboxes{max-height:190px;overflow:auto;border:1px solid #e4dfe6;border-radius:8px;padding:5px 9px;display:grid;gap:0}.role-check{display:flex;align-items:center;gap:10px;padding:5px 0;font-weight:400!important;margin:0!important}.role-check input{width:16px;height:16px;min-height:0;flex-shrink:0;accent-color:#60316d}.role-check small{color:#76697d}.role-check.assigned-role{opacity:.6;cursor:not-allowed}.role-check.assigned-role input{cursor:not-allowed}.role-check.assigned-role small{font-size:11px;line-height:1.25}
@media(max-width:520px){.signed-in{display:block;max-width:90px;font-size:11px}.role{margin-right:5px}}

.person-details{margin-top:8px;border:1px solid #e7e0e9;border-radius:8px;padding:11px 12px}
.person-details summary{cursor:pointer;font-size:13px;font-weight:600;color:#59346c}
.person-details summary .muted{float:right;font-size:11px;font-weight:400}
.person-details[open] summary{margin-bottom:12px}
.person-details-content{display:grid;gap:12px}
.person-name-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.person-name-fields>div{min-width:0;display:flex;flex-direction:column;gap:6px}
.person-name-fields input{min-width:0;width:100%;box-sizing:border-box}
.push-actions{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:8px}
.push-actions>button{flex:0 1 auto;min-width:0;margin:0;padding:8px 11px;white-space:normal;line-height:1.25;text-align:center}
.form-actions.push-actions .primary{margin-left:0}
#notificationSetupMessage:empty{display:none}
#pushDialog .admin-checkbox{display:flex;align-items:flex-start;gap:8px;margin:14px 0;font-size:13px;line-height:1.5}
.notification-setup-group{border:1px solid #e5ddea;border-radius:9px;margin:8px 0 4px;padding:7px 13px 12px;min-width:0}
.notification-setup-group legend{font-size:13px;font-weight:700;padding:0 5px;color:#583264}
.notification-setup-group .admin-checkbox{margin:7px 0!important;gap:10px;font-size:13px;font-weight:500;cursor:pointer}
.notification-setup-note,.install-home-instructions{font-size:12px;line-height:1.6}
.notification-setup-actions{flex-wrap:wrap}
:root[data-theme="dark"] .notification-setup-group{border-color:#61506a}
:root[data-theme="dark"] .notification-setup-group legend{color:#d5addf}
.person-details-content #passwordGroup,.person-select-field{display:flex;flex-direction:column;gap:7px}
.person-details-content #passwordGroup label{margin:0}
.person-details-content #passwordGroup small{font-size:11px;line-height:1.45}
.person-details-content .account-controls{margin-top:0}
.person-details-content .danger{justify-self:start;margin-top:4px}
.participation-label{font-weight:600}
:root[data-theme="dark"] .person-details{border-color:#494051}
:root[data-theme="dark"] .person-details summary{color:#d5addf}
.admin-checkbox{display:flex;align-items:center;gap:9px;margin-top:12px!important}.admin-checkbox input{width:17px;height:17px;min-height:0;accent-color:#60316d}
.task-progress{margin:11px 0 8px;max-width:420px}.progress-count{display:flex;justify-content:space-between;gap:12px;color:#76697d;font-size:12px;margin-bottom:6px;font-variant-numeric:tabular-nums}.task-progress progress{display:block;width:100%;height:6px;border:0;border-radius:4px;overflow:hidden;appearance:none;background:#eee8f0;color:#754481}.task-progress progress::-webkit-progress-bar{background:#eee8f0}.task-progress progress::-webkit-progress-value{background:#754481;border-radius:4px}.task-progress progress::-moz-progress-bar{background:#754481;border-radius:4px}.task-settings{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:7px}.task-settings label{display:block;margin-bottom:7px}.task-settings-help{font-size:11px;line-height:1.6;color:#76697d}.progress-task-title{margin:0 0 10px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.progress-input{display:flex;align-items:center;gap:13px}.progress-input input{width:125px;font-variant-numeric:tabular-nums}.progress-input span{font-size:14px;color:#76697d}.progress-reset{font-size:12px;margin:6px 0 0}.progress-reset:empty{display:none}.cycle-history{font-size:11px;margin-top:11px;color:#76697d}.cycle-history summary{cursor:pointer;width:fit-content;color:#754481}.cycle-history-list{margin-top:8px}.cycle-record{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:8px 0;border-top:1px solid #eee8f0;line-height:1.5}.cycle-record strong{font-size:11px;font-variant-numeric:tabular-nums}.cycle-record>span:last-child{grid-column:1/-1;font-size:10px}
.public-roles-link{margin-top:14px;font-size:13px;line-height:1.5;color:#63346c;text-decoration:none}.public-roles-link:hover{text-decoration:underline}
.roles-page{color:#302836;background:#fff}.skip-link{position:absolute;top:-100px;left:16px;padding:12px;background:#fff;color:#563164;z-index:10}.skip-link:focus{top:12px}.public-header{max-width:1120px;margin:auto;padding:23px 32px;display:flex;justify-content:space-between;align-items:center;gap:18px;border-bottom:1px solid #eee8f0}.public-brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:14px;font-weight:650;line-height:1.35}.public-brand img{object-fit:contain;flex-shrink:0}.public-brand small{display:block;font-size:11px;font-weight:400;color:#7e7285;margin-top:3px}.portal-link{flex-shrink:0;text-decoration:none;color:#63346c;border:1px solid #e3d9e8;border-radius:7px;padding:10px 13px;font-size:12px}.portal-link:hover{background:#f8f4fa}.roles-content{max-width:1120px;margin:auto;padding:64px 32px 70px}.roles-intro h1{font-size:clamp(34px,5vw,48px);letter-spacing:-1.6px;line-height:1.1;font-weight:650;margin:0 0 18px}.roles-lead{max-width:570px;margin:0;color:#7b6e82;line-height:1.7;font-size:16px}.authority-note{margin:34px 0 52px;padding:24px 27px;border:1px solid #e7ddeb;border-left:3px solid #754481;border-radius:2px 9px 9px 2px;background:#fcfafe}.authority-note h2{font-size:14px;font-weight:650;margin:0 0 10px}.authority-note p{font-size:13px;color:#76697d;line-height:1.8;margin:0}.roles-layout{display:grid;grid-template-columns:255px minmax(0,1fr);gap:60px;align-items:start}.role-index{position:sticky;top:24px}.role-index summary{cursor:pointer;font-size:11px;font-weight:650;letter-spacing:.4px;color:#76697d;padding:0 0 14px}.role-index ol{margin:0;padding:0;list-style:none;display:grid;gap:1px}.role-index a{display:block;text-decoration:none;font-size:12px;line-height:1.5;padding:7px 0;color:#65566e}.role-index a:hover{color:#563164;text-decoration:underline}.role-index a span{font-variant-numeric:tabular-nums;color:#7e6688}.role-profile{scroll-margin-top:28px;padding:34px 0 37px;border-top:1px solid #e9e1ed}.role-profile:first-child{padding-top:0;border-top:0}.role-profile h2{font-size:25px;letter-spacing:-.7px;font-weight:650;line-height:1.25;margin:0 0 17px}.role-profile p{font-size:14px;line-height:1.85;color:#786b80;margin:0 0 20px}.role-profile h3{font-size:12px;font-weight:650;margin:24px 0 12px}.role-profile ul{padding-left:17px;margin:0;color:#786b80;font-size:13px;line-height:1.8}.role-profile li{padding-left:5px;margin:8px 0}.role-profile li::marker{color:#aa8db7}.public-footer{max-width:1056px;margin:auto;border-top:1px solid #eee8f0;padding:24px 0 36px;display:flex;justify-content:space-between;gap:16px;color:#76697d;font-size:11px}.public-footer a{text-decoration:none;color:#754481}.public-footer a:hover{text-decoration:underline}
@media(max-width:760px){.public-header{padding:19px 20px}.public-brand{font-size:12px;gap:8px}.public-brand small{font-size:10px}.public-brand img{width:34px;height:34px}.portal-link{font-size:11px;padding:8px 10px}.roles-content{padding:42px 22px 34px}.roles-lead{font-size:14px}.authority-note{padding:20px;margin:27px 0 34px}.roles-layout{grid-template-columns:1fr;gap:31px}.role-index{position:static;border:1px solid #e7ddeb;border-radius:8px;padding:15px 17px}.role-index summary{padding:0}.role-index nav{max-height:250px;overflow-y:auto;margin-top:10px}.role-index a{padding:7px 0}.role-profile h2{font-size:23px}.role-profile p{font-size:13px}.public-footer{margin:0 22px;padding:22px 0 30px}}

.notifications-area{position:relative}.notification-button{position:relative;display:flex;align-items:center;justify-content:center;border:0;border-radius:7px;width:34px;height:34px;background:transparent;color:#63346c}.notification-button:hover{background:#f7f3f9}.notification-badge{position:absolute;right:-3px;top:-3px;min-width:16px;border-radius:9px;padding:2px 4px;font-size:9px;line-height:12px;font-weight:650;color:#fff;background:#63346c}.notifications-panel{position:absolute;top:43px;right:-28px;width:min(360px,calc(100vw - 32px));background:#fff;border:1px solid #e4dce8;border-radius:9px;box-shadow:0 8px 30px #25132b1a;z-index:20}.notifications-heading{display:flex;align-items:center;gap:12px;padding:15px 16px;border-bottom:1px solid #eee8f0}.notifications-heading h2{font-size:14px;font-weight:650;margin:0 auto 0 0}.notifications-heading .inline-button{font-size:11px}.notifications-heading .close{font-size:22px}.notifications-list{max-height:min(400px,65vh);overflow:auto}.notification-item{padding:13px 16px;border-bottom:1px solid #f0ebf3}.notification-item:last-child{border-bottom:0}.notification-item.unread{border-left:3px solid #754481;padding-left:13px;background:#fcfafe}.notification-item p{font-size:13px;line-height:1.55;margin:0 0 5px;overflow-wrap:anywhere}.notification-item time,.notifications-empty{font-size:11px;line-height:1.6;color:#76697d}.notifications-empty{padding:18px 16px;margin:0}.notifications-footer{display:flex;flex-direction:column;gap:8px;padding:12px 16px;border-top:1px solid #eee8f0}.notifications-footer .small-btn{width:100%}.deadline-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.deadline-fields input{min-width:0}#taskDateGroup>small{display:block;font-size:11px;margin-top:8px}.due.overdue{color:#a32d38}@media(max-width:520px){.notifications-panel{right:-45px}}

@media(max-width:380px){.deadline-fields{grid-template-columns:1fr}}

.role-index a span{white-space:nowrap}.role-position{font-size:.65em;font-weight:400;color:#76697d;white-space:nowrap}

/* Minimal extras: only admins see the filter and activity archive. */
.overdue-filter{margin:-1px 0 7px;border:1px solid #e8dce1;background:transparent;border-radius:6px;color:#8d3945;font:inherit;font-size:12px;padding:5px 10px;cursor:pointer}.overdue-filter.selected{background:#faf0f1;border-color:#d9a8b1;font-weight:600}.overdue-label{display:inline-block;margin-left:8px;color:#9d3741;background:#faf0f1;border-radius:4px;padding:1px 5px;font-size:10px;font-weight:600;vertical-align:middle}.activity-list{margin:0 0 14px}.activity-entry{padding:11px 0;border-bottom:1px solid #eeeaf0;font-size:12px;color:#59515e}.activity-entry strong{color:#32293a;font-weight:600}.activity-entry span{font-weight:600}.activity-entry p{margin:3px 0;color:#736a79;overflow-wrap:anywhere}.activity-entry time{display:block;margin-top:4px;font-size:11px;color:#867b8b}.activity-entry:last-child{border-bottom:0}

/* Minimal task-owner controls, accessible lock icon and collapsed recycle bin. */
.compact-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:-1px 0 7px}.compact-filters .overdue-filter{margin:0}.blocked-label{display:inline-block;font-size:10px;border-radius:4px;margin-left:8px;padding:1px 5px;font-weight:600;color:#7a4c25;background:#fbf1e8}.blocked-reason{font-size:12px;color:#756b60;margin:4px 0 0;overflow-wrap:anywhere}.archived .archive-meta{gap:8px;flex-wrap:wrap}.archive-actions{display:flex;gap:10px;align-items:center}.trash-entry{border-bottom:1px solid #eeeaf0;padding:12px 0;font-size:13px}.trash-entry strong{font-size:13px;font-weight:550}.trash-entry p{font-size:11px;color:#76697d;margin:4px 0 8px}.toast-undo{margin-left:10px;color:inherit;text-decoration:underline;border:0;background:none;font-weight:650;cursor:pointer}
/* The private sheet editor opens only on request, keeping the task list simple. */
.donation-modal{width:min(94vw,980px)}.donation-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.donation-toolbar select{max-width:200px}.donation-grid{overflow:auto;max-height:45vh;border:1px solid #e4dfe6}.donation-grid table{border-collapse:collapse;font-size:12px}.donation-grid th,.donation-grid td{border:1px solid #eeeaf0;padding:0;min-width:85px;max-width:220px}.donation-grid th{background:#f7f5f8;padding:6px;font-weight:500}.donation-grid th:first-child{min-width:40px}.sheet-cell{border:0;background:white;color:inherit;text-align:left;width:100%;min-height:34px;padding:7px;overflow-wrap:anywhere;font:inherit}.sheet-cell:hover,.sheet-cell:focus-visible{background:#f4eef7}.donation-modal .primary{align-self:flex-start}

/* Compact account menu: keep infrequent actions out of the header. */
.account-menu-area{position:relative;flex:none}
.account-menu-button{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;color:#5f3a69}
.account-menu-button:hover,.account-menu-button[aria-expanded="true"]{background:#f2edf5;border-color:#e8ddea}
.account-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:30;width:180px;padding:5px;background:#fff;border:1px solid #e7dfea;border-radius:9px;box-shadow:0 9px 25px #25132b24}
.account-menu-item{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;min-height:39px;padding:9px 11px;border:0;border-radius:6px;background:transparent;color:#432b4b;font-size:13px;font-weight:500;text-align:left;text-decoration:none;cursor:pointer}
.account-menu-item:hover,.account-menu-item:focus-visible{background:#f5f0f7;text-decoration:none}
.account-menu-lock{color:#6a4b6e}

/* Admin-only area filter stays small alongside task controls. */
.task-scope{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.task-scope .small-btn{min-height:40px}
.task-scope .small-btn[aria-pressed="true"]{background:#f2e9f6;border-color:#a98bb5;color:#45284f}
.people-search{flex:1 1 12rem;min-width:0;font-size:13px}
.overview-error{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:12px 0;padding:12px;border:1px solid #e7dfea;border-radius:8px;font-size:13px}
.overview-error:not(.hidden)+.people-list{display:none}
.area-filter{display:inline-flex;align-items:center;gap:7px;margin-left:auto;font-size:12px;color:#6b6072}.area-filter select{width:auto;min-height:29px;padding:4px 28px 4px 8px;border-radius:6px;border-color:#ded4e3;font-size:12px;color:#563164}

/* Keep the user name first; controls remain aligned at narrow widths. */
.header-actions{min-width:0}.signed-in{flex:0 1 auto;min-width:0}.account-menu{width:205px}

/* Compact task responses and screen-reader labels. */
.task-response select{width:auto;max-width:110px;min-height:30px;padding:4px 6px;font-size:11px;color:#65416f;border:1px solid #e1d8e7;border-radius:6px;background:#fff}.response-label{display:inline-block;margin-left:7px;color:#794775;font-size:11px;font-weight:650}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Small, on-demand Google Drive resource directory. */
.resources-modal{width:min(94vw,590px)}
.resources-help{font-size:13px;line-height:1.65;margin:0 0 14px}
.resources-toolbar{display:flex;gap:8px;margin-bottom:12px}
.resources-list{max-height:47vh;overflow:auto;border-top:1px solid #eee8f0}
.resource-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #eee8f0}
.resource-info{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.resource-info a{font-size:13px;color:#603469;font-weight:600;text-decoration:none;overflow-wrap:anywhere}
.resource-info a:hover{text-decoration:underline}
.resource-info span{font-size:11px}
.resource-actions{display:flex;gap:12px;flex:none}
.resources-admin{border-top:1px solid #eee8f0;padding-top:16px;margin-top:17px}
.resources-admin label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}
.resources-admin p{font-size:11px;line-height:1.55}
.resources-upload{display:flex;align-items:center;gap:8px}
.resources-upload input{flex:1;min-width:0;font-size:12px;padding:7px;max-width:100%}
.resources-upload button{white-space:nowrap}
@media(max-width:480px){.resource-row{align-items:flex-start;flex-direction:column;gap:6px}.resources-upload{align-items:stretch;flex-direction:column}}

/* Dashboard and announcements share the portal's minimalist visual system. */
.member-dashboard{margin:0 0 34px}
.dashboard-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.dashboard-heading h2{font-size:15px;margin:0;color:#482a55;font-weight:650}
.dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.dashboard-metric{appearance:none;display:flex;flex-direction:column;gap:4px;padding:15px 12px;border:1px solid #e9e3eb;border-radius:8px;background:transparent;color:inherit;text-align:left;cursor:pointer;width:100%}
.dashboard-metric:hover,.dashboard-metric:focus-visible{border-color:#bdaac5;background:#f6f1f8}
:root[data-theme="dark"] .dashboard-metric:hover,:root[data-theme="dark"] .dashboard-metric:focus-visible{border-color:#a57cb4;background:#302438}
.dashboard-metric strong{font-size:24px;line-height:1;color:#563164;font-weight:650}
.dashboard-metric span{font-size:11px;color:#7b6e82;line-height:1.4}
.dashboard-notice{font-size:12px;line-height:1.6;margin:10px 0 0}
.website-links{display:flex;align-items:center;flex-wrap:wrap;column-gap:16px;row-gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid #e9e3eb;font-size:12px}
.website-links-label{color:#7b6e82;font-weight:600}
.website-links a{color:#603469;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.website-links a:hover{color:#43254e}
:root[data-theme="dark"] .website-links{border-color:#494051}
:root[data-theme="dark"] .website-links-label{color:#b7abbf}
:root[data-theme="dark"] .website-links a{color:#d5addf}

.content-modal{width:min(94vw,660px)}
.content-intro{font-size:12px;line-height:1.55;margin:0 0 14px}
.announcements-list{max-height:45vh;overflow:auto}
.announcement-row{padding:16px 0;border-bottom:1px solid #ebe5ed}
.announcement-title{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;font-weight:650;margin:0 0 6px}
.announcement-meta{font-size:11px;color:#807184;margin:0 0 8px}
.announcement-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:13px;color:#5e5162;margin:5px 0 10px}
.announcement-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.announcement-actions .small-btn{font-size:11px}
.announcement-pill{display:inline-block;background:#f0e9f3;color:#65446e;font-size:10px;border-radius:8px;padding:3px 6px;font-weight:600}
.announcement-pill.pending{background:#fff4e5;color:#8b622e}
.rules-acknowledgment{margin-top:18px;padding-top:15px;border-top:1px solid #ebe5ed}
.rules-acknowledgment h3,.announcements-editor h3,.acknowledgments-report h3{font-size:14px;margin:0 0 7px}
.rules-acknowledgment p{margin:0 0 7px;line-height:1.6;font-size:12px;color:#746879}
.rules-acknowledgment>a{font-size:12px;color:#603469}
.rules-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:10px}
.rules-actions span{font-size:11px}
.announcements-editor,.acknowledgments-report{border-top:1px solid #e7e1eb;margin-top:16px;padding-top:16px}
.acknowledgment-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;padding:5px 0;border-bottom:1px solid #efeaf0}
.acknowledgment-row .muted{font-size:11px}
.resources-toolbar{flex-wrap:wrap}
.resources-toolbar input[type=search]{flex:1;min-width:130px;width:auto;font-size:12px;padding:8px 10px}
.resources-toolbar select{width:auto;max-width:190px;font-size:12px}
.resource-row{align-items:flex-start}
.resources-history{border-top:1px solid #ebe5ed;margin-top:15px;padding-top:14px}
.resources-history summary{cursor:pointer;font-size:12px;color:#674476;font-weight:600}
.resources-history-item{padding:9px 0;border-bottom:1px solid #eee8f0;font-size:12px;line-height:1.5}
.resources-history-item small{display:block;color:#7c6d81}
@media(max-width:560px){.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.resources-toolbar input[type=search]{min-width:100%}.dashboard-metric{padding:13px 10px}.content-modal{padding:17px}}

/* Mobile-first shortcuts keep the main workflow one tap away. */
.portal-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:22px}
.portal-shortcut{min-height:43px;border:1px solid #e3dbe7;border-radius:9px;background:#fff;color:#583264;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;padding:10px 8px}
.portal-shortcut:hover,.portal-shortcut:focus-visible{background:#f6f1f8;border-color:#bdaac5}
.activation-prompt{display:grid;gap:8px;padding:14px;margin-top:4px;border:1px solid #cbb3d5;border-radius:10px;background:#f7f2fa}
.activation-prompt strong{font-size:15px;color:#4c285d}
.activation-prompt p{margin:0;font-size:12px;line-height:1.5;color:#67576e}
.activation-cta{min-height:42px;padding:9px 12px;border:1px solid #563164;border-radius:7px;background:#563164;color:white;font-weight:700}
.activation-cta:hover{background:#43254e}
.activation-person{font-size:14px;font-weight:650;color:#51315b}
.activation-issued{display:flex;flex-direction:column;align-items:flex-start;gap:9px;background:#f7f2fa;border:1px solid #e2d4e9;border-radius:8px;padding:12px;margin:8px 0}
.activation-issued p{margin:0;line-height:1.5;font-size:12px}
.activation-issued code{font-family:ui-monospace,Consolas,monospace;overflow-wrap:anywhere;user-select:all;font-size:12px;color:#442e50}
.account-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px;border-top:1px solid #ece7ee;padding-top:13px;margin-top:9px}
.account-controls p{flex-basis:100%;margin:0;font-size:12px}
.inactive-badge{display:inline-block;background:#eee;color:#65606b;border-radius:8px;padding:3px 6px;font-size:10px;margin-left:6px}
.response-note{font-size:12px;color:#694a76;border-left:2px solid #ab8abb;margin-top:7px;padding-left:10px;white-space:pre-wrap;overflow-wrap:anywhere}
.task-response select{min-height:38px}
@media(max-width:520px){
 .portal-shortcuts{gap:6px;margin-bottom:17px}
 .portal-shortcut{font-size:12px;padding:10px 5px;min-height:46px}
 .task-response select{min-height:42px}
 .task-actions button{min-height:38px}
}

/* Verified-email confirmation remains visible without blocking portal use. */
.email-pending-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;padding:14px 16px;border:1px solid #e2d8e8;border-radius:10px;background:#faf7fc;color:#36253d}
.email-pending-copy{min-width:0;overflow-wrap:anywhere}
.email-pending-copy>strong{font-size:14px}
.email-pending-copy p{font-size:13px;line-height:1.5;margin:6px 0 0}
.email-pending-copy p.muted:empty{display:none}
.email-pending-notice button{flex-shrink:0;white-space:nowrap}
@media(max-width:560px){.email-pending-notice{align-items:stretch;flex-direction:column}.email-pending-notice button{align-self:flex-start}}


/* Personal settings — accessible, minimal account controls. */
.settings-modal{width:min(92vw,460px)}
.settings-modal .form-actions .primary{margin-left:0}
.settings-modal #settingsMessage{margin:0}
.settings-modal #settingsMessage:empty{display:none}
.settings-account-section{border-top:1px solid #e8e2e9;margin-top:20px;padding-top:16px}
.settings-account-section h3{font-size:14px;margin:0 0 8px}
.settings-link{display:block;width:100%;text-align:left;padding:12px 14px;font-size:13px;font-weight:600;line-height:1.5;color:#51315b;background:#f9f6fa;border:1px solid #dcd2e0;border-radius:9px;text-decoration:none;cursor:pointer;min-height:44px;margin:8px 0;transition:background-color .15s,border-color .15s}
.settings-link:hover,.settings-link:focus-visible{background:#f0e8f3;border-color:#9778a2}.settings-link:focus-visible{outline:2px solid #9364a3;outline-offset:2px}
.settings-link.settings-danger{color:#a42f43;background:#fff8f8;border-color:#eabdc5}.settings-link.settings-danger:hover,.settings-link.settings-danger:focus-visible{background:#fff0f2;border-color:#d88c99}.settings-danger{color:#ab3949}
.settings-disclaimer{font-size:11px;line-height:1.5;margin:8px 0 0}
.settings-modal .form-fields label{margin-top:10px}
.settings-modal .form-fields h3{font-size:14px;margin:12px 0 0}
.settings-modal .form-fields h3:first-child{margin-top:0}
.settings-modal .form-fields select{max-width:100%}

/* Dark mode is applied only to the signed-in account. Public pages keep
   their light theme, and the initial login never inherits another user's settings. */
:root[data-theme="dark"]{color-scheme:dark;background:#16121c;color:#eee8f1}
:root[data-theme="dark"] body{background:#16121c;color:#eee8f1}
:root[data-theme="dark"] :is(.modal,.account-menu,.notifications-panel,.notice){background:#24202b;color:#f1eaf4;border-color:#494051}
:root[data-theme="dark"] :is(input,select,textarea,.task-response select,.sheet-cell){background:#211c28;color:#f0eaf2;border-color:#574b60}
:root[data-theme="dark"] :is(input,textarea)::placeholder{color:#a69baa}
:root[data-theme="dark"] :is(.small-btn,.portal-shortcut){background:#2b2333;color:#d9b8e6;border-color:#57495f}
:root[data-theme="dark"] :is(.small-btn,.portal-shortcut):hover{background:#3b2d45}
:root[data-theme="dark"] .task-scope .small-btn[aria-pressed="true"]{background:#493351;border-color:#a57cb4;color:#fff}
:root[data-theme="dark"] :is(.primary){background:#7c4a8e;border-color:#9562a6;color:#fff}
:root[data-theme="dark"] :is(.primary):hover{background:#945caa}
:root[data-theme="dark"] :is(.header,.person,.archived,.task-extras,.resource-row,.resources-list,.resources-admin,.announcement-row,.settings-account-section,.dashboard-metric,.resources-history,.resources-history-item,.archive-toggle,.cycle-record,.acknowledgment-row,.notification-item,.rules-acknowledgment,.announcements-editor,.acknowledgments-report){border-color:#3f3548}
:root[data-theme="dark"] :is(.header,.dashboard-metric,.account-menu-area){color:#eee8f1}
:root[data-theme="dark"] :is(.modal,.content-modal,.donation-modal){box-shadow:0 22px 65px #08060b99}
:root[data-theme="dark"] :is(.account-menu-item,.account-menu-button,.inline-button,.text-btn,.resource-info a,.settings-link,.rules-acknowledgment>a,.public-roles-link,.notification-button,.dashboard-heading h2,.dashboard-metric strong,.tab.selected,.cycle-history summary,.resources-history summary){color:#d5addf}
:root[data-theme="dark"] :is(.account-menu-item,.account-menu-button):hover{background:#382b41}
:root[data-theme="dark"] .settings-link{background:#302639;border-color:#61506a;color:#ead5f0}
:root[data-theme="dark"] .settings-link:hover,:root[data-theme="dark"] .settings-link:focus-visible{background:#40304b;border-color:#ad87b9}
:root[data-theme="dark"] .settings-link.settings-danger{background:#35252e;border-color:#774655;color:#ffb5c0}
:root[data-theme="dark"] .settings-link.settings-danger:hover,:root[data-theme="dark"] .settings-link.settings-danger:focus-visible{background:#4c2936;border-color:#aa6074}
:root[data-theme="dark"] .portal-shortcut[aria-current="page"]{background:#493351;border-color:#84618f;color:#fff}
:root[data-theme="dark"] :is(.notification-item.unread,.activation-issued,.email-pending-notice,.you,.sheet-cell:hover,.sheet-cell:focus-visible,.overdue-filter.selected){background:#302438;border-color:#56415f;color:#eee8f1}
:root[data-theme="dark"] :is(.muted,.rank,.due,.empty,.archived,.archive-meta,.task-copy p,.role,.signed-in,.brand span,.announcement-body,.announcement-meta,.dashboard-metric span,.settings-disclaimer,.task-settings-help,.resources-history-item small,.archive-toggle,.form-fields p,.progress-count,.cycle-history,.resources-history summary){color:#b7adbd}
:root[data-theme="dark"] :is(.announcement-pill,.inactive-badge){background:#42324a;color:#e5c6ed}
:root[data-theme="dark"] .announcement-pill.pending{background:#534126;color:#f4dcac}
:root[data-theme="dark"] :is(.overdue-label,.overdue-filter.selected){background:#492b37;color:#ffd0d8}
:root[data-theme="dark"] :is(.danger,.settings-link.settings-danger,.settings-danger){color:#ff9aa9}
:root[data-theme="dark"] .task{border-left-color:#574060}
:root[data-theme="dark"] .task-progress progress,
:root[data-theme="dark"] .task-progress progress::-webkit-progress-bar{background:#44344d}
:root[data-theme="dark"] .tab{border-bottom-color:#44394b}
:root[data-theme="dark"] .tab.selected{border-bottom-color:#c59bd4}
:root[data-theme="dark"] .form-fields .error{color:#ffa9b5}


/* Resource gallery: real thumbnails when Drive provides them, file tiles otherwise. */
.resources-modal{width:min(95vw,820px)}
.resources-path{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin:8px 0;font-size:12px}
.resources-path .text-btn{font-size:12px;padding:3px 4px}
.resources-path [aria-current="location"]{font-weight:700;cursor:default}
.resources-path .separator{display:inline-flex;align-items:center;color:#8c8290}
.resources-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px;max-height:55vh;overflow:auto;border:0;padding:3px 2px 6px}
.resources-more{display:block;min-width:160px;min-height:40px;margin:14px auto 6px}
.resource-row[hidden],.resource-search-empty[hidden]{display:none!important}
.resource-search-empty{grid-column:1/-1;padding:14px 5px;color:#76697d;font-size:13px}
.resource-row{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:9px;min-width:0;padding:0 0 12px;border:1px solid #e7e0e9;border-radius:10px;overflow:hidden}
.resource-thumbnail-area{position:relative;display:block;width:100%;height:145px;border-bottom:1px solid #eee8f0;border-radius:9px 9px 0 0;background:#f6f2f8;overflow:hidden}
.resource-thumbnail-button{position:absolute;inset:0;z-index:1;display:block;width:100%;height:100%;padding:0;border:0;border-radius:inherit;background:transparent;cursor:pointer}
.resource-thumbnail-fallback{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#6a5674;font-size:11px}
.resource-file-glyph{font-size:37px;line-height:1}
.resource-thumbnail{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#f7f5f8}
/* Reveal the alpha channel of PNG/WebP previews instead of flattening it
   against an opaque tile. The glyph behind the image must not show through. */
.resource-thumbnail-area.resource-alpha,.resource-preview-stage.resource-alpha{
 background:conic-gradient(#e5e5e5 25%,#fff 0 50%,#e5e5e5 0 75%,#fff 0) 0 0/20px 20px;
}
.resource-thumbnail-area.resource-alpha .resource-thumbnail{background:transparent}
.resource-thumbnail-area.resource-alpha .resource-thumbnail-fallback{visibility:hidden}
.resource-thumbnail-frame{position:absolute;inset:0;display:block;width:100%;height:100%;border:0;background:#fff;pointer-events:none}
.resource-thumbnail-button:hover,.resource-thumbnail-button:focus-visible{outline:none;box-shadow:inset 0 0 0 2px #9364a3}.resource-thumbnail-button:focus-visible{box-shadow:inset 0 0 0 3px #754481}
.resource-info{padding:0 11px;gap:5px}
.resource-title{display:block;border:0;background:transparent;text-align:left;padding:0;color:#603469;font:inherit;font-size:13px;font-weight:650;cursor:pointer;overflow-wrap:anywhere}
.resource-title:hover,.resource-title:focus-visible{text-decoration:underline}
.resource-info span{line-height:1.45}
.resource-actions{display:flex;flex-wrap:wrap;gap:9px;padding:0 11px;margin-top:auto;align-items:center}
.resource-actions .inline-button{font-size:11px}
.resource-preview-dialog{width:min(95vw,910px);max-height:94vh}
.resource-preview-dialog .dialog-heading h2{overflow-wrap:anywhere;min-width:0}
.resource-preview-stage{display:flex;justify-content:center;align-items:center;height:min(64vh,660px);min-height:220px;overflow:auto;background:#f6f3f8;border:1px solid #e6e0ea;border-radius:9px}
.resource-preview-image{display:block;max-width:100%;max-height:100%;object-fit:contain}
.resource-preview-frame{border:0;display:block;width:100%;height:100%;background:white}
.resource-preview-video{display:block;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;background:#111}
.resource-video-preparation{text-align:center;padding:16px}
.resource-preview-glyph{font-size:84px}
.resource-preview-message{font-size:12px;line-height:1.5;margin:10px 0 14px}
.resource-preview-download{display:inline-block;text-decoration:none}
:root[data-theme="dark"] .resource-row,
:root[data-theme="dark"] .resource-thumbnail-area,
:root[data-theme="dark"] .resource-preview-stage{border-color:#4a3b51}
:root[data-theme="dark"] .resource-thumbnail-area,
:root[data-theme="dark"] .resource-preview-stage{background:#302637}
:root[data-theme="dark"] .resource-thumbnail{background:#292331}
:root[data-theme="dark"] .resource-thumbnail-area.resource-alpha,
:root[data-theme="dark"] .resource-preview-stage.resource-alpha{
 background:conic-gradient(#48434f 25%,#302d36 0 50%,#48434f 0 75%,#302d36 0) 0 0/20px 20px;
}
:root[data-theme="dark"] .resource-thumbnail-area.resource-alpha .resource-thumbnail{background:transparent}
:root[data-theme="dark"] .resource-thumbnail-fallback{color:#bba8c4}
:root[data-theme="dark"] .resource-title{color:#d5addf}
@media(max-width:480px){
 .resources-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .resource-row{flex-direction:column;align-items:stretch;gap:8px}
 .resource-thumbnail-area{height:120px}
 .resource-actions{gap:8px}
 .resource-preview-stage{height:min(60vh,530px)}
}
@media(max-width:350px){.resources-list{grid-template-columns:1fr}}

/* A shared personal profile for Member and Volunteer accounts. */
.personal-profile-mode .content{max-width:980px}
.personal-profile-mode .portal-shortcuts,.personal-profile-mode .member-dashboard,
.personal-profile-mode .task-scope,.personal-profile-mode .compact-filters,
.personal-profile-mode #leaders .person-head{display:none}
.personal-profile{display:grid;gap:20px;margin-bottom:36px}
.profile-hero{display:flex;align-items:flex-start;gap:21px;padding:32px;border:1px solid #e8e1eb;border-radius:16px;background:linear-gradient(135deg,#fbf8fd,#fff 65%)}
.profile-avatar{display:grid;place-items:center;flex:none;width:78px;height:78px;border-radius:19px;background:#633774;color:#fff;font-size:28px;font-weight:700}
.profile-identity{min-width:0;flex:1}
.profile-eyebrow{margin:0 0 6px;font-size:12px;color:#735880;font-weight:650}
.profile-name-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;min-width:0}
.profile-identity h1{font-size:clamp(26px,4vw,36px);line-height:1.15;letter-spacing:-1px;overflow-wrap:anywhere;min-width:0;max-width:100%;margin:0}
.profile-badge{display:inline-flex;align-items:center;border-radius:7px;background:#eee3f2;color:#633774;padding:5px 10px;font-size:12px;font-weight:650}
.profile-badge-subtle{background:#f5f2f6;color:#675d6d}
.profile-hero-actions{display:grid;gap:8px;flex:none}
.profile-hero-actions .small-btn{text-align:center;white-space:nowrap;text-decoration:none}
.profile-edit-button{flex:none}
.profile-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.profile-stat{border:1px solid #e9e2ec;border-radius:12px;padding:21px 22px;display:grid;gap:7px}
.profile-stat strong{font-size:30px;font-weight:700;line-height:1;color:#603469;font-variant-numeric:tabular-nums}
.profile-stat span{font-size:12px;color:#76697d}
.profile-panel{border:1px solid #e9e2ec;border-radius:14px;padding:25px}
.profile-panel-heading{margin-bottom:19px}
.profile-panel-heading h2{font-size:18px;letter-spacing:-.3px;margin:0 0 6px}
.profile-panel-heading p{font-size:12px;color:#76697d;margin:0}
.profile-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.profile-action{appearance:none;display:flex;flex-direction:column;gap:7px;min-width:0;min-height:94px;padding:17px;border:1px solid #e8e0eb;border-radius:10px;background:#faf8fb;color:inherit;text-align:left;text-decoration:none}
.profile-action:hover,.profile-action:focus-visible{border-color:#a487b0;background:#f5eff8;text-decoration:none}
.profile-action strong{font-size:13px;color:#51315b}
.profile-action span{font-size:11px;color:#79717e;line-height:1.5}
.profile-links-panel{padding-bottom:20px}
.profile-external-links{display:flex;flex-wrap:wrap;gap:10px 21px}
.profile-external-links a{color:#603469;font-size:13px;font-weight:600;text-underline-offset:3px}
.personal-profile-mode .page-heading{margin:16px 0 12px}
.personal-profile-mode .page-heading h1{font-size:22px}
.personal-profile-mode #leaders .person{border-bottom:0;padding:0}
.personal-profile-mode #leaders .task-list{margin-top:16px}
.personal-profile-mode .task{padding:16px 15px;border:1px solid #eae3ed;border-left:3px solid #9575a1;border-radius:10px;margin:0 0 10px}
@media(max-width:650px){.profile-hero{flex-wrap:wrap;gap:15px;padding:23px}.profile-identity{flex-basis:calc(100% - 105px)}.profile-hero-actions{margin-left:93px}.profile-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-stat{padding:17px 13px}.profile-stat strong{font-size:25px}}
@media(max-width:420px){.profile-avatar{width:60px;height:60px;font-size:22px;border-radius:14px}.profile-identity{flex-basis:calc(100% - 80px)}.profile-hero-actions{margin-left:0}.profile-action-grid{grid-template-columns:1fr}.profile-overview{gap:6px}.profile-stat{padding:15px 9px}.profile-stat span{font-size:11px}.profile-panel{padding:20px}}
:root[data-theme="dark"] .activation-prompt{background:#35273c;border-color:#765581}
:root[data-theme="dark"] .activation-prompt strong{color:#ead5f0}
:root[data-theme="dark"] .activation-prompt p{color:#ccb9d2}
:root[data-theme="dark"] .no-people{background:#2c2433;border-color:#494051;color:#b7adbd}
:root[data-theme="dark"] .profile-hero{background:linear-gradient(135deg,#2e2435,#24202b 70%);border-color:#494051}
:root[data-theme="dark"] :is(.profile-stat,.profile-panel,.personal-profile-mode .task){border-color:#494051}
:root[data-theme="dark"] .profile-avatar{background:#7b4a8e}
:root[data-theme="dark"] .profile-badge{background:#4a3553;color:#f1d9f8}
:root[data-theme="dark"] .profile-badge-subtle{background:#39303e;color:#dbd0df}
:root[data-theme="dark"] :is(.profile-eyebrow,.profile-stat strong,.profile-action strong,.profile-external-links a){color:#dfbfe8}
:root[data-theme="dark"] :is(.profile-stat span,.profile-panel-heading p,.profile-action span){color:#beb2c5}
:root[data-theme="dark"] .profile-action{background:#302837;border-color:#574761}
:root[data-theme="dark"] .profile-action:hover,:root[data-theme="dark"] .profile-action:focus-visible{background:#3e3048;border-color:#a487b0}
.hub-home {
 margin:0 0 34px;
}
:is(.hub-home,.hub-dialog) {
 --hub-border:#d7c7df;
 --hub-rule:#eee6f1;
 --hub-surface:#fff;
 --hub-soft:#f6eff8;
 --hub-accent:#542b66;
 --hub-muted:#605566;
}
.hub-hero {
 display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px;
}
.hub-hero h1 {font-size:clamp(29px,4.5vw,40px);margin:0;line-height:1.1;letter-spacing:-.04em;overflow-wrap:anywhere}
.hub-hero .hub-card-button {min-height:42px;border:2px solid var(--hub-border);border-radius:10px;padding:8px 14px;color:var(--hub-accent)}
.hub-nav {
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 16px;
 border:2px solid var(--hub-border);border-radius:12px;background:var(--hub-surface);
}
.hub-nav button {
 min-height:48px;padding:8px 5px;border:0;border-radius:0;
 background:transparent;color:var(--hub-accent);font:inherit;font-size:14px;font-weight:700;
}
.hub-nav button + button {border-left:2px solid var(--hub-border)}
.hub-nav button:first-child {border-radius:10px 0 0 10px}
.hub-nav button:last-child {border-radius:0 10px 10px 0}
.hub-nav button:hover,.hub-nav button:focus-visible,.hub-card-button:hover {background:var(--hub-soft)}
.hub-nav button:focus-visible {position:relative;z-index:1;outline-offset:-4px}
.hub-home-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hub-panel {min-width:0;background:var(--hub-surface);border:2px solid var(--hub-border);border-radius:12px}
.hub-panel header {display:flex;justify-content:space-between;align-items:center;gap:6px;min-height:48px;padding:0 14px}
.hub-panel h2,.hub-utility h2 {font-size:16px;line-height:1.25;margin:0;font-weight:700}
.hub-panel .text-btn {min-height:42px;text-align:right;flex:none;color:var(--hub-accent);font-weight:650}
.hub-dashboard-row {
 display:grid;gap:4px;width:100%;min-height:56px;padding:11px 14px;border:0;border-top:1px solid var(--hub-rule,#eee6f1);
 text-align:left;color:inherit;background:transparent;font:inherit;overflow-wrap:anywhere;
}
.hub-dashboard-row:last-child {border-radius:0 0 10px 10px}
.hub-dashboard-row:hover,.hub-dashboard-row:focus-visible {background:var(--hub-soft,#f6eff8)}
.hub-dashboard-row strong {font-size:15px;font-weight:650}
.hub-dashboard-row:hover strong {text-decoration:underline;text-underline-offset:3px}
.hub-dashboard-row span,.hub-empty {font-size:13px;color:var(--hub-muted,#605566)}
.hub-empty {margin:0;padding:13px 14px;border-top:1px solid var(--hub-rule,#eee6f1)}
.hub-onboarding-tip {
 display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;
 margin-top:14px;padding:10px 14px;border:2px solid var(--hub-border);border-radius:10px;
}
.hub-onboarding-tip > div {display:grid;gap:3px}
.hub-onboarding-tip span {font-size:13px;color:var(--hub-muted)}
.hub-onboarding-tip .small-btn {min-height:42px}
.hub-utility {margin-top:20px;padding-top:12px;border-top:2px solid var(--hub-border)}
.hub-utility > div {display:flex;flex-wrap:wrap;column-gap:18px}
.hub-utility button {min-height:44px;padding:4px 0;color:var(--hub-accent);text-decoration:underline;text-underline-offset:3px}
.hub-home + .personal-profile .profile-hero {padding:18px;border-radius:12px;gap:12px}
.hub-home + .personal-profile .profile-avatar {width:48px;height:48px;font-size:19px;border-radius:11px}
.hub-home + .personal-profile .profile-identity h1 {font-size:clamp(20px,3vw,25px)}
.hub-dialog {
 width:min(760px,calc(100% - 24px));overflow:auto;overscroll-behavior:contain;
 border-width:2px;border-color:var(--hub-border);border-radius:14px;
}
.hub-dialog .dialog-heading {position:sticky;top:0;z-index:1;gap:12px;align-items:center;padding:3px 0 8px;margin-bottom:8px;background:var(--hub-surface)}
.hub-dialog .dialog-heading h2 {font-size:22px}
.hub-dialog .close {min-height:44px;min-width:44px;border:2px solid var(--hub-border);border-radius:10px}
.hub-dialog .close:hover {background:var(--hub-soft)}
.hub-dialog h2,.hub-dialog h3 {overflow-wrap:anywhere}
#hubStatus:empty {display:none}
.hub-entry {border:2px solid var(--hub-border,#d7c7df);border-radius:10px;padding:12px 14px;margin:10px 0;overflow-wrap:anywhere}
.hub-entry h3 {margin:0 0 5px;font-size:16px}
.hub-entry .muted {margin:4px 0}
.hub-copy {white-space:pre-wrap}
.hub-tools {display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0}
.hub-tools :is(button,a) {min-height:42px}
.hub-tools a {display:inline-flex;align-items:center;text-decoration:none}
.hub-tools .hub-view-button {border:2px solid var(--hub-border)}
.hub-tools .hub-view-button[aria-pressed=true] {border-color:var(--hub-accent);background:var(--hub-soft);color:var(--hub-accent)}
.hub-state {font-size:13px;font-weight:650;color:var(--hub-accent)}
.hub-item-link {padding:0;background:none;border:0;color:var(--hub-accent);cursor:pointer;font:inherit;text-align:left}
.hub-item-link:hover {text-decoration:underline}
.hub-details {margin:10px 0;border:1px solid var(--hub-border);border-radius:8px;padding:10px}
.hub-details summary {cursor:pointer;font-weight:650}
.hub-feed-label {display:grid;gap:6px;margin-top:10px;font-size:13px}
.hub-form,.hub-form label:not(.hub-check) {display:grid;gap:7px;min-width:0}
.hub-form {margin:10px 0;font-size:13px}
.hub-form :is(input:not([type=checkbox]),select,textarea) {box-sizing:border-box;width:100%;min-width:0;padding:8px;font:inherit;border-width:2px}
.hub-form button[type=submit] {justify-self:start}
.hub-member-suggestions,.hub-location-suggestions {border:1px solid var(--portal-line,var(--hub-border));border-radius:9px;background:var(--portal-surface,var(--hub-surface));overflow:hidden}
#hubMemberSuggestions,#hubLocationSuggestions {max-height:240px;overflow:auto;overscroll-behavior:contain}
#hubMemberSuggestions button,#hubLocationSuggestions button {display:block;width:100%;min-height:42px;text-align:left;padding:10px 12px;background:transparent;color:inherit;border:0;border-radius:0}
#hubMemberSuggestions button+button,#hubLocationSuggestions button+button {border-top:1px solid var(--portal-line,var(--hub-border))}
#hubMemberSuggestions button:is(:hover,[aria-selected=true]),#hubLocationSuggestions button:is(:hover,[aria-selected=true]) {background:var(--portal-soft,var(--hub-soft));color:var(--portal-accent,var(--hub-accent))}
#hubMemberSuggestions small {color:var(--portal-muted,var(--hub-muted))}
.hub-member-search-status {margin:0;padding:10px 12px}
.hub-member-search-status:empty {display:none}
.hub-location-field {position:relative;min-width:0}
.hub-location-suggestions {position:absolute;z-index:30;inset-inline:0;top:calc(100% + 3px);box-shadow:0 8px 22px #0002}
.hub-event-actions {display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;margin:8px 0}
.hub-event-actions>.hub-details {margin:0;min-width:150px}
.hub-entry>.hub-details {margin:8px 0}
.hub-entry .hub-details>.hub-tools {margin-bottom:0}
.hub-response-tools {margin:8px 0 0}

.hub-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.hub-check {display:flex;align-items:flex-start;gap:9px;min-width:0;line-height:1.5;cursor:pointer}
.hub-check input[type=checkbox] {width:17px;height:17px;min-height:0;flex:0 0 17px;padding:0;margin:2px 0 0;accent-color:var(--hub-accent);cursor:pointer}
.hub-check span {min-width:0;overflow-wrap:anywhere}
.hub-setup {border:2px solid var(--hub-border);border-radius:12px;overflow:hidden}
.hub-setup-progress {
 display:grid;grid-template-columns:1fr auto;gap:8px 12px;align-items:center;
 padding:15px 16px;background:var(--hub-soft);font-size:14px;font-weight:650;
}
.hub-setup-progress output {color:var(--hub-accent);font-variant-numeric:tabular-nums}
.hub-setup-progress progress {
 grid-column:1/-1;display:block;width:100%;height:8px;appearance:none;
 background:var(--hub-surface);border:0;border-radius:6px;overflow:hidden;color:var(--hub-accent);
}
.hub-setup-progress progress::-webkit-progress-bar {background:var(--hub-surface)}
.hub-setup-progress progress::-webkit-progress-value {background:var(--hub-accent)}
.hub-setup-progress progress::-moz-progress-bar {background:var(--hub-accent)}
.hub-setup-list {padding:0;margin:0;list-style:none}
.hub-setup-list li {
 display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;
 padding:3px 14px;border-top:1px solid var(--hub-rule);
}
.hub-setup-list label {
 display:flex;align-items:center;gap:11px;min-height:48px;font-size:14px;font-weight:600;cursor:pointer;
}
.hub-setup-list input[type=checkbox] {
 width:21px;height:21px;min-height:0;flex:none;padding:0;margin:0;accent-color:var(--hub-accent);cursor:pointer;
}
.hub-setup-list :is(a,.text-btn) {
 display:flex;align-items:center;min-height:44px;padding:6px 0;color:var(--hub-accent);
 font-size:13px;font-weight:650;text-decoration:underline;text-underline-offset:3px;
}
.hub-setup-reminder {margin:14px 0 0;font-size:12px;line-height:1.5}
.hub-setup-dismiss {min-height:44px}
.hub-month-nav {display:flex;gap:8px;justify-content:space-between;align-items:center}
.hub-month-nav h3 {text-align:center}
.hub-calendar,.hub-weekday {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center;padding:0}
.hub-calendar {list-style:none;margin-top:6px}
.hub-calendar-day {min-width:0;min-height:42px;border:1px solid var(--hub-border);border-radius:5px;padding:3px;font-size:12px}
.hub-calendar-blank {border-color:transparent}
.hub-cal-event {display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;border-radius:4px;
 background:var(--hub-soft);color:var(--hub-accent);cursor:pointer;font:inherit;min-height:24px;padding:4px}
.hub-highlight {outline:2px solid #86509d;outline-offset:-2px;border-radius:8px}
.hub-code {display:block;margin:8px 0;font-size:clamp(25px,5vw,32px);font-weight:700;line-height:1.3;letter-spacing:.07em;overflow-wrap:anywhere;font-family:monospace}
.hub-referral-qr {display:block;width:192px;max-width:100%;height:auto;margin:12px 0 0;background:#fff;border-radius:6px}
.hub-digital-card {max-width:480px;border-radius:17px;padding:24px;background:#452451;color:#fff;overflow-wrap:anywhere}
.hub-card-brand {display:flex;align-items:center;gap:12px}
.hub-card-brand img {border-radius:6px}
.hub-digital-card h3 {font-size:clamp(20px,4vw,28px);margin:14px 0 4px}
.hub-digital-card p {margin:0 0 18px;color:#f0e4f4}
.hub-digital-card dl {display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hub-digital-card dt {font-size:12px;color:#f0e4f4}
.hub-digital-card dd {margin:3px 0 0}
.hub-card-id {grid-column:1/-1}
.hub-digital-card a {color:#fff;font-size:13px}
.hub-extra-notices {max-height:240px;overflow:auto}
.hub-notice {display:grid;gap:5px;text-align:left;width:100%;font:inherit;font-size:13px;background:transparent;color:inherit;cursor:pointer}
.notification-item > .hub-notice {border:0;padding:0}
.hub-extra-notices > .hub-notice {border-top:0;border-right:0;border-left-color:transparent}
.hub-extra-notices > .hub-notice.unread {border-left-color:#754481}
.hub-notice:hover,.hub-notice:focus-visible {text-decoration:underline}
:root[data-theme=dark] :is(.hub-home,.hub-dialog) {
 --hub-border:#685474;--hub-rule:#493b53;--hub-surface:#231b29;--hub-soft:#312439;--hub-accent:#edcaf5;--hub-muted:#cbbdd0;
}
@media(max-width:550px) {
 .hub-home-grid,.hub-fields {grid-template-columns:1fr}
 .hub-hero {gap:8px}
 .hub-hero .hub-card-button {padding-inline:10px}
 .hub-panel header {padding-inline:12px}
 .hub-panel .text-btn {font-size:12px}
 .hub-utility > div {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px;text-align:left}
 .hub-utility button {text-align:left}
 .hub-setup-list li {grid-template-columns:minmax(0,1fr) minmax(0,auto);padding-inline:12px}
 .hub-setup-list :is(a,.text-btn) {max-width:7rem;text-align:right}
 .hub-month-nav .small-btn {font-size:11px;padding:6px}
 .hub-calendar-day {min-height:36px;padding:2px}
}
@media(max-width:360px) {
 .hub-setup-list li {grid-template-columns:1fr;gap:0;padding:0 12px 5px}
 .hub-setup-list label {min-height:43px}
 .hub-setup-list :is(a,.text-btn) {width:fit-content;max-width:none;margin-left:32px;text-align:left}
}
@media print {
 body:has(.hub-card-dialog[open]) > :not(#app) {display:none!important}
 body:has(.hub-card-dialog[open]) #app > :not(.content),body:has(.hub-card-dialog[open]) #portalWorkspace > :not(#portalPageHost),body:has(.hub-card-dialog[open]) #portalPageHost > :not(.hub-card-dialog) {display:none!important}
 body:has(.hub-card-dialog[open]) #app,body:has(.hub-card-dialog[open]) #portalWorkspace {display:block!important;margin:0!important;padding:0!important;max-width:none!important}
 .hub-card-dialog[open] {position:static;width:auto;max-width:none;max-height:none;margin:0;border:0;box-shadow:none}
 .hub-card-dialog[open] :is(.dialog-heading,.hub-print-actions) {display:none}
 .hub-digital-card {break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}
}

/* Responsive app shell. Feature styles remain shared with the modal tools. */
#app{--portal-bg:#f5f5f9;--portal-surface:#fff;--portal-text:#282436;--portal-muted:#706a7b;--portal-line:#e5e2eb;--portal-accent:#67417c;--portal-soft:#f0e8f5;--sidebar-width:248px;background:var(--portal-bg);color:var(--portal-text);min-height:100dvh;padding-left:var(--sidebar-width)}
:root[data-theme=dark] #app{--portal-bg:#17141e;--portal-surface:#24202d;--portal-text:#f0ecf5;--portal-muted:#b6aebe;--portal-line:#40364b;--portal-accent:#d8b4ef;--portal-soft:#392d45}
#app [hidden]{display:none!important}
.portal-sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);display:flex;flex-direction:column;z-index:30;background:#382044;color:#f9f5fc;padding:22px 14px 14px;overflow:hidden}
.portal-sidebar-brand{display:flex;align-items:center;gap:10px;padding:3px 8px 20px;flex:none}
.portal-sidebar-brand img{object-fit:contain;background:transparent}
.portal-sidebar-brand strong,.portal-sidebar-brand span{display:block;line-height:1.35}
.portal-sidebar-brand strong{font-size:14px;letter-spacing:-.2px}
.portal-sidebar-brand span{font-size:11px;color:#c8b4d3;margin-top:3px}
.portal-nav{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#715582 transparent}
.portal-nav-group{margin-bottom:17px}
.portal-nav-group>p{margin:0 10px 6px;color:#c0abc9;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.075em}
.portal-nav-item{display:flex;align-items:center;text-align:left;gap:11px;width:100%;min-height:39px;border:0;border-radius:8px;padding:9px 11px;background:transparent;color:inherit;font-size:13px;font-weight:550;line-height:1.35}
.portal-nav-item svg{flex:none;width:19px;height:19px}
.portal-sidebar .portal-nav-item:hover{background:#53365f}
.portal-sidebar .portal-nav-item[aria-current=page]{background:#654477;color:#fff;font-weight:700}
.portal-sidebar-footer{flex:none;border-top:1px solid #60466b;padding-top:13px}
.portal-sidebar-person{display:flex;align-items:center;gap:9px;margin:0 7px 8px;min-width:0}
.portal-sidebar-person>span{display:grid;place-items:center;flex:none;width:35px;height:35px;border-radius:10px;background:#78568a;font-weight:700;font-size:13px}
.portal-sidebar-person>div{min-width:0}
.portal-sidebar-person strong,.portal-sidebar-person small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal-sidebar-person strong{font-size:12px}
.portal-sidebar-person small{font-size:10px;color:#cbb8d6;margin-top:3px}
#app>.header{position:sticky;top:0;z-index:25;height:65px;padding:0 clamp(18px,3vw,38px);background:var(--portal-surface);border-color:var(--portal-line);gap:14px}
#app>.header>.brand{display:none}
.portal-page-title{margin:0;font-size:15px;font-weight:700;min-width:0;color:var(--portal-text)}
#app .header-actions{margin-left:auto;flex:none}
#app .signed-in{color:var(--portal-muted)}
#app .content{display:flex;flex-direction:column;max-width:1440px;width:100%;margin:0 auto;padding:30px clamp(20px,3vw,42px) 64px;min-width:0;scroll-margin-top:65px}
#app .portal-shortcuts{display:none}
#app:not([data-page=home]) :is(#hubHome,#memberDashboard){display:none}
#app:not([data-page=tasks]) #mainAssignmentsAnchor,#app:not([data-page=account]) #personalProfile,#app:not([data-page=more]) #portalMore{display:none}
#app[data-page=tasks] #personalProfile:not(.hidden){display:contents}
#app[data-page=tasks] #personalProfile>:not(#profileAssignments){display:none}
#app[data-page=account] #profileAssignments{display:none}
#app[data-page=home] #memberDashboard{display:block;margin:0 0 24px}
#app[data-page=home] #memberDashboard .dashboard-heading{display:none}
#app[data-page=home] #memberDashboard .website-links{margin-top:12px;display:flex;flex-wrap:wrap}
#app[data-page=home] #hubHome{margin:0 0 22px}
#app .hub-hero{gap:20px;margin-bottom:20px;align-items:center}
.portal-kicker{font-size:11px;letter-spacing:.095em;font-weight:750;color:var(--portal-accent);margin:0 0 7px}
.portal-hero-copy{font-size:14px;color:var(--portal-muted);line-height:1.55;margin:8px 0 0}
#app .hub-hero h1{font-size:clamp(26px,3vw,39px);color:var(--portal-text)}
#app .hub-nav{border:0;background:transparent;gap:10px;margin:0 0 20px}
#app .hub-nav button{border:1px solid var(--portal-line);border-radius:10px;background:var(--portal-surface);min-height:46px;color:var(--portal-accent)}
#app .hub-nav button:hover{background:var(--portal-soft)}
#app .hub-home-grid{gap:16px}
#app .hub-panel{background:var(--portal-surface);border:1px solid var(--portal-line);border-radius:15px;overflow:hidden}
#app .hub-panel>header{padding:15px 17px;border-bottom:1px solid var(--portal-line)}
#app .hub-panel h2{font-size:15px}
#app .hub-utility{border:1px solid var(--portal-line);border-radius:14px;padding:14px;background:var(--portal-surface);margin-top:16px}
#app .hub-utility h2{font-size:16px;color:var(--portal-text)}
#app .hub-tools-description{margin:4px 0 10px;font-size:12px;color:var(--portal-muted);line-height:1.4}
#app .hub-tool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr));gap:7px}
#app .hub-tool-card{display:flex;align-items:center;gap:8px;min-width:0;min-height:48px;padding:7px 9px;border:1px solid var(--portal-line);border-radius:8px;text-align:left;text-decoration:none;color:var(--portal-text);background:var(--portal-bg)}
#app .hub-tool-card:hover,#app .hub-tool-card:focus-visible{background:var(--portal-soft);border-color:var(--portal-accent);text-decoration:none}
.hub-tool-icon{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:7px;background:var(--portal-soft);color:var(--portal-accent)}
.hub-tool-icon svg{width:17px;height:17px}
.hub-tool-copy{display:grid;gap:1px;min-width:0;flex:1}
.hub-tool-copy strong{font-size:12px;font-weight:650;line-height:1.3;overflow-wrap:anywhere}
.hub-tool-copy small{font-size:11px;line-height:1.25;color:var(--portal-muted)}
.hub-tool-arrow{flex:none;color:var(--portal-muted)}
@media(max-width:550px){#app .hub-utility{padding:12px}#app .hub-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}#app .hub-tool-card{min-height:48px;padding:7px 8px;gap:6px}.hub-tool-copy small,.hub-tool-arrow{display:none}.hub-tool-icon{width:26px;height:26px}}
@media(max-width:340px){#app .hub-tool-grid{grid-template-columns:1fr}}
#app .dashboard-grid{gap:12px}
#app .dashboard-metric{border:1px solid var(--portal-line);border-radius:13px;background:var(--portal-surface);padding:15px 18px;text-align:left}
#app .dashboard-metric strong{font-size:27px;color:var(--portal-accent)}
#app .dashboard-metric span{color:var(--portal-muted);font-size:12px}
#app .dashboard-notice{margin-bottom:0}
#app .hub-onboarding-tip{border:1px solid var(--portal-line);border-radius:13px;background:var(--portal-soft)}
#app .page-heading h1{font-size:clamp(24px,3vw,34px)}
#app .people-list{border-radius:14px;background:var(--portal-surface);border:1px solid var(--portal-line);padding:0 18px}
#app #leaders .person:has(>.empty)>.empty{margin:0;padding:20px 8px;text-align:center;line-height:1.5;font-size:14px;color:var(--portal-muted)}
#app #leaders .person:has(>.person-head)>.person-head+.empty{padding-top:12px}
#app.personal-profile-mode #leaders .person>.person-head+.empty{padding:20px 8px}
#app #leaders .person:last-child{border-bottom:0}
#app #leaders>.no-people{border:0;background:transparent;color:var(--portal-muted);margin:0;padding:20px 8px;line-height:1.5}
#app .footer{padding-bottom:0}
#portalPageHost{min-width:0}
#app .portal-panel[open]{display:block;position:relative;inset:auto;margin:0;width:100%;max-width:none;max-height:none;overflow:visible;border:1px solid var(--portal-line);border-radius:16px;box-shadow:none;padding:clamp(18px,3vw,30px);background:var(--portal-surface);color:var(--portal-text);min-width:0}
#app .portal-panel:not([open]){display:none}
#app .portal-panel .dialog-heading{position:static;display:flex;align-items:center;gap:12px;margin:0 0 20px;padding:0 0 15px;border-bottom:1px solid var(--portal-line);background:none}
#app .portal-panel .dialog-heading h2{font-size:clamp(23px,3vw,31px);letter-spacing:-.035em;line-height:1.2}
#app .portal-panel .dialog-heading .close{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:650;white-space:nowrap;min-height:36px;padding:8px 11px;border:1px solid var(--portal-line);border-radius:9px;color:var(--portal-accent)}
#app .portal-panel .hub-entry{border-radius:12px}
#app .portal-panel .hub-form{max-width:720px}
#app .portal-panel .announcements-list{max-height:none;overflow:visible}
#app .portal-panel .announcement-row{padding:18px 15px;border:1px solid var(--portal-line);border-radius:12px;margin:0 0 12px;background:var(--portal-surface)}
#app .portal-panel .announcement-title{font-size:17px}
#app .portal-panel .announcement-body{font-size:14px}
#app .portal-panel .resources-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));max-height:none}
#app .portal-panel .resources-toolbar{gap:10px}
#app .portal-panel .settings-account-section,#app .portal-panel #settingsForm{max-width:680px}
#app .portal-panel .hub-digital-card{max-width:540px;padding:28px}
#app .portal-panel .hub-code{font-size:clamp(26px,5vw,35px)}
#app .portal-panel input:not([type=checkbox]),#app .portal-panel select{min-height:42px}
.portal-more h1{margin:0;font-size:26px;letter-spacing:-.03em}
.portal-more-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-top:18px}
.portal-more-grid .portal-nav-item{background:var(--portal-surface);border:1px solid var(--portal-line);min-height:54px;color:var(--portal-text);font-weight:650}
.portal-more-grid .portal-nav-item svg{color:var(--portal-accent)}
.portal-more-grid .portal-nav-item:hover{background:var(--portal-soft)}
.portal-mobile-nav{display:none}
@media(max-width:850px){
 #app{padding-left:0}
 .portal-sidebar{display:none}
 #app>.header{height:60px;padding:0 15px}
 #app>.header>.brand{display:flex}
 #app>.header>.brand img{width:32px;height:32px}
 #app>.header>.brand strong{font-size:12px}
 #app>.header>.brand span{font-size:10px}
 #app .portal-page-title{display:none}
 #app .signed-in{display:none}
 #app .content{padding:20px 15px calc(100px + env(safe-area-inset-bottom,0px));scroll-margin-top:60px}
 .portal-mobile-nav{position:fixed;bottom:0;inset-inline:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) minmax(80px,1.35fr) repeat(2,minmax(0,1fr));gap:3px;padding:7px 7px calc(7px + env(safe-area-inset-bottom,0px));background:var(--portal-surface);border-top:1px solid var(--portal-line);z-index:35}
 .portal-mobile-nav .portal-nav-item{min-height:54px;display:flex;flex-direction:column;justify-content:center;gap:5px;padding:5px 1px;font-size:10px;color:var(--portal-muted);text-align:center;line-height:1.1}
 .portal-mobile-nav .portal-nav-item svg{width:21px;height:21px}
 .portal-mobile-nav .portal-nav-item[aria-current=page]{background:var(--portal-soft);color:var(--portal-accent);font-weight:750}
 #app[data-page=home] #memberDashboard{margin:0 0 16px}
 #app .hub-hero{align-items:flex-start;gap:9px;flex-wrap:wrap}
 #app .hub-hero .hub-card-button{font-size:12px;min-height:40px}
 #app .hub-home-grid{grid-template-columns:1fr;gap:12px}
 #app .hub-home-grid section[aria-labelledby=hubUpdatesHeading]{order:-1}
 #app .dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 #app .hub-nav{gap:6px}
 #app .hub-nav button{font-size:12px;padding:9px 4px}
 #app .portal-panel[open]{padding:17px 14px;border-radius:12px}
 #app .portal-panel .dialog-heading h2{font-size:24px}
 #app .portal-panel .resources-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,155px),1fr))}
 #app .portal-panel .hub-form input:not([type=checkbox]),#app .portal-panel .hub-form select,#app .portal-panel textarea{font-size:16px}
 #app .portal-panel .hub-tools button,#app .portal-panel .hub-tools a{min-height:42px}
 .portal-more-grid{grid-template-columns:1fr;gap:8px}
 .notice{bottom:calc(82px + env(safe-area-inset-bottom,0px))}
}
@media print{
 body:has(.hub-card-dialog[open]) #app .hub-card-dialog[open]{border:0;padding:0;box-shadow:none;background:white}
}

#app .portal-profile-links{display:flex;flex-wrap:nowrap;gap:7px;margin:14px 0 24px;padding:2px 2px 5px;overflow-x:auto;scrollbar-width:thin}
#app .portal-profile-links button{flex:0 0 auto;min-height:42px;padding:7px 10px;white-space:nowrap}
@media(max-width:550px){#app .portal-profile-links{gap:5px}#app .portal-profile-links button{font-size:12px;padding:7px 8px}}
#app .portal-mobile-nav [data-page-link=more][aria-current=page]{background:var(--portal-soft);color:var(--portal-accent)}

#app:not([data-page=notifications]) #portalNotificationsHost{display:none}
#portalAllNotifications{margin:6px 12px;color:var(--portal-accent);font-weight:650}
#portalNotificationsHost .notifications-panel{position:relative;inset:auto;width:100%;border:1px solid var(--portal-line);border-radius:15px;background:var(--portal-surface);box-shadow:none}
#portalNotificationsHost .notifications-heading{padding:20px;gap:12px}
#portalNotificationsHost .notifications-heading h2{font-size:clamp(22px,3vw,30px);letter-spacing:-.03em}
#portalNotificationsHost .notifications-list{max-height:none;overflow:visible}
#portalNotificationsHost .notification-item{padding:16px 20px}
#portalNotificationsHost .notification-item.unread{padding-left:17px}
#portalNotificationsHost #portalAllNotifications{display:none}
#portalNotificationsHost .notifications-footer{padding:16px 20px}
#portalNotificationsHost .notifications-footer .small-btn{width:auto;align-self:flex-start}

/* A consistent membership card preview and entry experience. */
.portal-member-summary{max-width:660px;background:linear-gradient(135deg,#382044,#6a427b);color:white;border-radius:17px;padding:24px 26px;box-shadow:0 8px 22px #38204418}
.portal-member-summary-brand{display:flex;align-items:center;gap:10px;margin-bottom:23px;font-size:12px;font-weight:700;letter-spacing:.045em;text-transform:uppercase}
.portal-member-summary-brand img{background:transparent;object-fit:contain;flex:none}
.portal-member-active{margin-left:auto;border:1px solid #ffffff65;background:#ffffff16;border-radius:999px;padding:5px 9px;font-size:10px;letter-spacing:0;text-transform:none}
.portal-member-summary h3{font-size:clamp(22px,4vw,29px);margin:0 0 5px;line-height:1.2;overflow-wrap:anywhere}
.portal-member-summary p{margin:6px 0;color:#ecdfef;font-size:13px;line-height:1.5}
.portal-member-summary .portal-member-id{font-size:11px;letter-spacing:.035em;margin-top:18px}
.portal-member-id strong{display:block;color:white;font-family:monospace;font-size:19px;letter-spacing:.1em}
.portal-member-summary button{margin-top:13px;color:#482b56;background:#fff;border:0;min-height:40px}
.portal-member-summary button:hover{background:#f2e9f6}
#login.center-screen,#identity.center-screen,#activation.center-screen{background:radial-gradient(ellipse at 20% 10%,#efe5f6 0,transparent 55%),#f7f6fa;padding:28px 16px}
#login .login-card,#identity .login-card,#activation .login-card{width:min(100%,410px);padding:30px;border:1px solid #e6dfeb;border-radius:20px;background:white;box-shadow:0 10px 45px #3820440c}
#login .login-card h1,#identity .login-card h1,#activation .login-card h1{font-size:28px;letter-spacing:-.9px;color:#382044}
#login .login-card .primary,#identity .login-card .primary,#activation .login-card .primary{min-height:46px;border-radius:10px}
:root[data-theme=dark] :is(#login,#identity,#activation).center-screen{background:#18141f}
:root[data-theme=dark] :is(#login,#identity,#activation) .login-card{background:#292232;border-color:#44374e}
:root[data-theme=dark] :is(#login,#identity,#activation) .login-card h1{color:#eee5f4}
@media(max-width:480px){
 .portal-member-summary{padding:20px 16px}
 .portal-member-summary-brand{gap:8px;font-size:10px}
 :is(#login,#identity,#activation) .login-card{padding:24px 19px}
}

/* Keep linked items and keyboard focus clear of persistent navigation. */
#app :is(.announcement-row,.hub-entry,.resource-row,.task){scroll-margin-block:84px 90px}
#app .portal-nav-item:focus-visible{outline-offset:-3px}
.portal-sidebar .portal-nav-item:focus-visible{outline-color:#fff}
@media(max-width:850px){#app .portal-panel .hub-digital-card{padding:20px 16px}#app .portal-panel .dialog-heading{flex-wrap:wrap}}

/* Empty states are informational cards, not ordinary descriptive copy. */
#app .portal-empty-state,.resource-preview-stage .portal-empty-state{
 display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;
 min-height:48px;margin:8px 0;padding:11px 14px;border:1px dashed var(--portal-line,var(--hub-border,#e5e2eb));
 border-radius:9px;background:var(--portal-bg,var(--hub-soft,#f5f5f9));
 color:var(--portal-muted,var(--hub-muted,#706a7b));font-size:13px;font-weight:550;line-height:1.5;
 text-align:center;overflow-wrap:anywhere;
}
.portal-empty-state::before{
 content:"";display:block;flex:0 0 16px;width:16px;height:12px;box-sizing:border-box;
 border:1.5px solid currentColor;border-radius:3px;
 background:linear-gradient(currentColor,currentColor) center/6px 1.5px no-repeat;opacity:.78;
}
#app .hub-panel .portal-empty-state{margin:9px 12px 12px;min-height:44px;padding:10px 9px}
#app #leaders .person:has(>.empty)>.portal-empty-state,#app #leaders>.portal-empty-state{margin:10px 0;padding:12px 10px;min-height:48px;border:1px dashed var(--portal-line);background:var(--portal-bg);font-size:13px}
#app .notifications-list>.portal-empty-state{margin:10px 12px}
#app .resource-search-empty.portal-empty-state{grid-column:1/-1}
#app :is(#resourcesMessage,#announcementsMessage):has(>.portal-empty-state){margin:8px 0}
#app :is(#resourcesMessage,#announcementsMessage)>.portal-empty-state{margin:0}
:root[data-theme=dark] .resource-preview-stage .portal-empty-state{background:#292331;border-color:#493d53;color:#b6aebe}
@media(max-width:550px){#app .portal-empty-state{min-height:44px;padding:10px;font-size:12px}}

/* Make card boundaries clearer in the mobile portal without changing desktop styles. */
@media screen and (max-width:850px){
 #app :is(.hub-panel,.hub-utility,.hub-tool-card,.dashboard-metric,.hub-onboarding-tip,.people-list,.profile-hero,.profile-stat,.profile-panel,.profile-action,.resource-row,.donation-grid,.hub-details,.hub-calendar-day,.portal-empty-state,.task,.portal-shortcut),
 #app .portal-panel[open],
 #app .portal-panel .announcement-row,
 #app .portal-more-grid .portal-nav-item,
 #portalNotificationsHost .notifications-panel,
 #app #leaders .person:has(>.empty)>.portal-empty-state,
 #app #leaders>.portal-empty-state,
 .resource-preview-stage .portal-empty-state,
 :is(#login,#identity,#activation) .login-card{border-width:2px}
}

/* Portal-owned password reveal stays available after focus changes. */
.password-field{position:relative;min-width:0;width:100%}
.password-field input{padding-inline-end:48px}
.password-field input::-ms-reveal,.password-field input::-ms-clear{display:none}
.password-reveal{position:absolute;inset-inline-end:2px;top:2px;bottom:2px;width:42px;padding:0;border:0;border-radius:6px;display:grid;place-items:center;background:transparent;color:inherit}
.password-reveal-slash{display:none}
.password-reveal[aria-pressed=true] .password-reveal-slash{display:block}
.hub-poll-options{display:grid;gap:8px;min-width:0}
.hub-poll-add{justify-self:start;min-height:42px}
/* Match links and expandable event actions without changing their behavior. */
#app .hub-event-actions>:is(a,details),#app .hub-manage-action{box-sizing:border-box;min-height:42px;border:2px solid var(--hub-border);border-radius:8px;font-size:14px;font-weight:650;line-height:20px;color:inherit}
#app .hub-event-actions>a{display:inline-flex;align-items:center;padding:9px 12px;text-decoration:none}
#app .hub-event-actions>details,#app .hub-manage-action{min-width:0;padding:0}
#app :is(.hub-event-actions>details,.hub-manage-action)>summary{padding:9px 12px;font-size:inherit;line-height:inherit}
#app :is(.hub-event-actions>details,.hub-manage-action)[open]{padding-bottom:10px}
#app :is(.hub-event-actions>details,.hub-manage-action)>:not(summary){margin-inline:10px}
#app .hub-event-actions>a:hover{background:var(--hub-soft)}
