/* Phase 39 design layer (docs/PHASE39_CLARITY_CONTROL_AND_GUIDES_PROMPT.md): the role-shaped home,
   the Notification Center, the organized Academic Calendar, the attendance Register, workforce
   supervision, Identity & Access status and the student progress directory. Built only on the
   tokens in styles.css / reformation.css, so light and dark themes are both first-class. No inline
   styles anywhere (CSP) - every dynamic value is an SVG attribute. */

:root {
  --hm-navy-a: #031b2c;
  --hm-navy-b: #052b47;
  --hm-navy-c: #0d4a78;
  --hm-gold: #f0b429;
  --hm-gold-2: #ffd978;
}

/* ------------------------------------------------------------------ home */
.hm-host { display: block; }
.hm-root { display: grid; gap: 20px; }
.hm-skeleton { display: grid; gap: 16px; }
.hm-skeleton div { height: 120px; border-radius: 24px; background: linear-gradient(90deg, var(--rf-surface) 0%, var(--rf-surface-2) 50%, var(--rf-surface) 100%); background-size: 200% 100%; animation: hmShimmer 1.4s infinite linear; }
.hm-skeleton div:first-child { height: 230px; border-radius: 30px; }
@keyframes hmShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.hm-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .9fr); gap: 24px; overflow: hidden; padding: clamp(24px, 3.6vw, 44px); border-radius: 32px; color: #fff; isolation: isolate;
  background: radial-gradient(110% 130% at 100% 0%, rgba(240, 180, 41, .28), transparent 46%), radial-gradient(80% 120% at 0% 100%, rgba(200, 31, 44, .22), transparent 50%), linear-gradient(135deg, var(--hm-navy-a) 0%, var(--hm-navy-b) 48%, var(--hm-navy-c) 100%);
  box-shadow: 0 30px 70px rgba(5, 43, 71, .28); }
