/* 2.7.1: compact, straight navigation and consistent surfaces. Loaded last. */
[hidden]{display:none!important}
.app-frame{grid-template-columns:76px minmax(0,1fr)}
.icon-rail{padding:12px 6px;gap:10px;align-items:center}
.brand-orb{width:48px;height:48px;border-radius:16px;margin:0!important;align-self:center!important}
.rail-nav{align-items:center;padding:4px 0 10px!important;gap:5px}
.rail-btn{width:46px;min-height:44px;height:44px;flex-basis:44px}
.rail-btn.active:after{left:-5px}
.rail-open270{grid-template-columns:194px minmax(0,1fr)}
.rail-open270 .rail-nav{align-items:stretch;padding-inline:4px!important}
.rail-open270 .rail-btn:not(.rail-expand270){width:100%;transform:none!important;padding:9px 12px;gap:10px}
.rail-open270 .rail-bottom{padding:0 4px;align-items:stretch}
.rail-label270{font-size:12px!important;line-height:1.35}
.rail-btn svg{width:22px;height:22px}
.drawer-links button,.drawer-links button:nth-child(n){transform:none!important;width:100%;margin-bottom:0;gap:12px}
.drawer-links{padding:8px 0 16px;gap:4px;margin-top:16px;scrollbar-width:thin}
.drawer-links button{flex:0 0 auto!important;min-height:44px;height:auto!important;padding:11px 12px!important}
.mobile-drawer{z-index:1300!important;width:min(82vw,290px);padding:16px 14px calc(14px + env(safe-area-inset-bottom))!important}
.drawer-backdrop.show{z-index:1200!important}
#drawerLogin{margin-top:12px;min-height:44px}
.workspace-pane .dash-card,.content-manager,.create-disclosure{background:var(--glass);border:1px solid var(--line);border-radius:24px;box-shadow:inset 0 1px 0 #ffffff12}
.workspace :is(input,select,textarea),.content-dialog :is(input,select,textarea){background:#10243c;color:#eff7ff;border:1px solid #49627d;border-radius:14px;line-height:1.45}
.workspace :is(input,select):not([type=checkbox]){min-height:44px}
.workspace :is(select option,select optgroup){background:#10243c;color:#eff7ff}
.workspace :is(h2,h3,h4,label){color:#edf5ff}
.workspace :is(button,summary){line-height:1.4}
.workspace button:not(.primary-btn):not(.workspace-group){border-radius:14px}
.workspace-group{font-size:13px;padding:10px 12px;min-width:0}
.workspace-switch{align-items:center;position:relative;flex-wrap:wrap}
#workspaceSelect{display:none}
#workspaceSection271{position:relative;width:min(100%,360px);min-width:0}
#workspaceSectionButton271{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;min-height:46px;padding:12px 14px;background:linear-gradient(135deg,#264560,#152b43);border:1px solid #64819b88;color:#f0f7ff;border-radius:16px}
#workspaceSectionButton271 svg{width:18px;height:18px;flex:none}
#workspaceSectionMenu271{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:40;padding:6px;background:#122840f7;border:1px solid #627f9988;border-radius:18px;box-shadow:0 16px 45px #0007;max-height:min(320px,45dvh);overflow:auto;backdrop-filter:blur(20px)}
#workspaceSectionMenu271 button{display:flex;width:100%;align-items:center;gap:10px;min-height:44px;padding:11px 12px;text-align:left;border:0;background:transparent;color:#d8e8f8;font-size:14px}
#workspaceSectionMenu271 button[aria-current=true],#workspaceSectionMenu271 button:hover{background:#29749a66;color:white}
.content-row{gap:16px}.content-row>div:first-child{min-width:0}.content-row h3,.content-row p{overflow-wrap:anywhere}
.content-row-actions{flex-wrap:wrap}.content-list-heading{gap:12px;flex-wrap:wrap}
.dash-title{gap:10px;flex-wrap:wrap;line-height:1.5}
.student-head{margin-bottom:18px;min-width:0}.student-head>div{min-width:0}
#profileHost270{margin-bottom:18px;padding:22px;min-width:0}
.profile-grid270 dd{overflow-wrap:anywhere;line-height:1.6}
#creditSummary271{grid-column:1/-1;scroll-margin-top:90px}
#creditSummary271 .credit-wallet{width:100%;margin-bottom:22px;padding:20px;text-align:center}
#creditSummary271 .credit-wallet strong{justify-content:center}
#creditSummary271 .transactions{max-height:360px;overflow:auto;scrollbar-width:thin}
.student-grid>*{min-width:0}.attendance-card-user{grid-column:1/-1;min-width:0}
.student-attendance-item{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px;padding:18px;min-width:0}
.student-attendance-item .attendance-copy{min-width:0;flex:1 1 220px;overflow-wrap:anywhere}
.student-attendance-item .personal-qr{width:176px!important;height:176px!important;min-width:0!important;max-width:100%;flex:0 0 176px;box-sizing:border-box!important;padding:16px!important;margin:0 auto!important;display:flex;justify-content:center;align-items:center}
.personal-qr img,.personal-qr canvas{width:144px!important;height:144px!important;max-width:144px!important;max-height:144px!important;object-fit:contain}
.personal-qr[role=button]:focus-visible{outline:3px solid #5ad9ff;outline-offset:4px}
.modal-layer{align-items:center!important;justify-content:center!important;z-index:1500!important;padding:16px!important;inset:0!important;height:100dvh!important}
.modal-layer .modal{margin:auto!important;width:min(480px,100%)!important;max-width:480px!important;max-height:calc(100dvh - 32px)!important;border-radius:26px!important;padding:24px!important;overflow-y:auto!important}
#memberModal .modal{max-width:700px!important;width:min(700px,100%)!important}
.creator-credit{margin-top:28px}
@media(min-width:821px){.rail-open270{grid-template-columns:194px minmax(0,1fr)}.agenda-layout{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}.topbar{padding:12px 20px}.views{padding:22px}}
@media(max-width:1100px) and (min-width:821px){.proposal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.agenda-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:820px){
 .mobile-bottom{height:58px!important;min-height:58px!important;max-height:58px!important;padding:4px!important;gap:2px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;left:max(10px,env(safe-area-inset-left))!important;right:max(10px,env(safe-area-inset-right))!important;width:auto!important;border-radius:23px!important;z-index:1000!important}
 .mobile-bottom button{height:48px!important;min-height:48px!important;padding:3px 1px!important;gap:3px!important;border-radius:18px!important}
 .mobile-bottom button>svg,.mobile-bottom .mobile-focus-icon svg{width:20px!important;height:20px!important}
 .mobile-bottom .mobile-focus-icon{width:24px!important;height:24px!important;padding:0!important;border-radius:9px!important}
 .mobile-bottom button>span:not(.mobile-focus-icon){font-size:9px!important;line-height:1.1!important}
 .views{padding-bottom:calc(90px + env(safe-area-inset-bottom))!important}
 .workspace-switch{align-items:stretch}.workspace-switch label{margin:0}.workspace-group{padding:10px 5px;font-size:12px}
 #workspaceSection271{width:100%}.workspace-nav{padding:16px}
 #profileHost270{padding:18px}.student-attendance-item{padding:14px}
 .modal-layer{top:var(--modal-top271,0px)!important;bottom:auto!important;height:var(--modal-height271,100dvh)!important}
 .modal-layer .modal{max-height:calc(var(--modal-height271,100dvh) - 32px)!important;padding:22px 18px!important}
 .toast{bottom:calc(82px + env(safe-area-inset-bottom))!important;z-index:1600!important}
}
@media(max-width:380px){.mobile-bottom button>span:not(.mobile-focus-icon){font-size:8px!important}.topbar{padding-inline:10px}.top-left{gap:6px}.brand-title strong{font-size:11px}}

.student-attendance-item h4{font-size:16px;line-height:1.4}.student-attendance-item p{font-size:13px;line-height:1.6}.student-attendance-item small{font-size:12px;line-height:1.5;color:#aec4d8}

/* 2.7.2: stacking contexts, viewport-safe navigation and complete profile. */
.workspace-nav{position:relative;z-index:2;overflow:visible}
.workspace-area{position:relative;z-index:1}
.workspace-nav.sections-open272{z-index:20}
#workspaceSectionMenu271{max-height:min(320px,40vh,40dvh)}
.profile-sections272{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:22px}
.profile-section272{min-width:0;padding:20px;border:1px solid var(--line);border-radius:20px;background:rgba(8,24,43,.4)}
.profile-section272 h3{margin:0 0 18px;font-size:16px;color:#eaf7ff}
.profile-section272 dl{margin:0;gap:18px 14px}.profile-section272 dl>div{min-width:0}
#profileHost270 .dialog-heading{flex-wrap:wrap;gap:14px}
#profileHost270 h2{margin:6px 0 0;font-size:clamp(22px,3vw,28px)}
#profileForm270 label{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:14px}
#profileForm270 :is(input,select){width:100%;min-height:46px;padding:12px;border:1px solid #536d88;border-radius:12px;background:#10243c;color:#edf5ff}
#profileForm270 button[type=submit]{width:100%;margin-top:20px}
.workspace form{min-width:0}.workspace-field-label{align-self:center}
.drawer-backdrop:not(.show){display:none!important;pointer-events:none!important}
.mobile-drawer:not(.show){visibility:hidden;pointer-events:none}
.mobile-drawer.show{visibility:visible;pointer-events:auto}
.drawer-head{min-height:60px;gap:12px;padding:4px 2px 14px;border-bottom:1px solid var(--line)}
#drawerClose{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center}
@media(max-width:1100px){.profile-sections272{grid-template-columns:minmax(0,1fr)}}
@media(max-width:820px){
 .mobile-bottom{transform:none!important;translate:none!important;grid-template-rows:48px!important;overflow:visible!important}
 .mobile-bottom button[hidden]{display:none!important}
 .mobile-bottom button{touch-action:manipulation!important}
 .mobile-bottom button *{pointer-events:none!important}
 .mobile-drawer{top:calc(12px + env(safe-area-inset-top))!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;left:max(8px,env(safe-area-inset-left))!important;width:min(88vw,320px)!important;height:auto!important;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;border-radius:26px!important;padding:20px 16px 16px!important}
 .drawer-links{margin-top:10px;padding-block:6px!important}.drawer-brand b{font-size:14px}.drawer-brand small{font-size:10px}
 .profile-grid270{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-section272{padding:16px}
 .workspace :is(.merch-create-form,.admin-form){grid-template-columns:minmax(0,1fr)}
}
@media(max-width:480px){.profile-grid270{grid-template-columns:minmax(0,1fr)}.profile-section272 dl{gap:16px}}
@media(max-height:500px) and (max-width:820px){.mobile-drawer{padding:10px 14px!important}.drawer-head{min-height:48px;padding-bottom:8px}.drawer-brand img{width:36px!important;height:36px!important}}
/* Toasts contain no actions; even their transparent exit position must not intercept taps. */
.toast{pointer-events:none!important;max-width:calc(100vw - 24px)}
.toast:not(.show){visibility:hidden}
.search-overlay{z-index:1400}

.workspace-field272{display:flex;flex-direction:column;min-width:0;gap:8px}
.workspace-field272 .workspace-field-label{align-self:stretch;margin:0;font-size:14px}
.workspace-field272 :is(input,textarea,select){width:100%}
.workspace .merch-create-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.workspace .wide-field272{grid-column:1/-1}
@media(max-width:600px){.workspace .merch-create-form{grid-template-columns:minmax(0,1fr)}}

/* 2.7.3: consistent inner spacing for every management surface. */
.content-manager{padding:22px;min-width:0}
.content-list-heading{margin-bottom:18px}.content-search{margin-bottom:18px;gap:10px}
.content-manager>.pager{margin-top:18px;padding-top:4px}
.workspace-pane .content-list{margin-block:16px}
.create-disclosure>.dash-card{margin:0;border:0;box-shadow:none}
.workspace :is(.content-manager,.dash-card) :is(h2,h3,p):first-child{margin-top:0}
#profileEdit270{width:min(720px,calc(100vw - 32px));padding:24px}
#profileEdit270 .profile-grid270{gap:20px}
#profileForm270 small{line-height:1.5}
#profileForm270 .wide273{grid-column:1/-1}
#profileForm270 label[hidden]{display:none!important}
#profileError270{line-height:1.5;color:#ffd0ce}
.member-detail-actions,.account-row-actions{gap:10px;flex-wrap:wrap}
@media(max-width:820px){.content-manager{padding:18px}.content-list-heading{gap:12px}.content-manager>.pager{gap:10px}.content-search{flex-wrap:wrap}.content-search input{flex:1 1 180px;min-width:0}#profileEdit270{padding:20px 18px}}
@media(max-width:380px){.content-manager{padding:16px}.workspace-group{white-space:normal}.content-search button{min-height:44px}}

/* Hide only the menu scrollbar; preserve scrolling and touch gestures. */
.drawer-links{scrollbar-width:none!important;-ms-overflow-style:none;overflow-y:auto!important}
.drawer-links::-webkit-scrollbar{display:none;width:0;height:0}
.update-notice274{position:fixed;z-index:1700;left:50%;transform:translateX(-50%);bottom:calc(82px + env(safe-area-inset-bottom));width:min(480px,calc(100vw - 28px));padding:16px;background:#142b45;border:1px solid #5f94b3;border-radius:18px;box-shadow:0 12px 35px #0007;display:flex;align-items:center;gap:14px;color:#f1f7ff;font-size:14px}
.update-notice274 button{min-height:44px;flex-shrink:0}
/* Liquid glass with a small static blur surface and immediate touch feedback. */
@media(max-width:820px){
 .mobile-bottom{background:linear-gradient(145deg,rgba(62,98,134,.72),rgba(12,34,58,.9))!important;border:1px solid rgba(194,230,255,.34)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.38),inset 0 -1px 0 rgba(77,171,212,.16),0 8px 24px rgba(0,8,24,.3)!important;backdrop-filter:blur(14px) saturate(135%)!important;-webkit-backdrop-filter:blur(14px) saturate(135%)!important}
 .mobile-bottom button{transition:transform 100ms ease-out,background-color 120ms ease-out,color 120ms ease-out!important;filter:none!important;color:#c3d6e8!important;box-shadow:none!important}
 .mobile-bottom button.active{background:linear-gradient(145deg,rgba(116,217,255,.22),rgba(39,111,166,.2))!important;color:#fff!important;box-shadow:inset 0 1px 0 rgba(232,250,255,.32),inset 0 0 0 1px rgba(161,222,255,.16)!important}
 .mobile-bottom button:active{transform:scale(.94)!important;background-color:rgba(185,234,255,.2)!important;filter:none!important}
 .mobile-bottom #mobileAddMember{background:rgba(59,151,197,.18)!important;border-color:rgba(157,224,255,.25)!important}
 .mobile-bottom .mobile-focus-icon{box-shadow:none!important;background:transparent!important;border:0!important}
}
@media(prefers-reduced-motion:reduce){.mobile-bottom button{transition:none!important}.mobile-bottom button:active{transform:none!important}}
@media(prefers-reduced-transparency:reduce){.mobile-bottom{background:#142b45!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}

/* Hide scrollbars globally without altering overflow or input behavior. */
*{scrollbar-width:none!important;-ms-overflow-style:none}
*::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.views{scrollbar-gutter:auto}
#joinFromLogin270{display:block;width:100%;margin-top:20px!important;min-height:48px;white-space:normal;line-height:1.5}
#credentialLoginForm{margin-bottom:0;padding-bottom:4px}
#credentialLoginForm button[type=submit]{min-height:48px}
.release276{display:inline-block!important;font:500 11px/1.4 Inter,system-ui!important;color:#aabed1;margin-left:10px;letter-spacing:0!important}
.support-layout276{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}.support-layout276.admin276{grid-template-columns:minmax(220px,.65fr) minmax(0,1.35fr)}
.support-layout276>.dash-card,#supportGate276{padding:22px;min-width:0}
.support-whatsapp276{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;white-space:normal}
.support-messages276{max-height:52vh;min-height:160px;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:12px 2px;margin-bottom:18px}
.support-bubble276{max-width:88%;padding:14px;border-radius:18px;background:#15304b;border:1px solid #345b7a;align-self:flex-start;overflow-wrap:anywhere}
.support-bubble276.self276{align-self:flex-end;background:#16476a}.support-bubble276 p{white-space:pre-wrap;line-height:1.6;margin:6px 0 0}.support-bubble276 small{color:#b9d0e3}
#supportForm276{display:grid;gap:12px}#supportText276{width:100%;min-height:100px;padding:14px;background:#112840;color:#edf5ff;border:1px solid #557b98;border-radius:16px;resize:vertical}
#supportThreads276{display:grid;gap:10px}#supportThreads276 button{text-align:left;padding:14px;border-radius:14px;min-height:48px;color:#e8f6ff;background:#17344f;border:1px solid #466982}#supportThreads276 button.active{background:#19567f}
.empty276{padding:22px;text-align:center;border:1px solid var(--line);border-radius:18px;line-height:1.6}.empty276 p{margin:0 0 14px}.form-save276{font-size:12px;color:#b9d9ec;margin:8px 0;line-height:1.5}
@media(max-width:820px){.support-layout276.admin276{grid-template-columns:minmax(0,1fr)}.support-layout276>.dash-card{padding:18px}.support-bubble276{max-width:94%}.support-whatsapp276{width:100%}}
/* 2.7.7 — one month/year title, calm spacing and a consistent seven-day grid. */
[data-view-panel="agenda"] .interactive-calendar{
 padding:24px!important;border-radius:28px!important;border:1px solid rgba(184,224,251,.28)!important;align-self:start;min-width:0;
}
[data-view-panel="agenda"] .calendar-title{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;align-items:center;gap:12px!important;margin:0 0 24px!important;padding:0!important}
.calendar-title>div{min-width:0;text-align:center;display:flex;flex-direction:column;gap:7px}
#calendarTitle{font-size:clamp(20px,2.3vw,27px)!important;line-height:1.25!important;color:#f3faff!important;font-weight:800;letter-spacing:-.5px;text-transform:capitalize}
#calendarActivityCount{font-size:12px!important;line-height:1.5!important;color:#b5cbdf!important}
#calendarPrev,#calendarNext{width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;display:grid;place-items:center;border-radius:15px!important;border:1px solid #96c5e44d!important;background:linear-gradient(145deg,#42678877,#183c5c99)!important;box-shadow:inset 0 1px 0 #ffffff24;color:#eaf7ff!important;font-size:27px!important;line-height:1!important;transition:background-color .12s,transform .1s}
[data-view-panel="agenda"] .calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:7px!important}
[data-view-panel="agenda"] .calendar-grid.week{margin:0 0 12px!important;padding:0!important}
.calendar-grid.week span{font-size:12px!important;font-weight:600;color:#a6bed4!important;text-align:center}
[data-view-panel="agenda"] .calendar-day{min-width:0!important;min-height:42px!important;aspect-ratio:1;display:grid;place-items:center;border-radius:13px!important;font-size:14px!important;line-height:1!important;box-shadow:none!important;color:#d6e6f5;background:rgba(12,31,51,.34);border:1px solid transparent;transition:background-color .12s ease-out,transform .1s ease-out}
[data-view-panel="agenda"] .calendar-day.muted{color:#7892a9!important;background:transparent}
[data-view-panel="agenda"] .calendar-day.today{border-color:#a7dbf57a!important;color:white!important}
[data-view-panel="agenda"] .calendar-day.today:after{display:none}
[data-view-panel="agenda"] .calendar-day.event-day{background:linear-gradient(145deg,#1d5576,#133c5b)!important;border-color:#74d4fa55!important;color:#f2fbff!important;font-weight:700}
[data-view-panel="agenda"] .calendar-day.selected{background:linear-gradient(145deg,#167cb7,#14608c)!important;border-color:#b5eaffbb!important;color:white!important;box-shadow:inset 0 1px 0 #ffffff40!important}
.calendar-day.event-day i{width:4px!important;height:4px!important;bottom:5px!important;box-shadow:none!important}
.calendar-day.event-day em{font-size:8px!important;top:2px!important;right:2px!important;min-width:12px!important;height:12px!important}
[data-view-panel="agenda"] .calendar-legend{display:flex!important;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-top:22px!important;padding-top:16px!important;border-top:1px solid #c0e4ff1c;font-size:12px!important;line-height:1.5}
#calendarToday{min-height:40px;padding:8px 12px;border-radius:12px;border:1px solid #87b9d84a;background:#23496666;color:#d9f3ff;font-size:12px!important}
[data-view-panel="agenda"] .calendar-day-summary{padding:18px!important;margin-top:18px!important;border-radius:20px!important;border:1px solid #9ad7f744;background:linear-gradient(145deg,#1b3b57,#10273f)}
.calendar-summary-head{align-items:center;gap:12px;margin-bottom:14px}
.calendar-summary-head [data-close-calendar-summary]{width:40px;min-height:40px;flex-shrink:0}
.calendar-summary-item{display:grid!important;grid-template-columns:minmax(74px,auto) minmax(0,1fr)!important;gap:12px!important;align-items:start!important;padding:14px!important;border-radius:16px!important}
.calendar-summary-time{display:flex!important;align-items:center;justify-content:center;min-height:42px;width:auto!important;white-space:nowrap;font-size:13px!important;padding:10px!important;line-height:1.4!important}
.calendar-summary-copy{min-width:0}.calendar-summary-copy b{font-size:14px!important;line-height:1.5!important}.calendar-summary-copy p,.calendar-summary-copy small{font-size:12px!important;line-height:1.6!important;overflow-wrap:anywhere}
.calendar-summary-item>button{grid-column:1/-1;width:100%;min-height:44px;border-radius:13px!important;font-size:13px!important}
@media(max-width:820px){[data-view-panel="agenda"] .interactive-calendar{padding:20px!important;border-radius:24px!important}[data-view-panel="agenda"] .calendar-title{margin-bottom:20px!important}[data-view-panel="agenda"] .calendar-grid{gap:6px!important}}
@media(max-width:380px){[data-view-panel="agenda"] .interactive-calendar{padding:14px!important}[data-view-panel="agenda"] .calendar-grid{gap:4px!important}[data-view-panel="agenda"] .calendar-day{min-height:40px!important;font-size:13px!important}#calendarTitle{font-size:19px!important}.calendar-summary-item{grid-template-columns:minmax(0,1fr)!important}}
@media(prefers-reduced-motion:reduce){#calendarPrev,#calendarNext,.calendar-day{transition:none!important}}
