/* Shared loading presentation. Existing controllers retain ownership of visibility and requests. */
:root{--chlc-sk-base:#e7ebf2;--chlc-sk-shine:#f6f8fc}
.chlc-skeleton-host{box-sizing:border-box!important;border:0!important;background:transparent!important;color:transparent!important;font-style:normal!important;text-align:left!important;animation:none!important;transform:none!important;max-width:100%;vertical-align:middle}
.chlc-skeleton-host::before,.chlc-skeleton-host::after{content:none!important}
.chlc-skeleton-host>*:not(.chlc-skeleton){display:none!important}
.chlc-skeleton-host:not([data-skeleton-kind="action"]){width:100%!important;height:auto!important;min-width:0!important;max-width:100%!important;margin-left:auto;margin-right:auto}
.chlc-skeleton-host[data-skeleton-kind="action"]{width:26px!important;height:10px!important;min-width:26px!important;margin-right:6px;line-height:0!important}
.chlc-skeleton-host[data-skeleton-kind="metric"]{max-width:150px!important}
.chlc-skeleton-host[data-skeleton-kind="block"]{height:100%!important;margin:0!important;line-height:0!important}
.chlc-skeleton-text{font-size:0!important;line-height:0!important}
.chlc-skeleton{display:block;width:100%;box-sizing:border-box;padding:12px 6px;line-height:normal;font-family:system-ui,sans-serif;pointer-events:none}
.chlc-skeleton-bar{display:block;position:relative;overflow:hidden;background:var(--chlc-sk-base);height:12px;border-radius:5px;isolation:isolate}
.chlc-skeleton-bar::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 15%,var(--chlc-sk-shine) 50%,transparent 85%);transform:translateX(-100%);animation:chlc-skeleton-shimmer 1.7s ease-in-out infinite}
.chlc-skeleton-row{display:flex;align-items:center;gap:12px;min-height:60px;padding:10px 6px;border-bottom:1px solid #eef1f6}
.chlc-skeleton-row:last-child{border-bottom:0}
.chlc-skeleton-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:9px}
.chlc-skeleton-avatar{flex:0 0 36px;height:36px;border-radius:50%}
.chlc-skeleton-time{width:52px;height:9px;flex-shrink:0;align-self:flex-start;margin-top:3px}
.chlc-skeleton-table .chlc-skeleton-row>.chlc-skeleton-bar{flex:1}
.chlc-skeleton-table .chlc-skeleton-row>.chlc-skeleton-bar:last-child{max-width:64px}
.chlc-skeleton-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.chlc-skeleton-card{display:flex;flex-direction:column;gap:12px;padding:18px;border:1px solid #edf0f5;background:#fff;border-radius:12px}
.chlc-skeleton-page>.chlc-skeleton-table{margin-top:16px}
.chlc-skeleton-form{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:18px 6px}
.chlc-skeleton-form .chlc-skeleton-copy{gap:10px}
.chlc-skeleton-action{padding:0;display:inline-block;vertical-align:middle}
.chlc-skeleton-action>.chlc-skeleton-bar{height:9px;width:100%}
.chlc-skeleton.chlc-skeleton-block{height:100%;padding:0}
.chlc-skeleton-block>.chlc-skeleton-bar{height:100%}
.chlc-skeleton-metric .chlc-skeleton-bar:first-child{height:24px;width:68%;margin-bottom:9px}
.chlc-skeleton-metric .chlc-skeleton-bar:last-child{height:9px;width:90%}
@keyframes chlc-skeleton-shimmer{to{transform:translateX(100%)}}
@media(max-width:600px){.chlc-skeleton{padding:10px 2px}.chlc-skeleton-cards{grid-template-columns:1fr;gap:10px}.chlc-skeleton-card{padding:14px}.chlc-skeleton-page>.chlc-skeleton-cards{grid-template-columns:1fr 1fr}.chlc-skeleton-page>.chlc-skeleton-cards .chlc-skeleton-card:last-child{display:none}.chlc-skeleton-row{gap:9px}.chlc-skeleton-form{gap:14px}}
@media(prefers-reduced-motion:reduce){.chlc-skeleton-bar::after{animation:none;transform:none;opacity:.35}}

@media(prefers-reduced-motion:reduce){.loading-skeleton{animation:none!important}}

/* Render fixed page chrome immediately; only explicitly marked data regions shimmer. */
[data-skeleton-shell] { display: block !important; }
[data-skeleton-source] { display: none !important; }
.chlc-data-busy > :not([data-skeleton-placeholder]) { display: none !important; }
[data-skeleton-placeholder] { display: block; width: 100%; grid-column: 1 / -1; flex: 0 0 100%; }
tbody > tr[data-skeleton-placeholder] { display: table-row; }
tr[data-skeleton-placeholder] > td { padding: 8px; border: 0; }
.chlc-skeleton-inline { display: inline-block; width: 22px; height: 9px; padding: 0; vertical-align: middle; }
.chlc-skeleton-inline > .chlc-skeleton-bar { width: 100%; height: 100%; }
[data-skeleton-region="inline"].chlc-data-busy { min-width: 22px; }
[data-skeleton-region="inline"] > [data-skeleton-placeholder] { display: inline-block; width: 22px; font-size: 0; }
.chlc-skeleton-chart { height: 100%; min-height: 160px; padding: 0; }
.chlc-skeleton-chart > .chlc-skeleton-bar { height: 100%; min-height: 160px; }
[data-skeleton-region="chart"] > [data-skeleton-placeholder] { height: 100%; }

[data-skeleton-region="inline"].chlc-data-busy { font-size: 0 !important; }

[data-skeleton-region="metric"].chlc-data-busy { font-size: 0 !important; }

/* Match the actual stacked student and session cards instead of using statistic tiles. */
.chlc-skeleton-students, .chlc-skeleton-sessions { display: grid; gap: 12px; padding: 0; }
.chlc-skeleton-student { display: flex; align-items: center; gap: 12px; min-height: 88px; padding: 16px; border: 1px solid #edf0f5; border-radius: 14px; background: #fff; }
.chlc-skeleton-student .chlc-skeleton-avatar { width: 48px; height: 48px; flex: 0 0 48px; }
.chlc-skeleton-student .chlc-skeleton-copy { gap: 10px; }
.chlc-skeleton-status { width: 46px; height: 18px; border-radius: 12px; flex-shrink: 0; }
.chlc-skeleton-session { display: flex; align-items: stretch; min-height: 126px; border: 1px solid #e4e8f0; border-radius: 14px; background: #fff; overflow: hidden; }
.chlc-skeleton-session-time { display: flex; flex: 0 0 86px; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border-right: 1px solid #e7eaf1; }
.chlc-skeleton-session > .chlc-skeleton-copy { justify-content: center; padding: 20px; gap: 12px; }
@media(max-width:600px) {
 .chlc-skeleton-student { min-height: 82px; padding: 14px; gap: 10px; }
 .chlc-skeleton-session-time { flex-basis: 72px; }
 .chlc-skeleton-session > .chlc-skeleton-copy { padding: 16px; }
}

.chlc-data-visible { display: block !important; }
.chlc-skeleton-table-layout .chlc-skeleton-row { display: grid; grid-template-columns: var(--skeleton-columns); gap: 0; }
.chlc-skeleton-table-layout .chlc-skeleton-row > .chlc-skeleton-bar { margin: 0 10px; min-width: 0; }
/* Keep only the legacy content gated during the local initial layout pass; the header remains visible. */
@media (max-width:1024px),(max-width:1366px) and (pointer:coarse){html[data-portal-layout="pending"] :is([data-mobile-portal],[data-students-portal],[data-schedules-portal]):not(.chlc-layout-ready) #content > .container-fluid{visibility:hidden}}