.hm-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .06) 45%, transparent 60%); background-size: 250% 100%; animation: hmSheen 9s ease-in-out infinite; }
@keyframes hmSheen { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
.hm-hero-copy { position: relative; z-index: 1; display: grid; align-content: center; gap: 12px; }
.hm-brand { display: flex; align-items: center; gap: 12px; }
.hm-brand img { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; box-shadow: 0 0 0 2px rgba(240, 180, 41, .7), 0 8px 20px rgba(0, 0, 0, .3); }
.hm-brand strong { display: block; font-size: 13px; letter-spacing: .02em; }
.hm-brand small { display: block; color: rgba(255, 255, 255, .66); font-size: 11px; }
.hm-hero h2 { margin: 8px 0 0; font-family: var(--heading-font); font-size: clamp(30px, 4.2vw, 52px); font-weight: 700; line-height: 1.02; letter-spacing: -.04em; }
.hm-hero h2 span { background: linear-gradient(90deg, #fff, var(--hm-gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-tagline { max-width: 560px; margin: 0; color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.55; }
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.hm-chip { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; color: #fff; background: rgba(255, 255, 255, .08); font-size: 12px; font-weight: 600; backdrop-filter: blur(6px); }
.hm-hero-aside { position: relative; display: grid; place-items: center; min-height: 210px; }
.hm-constellation { position: absolute; inset: -10%; width: 120%; height: 120%; opacity: .55; }
.hm-link { stroke: rgba(240, 180, 41, .45); stroke-width: .25; stroke-dasharray: 2 1.2; animation: hmFlow 6s linear infinite; }
.hm-node { fill: #fff; animation: hmTwinkle 3.6s ease-in-out infinite; }
.hm-delay-1 { animation-delay: .6s; } .hm-delay-2 { animation-delay: 1.2s; } .hm-delay-3 { animation-delay: 1.8s; } .hm-delay-4 { animation-delay: 2.4s; }
@keyframes hmFlow { to { stroke-dashoffset: -16; } }
@keyframes hmTwinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.hm-clock { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; padding: 22px 28px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 26px; background: rgba(3, 20, 34, .45); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.hm-clock-time { display: flex; align-items: baseline; gap: 4px; font-size: clamp(44px, 5.4vw, 64px); font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.hm-clock-sec { color: var(--hm-gold); font-size: .42em; font-weight: 700; }
.hm-clock small { color: rgba(255, 255, 255, .78); font-size: 12px; text-align: center; }
.hm-clock .hm-clock-zone { color: var(--hm-gold); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.hm-focus { display: grid; gap: 10px; }
.hm-focus-item { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border: 1px solid var(--rf-hairline-strong); border-radius: 22px; background: var(--rf-surface); box-shadow: var(--rf-shadow); }
.hm-focus.live .hm-focus-item { border-color: color-mix(in srgb, var(--rf-gold) 70%, transparent); background: linear-gradient(100deg, var(--rf-gold-soft), var(--rf-surface) 60%); box-shadow: 0 0 0 4px var(--rf-gold-soft), var(--rf-shadow); }
.hm-focus-item > div { flex: 1 1 auto; min-width: 0; }
.hm-focus-item h3 { margin: 0; font-size: clamp(17px, 1.7vw, 21px); letter-spacing: -.02em; }
.hm-focus-item p:not(.rf-eyebrow) { margin: 4px 0 0; color: var(--rf-text-2); font-size: 13px; }
.hm-focus-item b { color: var(--rf-red); font-variant-numeric: tabular-nums; }
.hm-focus-icon { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 16px; color: var(--rf-gold-ink); background: var(--rf-gold-soft); font-size: 20px; }
.hm-pulse { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; background: var(--rf-red); box-shadow: 0 0 0 0 rgba(200, 31, 44, .5); animation: hmPulse 1.6s infinite; }
@keyframes hmPulse { 0% { box-shadow: 0 0 0 0 rgba(200, 31, 44, .5); } 70% { box-shadow: 0 0 0 14px rgba(200, 31, 44, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 31, 44, 0); } }
.hm-cta { flex: 0 0 auto; padding: 12px 22px; border: 0; border-radius: 14px; color: #041421; background: linear-gradient(135deg, var(--hm-gold-2), var(--hm-gold)); font-size: 14px; font-weight: 800; box-shadow: 0 10px 24px rgba(240, 180, 41, .35); cursor: pointer; transition: transform .18s var(--rf-ease), box-shadow .18s var(--rf-ease); }
.hm-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(240, 180, 41, .45); }

.hm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.hm-grid > .span-2 { grid-column: span 2; }
.hm-grid > .span-3 { grid-column: 1 / -1; }
.hm-card { min-width: 0; padding: 20px 22px; border: 1px solid var(--rf-hairline); border-radius: 24px; background: var(--rf-surface); box-shadow: var(--rf-shadow); animation: hmRise .45s var(--rf-ease) both; }
.hm-card:nth-child(2) { animation-delay: .04s; } .hm-card:nth-child(3) { animation-delay: .08s; } .hm-card:nth-child(4) { animation-delay: .12s; } .hm-card:nth-child(5) { animation-delay: .16s; }
@keyframes hmRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hm-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hm-card-head h3 { margin: 0; font-family: var(--heading-font); font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.hm-empty { margin: 0; padding: 14px 16px; border: 1px dashed var(--rf-hairline-strong); border-radius: 14px; color: var(--rf-text-2); font-size: 13px; }
.hm-warning { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; color: var(--rf-amber); background: var(--rf-amber-soft); font-size: 13px; }
.hm-ring-row { display: flex; align-items: center; gap: 18px; }
.hm-ring { flex: 0 0 auto; }
.hm-ring-track { stroke: var(--rf-surface-2); }
.hm-ring-value { transition: stroke-dashoffset .8s var(--rf-ease); }
.hm-ring-gold .hm-ring-value { stroke: var(--rf-gold); }
.hm-ring-green .hm-ring-value { stroke: var(--rf-green); }
.hm-ring-red .hm-ring-value { stroke: var(--rf-red); }
.hm-ring-text { fill: var(--rf-text); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hm-ring-sub { fill: var(--rf-text-3); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hm-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 0; flex: 1 1 auto; }
.hm-facts div { min-width: 0; }
.hm-facts dt { color: var(--rf-text-3); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hm-facts dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hm-facts-inline { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rf-hairline); }
.hm-facts-inline dd { font-size: 16px; }
.hm-rows, .hm-feed, .hm-agenda, .hm-attention { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hm-rows li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rf-hairline); }
.hm-rows li:last-child { border-bottom: 0; }
.hm-rows li > div { min-width: 0; }
.hm-rows strong { display: block; font-size: 13px; }
.hm-rows small { color: var(--rf-text-2); font-size: 12px; }
.hm-badge { flex: 0 0 auto; min-width: 58px; padding: 5px 9px; border-radius: 10px; color: var(--rf-blue); background: var(--rf-blue-soft); font-size: 11px; font-weight: 800; text-align: center; }
.hm-badge.live { color: #fff; background: var(--rf-red); }
.hm-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; color: #052b47; background: var(--rf-gold-soft); font-size: 12px; font-weight: 800; }
.hm-feed-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 14px; color: var(--rf-text); background: transparent; text-align: left; cursor: pointer; }
.hm-feed-item:hover { background: var(--rf-surface-2); }
.hm-feed-item strong { display: block; font-size: 13px; }
.hm-feed-item small { color: var(--rf-text-3); font-size: 11px; }
.hm-feed li.unread strong::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--rf-red); vertical-align: middle; }
.hm-year { display: grid; gap: 6px; margin-bottom: 14px; }
.hm-year svg { width: 100%; height: 8px; }
.hm-year-track { fill: var(--rf-surface-2); }
.hm-year-value { fill: var(--rf-gold); }
.hm-fee-value { fill: var(--rf-green); }
.hm-year small { color: var(--rf-text-3); font-size: 11px; font-weight: 600; }
.hm-agenda li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.hm-agenda-date { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; color: var(--rf-text-2); background: var(--rf-surface-2); font-size: 10px; font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.hm-agenda-date b { color: var(--rf-text); font-size: 18px; }
.hm-agenda strong { display: block; font-size: 13px; }
.hm-agenda small { color: var(--rf-text-2); font-size: 12px; }
.hm-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.hm-course { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--rf-hairline); border-radius: 18px; color: var(--rf-text); background: linear-gradient(160deg, var(--rf-surface-2), var(--rf-surface)); text-align: left; cursor: pointer; transition: transform .18s var(--rf-ease), border-color .18s; }
.hm-course:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--rf-gold) 60%, transparent); }
.hm-course-no { color: var(--rf-gold-ink); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.hm-course strong { font-size: 13px; line-height: 1.3; }
.hm-course small { color: var(--rf-text-3); font-size: 11px; }
.hm-course-grade { justify-self: start; margin-top: 4px; padding: 3px 9px; border-radius: 999px; color: var(--rf-text-2); background: var(--rf-surface-2); font-size: 11px; font-weight: 700; }
.hm-course-grade.graded { color: var(--rf-green); background: var(--rf-green-soft); }
.hm-windows { display: grid; gap: 8px; flex: 1 1 auto; }
.hm-window { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--rf-hairline); border-radius: 14px; color: var(--rf-text); background: var(--rf-surface-2); text-align: left; cursor: pointer; }
.hm-window strong { display: block; font-size: 13px; }
.hm-window small { color: var(--rf-text-2); font-size: 12px; }
.hm-window-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--rf-text-3); }
.hm-window.live { border-color: color-mix(in srgb, var(--rf-gold) 60%, transparent); }
.hm-window.live .hm-window-dot { background: var(--rf-gold); animation: rfPulse 1.8s infinite; }
.hm-window.done .hm-window-dot { background: var(--rf-green); }
.hm-window.missed .hm-window-dot { background: var(--rf-red); }
.hm-table td, .hm-table th { padding: 10px 12px; }
.hm-pulse-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hm-pulse-tile { display: grid; gap: 8px; padding: 16px 18px; border: 1px solid var(--rf-hairline); border-radius: 20px; color: var(--rf-text); background: var(--rf-surface); box-shadow: var(--rf-shadow-sm); text-align: left; cursor: pointer; transition: transform .18s var(--rf-ease), box-shadow .18s; }
.hm-pulse-tile:hover { transform: translateY(-2px); box-shadow: var(--rf-shadow); }
.hm-pulse-tile span { color: var(--rf-text-3); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hm-pulse-tile strong { font-size: 26px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hm-attention li button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--rf-hairline); border-radius: 14px; color: var(--rf-text); background: var(--rf-surface); font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.hm-attention li button span:last-child { margin-left: auto; color: var(--rf-text-3); }
.hm-attention-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--rf-text-3); }
.hm-attention .tone-red .hm-attention-dot { background: var(--rf-red); }
.hm-attention .tone-amber .hm-attention-dot { background: var(--rf-amber); }
.hm-attention .tone-blue .hm-attention-dot { background: var(--rf-blue); }
.hm-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hm-pillars article { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--rf-hairline); border-radius: 20px; background: linear-gradient(160deg, var(--rf-surface), var(--rf-surface-2)); }
.hm-pillars article > span { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; color: #052b47; background: linear-gradient(135deg, var(--hm-gold-2), var(--hm-gold)); font-size: 17px; }
.hm-pillars strong { display: block; font-size: 14px; }
.hm-pillars small { color: var(--rf-text-2); font-size: 12px; line-height: 1.45; }
.legacy-overview { display: grid; gap: 18px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--rf-hairline); }
.legacy-overview .hero-card, .legacy-overview .rf-today { display: none !important; }
.legacy-overview-title { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--rf-text-2); font-size: 13px; font-weight: 600; }

