/* Nexora IMS student app (app.aspx): login-only page + an app-style shell for a mobile WebView.
   Loaded after admin.css, student.css and student2.css, and only affects body.app. */

html { -webkit-text-size-adjust: 100%; }
body.app { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; -webkit-touch-callout: none; background: var(--bg); }
body.app a, body.app button, body.app label { touch-action: manipulation; }
body.app input, body.app select, body.app textarea { font-size: 16px; }   /* keeps iOS from zooming into fields */
body.app .btn { min-height: 44px; }
body.app img { -webkit-user-drag: none; }
/* ------------------------------------------------------------------ login
   Top: a hero that takes whatever height is left and centres the centre's logo, name and tagline in it.
   Bottom: a white sheet with the welcome line, the form and the footer, sized by its content, so there is
   never an empty gap. Short phones drop the extras (feature chips, intro line, note, rings) first. */
.app-gate { position: fixed; inset: 0; z-index: 100; display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #071A4A; }
.app-gate[hidden] { display: none; }
.ag-wrap { width: 100%; max-width: 480px; min-height: 100%; margin: 0 auto; display: flex; flex-direction: column; background: var(--grad-navy); }
@supports (height: 100dvh) { .app-gate { height: 100dvh; bottom: auto; } }

.ag-hero { position: relative; flex: 1 1 auto; min-height: 176px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: calc(env(safe-area-inset-top, 0px) + 46px) 24px 50px; color: #fff; }
.ag-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 300px at 50% 38%, rgba(59,134,234,.5), transparent 66%), radial-gradient(360px 280px at 100% 100%, rgba(247,147,30,.34), transparent 64%), radial-gradient(300px 220px at 0% 0%, rgba(124,92,252,.28), transparent 62%); }
.ag-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.6px); background-size: 16px 16px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 78%); mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 78%); }
.ag-orb { position: absolute; border-radius: 50%; pointer-events: none; z-index: 1; }
.ag-orb.o1 { width: 170px; height: 170px; right: -58px; top: -64px; background: radial-gradient(circle at 30% 30%, rgba(255,181,71,.6), rgba(255,106,0,.08) 70%); }
.ag-orb.o2 { width: 92px; height: 92px; left: 18px; bottom: 56px; border: 1.5px dashed rgba(255,255,255,.26); animation: agSpin 28s linear infinite; }
.ag-orb.o2::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 14px 3px rgba(247,147,30,.7); }
@keyframes agIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes agSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ag-orb.o2 { animation: none; } }

.ag-app { position: absolute; z-index: 3; left: 18px; top: calc(env(safe-area-inset-top, 0px) + 14px); padding: 5px 12px; border-radius: 20px; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); }

