:root{--portal-sidebar-width:242px;--portal-paper:#f7f7f2;--portal-ink:#191a1d;--portal-red:#e52328}
body{background:var(--portal-paper);font-family:"Inter Variable",Inter,Arial,sans-serif}
.portal-skip{position:fixed;left:16px;top:-80px;z-index:500;padding:12px 18px;background:#fff;color:#151517;border:2px solid var(--portal-red);border-radius:8px}.portal-skip:focus{top:12px}
.portal-sidebar{position:fixed;inset:0 auto 0 0;width:var(--portal-sidebar-width);z-index:100;background:#18191c;color:#f6f6f5;display:flex;flex-direction:column;padding:18px 14px;overflow-y:auto;overflow-x:hidden}
.portal-sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:58px;margin-bottom:24px}
.portal-brand{display:flex;align-items:center;gap:8px;min-width:0;color:#fff;text-decoration:none;font-size:20px;font-weight:800;letter-spacing:-.8px;white-space:nowrap}.portal-brand img{width:30px;height:30px;object-fit:contain}.portal-brand b{font-weight:450;color:#a4a6b0}
.portal-toggle{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;padding:10px;border:0;border-radius:10px;background:transparent;color:#c4c7cf;cursor:pointer}.portal-toggle svg{width:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.portal-workspace-label{display:block;background:#24252b;border:1px solid #363840;border-radius:14px;padding:12px;margin-bottom:20px;min-width:0}.portal-workspace-label>span{display:block;color:#aeb1bd;font-size:10px;letter-spacing:.08em;font-weight:650;margin-bottom:5px}.portal-workspace-label select{width:100%;min-width:0;padding:4px 15px 4px 0;color:#fff;background:#24252b;border:0;font-size:13px;font-weight:700;min-height:30px}.portal-workspace-label select:disabled{opacity:1}
.portal-sidebar-nav{display:flex;flex-direction:column;gap:5px}.portal-sidebar-nav button{position:relative;display:flex;align-items:center;gap:13px;min-height:46px;width:100%;padding:10px 12px;border:0;background:transparent;color:#b7bac5;text-align:left;border-radius:11px;cursor:pointer}.portal-sidebar-nav button>span{width:22px;flex:0 0 22px;text-align:center;font-size:21px;line-height:1}.portal-sidebar-nav b{font-size:13px;font-weight:550;white-space:nowrap}.portal-sidebar-nav button.active{background:#313137;color:#fff}.portal-sidebar-nav button.active:before{content:"";position:absolute;left:-14px;top:12px;bottom:12px;width:3px;background:var(--portal-red);border-radius:0 4px 4px 0}.portal-nav-divider{height:1px;background:#303138;margin:12px 9px}
.portal-sidebar-foot{display:flex;flex-direction:column;gap:6px;padding:24px 12px 6px;margin-top:auto;color:#c4c6ce;font-size:11px}.portal-sidebar-foot small{color:#969aa7;font-size:10px}
.portal-sidebar-collapsed{--portal-sidebar-width:76px}.portal-sidebar-collapsed .portal-brand,.portal-sidebar-collapsed .portal-workspace-label,.portal-sidebar-collapsed .portal-sidebar-nav b,.portal-sidebar-collapsed .portal-sidebar-foot{display:none}.portal-sidebar-collapsed .portal-sidebar-head{justify-content:center}.portal-sidebar-collapsed .portal-sidebar-nav button{justify-content:center;padding:10px 0}
.portal-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.portal-module{min-width:0}.portal-module .panel{min-width:0;padding:22px;border-radius:16px;background:#fff;border:1px solid #e1e2df}.portal-module h1,#portalWeekly h1{font-size:clamp(25px,3vw,37px);font-weight:730;letter-spacing:-1.1px;line-height:1.12}.portal-module h2{font-size:21px;line-height:1.3;letter-spacing:-.45px;font-weight:690}.portal-module h3{font-size:17px;line-height:1.4}.portal-module p{line-height:1.6}.portal-module .form-hint{font-size:12px;color:#656770;line-height:1.55}.portal-module label{font-size:13px}.portal-module input:not([type=checkbox]):not([type=radio]),.portal-module select,.portal-module textarea{font-size:14px;min-height:44px}.portal-module .table-wrap{max-width:100%;overflow-x:auto}.portal-module table{width:100%;border-collapse:collapse}.portal-module th,.portal-module td{padding:12px 10px;text-align:left;border-bottom:1px solid #e8e9e6;font-size:13px;vertical-align:top}.portal-module th{color:#666973;font-size:11px;font-weight:700}.portal-module pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.portal-module img,.portal-module video{max-width:100%;border-radius:12px}.portal-loading{padding:28px;color:#656770}.portal-mobile-modules{display:none}
.portal-permission-grid{display:grid;grid-template-columns:1fr;gap:8px;border:1px solid var(--line);padding:14px;border-radius:12px}.portal-permission-grid label{display:flex;align-items:center;gap:9px;min-height:34px;font-size:12px}.portal-permission-grid input{width:18px;height:18px;min-height:18px}
.portal-module .tabs{display:flex;flex-wrap:wrap;gap:6px}.portal-module .tabs .btn{white-space:normal}.portal-module .form-grid{gap:14px}.portal-module .stat-grid,.portal-module .stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:14px}.portal-module .stat-card{padding:18px;background:#fff;border:1px solid #e1e2df;border-radius:12px}
.portal-toggle:focus-visible,.portal-sidebar button:focus-visible,.portal-sidebar select:focus-visible{outline:2px solid #f78184;outline-offset:3px}.portal-module button:focus-visible{outline:2px solid #b81921;outline-offset:3px}
@media(min-width:981px){
  .app-shell{padding-left:var(--portal-sidebar-width)}.app-shell .topbar{left:var(--portal-sidebar-width);grid-template-columns:1fr auto;padding:0 30px;height:76px;background:#fafaf6}.app-shell .topbar>.brand-button,.app-shell .desktop-nav{display:none}.app-shell .top-actions{grid-column:2}.app-shell .main-shell{width:calc(100% - 60px);max-width:1460px;padding-top:26px}
  .app-shell .today-master-head h1,.app-shell .page-head h1,.app-shell .agenda-page-head h1{font-family:inherit;font-weight:720;letter-spacing:-1.2px}.app-shell .today-focus-surface{border-radius:18px}.app-shell .today-master-head{margin-bottom:23px}.app-shell .today-clock{font-family:inherit;font-size:28px;font-weight:650}
}
@media(max-width:1100px) and (min-width:981px){:root{--portal-sidebar-width:220px}.portal-brand{font-size:18px}.portal-brand img{width:26px}.app-shell .main-shell{width:calc(100% - 36px)}}
@media(max-width:980px){
  .portal-sidebar{display:none}.portal-mobile-modules{display:flex;flex-direction:column;gap:12px;margin:0 0 22px}.portal-mobile-modules>label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#656770}.portal-mobile-modules select{min-width:0;width:auto;max-width:68%;min-height:40px;padding:6px 25px 6px 10px;font-size:13px;font-weight:650}.portal-mobile-modules>div{display:flex;flex-wrap:wrap;gap:7px}.portal-mobile-modules .btn{min-height:42px;font-size:12px}.portal-card-grid{grid-template-columns:1fr}.portal-module .panel{padding:17px}.portal-module .page-head{align-items:flex-start;flex-wrap:wrap}.portal-module input:not([type=checkbox]):not([type=radio]),.portal-module select,.portal-module textarea{font-size:16px}.portal-module .form-grid{grid-template-columns:1fr}.portal-module h1,#portalWeekly h1{font-size:29px}.portal-module td{max-width:220px;overflow-wrap:anywhere}
}
@media(hover:hover) and (pointer:fine){.portal-sidebar-nav button:hover,.portal-toggle:hover{background:#292b31;color:#fff}}
@media(prefers-reduced-motion:reduce){.portal-module *,.portal-sidebar *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
body.present-mode .portal-sidebar,body.present-mode .portal-mobile-modules{display:none!important}body.present-mode .app-shell{padding-left:0}
@media print{.portal-sidebar,.portal-mobile-modules{display:none!important}.app-shell{padding-left:0}}

.portal-home-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px;padding:18px 0;border-bottom:1px solid #dddeda}.portal-home-intro p{font-size:14px;color:#636670;max-width:550px;line-height:1.6;margin:0}.portal-home-intro .form-actions{flex-wrap:wrap;justify-content:flex-end}.portal-desk-home .today-attention{order:-1}.portal-desk-home .today-operational-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
body.present-mode #portalHomeContext{display:none!important}
@media(max-width:980px){.portal-home-intro{align-items:flex-start;flex-direction:column;gap:12px}.portal-home-intro .form-actions{justify-content:flex-start}.portal-desk-home .today-operational-grid{grid-template-columns:1fr}}
.app-shell #todayTitle{font-size:clamp(27px,2.8vw,38px);font-weight:720;line-height:1.16;letter-spacing:-1.2px;font-family:inherit}.app-shell .empty-focus strong,.app-shell .next-agenda-title{font-family:inherit;letter-spacing:-.55px}.app-shell .today-focus-surface .empty-focus strong{font-size:23px;line-height:1.3}.app-shell #attentionCount:empty{display:none}.app-shell .today-focus-surface{min-height:260px}.app-shell .today-focus-surface .empty-focus{min-height:180px}.app-shell .portal-home-intro{padding-top:2px}.app-shell .portal-sidebar::-webkit-scrollbar{width:5px}.app-shell .portal-sidebar::-webkit-scrollbar-thumb{background:#42444d;border-radius:4px}
@media(max-width:980px){.app-shell #todayTitle{font-size:29px;letter-spacing:-.85px}}

.portal-module input[type=checkbox],.portal-module input[type=radio]{width:18px;height:18px;min-height:18px;flex:0 0 18px;vertical-align:middle}.portal-module .invitation-recipient-table{min-width:760px}.portal-module .invitation-recipient-table .btn{word-break:normal;overflow-wrap:normal;white-space:nowrap}.portal-module .cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}

@media(prefers-reduced-motion:reduce){.portal-sidebar,.app-shell,.app-shell .topbar{transition:none!important;animation:none!important}}

/* Keep module headings and compact attendance columns legible on every viewport. */
.portal-module .page-head h1{font-family:inherit}.portal-module .attendance-history-table{min-width:450px}.portal-module .attendance-history-table th,.portal-module .attendance-history-table td,.portal-module .attendance-history-table .btn{white-space:nowrap;overflow-wrap:normal;word-break:normal}

/* Four functional dashboards, one navigation surface per viewport. */
.app-shell .mobile-nav{display:none!important}
.portal-unit-context{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 20px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.portal-unit-context label{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted)}
.portal-unit-context select{max-width:280px;min-height:40px;font-size:13px}
.portal-unit-context[hidden],#portalAttendanceShortcut[hidden]{display:none}
.portal-module summary,.drawer-body summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:650;gap:8px}
.portal-module summary:before,.drawer-body summary:before{content:'›';font-size:20px}
.portal-module details[open]>summary:before,.drawer-body details[open]>summary:before{transform:rotate(90deg)}
.attendance-journey{display:flex;flex-wrap:wrap;gap:8px;padding:0;list-style:none}
.attendance-step{padding:8px 12px;border:1px solid var(--line);border-radius:10px;font-size:13px}
.attendance-step.active,.attendance-step[aria-current=step]{border-color:var(--red);background:#fff5f4}
.guestbook-list{display:grid;gap:12px}.guestbook-list article{overflow-wrap:anywhere}
.portal-module .form-actions{flex-wrap:wrap}
@media(max-width:980px){
 .app-shell{padding-bottom:0}.app-shell .main-shell{padding-bottom:30px}
 .portal-mobile-modules{display:flex;flex-direction:column;gap:10px;margin-bottom:16px;overflow:visible}
 .portal-mobile-modules>label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;font-weight:650}
 .portal-mobile-modules select{min-height:44px;min-width:0;width:min(75%,300px);font-size:16px}
 .portal-mobile-modules nav{display:flex;flex-wrap:wrap;gap:4px}.portal-mobile-modules nav button{min-height:44px;flex:1 1 auto;font-size:12px;padding:8px}
 .portal-mobile-modules nav .active{background:#24252b;color:#fff}
 .portal-unit-context{padding:10px;align-items:stretch;flex-direction:column;gap:8px}
 .portal-unit-context label{justify-content:space-between}.portal-unit-context select{min-width:0;max-width:70%;font-size:16px}
 .portal-unit-context .btn{align-self:flex-end}
}
.admin-grid,.admin-box,.admin-box .compact-list,.admin-box .list-row,.admin-box .list-row>div{min-width:0}
.admin-box .list-row>div{flex:1;overflow-wrap:anywhere}.admin-box .list-row>.chip{flex-shrink:0}
.admin-box .panel-head{flex-wrap:wrap;gap:12px}
@media(max-width:980px){.app-shell .topbar{grid-template-columns:minmax(0,1fr) auto}.app-shell .brand-button{min-width:0;max-width:210px}.app-shell .great-command-wordmark{font-size:17px}.app-shell .top-actions{min-width:0}.app-shell .admin-box{padding:15px}}
.drawer-body input:not([type=checkbox]):not([type=radio]),.drawer-body select,.drawer-body textarea{min-height:44px;width:100%;min-width:0}
.drawer-body .membership-flag input,.drawer-body .portal-permission-grid input{width:18px;min-height:18px}
@media(max-width:980px){.drawer-body input:not([type=checkbox]):not([type=radio]),.drawer-body select,.drawer-body textarea{font-size:16px}}
body.present-mode .portal-unit-context{display:none!important}
.attendance-flow{gap:16px}.attendance-status p{margin:0}.attendance-status h2{margin:0 0 6px}
#portalInvitations .invitation-overview{gap:12px}#portalInvitations .invitation-overview p,#portalInvitations .invitation-overview h2{margin:0}