/* ------------------------------------------------------------------ notification center */
.nc-bell-wrap { position: relative; }
.nc-bell { position: relative; }
.nc-bell.has-unread span:first-child { animation: ncRing 2.4s ease-in-out 1; }
@keyframes ncRing { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-12deg); } 50% { transform: rotate(0); } }
.nc-badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border: 2px solid var(--rf-surface-2); border-radius: 999px; color: #fff; background: var(--rf-red); font-size: 10px; font-weight: 800; line-height: 15px; text-align: center; }
.nc-drawer { position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; width: min(380px, calc(100vw - 24px)); overflow: hidden; border: 1px solid var(--rf-hairline-strong); border-radius: 22px; color: var(--rf-text); background: var(--rf-elevated); box-shadow: var(--rf-shadow-lg); animation: ncDrop .22s var(--rf-ease); }
@keyframes ncDrop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.nc-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 10px; }
.nc-drawer-head strong { font-size: 16px; }
.nc-drawer-list { display: grid; gap: 2px; max-height: 380px; overflow-y: auto; padding: 0 8px; }
.nc-drawer-empty { padding: 14px 10px; }
.nc-drawer-foot { padding: 12px 16px 16px; }
.nc-drawer-foot .rf-button { width: 100%; }
.nc-mini { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 14px; color: var(--rf-text); background: transparent; text-align: left; cursor: pointer; }
.nc-mini:hover { background: var(--rf-surface-2); }
.nc-mini-text { flex: 1 1 auto; min-width: 0; }
.nc-mini-text strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.nc-mini-text small { color: var(--rf-text-3); font-size: 11px; }
.nc-mini.unread strong { font-weight: 800; }
.nc-icon { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px; font-size: 15px; font-weight: 800; }
.nc-green { color: var(--rf-green); background: var(--rf-green-soft); }
.nc-blue { color: var(--rf-blue); background: var(--rf-blue-soft); }
.nc-gold { color: var(--rf-gold-ink); background: var(--rf-gold-soft); }
.nc-amber { color: var(--rf-amber); background: var(--rf-amber-soft); }
.nc-red { color: var(--rf-red); background: var(--rf-red-soft); }
.nc-navy { color: var(--navy-icon); background: var(--navy-100); }
.nc-muted { color: var(--rf-text-2); background: var(--rf-surface-2); }
.nc-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--rf-red); box-shadow: 0 0 0 3px var(--rf-red-soft); }
.nc-host { display: grid; gap: 16px; margin-bottom: 18px; }
#resourcePanel.is-notifications .table-card, #resourcePanel.is-notifications .toolbar-actions, #resourcePanel.is-notifications #resourceGuidance, #resourcePanel.is-notifications #calendarHub, #resourcePanel.is-notifications #documentsBoard { display: none !important; }
.nc-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(22px, 3vw, 34px); border-radius: 28px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(240, 180, 41, .26), transparent 44%), linear-gradient(135deg, var(--hm-navy-a), var(--hm-navy-b) 55%, var(--hm-navy-c)); box-shadow: 0 20px 50px rgba(5, 43, 71, .2); }
.nc-hero .rf-eyebrow { color: var(--hm-gold); }
.nc-hero h2 { margin: 0; font-family: var(--heading-font); font-size: clamp(26px, 3vw, 38px); letter-spacing: -.035em; }
.nc-hero p:not(.rf-eyebrow) { margin: 8px 0 0; color: rgba(255, 255, 255, .74); font-size: 14px; }
.nc-hero-bell { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 28px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: 40px; }
.nc-hero-bell span { position: absolute; top: -8px; right: -8px; min-width: 30px; padding: 4px 8px; border-radius: 999px; color: #fff; background: var(--rf-red); font-size: 13px; font-weight: 800; }
.nc-toolbar { display: grid; gap: 14px; padding: 16px 18px; }
.nc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.nc-ranges { display: flex; flex-wrap: wrap; gap: 6px; }
.nc-range { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--rf-hairline-strong); border-radius: 999px; color: var(--rf-text-2); background: var(--rf-surface); font-size: 13px; font-weight: 700; cursor: pointer; }
.nc-range span { padding: 1px 7px; border-radius: 999px; color: var(--rf-text-3); background: var(--rf-surface-2); font-size: 11px; }
.nc-range.active { border-color: transparent; color: #fff; background: #052b47; }
.nc-range.active span { color: #052b47; background: var(--hm-gold); }
:root[data-theme="dark"] .nc-range.active { color: #041421; background: var(--hm-gold); }
:root[data-theme="dark"] .nc-range.active span { color: var(--hm-gold); background: #041421; }
.nc-date input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.nc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nc-search { display: flex; align-items: center; gap: 8px; min-width: 220px; padding: 0 12px; border: 1px solid var(--rf-hairline-strong); border-radius: 12px; background: var(--rf-surface); }
.nc-search input { width: 100%; min-height: 38px; border: 0; outline: none; color: var(--rf-text); background: transparent; font: inherit; font-size: 13px; }
.nc-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; color: var(--rf-text-2); font-size: 13px; font-weight: 700; cursor: pointer; }
.nc-switch input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
.nc-switch span { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--rf-hairline-strong); transition: background .2s; }
.nc-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--rf-shadow-sm); transition: transform .2s var(--rf-ease); }
.nc-switch input:checked + span { background: var(--rf-green); }
.nc-switch input:checked + span::after { transform: translateX(16px); }
.nc-switch input:focus-visible + span { outline: 3px solid rgba(240, 180, 41, .6); }
.nc-scope { margin: 0; }
.nc-categories { display: flex; flex-wrap: wrap; gap: 8px; }
.nc-cat { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--rf-hairline); border-radius: 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.nc-cat b { padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .55); font-size: 11px; }
:root[data-theme="dark"] .nc-cat b { background: rgba(0, 0, 0, .25); }
.nc-cat.active { border-color: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.nc-feed { display: grid; gap: 18px; }
.nc-summary { margin: 0; color: var(--rf-text-2); font-size: 13px; }
.nc-day { display: grid; gap: 8px; }
.nc-day-head { position: sticky; top: 86px; z-index: 5; display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 4px; color: var(--rf-text); background: color-mix(in srgb, var(--rf-surface-2) 90%, transparent); backdrop-filter: blur(8px); font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.nc-day-head small { padding: 2px 9px; border-radius: 999px; color: var(--rf-text-3); background: var(--rf-surface); font-size: 11px; }
.nc-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1px solid var(--rf-hairline); border-radius: 20px; background: var(--rf-surface); box-shadow: var(--rf-shadow-sm); transition: box-shadow .18s, transform .18s var(--rf-ease); }
.nc-item:hover { transform: translateY(-1px); box-shadow: var(--rf-shadow); }
.nc-item.unread { border-left: 4px solid var(--rf-gold); }
.nc-main { flex: 1 1 auto; min-width: 0; }
.nc-title-row { display: flex; align-items: center; gap: 8px; }
.nc-title-row strong { font-size: 14px; letter-spacing: -.01em; }
.nc-main p { margin: 4px 0 0; color: var(--rf-text-2); font-size: 13px; line-height: 1.5; }
.nc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; color: var(--rf-text-3); font-size: 11px; font-weight: 600; }
.nc-tag { padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.nc-to { padding: 2px 8px; border-radius: 999px; color: var(--rf-text-2); background: var(--rf-surface-2); }
.nc-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.nc-open { min-height: 32px; padding: 6px 12px; font-size: 12px; }
.nc-empty { border: 1px dashed var(--rf-hairline-strong); border-radius: 22px; background: var(--rf-surface); }

/* ------------------------------------------------------------------ academic calendar */
.cv-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, .8fr); gap: 22px; padding: clamp(22px, 3.2vw, 38px); border-radius: 30px; color: #fff; background: radial-gradient(110% 130% at 100% 0%, rgba(240, 180, 41, .25), transparent 44%), linear-gradient(135deg, var(--hm-navy-a), var(--hm-navy-b) 55%, var(--hm-navy-c)); box-shadow: 0 24px 60px rgba(5, 43, 71, .22); }
.cv-hero .rf-eyebrow { color: var(--hm-gold); }
.cv-hero h2 { margin: 0; font-family: var(--heading-font); font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; line-height: 1.04; }
.cv-hero-copy > p:not(.rf-eyebrow) { margin: 10px 0 0; color: rgba(255, 255, 255, .76); font-size: 14px; }
.cv-progress { margin-top: 22px; }
.cv-progress svg { width: 100%; height: 10px; }
.cv-progress-track { fill: rgba(255, 255, 255, .14); }
.cv-progress-value { fill: var(--hm-gold); }
.cv-progress-labels { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: rgba(255, 255, 255, .7); font-size: 12px; }
.cv-progress-labels strong { color: #fff; }
.cv-countdown { display: grid; align-content: center; justify-items: center; gap: 2px; padding: 20px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 24px; background: rgba(3, 20, 34, .4); text-align: center; backdrop-filter: blur(10px); }
.cv-count { font-size: clamp(48px, 6vw, 72px); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--hm-gold); font-variant-numeric: tabular-nums; }
.cv-countdown span { color: rgba(255, 255, 255, .7); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.cv-countdown h3 { margin: 6px 0 0; font-size: 17px; letter-spacing: -.02em; }
.cv-countdown small { color: rgba(255, 255, 255, .7); font-size: 12px; }
.cv-next-holiday { margin: 12px 0 0; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12px; }
.cv-toolbar { display: grid; gap: 14px; padding: 16px 18px; }
.cv-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cv-search { margin-left: auto; }
.cv-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-body-host { display: grid; gap: 18px; }
.cv-month { padding: 18px 20px; border: 1px solid var(--rf-hairline); border-radius: 24px; background: var(--rf-surface); box-shadow: var(--rf-shadow-sm); }
.cv-month.current { border-color: color-mix(in srgb, var(--rf-gold) 55%, transparent); box-shadow: 0 0 0 4px var(--rf-gold-soft), var(--rf-shadow-sm); }
.cv-month-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cv-month-head h3 { margin: 0; font-family: var(--heading-font); font-size: 20px; letter-spacing: -.02em; }
.cv-month-head small { margin-left: auto; color: var(--rf-text-3); font-size: 12px; }
.cv-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cv-entry { display: flex; gap: 14px; padding: 12px; border: 1px solid var(--rf-hairline); border-radius: 18px; background: var(--rf-surface-2); }
.cv-entry.past { opacity: .62; }
.cv-entry.current { border-color: color-mix(in srgb, var(--rf-gold) 60%, transparent); background: linear-gradient(100deg, var(--rf-gold-soft), var(--rf-surface-2) 70%); }
.cv-entry.special { border-left: 4px solid var(--rf-red); }
.cv-entry.cv-kind-holiday { border-left: 4px solid var(--rf-green); }
.cv-date { display: grid; place-items: center; flex: 0 0 auto; width: 58px; height: 62px; border-radius: 16px; background: var(--rf-surface); box-shadow: var(--rf-shadow-sm); }
.cv-date span { font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.cv-date small { color: var(--rf-text-3); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.cv-body { flex: 1 1 auto; min-width: 0; }
.cv-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cv-title strong { font-size: 15px; letter-spacing: -.01em; }
.cv-kind { padding: 2px 8px; border-radius: 999px; color: var(--rf-text-2); background: var(--rf-surface); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.cv-range { margin: 4px 0 0; color: var(--rf-text-2); font-size: 12px; font-weight: 600; }
.cv-desc { margin: 6px 0 0; color: var(--rf-text-2); font-size: 13px; line-height: 1.5; }
.cv-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.cv-actions { display: inline-flex; gap: 4px; margin-left: auto; }
.cv-weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cv-week { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--rf-hairline); border-radius: 18px; background: var(--rf-surface); }
.cv-week.past { opacity: .58; }
.cv-week.current { border-color: var(--rf-gold); box-shadow: 0 0 0 4px var(--rf-gold-soft); }
.cv-week.special { background: linear-gradient(160deg, var(--rf-red-soft), var(--rf-surface) 70%); }
.cv-week-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cv-week-no { font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: var(--rf-gold-ink); }
.cv-week strong { font-size: 13px; }
.cv-week p { margin: 0; color: var(--rf-text-2); font-size: 12px; line-height: 1.45; }
.cv-holidays { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.cv-holiday { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--rf-hairline); border-radius: 20px; background: var(--rf-surface); }
.cv-holiday.past { opacity: .6; }
.cv-holiday-date { display: grid; place-items: center; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 18px; color: var(--rf-green); background: var(--rf-green-soft); }
.cv-holiday-date span { font-size: 26px; font-weight: 800; line-height: 1; }
.cv-holiday-date small { font-size: 10px; font-weight: 700; text-transform: uppercase; }
.cv-holiday strong { font-size: 14px; }
.cv-holiday p { margin: 4px 0 8px; color: var(--rf-text-2); font-size: 12px; }
.cv-stepper { display: grid; gap: 0; margin: 0; padding: 8px 0 8px 10px; list-style: none; }
.cv-step { position: relative; display: flex; gap: 18px; padding: 0 0 22px 18px; border-left: 2px solid var(--rf-hairline-strong); }
.cv-step:last-child { border-left-color: transparent; }
.cv-step-dot { position: absolute; left: -9px; top: 2px; width: 16px; height: 16px; border: 3px solid var(--rf-surface); border-radius: 50%; background: var(--rf-text-3); box-shadow: 0 0 0 2px var(--rf-hairline-strong); }
.cv-step.past .cv-step-dot { background: var(--rf-green); }
.cv-step.current .cv-step-dot { background: var(--rf-gold); box-shadow: 0 0 0 5px var(--rf-gold-soft); }
.cv-step.special .cv-step-dot { background: var(--rf-red); }
.cv-step strong { display: block; font-size: 15px; }
.cv-step p:not(.rf-eyebrow) { margin: 4px 0 0; color: var(--rf-text-2); font-size: 13px; }

/* ------------------------------------------------------------------ attendance register */
.rg-toolbar { display: grid; gap: 12px; padding: 16px 18px; }
.rg-daynav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rg-day { margin-left: 8px; }
.rg-day strong { display: block; font-size: 17px; letter-spacing: -.02em; }
.rg-day small { color: var(--rf-text-3); font-size: 12px; }
.rg-filters { padding: 0; }
.rg-courses { gap: 6px; }
.rg-chip { padding: 7px 13px; border: 1px solid var(--rf-hairline-strong); border-radius: 999px; color: var(--rf-text-2); background: var(--rf-surface); font-size: 12px; font-weight: 700; cursor: pointer; }
.rg-chip.active { border-color: transparent; color: #fff; background: #052b47; }
:root[data-theme="dark"] .rg-chip.active { color: #041421; background: var(--hm-gold); }
.rf-tile.rg-alert { border-color: color-mix(in srgb, var(--rf-red) 45%, transparent); background: var(--rf-red-soft); }
.rf-tile.rg-alert strong { color: var(--rf-red); }
.rg-day-block { display: grid; gap: 12px; }
.rg-day-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 6px 4px; }
.rg-day-head h3 { margin: 0; font-family: var(--heading-font); font-size: 20px; letter-spacing: -.02em; }
.rg-course { padding: 16px 18px; border: 1px solid var(--rf-hairline); border-radius: 22px; background: var(--rf-surface); box-shadow: var(--rf-shadow-sm); }
.rg-course-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rg-course-head strong { font-size: 15px; }
.rg-session { margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: var(--rf-surface-2); }
.rg-session.proxy { box-shadow: inset 4px 0 0 var(--rf-red); }
.rg-session-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.rg-session-head strong { display: block; font-size: 14px; }
.rg-session-head small { color: var(--rf-text-2); font-size: 12px; }
.rg-timeline { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rg-row { display: grid; grid-template-columns: 44px 76px minmax(0, 1.4fr) minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--rf-surface); font-size: 13px; }
.rg-row.rg-absent { opacity: .78; }
.rg-seq { color: var(--rf-gold-ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.rg-time { color: var(--rf-text-2); }
.rg-who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-who small { color: var(--rf-text-3); }
.rg-method { color: var(--rf-text-2); font-size: 12px; }
.rg-headcount { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 16px; padding: 14px; border: 1px dashed var(--rf-hairline-strong); border-radius: 16px; }
.rg-headcount > div:first-child { grid-column: 1 / -1; }
.rg-headcount > div:first-child small { display: block; }
.rg-headcount .rf-input { width: 100%; }
.rg-reconcile { grid-column: 1 / -1; }
.rg-rule { margin: 0 0 4px; }
.rg-mini-filters { display: flex; gap: 6px; }
.rg-hist-day { display: grid; gap: 2px; margin-bottom: 8px; }
.rg-hist-head { margin: 8px 0 2px; color: var(--rf-text-3); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* ------------------------------------------------------------------ supervision & downloads */
.sv-numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.sv-number { display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: linear-gradient(160deg, var(--rf-gold-soft), var(--rf-surface)); border: 1px solid var(--rf-hairline); }
.sv-number strong { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.sv-number span { color: var(--rf-text-2); font-size: 12px; font-weight: 600; text-transform: capitalize; }
.dl-card { display: grid; gap: 16px; }
.dl-head { display: flex; gap: 16px; align-items: flex-start; }
.dl-head h3 { margin: 0; font-family: var(--heading-font); font-size: 20px; letter-spacing: -.02em; }
.dl-icon { display: grid; place-items: center; flex: 0 0 auto; width: 52px; height: 52px; border-radius: 16px; color: #041421; background: linear-gradient(135deg, var(--hm-gold-2), var(--hm-gold)); font-size: 22px; font-weight: 800; }
.dl-filters { padding: 0; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-actions .rf-button { min-height: 46px; padding: 12px 22px; font-size: 14px; }

/* ------------------------------------------------------------------ identity & access */
.acc-status-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.acc-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--rf-hairline-strong); border-radius: 999px; color: var(--rf-text-2); background: var(--rf-surface); font-size: 13px; font-weight: 700; cursor: pointer; }
.acc-chip b { padding: 1px 8px; border-radius: 999px; background: var(--rf-surface-2); font-size: 11px; }
.acc-chip.active { border-color: transparent; color: #fff; background: #052b47; }
.acc-chip.active b { color: #052b47; background: var(--hm-gold); }
.acc-chip.alert b { color: #fff; background: var(--rf-red); }
.status-pill.acc-suspended { color: #fff; background: var(--rf-red); }
.acc-suspended-row td { background: color-mix(in srgb, var(--rf-red-soft) 55%, transparent); }
.acc-suspension-note { display: block; margin-top: 4px; color: var(--rf-red) !important; font-weight: 600; }
.mini-button.acc-suspend { font-weight: 800; }
.mini-button.acc-reinstate { color: var(--rf-green); border-color: color-mix(in srgb, var(--rf-green) 40%, transparent); font-weight: 800; }

/* ------------------------------------------------------------------ student progress directory */
.sp-directory { margin-bottom: 18px; }
.sp-search { min-width: 240px; }
.sp-support { color: var(--rf-red); }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; max-height: 520px; overflow-y: auto; padding: 2px; }
.sp-student { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--rf-hairline); border-radius: 18px; color: var(--rf-text); background: var(--rf-surface); text-align: left; cursor: pointer; transition: transform .16s var(--rf-ease), box-shadow .16s; }
.sp-student:hover { transform: translateY(-1px); box-shadow: var(--rf-shadow); }
.sp-student.support { border-left: 4px solid var(--rf-red); }
.sp-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; color: #052b47; background: var(--rf-gold-soft); font-size: 13px; font-weight: 800; }
.sp-text { flex: 1 1 auto; min-width: 0; }
.sp-text strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.sp-text small, .sp-stats small { color: var(--rf-text-3); font-size: 11px; }
.sp-stats { display: grid; justify-items: end; }
.sp-stats b { font-size: 16px; }
.sp-attendance { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 10px 0 14px; }
.sp-att { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--rf-surface-2); }
.sp-att span { font-size: 20px; font-weight: 800; }
.sp-att small { color: var(--rf-text-3); font-size: 11px; }

/* ------------------------------------------------------------------ sign-in help */
.login-help { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; color: var(--muted); background: color-mix(in srgb, var(--gold) 10%, transparent); font-size: 12px; line-height: 1.5; }
.login-help strong { color: var(--ink); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .hm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hm-hero, .cv-hero { grid-template-columns: 1fr; }
  .hm-hero-aside { min-height: 150px; }
  .hm-grid { grid-template-columns: 1fr; }
  .hm-grid > .span-2 { grid-column: auto; }
  .hm-focus-item { flex-wrap: wrap; }
  .hm-cta { width: 100%; }
  .hm-pillars { grid-template-columns: 1fr; }
  .hm-facts-inline { grid-template-columns: 1fr 1fr; }
  .nc-item { flex-wrap: wrap; }
  .nc-actions { flex-direction: row; width: 100%; justify-content: flex-end; }
  .nc-search { min-width: 0; flex: 1 1 100%; }
  .nc-day-head { top: 64px; }
  .cv-search { margin-left: 0; flex: 1 1 100%; }
  .rg-row { grid-template-columns: 40px 70px minmax(0, 1fr); }
  .rg-row .rg-method, .rg-row .rf-chip { grid-column: 3; justify-self: start; }
  .rg-headcount { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-hero::after, .hm-link, .hm-node, .hm-pulse, .hm-card, .nc-bell.has-unread span:first-child, .nc-drawer, .hm-skeleton div { animation: none !important; }
}

/* Identity & Access actions wrap into tidy pills instead of squeezing their labels. */
#accessPanel .row-actions { display: flex; flex-wrap: wrap; gap: 6px; max-width: 460px; }
#accessPanel .row-actions .mini-button { white-space: nowrap; }
#accessPanel td { vertical-align: top; }
:root[data-theme="dark"] .sp-avatar, :root[data-theme="dark"] .hm-avatar { color: var(--rf-gold-ink); }
.rf-dialog textarea.rf-input { font-family: inherit; }