/* the logo tile with two soft rings behind it */
.ag-brand, .ag-org { --lg: 84px; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0; margin: 0; padding: 0; background: none; border: 0; backdrop-filter: none; max-width: 100%; }
.ag-brand::before, .ag-org::before { content: ""; position: absolute; left: 50%; top: calc(var(--lg) / 2); width: calc(var(--lg) + 34px); height: calc(var(--lg) + 34px); transform: translate(-50%, -50%); border-radius: 34%; border: 1.5px solid rgba(255,255,255,.2); pointer-events: none; }
.ag-brand::after, .ag-org::after { content: ""; position: absolute; left: 50%; top: calc(var(--lg) / 2); width: calc(var(--lg) + 66px); height: calc(var(--lg) + 66px); transform: translate(-50%, -50%); border-radius: 36%; border: 1px solid rgba(255,255,255,.1); pointer-events: none; }
.ag-chip { width: var(--lg); height: var(--lg); border-radius: 26%; background: #fff; display: grid; place-items: center; box-shadow: 0 16px 38px rgba(0,0,0,.35), 0 0 0 5px rgba(255,255,255,.12); }
.ag-chip img { width: 58%; height: 58%; }
.ag-brand b { margin-top: 22px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.ag-brand b em { font-style: normal; color: var(--orange-500); }
.ag-tag { display: none; }
.ag-brand small { display: block; margin-top: 5px; font-size: 13px; color: #FFD9A8; opacity: .85; }
.ag-org .org-mono { --s: var(--lg) !important; padding: 8px; border-radius: 26%; box-shadow: 0 16px 38px rgba(0,0,0,.35), 0 0 0 5px rgba(255,255,255,.14); }
.ag-org .org-mono:not(.has-logo) { padding: 0; font-size: 30px; }
.ag-org > span:last-child { margin-top: 22px; max-width: 320px; }
.ag-org b { display: block; font-size: 21px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.ag-org small { display: block; margin-top: 5px; font-size: 13px; line-height: 1.35; opacity: .82; color: #FFD9A8; }
.ag-chips { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
.ag-chips span { padding: 4px 11px 4px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 700; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); display: inline-flex; align-items: center; gap: 6px; }
.ag-chips span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange-500); }

.ag-sheet { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; margin-top: -30px; padding: 0 22px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; border-radius: 30px 30px 0 0; box-shadow: 0 -16px 46px rgba(2,10,40,.3); animation: agIn .45s ease both; }
.ag-sheet::before { content: ""; display: block; flex: none; width: 42px; height: 4px; margin: 9px auto 0; border-radius: 4px; background: var(--line); }
.ag-sheet h1 { margin: 14px 0 0; font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: var(--navy-800); }
.ag-sheet h1 em { font-style: normal; background: linear-gradient(90deg, #FFA02E, #FF6A1A); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.ag-sub { margin: 5px 0 2px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.ag-sheet form { display: flex; flex-direction: column; }
.ag-sheet .gl { margin: clamp(8px, 1.5vh, 12px) 0 5px; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--ink-2); }
.ag-sheet .org-code { display: flex; flex-direction: column; }
.ag-sheet .gf input { height: clamp(46px, 6.4vh, 52px); border-radius: 14px; background: #F5F8FE; border: 1.5px solid #E3EAF6; transition: border-color .15s, box-shadow .15s, background .15s; }
.ag-sheet .gf input:focus { background: #fff; border-color: var(--orange-500); box-shadow: 0 0 0 4px rgba(247,147,30,.16); }
.ag-sheet .gate-row { margin-top: clamp(10px, 1.6vh, 14px); }
.ag-sheet .gate-err { margin-top: 8px; }
.ag-sheet .gate-go { height: clamp(48px, 6.6vh, 54px); margin-top: clamp(10px, 1.6vh, 14px); border-radius: 15px; font-size: 16px; box-shadow: 0 10px 24px rgba(255,106,0,.32); }
.ag-sheet .gate-go span::after { content: "\2192"; margin-left: 8px; display: inline-block; transition: transform .2s; }
.ag-sheet .gate-go:active span::after { transform: translateX(4px); }
.ag-sheet .gate-forgot { font-size: 13px; font-weight: 700; color: var(--blue-600); text-decoration: none; padding: 6px 0 6px 10px; }
.ag-sheet .gate-forgot:active { opacity: .6; }
.ag-sheet #fpForm { display: flex; flex-direction: column; }
.ag-sheet #fpForm[hidden] { display: none; }
.ag-sheet .fp-ok { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: #EAF8F1; border: 1px solid #BFE6D2; color: #0E6B45; font-size: 12.5px; line-height: 1.45; }
.ag-sheet .fp-links { display: flex; justify-content: space-around; gap: 12px; margin-top: 12px; }
.ag-sheet .fp-links a { font-size: 13px; font-weight: 700; color: var(--blue-600); text-decoration: none; padding: 6px 0; }
.app-gate.fp-mode .ag-note { display: none; }
.ag-note { margin-top: 12px; padding: 10px 13px; border-radius: 13px; background: var(--blue-50); border: 1px solid #D5E4FA; color: var(--navy-700); font-size: 12.5px; line-height: 1.45; text-align: center; }
.ag-sheet .gate-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2, #EEF2F9); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; text-align: center; }
.ag-sheet .gate-foot svg { width: 13px; height: 13px; flex: none; }
.ag-sheet .gate-by-line { margin: 3px 0 0; font-size: 11px; text-align: center; }

@media (min-width: 640px) {
  .app-gate { display: grid; place-items: center; padding: 28px; height: auto; bottom: 0; }
  .ag-wrap { height: auto; min-height: 0; border-radius: 32px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,.45); background: var(--navy-800); }
  .ag-hero { min-height: 260px; }
  .ag-sheet { border-radius: 30px 30px 0 0; padding-bottom: 20px; }
}
@media (max-height: 720px) { .ag-chips, .ag-note { display: none; } .ag-hero { padding-top: calc(env(safe-area-inset-top, 0px) + 40px); padding-bottom: 44px; } }
@media (max-height: 640px) {
  .ag-brand, .ag-org { --lg: 68px; }
  .ag-brand::after, .ag-org::after, .ag-orb.o2, .ag-sheet::before { display: none; }
  .ag-sub { display: none; } .ag-sheet h1 { font-size: 24px; }
  .ag-brand b, .ag-org > span:last-child { margin-top: 16px; } .ag-org b { font-size: 19px; }
  .ag-hero { min-height: 150px; }
}
@media (max-height: 700px) {   /* the forgot-password form is taller than sign-in: shrink the hero for it */
  .app-gate.fp-mode .ag-brand, .app-gate.fp-mode .ag-org { --lg: 54px; }
  .app-gate.fp-mode .ag-brand small, .app-gate.fp-mode .ag-org small, .app-gate.fp-mode .ag-brand::after, .app-gate.fp-mode .ag-org::after { display: none; }
  .app-gate.fp-mode .ag-brand b, .app-gate.fp-mode .ag-org > span:last-child { margin-top: 12px; }
  .app-gate.fp-mode .ag-hero { min-height: 112px; padding-top: calc(env(safe-area-inset-top, 0px) + 40px); padding-bottom: 42px; }
  .app-gate.fp-mode .fp-ok { margin-top: 6px; padding: 8px 11px; font-size: 12px; }
}
@media (max-height: 560px) { .ag-org small, .ag-brand small { display: none; } .ag-brand, .ag-org { --lg: 56px; } .ag-hero { min-height: 120px; padding-top: calc(env(safe-area-inset-top, 0px) + 44px); } }
@media (max-height: 560px) and (orientation: landscape) {   /* phone held sideways: the form stays reachable (this one may scroll) */
  .app-gate { height: 100%; } .ag-wrap { max-width: 560px; height: auto; }
  .ag-hero { min-height: 0; padding-top: 28px; padding-bottom: 40px; } .ag-brand::before, .ag-org::before, .ag-app { display: none; }
  .ag-sheet .gf input { height: 44px; }
}
/* with the organisation-code box showing, the sheet is taller: trim the hero */
.ag-wrap:has(.org-code:not([hidden])) .ag-chips, .ag-wrap:has(.org-code:not([hidden])) .ag-note, .ag-wrap:has(.org-code:not([hidden])) .ag-sub, .ag-wrap:has(.org-code:not([hidden])) .ag-org small { display: none; }
@media (max-width: 340px) { .ag-sheet { padding-left: 16px; padding-right: 16px; } .ag-hero { padding-left: 16px; padding-right: 16px; } }

/* ------------------------------------------------------------------ shell */
body.app .sp-top { top: calc(env(safe-area-inset-top, 0px) + 8px); margin-top: calc(env(safe-area-inset-top, 0px) + 8px); }
body.app .sp-brand b { display: block; }
body.app .sp-main { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }

.app-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; justify-content: space-around; gap: 6px; padding: 7px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(15,27,61,.08); }
.app-tabs a { flex: 1; max-width: 170px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 6px 7px; border-radius: 16px; font-size: 11.5px; font-weight: 700; color: var(--muted); transition: background .15s, color .15s; }
.app-tabs a svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.app-tabs a.on { color: var(--navy-800); background: rgba(11,42,107,.07); }
.app-tabs a.on svg { stroke: var(--orange-500); transform: translateY(-1px) scale(1.06); }
@media (min-width: 900px) {
  .app-tabs { left: 50%; right: auto; bottom: 16px; width: 480px; max-width: calc(100vw - 32px); transform: translateX(-50%); border: 1px solid var(--line); border-radius: 24px; padding-bottom: 8px; }
  body.app .sp-main { padding-bottom: 120px; }
}
body.app .toasts { right: 14px; left: 14px; width: auto; max-width: 420px; margin-left: auto; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }

/* dialogs become bottom sheets on a phone: see student2.css */

/* ------------------------------------------------------------------ exam screen */
body.app .run { height: 100vh; height: 100dvh; }
body.app .run-head { padding-top: env(safe-area-inset-top, 0px); padding-left: max(clamp(14px, 2.4vw, 30px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(14px, 2.4vw, 30px), env(safe-area-inset-right, 0px)); }
@media (max-width: 720px) {
  body.app .sp-main { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  body.app .ro { min-height: 54px; }
}
body.app .fs-gate { padding-top: calc(20px + env(safe-area-inset-top, 0px)); padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }

/* ------------------------------------------------------------------ faculty in the app (one sign-in for students and faculty) */
body:not(.fac-mode) [data-fac] { display: none !important; }
body.fac-mode [data-stu] { display: none !important; }
body.fac-mode #faPw { display: none; }   /* the password button lives on the account page in the app */
body.fac-mode .sp-main .page-head { margin-bottom: 14px; }
body.fac-mode .sp-main .page-head h2 { font-size: 22px; letter-spacing: -.02em; }
.fc { max-width: 560px; margin: 0 auto; display: grid; gap: 16px; }
.fc-hero { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 16px; padding: 22px 18px; border-radius: 30px; color: #fff;
  background: radial-gradient(120% 80% at 100% -20%, rgba(94, 234, 212, .3), transparent 55%), radial-gradient(90% 70% at -10% 120%, rgba(59, 130, 246, .4), transparent 60%), linear-gradient(165deg, #0A1B3A 0%, #12306B 60%, #1A3F8C 100%);
  box-shadow: 0 24px 40px -24px rgba(10, 27, 58, .85); }
.fc-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px); background-size: 16px 16px; -webkit-mask-image: radial-gradient(80% 60% at 80% 20%, #000, transparent); mask-image: radial-gradient(80% 60% at 80% 20%, #000, transparent); }
.fc-av { flex: none; display: grid; place-items: center; padding: 5px; border-radius: 50%; border: 2px solid rgba(94, 234, 212, .65); }
.fc-av .av { border-radius: 50%; }
.fc-who { min-width: 0; flex: 1; }
.fc-who h2 { margin: 0; font-size: 22px; line-height: 1.15; letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; }
.fc-chip { display: inline-block; margin-top: 8px; padding: 3px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #063B33; background: #5EEAD4; }
.fc-who p { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .78); overflow-wrap: anywhere; }
.fc-v { display: block; font-size: 15px; font-weight: 800; color: var(--navy-800); overflow-wrap: anywhere; }
.fc-v em { font-style: normal; font-weight: 600; color: var(--muted); }
.fc .pr-row.is-lock { cursor: default; }
.fc-note { margin: 2px 4px 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); text-align: center; }
.fc-acts { display: grid; gap: 10px; }
.fc-out { color: #C0262D; }
@media (min-width: 560px) { .fc-acts { grid-template-columns: 1fr 1fr; } }
/* ===== faculty in the app: the same white header and flat tab bar as the student portal (student3.css); only the punch screen is its own ===== */
body.fac-mode .sp-main { padding-top: 16px; }

.pc { width: 100%; max-width: 560px; margin: 0 auto; display: grid; gap: 14px; justify-items: stretch; align-items: start; }
.pc > * { min-width: 0; justify-self: stretch; }
.pc.fa-wrap { grid-template-columns: minmax(0, 1fr); }
.pc-card { padding: 18px 16px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(16, 41, 74, .08); display: grid; gap: 14px; }
.pc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pc-clock { display: block; white-space: nowrap; font-size: clamp(23px, 7.6vw, 30px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--navy-800); }
.pc-date { display: block; margin-top: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pc .ax-chip { background: var(--line-2); border-color: var(--line); color: var(--ink-2); }
.pc .ax-chip.in { background: #19A874; border-color: #19A874; color: #fff; } .pc .ax-chip.late { background: #F2B03D; border-color: #F2B03D; color: #3A2600; }
.pc .ax-chip.done { background: #E3EEFC; border-color: #E3EEFC; color: #1558B0; } .pc .ax-chip.short { background: #E5736A; border-color: #E5736A; color: #fff; }
.pc .ax-stay { padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); }
.pc .ax-sl { color: var(--muted); } .pc .ax-sl b { color: var(--navy-800); } .pc .ax-sb { background: #E3EAF7; }
.pc-now-box:empty { display: none; }
.pc-go { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 0; border-radius: 22px; color: #fff; text-align: left; font: inherit; cursor: pointer; background: linear-gradient(135deg, #1A5BD8, #0F3FA6); box-shadow: 0 12px 26px rgba(26, 91, 216, .34); transition: transform .12s, filter .12s; }
.pc-go:active { transform: scale(.985); }
.pc-go:disabled { cursor: not-allowed; background: #AEB9CF; box-shadow: none; }
.pc-go.busy { filter: saturate(.7); }
.pc-go-i { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: rgba(255, 255, 255, .18); }
.pc-go-i svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pc-go-t small { display: block; font-size: 12.5px; font-weight: 600; opacity: .85; } .pc-go-t b { display: block; margin-top: 1px; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.pc-cap { margin: 8px 0 0; text-align: center; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.pc-warn { color: #92580A; font-size: 13px; }
.pc-done { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: #EAF7F1; border: 1px solid #BFE5D3; color: #0B6B4D; }
.pc-done svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: #0E8A5F; color: #fff; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pc-done b { display: block; font-size: 15.5px; } .pc-done small { font-size: 13px; color: #2F7A5E; }
.pc-h { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.pc-h svg { width: 22px; height: 22px; fill: none; stroke: #1A5BD8; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pc-step { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 14px; border-radius: 20px; border: 1.5px solid var(--line); background: #fff; box-shadow: 0 4px 14px rgba(16, 41, 74, .05); }
.pc-step + .pc-step::before { content: ""; position: absolute; left: 41px; top: -15px; width: 2px; height: 14px; background: #C3CCDD; }
.pc-step.now { border-color: #1A5BD8; box-shadow: 0 6px 18px rgba(26, 91, 216, .16); cursor: pointer; }
.pc-step.wait { background: #F6F8FC; box-shadow: none; }
.pc-step.wait .pc-ic { opacity: .55; }
.pc-ic { position: relative; flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--tb); color: var(--tc); }
.pc-ic > svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-in { --tb: #E3EEFF; --tc: #1A5BD8; } .t-lunchout { --tb: #FFEBD3; --tc: #C4600B; } .t-lunchin { --tb: #D8F5EC; --tc: #0E8F77; } .t-out { --tb: #FFE3E1; --tc: #C0392B; }
.pc-ok { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #0E9F6E; border: 2px solid #fff; }
.pc-ok svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.pc-t { flex: 1; min-width: 0; }
.pc-t b { display: flex; align-items: center; gap: 8px; font-size: 16.5px; font-weight: 800; color: var(--ink); }
.pc-n { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #1F2A44; color: #fff; font-style: normal; font-size: 11.5px; font-weight: 800; }
.pc-t small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.pc-site { display: flex !important; align-items: center; gap: 4px; margin-top: 2px !important; font-size: 12px !important; } .pc-site svg { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.pc-late { color: #B7791F; }
.pc-tm { flex: none; text-align: right; white-space: nowrap; font-size: 14.5px; line-height: 1.25; font-weight: 800; color: #0B7A55; font-variant-numeric: tabular-nums; }
.pc-tm small { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.pc-now { flex: none; font-size: 16px; font-weight: 800; color: #1A5BD8; }
.pc-wait { flex: none; max-width: 96px; text-align: right; font-size: 13.5px; font-weight: 700; color: #8592AD; }
.pc-note { margin: 2px 6px 0; text-align: center; font-size: 13px; line-height: 1.45; color: var(--muted); }
.pc-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; border: 1.5px solid #C9D3E6; background: #fff; color: var(--navy-800); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.pc-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pc-btn:disabled { opacity: .55; }
.pc .ax-geo { padding: 11px 12px; }
.pc-card.fa-hist, .pc-card.fa-month { padding: 18px 16px; display: block; }.pc-avail { flex: none; font-size: 13.5px; font-weight: 700; color: #1A5BD8; }
.pc-step.wait[data-k] { cursor: pointer; background: #fff; border-color: #BCD3F3; }
.pc-step.wait[data-k] .pc-ic { opacity: 1; }

/* ===== punch screen, lighter type and a rail timeline ===== */
.pc { gap: 12px; }
.pc-card { padding: 16px 14px 14px; border-radius: 22px; gap: 12px; box-shadow: 0 8px 26px rgba(16, 41, 74, .07); }
.pc-top { align-items: center; }
.pc-date { margin: 0 0 3px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pc-clock { font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.pc-clock i { margin-left: 5px; font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--muted); }
.pc .ax-chip { padding: 5px 11px; font-size: 12px; font-weight: 700; }
/* the day at a glance: four segments that fill as the punches are made */
.pc-prog { display: flex; align-items: center; gap: 10px; }
.pc-seg { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pc-seg i { height: 6px; border-radius: 4px; background: #E3E9F4; transition: background .3s; }
.pc-seg i.on { background: linear-gradient(90deg, #1A5BD8, #19A874); }
.pc-prog small { flex: none; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.pc .ax-geo { padding: 9px 11px; border-radius: 14px; gap: 10px; }
.pc .ax-geo b { font-size: 13.5px; } .pc .ax-geo small { font-size: 11.5px; line-height: 1.35; }
.pc .ax-gi { width: 30px; height: 30px; border-radius: 10px; }
.pc .ax-gi svg { width: 16px; height: 16px; }
.pc-go { padding: 11px 14px; border-radius: 18px; gap: 12px; box-shadow: 0 10px 22px rgba(26, 91, 216, .28); }
.pc-go-i { width: 40px; height: 40px; border-radius: 13px; } .pc-go-i svg { width: 22px; height: 22px; }
.pc-go-t small { font-size: 11.5px; } .pc-go-t b { font-size: 17px; }
.pc-cap { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pc-warn { font-size: 12px; }
.pc-done b { font-size: 14px; } .pc-done small { font-size: 12px; }
.pc-h { margin: 6px 0 -2px; font-size: 14px; font-weight: 800; letter-spacing: .01em; }
.pc-h svg { width: 18px; height: 18px; }
.pc-steps { gap: 0; position: relative; }
.pc-step { gap: 12px; padding: 9px 10px; border: 0; border-radius: 16px; background: transparent; box-shadow: none; }
.pc-step + .pc-step::before { left: 29px; top: -9px; width: 2px; height: 18px; border-radius: 2px; background: #DCE3F0; z-index: 0; }
.pc-step.done + .pc-step::before { background: #19A874; }
.pc-step.now { background: linear-gradient(100deg, #EEF4FF, #F7FAFF); box-shadow: inset 0 0 0 1.5px #BCD3F3; }
.pc-step.wait { background: transparent; }
.pc-step.wait .pc-ic { opacity: .5; }
.pc-step.wait[data-k] { background: transparent; border: 0; } .pc-step.wait[data-k] .pc-ic { opacity: 1; }
.pc-ic { z-index: 1; width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 3px #fff; }
.pc-step.now .pc-ic { box-shadow: 0 0 0 3px #EEF4FF, 0 0 0 5px rgba(26, 91, 216, .25); }
.pc-ic > svg { width: 20px; height: 20px; }
.pc-ok { right: -3px; bottom: -3px; width: 16px; height: 16px; border-width: 2px; } .pc-ok svg { width: 9px; height: 9px; }
.pc-n { display: none; }
.pc-t b { font-size: 14.5px; font-weight: 700; }
.pc-t small { margin-top: 2px; font-size: 12px; }
.pc-site { font-size: 11px !important; }
.pc-tm { font-size: 13px; } .pc-tm small { margin-bottom: 1px; font-size: 10.5px; }
.pc-now, .pc-avail { font-size: 12.5px; font-weight: 800; } .pc-now { padding: 3px 10px; border-radius: 999px; background: #1A5BD8; color: #fff; }
.pc-wait { font-size: 12px; }
.pc-note { font-size: 11.5px; }
.pc-acts { gap: 10px; }
.pc-btn { min-height: 42px; font-size: 13.5px; }
/* ===== Today / Month / History / Rules tabs on the faculty Home (same bar as the student's attendance page) ===== */
.pc-tabs { display: block; padding: 12px 12px 14px; }
.pc-tabs .ap-pn { padding: 14px 2px 0; }
.pc-tabs .pc-h { margin: 0 0 6px; }
.pc-tabs h4 { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--navy-800); }
.pc-tabs .att-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pc-tabs .att-stats > div { padding: 9px 10px; border-radius: 12px; }
.pc-tabs .att-stats b { font-size: 18px; } .pc-tabs .att-stats small { font-size: 11px; }
.pc-tabs .att-bar { margin-top: 12px; }
.pc-tabs .att-list li { gap: 10px; padding: 9px 0; }
.pc-tabs .att-lt b { font-size: 13.5px; } .pc-tabs .att-lt small { font-size: 11.5px; }
.pc-tabs .att-dt b { font-size: 15px; } .pc-tabs .att-dt small { font-size: 10.5px; }
.pc-tabs .ax-rl li { font-size: 13px; }
.pc-tabs .att-empty { font-size: 12.5px; }

/* faculty header: the centre address under the centre name */
body.fac-mode .sp-ttl b.is-addr { font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--ink-2, #3b4a66); max-width: 62vw; }

/* ===== faculty app: Profile and Reports, one family ===== */
.fq .fq-hero, .rq .rq-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: 30px;
  background: radial-gradient(120% 80% at 100% -20%, rgba(94, 234, 212, .3), transparent 55%), radial-gradient(90% 70% at -10% 120%, rgba(59, 130, 246, .4), transparent 60%), linear-gradient(165deg, #0A1B3A 0%, #12306B 60%, #1A3F8C 100%);
  box-shadow: 0 24px 40px -24px rgba(10, 27, 58, .85); }
.fq .fq-hero::before, .rq .rq-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px); background-size: 16px 16px; -webkit-mask-image: radial-gradient(80% 60% at 80% 20%, #000, transparent); mask-image: radial-gradient(80% 60% at 80% 20%, #000, transparent); }
/* profile */
.fq-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 18px 22px; }
.fq-av { display: grid; place-items: center; padding: 5px; border-radius: 50%; background: linear-gradient(135deg, #5EEAD4, #F7931E); box-shadow: 0 0 0 6px rgba(255, 255, 255, .08); }
.fq-av .av { border-radius: 50%; box-shadow: 0 0 0 3px #12306B; }
.fq-hero h2 { margin: 14px 0 0; font-size: 22px; line-height: 1.15; letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; }
.fq-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.fq-chips .fc-chip { margin: 0; }
.fq-des { padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); }
.fq-hero p { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .78); }
.fq-hero p .i { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fq-t { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; row-gap: 2px; padding: 12px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 22px -20px rgba(16, 41, 74, .55); min-width: 0; }
.fq-t .pr-ic { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 13px; }
.fq-t small { align-self: end; font-size: 11px; font-weight: 700; color: var(--muted); }
.fq-t b { align-self: start; font-size: 14px; font-weight: 800; color: var(--navy-800); overflow-wrap: anywhere; line-height: 1.25; }
.fq-t b em { font-style: normal; font-weight: 600; color: var(--muted); }
.fq .pr-list { border-radius: 22px; }
/* reports */
.rq { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; }
.rq-hero { display: flex; align-items: center; gap: 18px; padding: 20px 18px; }
.rq-ring { position: relative; flex: none; width: 104px; height: 104px; }
.rq-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rq-ring circle { fill: none; stroke-width: 9; }
.rq-ring .bg { stroke: rgba(255, 255, 255, .14); }
.rq-ring .fg { stroke: #5EEAD4; stroke-linecap: round; transition: stroke-dasharray .8s ease; }
.rq-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rq-ring b { font-size: 27px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.rq-ring b em { font-style: normal; font-size: 14px; font-weight: 700; opacity: .8; }
.rq-ring small { margin-top: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.rq-hd { min-width: 0; }
.rq-hd small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #5EEAD4; }
.rq-hd b { display: block; margin-top: 4px; font-size: 22px; line-height: 1.15; letter-spacing: -.02em; }
.rq-hd span { display: block; margin-top: 5px; font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.rq-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rq-t { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; row-gap: 1px; padding: 12px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 22px -20px rgba(16, 41, 74, .55); --c: #1E6BD1; }
.rq-t:last-child:nth-child(odd) { grid-column: 1 / -1; }
.rq-t span { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); }
.rq-t span .i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rq-t b { align-self: end; font-size: 19px; font-weight: 800; color: var(--navy-800); line-height: 1.1; font-variant-numeric: tabular-nums; }
.rq-t small { align-self: start; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.rq-t.t-late { --c: #C2560C; } .rq-t.t-work { --c: #0B8A68; } .rq-t.t-hold { --c: #1E6BD1; } .rq-t.t-short { --c: #B7791F; } .rq-t.t-abs { --c: #C0262D; }
.rq-card { padding: 16px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(16, 41, 74, .07); }
.rq-card h4 { margin: 0 0 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.rq-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.rq-cal span { font-size: 10.5px; font-weight: 800; color: var(--muted); padding-bottom: 2px; }
.rq-cal i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--navy-800); background: #F1F5FA; font-variant-numeric: tabular-nums; }
.rq-cal i.e { background: none; }
.rq-cal i.fut { background: none; color: #B6C1D2; }
.rq-cal i.ok { background: #12A150; color: #fff; } .rq-cal i.late { background: #F59E0B; color: #fff; } .rq-cal i.short { background: #D97706; color: #fff; }
.rq-cal i.hold { background: #3B82F6; color: #fff; } .rq-cal i.abs { background: #E5484D; color: #fff; }
.rq-cal i.now { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1A5BD8; }
.rq-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.rq-key span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 3px; background: #12A150; vertical-align: -1px; }
.rq-key .late::before { background: #F59E0B; } .rq-key .short::before { background: #D97706; } .rq-key .hold::before { background: #3B82F6; } .rq-key .abs::before { background: #E5484D; }
.rq-tl { position: relative; margin: 0; padding: 0 0 0 4px; list-style: none; display: grid; gap: 0; }
.rq-tl::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: linear-gradient(#BFD3F5, #E3ECF9); }
.rq-tl li { position: relative; display: flex; align-items: center; gap: 14px; padding: 9px 0; font-size: 14px; }
.rq-tl li span { flex: none; width: 12px; height: 12px; margin-left: 0; border-radius: 50%; background: #fff; border: 3px solid #1A5BD8; z-index: 1; }
.rq-tl li em { flex: 1; min-width: 0; font-style: normal; color: var(--ink-2, #3b4a66); font-weight: 600; }
.rq-tl li b { color: var(--navy-800); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rq-free { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: #F3F8FF; border: 1px dashed #BFD3F5; }
.rq-free .i { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: #E3EEFF; color: #1A5BD8; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rq-free b { display: block; font-size: 14px; color: var(--navy-800); } .rq-free small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }