:root {
  --ink: #111827;
  --muted: #64748b;
  --line: #e7eaf0;
  --surface: #ffffff;
  --canvas: #f5f6f8;
  --sidebar: #111827;
  --sidebar-soft: #1b2536;
  --brand: #f04438;
  --brand-dark: #d92d20;
  --blue: #2e6df6;
  --green: #14a972;
  --orange: #f79009;
  --violet: #7f56d9;
  --shadow: 0 20px 55px rgba(16, 24, 40, 0.09);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--canvas);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(46, 109, 246, 0.24);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
}

.brand__mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 58px;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand--inverse .brand__mark img {
  filter: invert(1);
}

.brand--full .brand__mark {
  width: 54px;
  height: 76px;
  flex-basis: 54px;
}

.brand__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__copy strong {
  font-size: 20px;
  line-height: 1.1;
}

.brand__copy span {
  color: #aeb8c8;
  font-size: 12px;
}

.brand--compact .brand__mark {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
}

.brand--compact .brand__copy strong {
  font-size: 17px;
}

/* Authentication */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(460px, 1.03fr) minmax(440px, 0.97fr);
  background: #f8f9fb;
}

.auth-showcase {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px clamp(42px, 6vw, 92px);
  color: #fff;
  background:
    radial-gradient(circle at 18% 24%, rgba(46, 109, 246, 0.24), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(240, 68, 56, 0.24), transparent 25%),
    linear-gradient(150deg, #111827 0%, #0c1322 58%, #151e2e 100%);
}

.auth-showcase::before,
.auth-showcase::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 50%;
  pointer-events: none;
}

.auth-showcase::before {
  width: 540px;
  height: 540px;
  left: -240px;
  top: 20%;
}

.auth-showcase::after {
  width: 680px;
  height: 680px;
  right: -430px;
  bottom: -300px;
}

.auth-showcase__top,
.auth-showcase__content,
.auth-showcase__signals {
  position: relative;
  z-index: 1;
}

.auth-showcase__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.secure-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #dce3ee;
  font-size: 12px;
  font-weight: 700;
}

.auth-showcase__content {
  max-width: 590px;
}

.eyebrow {
  margin: 0 0 15px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.auth-showcase__content h1 {
  margin: 0;
  font-size: clamp(48px, 6.3vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.auth-showcase__content > p:last-child {
  max-width: 520px;
  margin: 27px 0 0;
  color: #b8c1cf;
  font-size: 17px;
  line-height: 1.9;
}

.auth-showcase__signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-showcase__signals div {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c8d0dc;
  font-size: 12px;
  font-weight: 700;
}

.auth-showcase__signals svg {
  color: #f97066;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 40px;
  background:
    linear-gradient(rgba(17, 24, 39, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.025) 1px, transparent 1px),
    #f8f9fb;
  background-size: 34px 34px;
}

.auth-card {
  width: min(100%, 450px);
  padding: 42px;
  border: 1px solid #e7eaf0;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.auth-card__mobile-brand {
  display: none;
  margin-bottom: 32px;
}

.auth-card__mobile-brand .brand__copy strong {
  color: var(--ink);
}

.auth-card__mobile-brand .brand__copy span {
  color: var(--muted);
}

.auth-card__heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.auth-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  border-radius: 14px;
  color: var(--brand);
  background: #fff1ef;
}

.auth-card__heading h2,
.verify-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: 27px;
  letter-spacing: -0.025em;
}

.auth-card__heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-card form > label,
.verify-card form > label,
.label-row label {
  display: block;
  margin: 0 0 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 750;
}

.input-shell {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 0 15px;
  border: 1px solid #dfe3ea;
  border-radius: 13px;
  background: #fff;
  color: #98a2b3;
  transition: border-color .2s, box-shadow .2s;
}

.input-shell:focus-within {
  border-color: #98b3ff;
  box-shadow: 0 0 0 4px rgba(46, 109, 246, 0.08);
}

.input-shell input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  direction: rtl;
}

.input-shell input::placeholder {
  color: #a8b0bd;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-button,
.password-toggle {
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
}

.password-toggle {
  padding: 5px;
  color: #667085;
}

.remember-row {
  display: flex !important;
  align-items: center;
  gap: 9px;
  margin: 2px 0 24px !important;
  color: #475467 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.remember-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--brand);
}

.login-error,
.form-error {
  margin: -10px 0 17px;
  padding: 11px 13px;
  border: 1px solid #fecdca;
  border-radius: 11px;
  color: #b42318;
  background: #fef3f2;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}

.plain-input {
  width: 100%;
  height: 52px;
  margin: 0 0 18px;
  padding: 0 14px;
  border: 1px solid #dfe3ea;
  border-radius: 13px;
  outline: 0;
  color: var(--ink);
  background: #fbfcfd;
  direction: ltr;
}

.plain-input:focus {
  border-color: #98b3ff;
  box-shadow: 0 0 0 4px rgba(46, 109, 246, 0.08);
}

.password-hint {
  margin: -8px 0 18px;
  color: #98a2b3;
  font-size: 10px;
  line-height: 1.7;
}

.primary-button,
.secondary-button {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 13px;
  font-weight: 800;
  transition: transform .18s, background .18s, box-shadow .18s;
}

.primary-button {
  border: 0;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(240, 68, 56, 0.19);
}

.primary-button:hover {
  transform: translateY(-1px);
  background: var(--brand-dark);
}

.secondary-button {
  margin-top: 10px;
  border: 1px solid #e1e5eb;
  color: #344054;
  background: #fff;
}

.secondary-button:hover {
  background: #f7f8fa;
}

.auth-help {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eceef2;
  color: #667085;
  font-size: 11px;
  line-height: 1.65;
}

.auth-help svg {
  flex: 0 0 17px;
  margin-top: 1px;
  color: var(--green);
}

/* Verification */
.verify-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 30px;
  background: #0f1725;
}

.verify-orb {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(1px);
  opacity: .32;
}

.verify-orb--one {
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, #2e6df6, transparent 68%);
}

.verify-orb--two {
  bottom: -230px;
  left: -80px;
  background: radial-gradient(circle, #f04438, transparent 68%);
}

.verify-card {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  padding: 40px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
  text-align: center;
}

.verify-card > .brand {
  width: fit-content;
  margin: 0 auto 28px;
}

.verify-card .brand__copy strong {
  color: var(--ink);
}

.verify-card .brand__copy span {
  color: var(--muted);
}

.verify-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 19px;
  color: var(--brand);
  background: #fff1ef;
}

.verify-card .eyebrow {
  margin-bottom: 8px;
  color: var(--brand);
}

.verify-copy {
  margin: 13px auto 25px;
  color: #667085;
  font-size: 13px;
  line-height: 1.85;
}

.verify-card form {
  text-align: right;
}

.code-input {
  width: 100%;
  height: 64px;
  border: 1px solid #dfe3ea;
  border-radius: 14px;
  color: var(--ink);
  background: #fbfcfd;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: .46em;
  text-align: center;
  direction: ltr;
}

.code-help {
  margin: 8px 0 19px;
  color: #98a2b3;
  font-size: 11px;
  text-align: center;
}

/* Dashboard shell */
.dashboard-shell {
  min-height: 100vh;
  background: var(--canvas);
}

.sidebar {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  width: 278px;
  display: flex;
  flex-direction: column;
  padding: 26px 19px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 90%, rgba(240,68,56,.09), transparent 31%),
    var(--sidebar);
}

.sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px 29px;
}

.sidebar-close {
  display: none;
  border: 0;
  color: #c9d0dc;
  background: transparent;
}

.nav-label {
  margin: 0 12px 9px;
  color: #66758a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
}

.nav-item {
  position: relative;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3px 0;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  color: #aeb8c8;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  transition: background .18s, color .18s;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,.05);
}

.nav-item.is-active {
  color: #fff;
  background: var(--sidebar-soft);
  box-shadow: inset -3px 0 var(--brand);
}

.nav-item.is-disabled {
  opacity: .62;
}

.nav-item small {
  color: #748197;
  font-size: 8px;
}

.nav-item.is-active svg {
  color: #ff746a;
}

.nav-item span {
  flex: 1;
}

.nav-item b {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #ffb4ae;
  background: rgba(240, 68, 56, .12);
  font-size: 10px;
}

.sidebar__status {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #32d583;
  box-shadow: 0 0 0 4px rgba(50,213,131,.11);
}

.sidebar__status div:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar__status strong {
  color: #e8edf4;
  font-size: 11px;
}

.sidebar__status span {
  color: #738196;
  font-size: 10px;
}

.sidebar__status svg {
  color: #32d583;
}

.logout-button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 12px;
  border: 0;
  border-radius: 11px;
  color: #98a6b9;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.logout-button:hover {
  color: #fff;
  background: rgba(255,255,255,.04);
}

.sidebar-scrim {
  display: none;
}

.dashboard-main {
  min-height: 100vh;
  margin-right: 278px;
  padding: 0 clamp(22px, 3.4vw, 52px) 52px;
}

.topbar {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar__identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar__identity p {
  margin: 0 0 5px;
  color: #98a2b3;
  font-size: 11px;
}

.topbar__identity h1 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  letter-spacing: -0.025em;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-button,
.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #e5e8ee;
  border-radius: 12px;
  color: #475467;
  background: #fff;
}

.menu-button {
  display: none;
}

.search-box {
  width: 210px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid #e5e8ee;
  border-radius: 12px;
  color: #98a2b3;
  background: #fff;
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
}

.notification-button {
  position: relative;
}

.notification-button span {
  position: absolute;
  top: -6px;
  left: -6px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 2px solid var(--canvas);
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-size: 8px;
  font-weight: 900;
}

.profile-menu {
  min-width: 195px;
  height: 52px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 5px 7px;
  border: 1px solid #e5e8ee;
  border-radius: 14px;
  background: #fff;
}

.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--sidebar);
  font-size: 11px;
  font-weight: 900;
  direction: ltr;
}

.profile-menu > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-menu strong {
  color: #344054;
  font-size: 11px;
}

.profile-menu span {
  color: #98a2b3;
  font-size: 9px;
}

.profile-menu svg {
  color: #98a2b3;
}

.welcome-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 39px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(46,109,246,.3), transparent 34%),
    radial-gradient(circle at 85% 90%, rgba(240,68,56,.2), transparent 28%),
    #151e2e;
  box-shadow: 0 18px 44px rgba(17,24,39,.12);
}

.welcome-card::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  left: 20%;
  top: -210px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
}

.welcome-card__copy,
.welcome-card__pulse {
  position: relative;
  z-index: 1;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 9px;
  color: #cbd5e1;
  background: rgba(255,255,255,.07);
  font-size: 10px;
  font-weight: 700;
}

.welcome-card h2 {
  margin: 15px 0 8px;
  font-size: clamp(25px, 2.3vw, 33px);
  letter-spacing: -0.035em;
}

.welcome-card p {
  max-width: 650px;
  margin: 0;
  color: #aeb8c8;
  font-size: 12px;
  line-height: 1.8;
}

.welcome-card__pulse {
  min-width: 145px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 17px;
  background: rgba(255,255,255,.05);
}

.pulse-ring {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #32d583;
  background: rgba(50,213,131,.1);
  box-shadow: inset 0 0 0 1px rgba(50,213,131,.2);
}

.welcome-card__pulse > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.welcome-card__pulse strong {
  font-size: 14px;
}

.welcome-card__pulse span {
  color: #8b99ac;
  font-size: 9px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 17px;
}

.stat-card {
  min-height: 136px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(16,24,40,.035);
}

.stat-icon,
.pending-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.stat-icon--blue,
.pending-icon--blue { color: var(--blue); background: #edf3ff; }
.stat-icon--orange,
.pending-icon--orange { color: var(--orange); background: #fff4e5; }
.stat-icon--violet,
.pending-icon--violet { color: var(--violet); background: #f3efff; }
.stat-icon--green,
.pending-icon--green { color: var(--green); background: #eafaf3; }

.stat-card__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.stat-card__copy > span {
  min-height: 34px;
  color: #667085;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6;
}

.stat-card__copy strong {
  margin: 1px 0 4px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-card__copy small {
  color: #98a2b3;
  font-size: 9px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 16px;
  margin-top: 16px;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(16,24,40,.035);
}

.panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-kicker {
  display: block;
  margin-bottom: 4px;
  color: #98a2b3;
  font-size: 9px;
  font-weight: 800;
}

.panel__heading h2 {
  margin: 0;
  color: #1d2939;
  font-size: 17px;
  letter-spacing: -.02em;
}

.panel-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
  border: 0;
  color: #667085;
  background: transparent;
  font-size: 10px;
  font-weight: 750;
}

.pending-list {
  display: flex;
  flex-direction: column;
}

.pending-item {
  width: 100%;
  min-height: 67px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid #eff1f4;
  color: #98a2b3;
  background: transparent;
  text-align: right;
}

.pending-item:first-child {
  border-top: 0;
}

.pending-item:hover .pending-copy strong {
  color: var(--blue);
}

.pending-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.pending-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pending-copy strong {
  color: #344054;
  font-size: 11px;
  transition: color .18s;
}

.pending-copy span {
  color: #98a2b3;
  font-size: 9px;
}

.pending-item > b {
  min-width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #344054;
  background: #f2f4f7;
  font-size: 10px;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-action {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  color: #475467;
  background: #fbfcfd;
  text-align: right;
  transition: border-color .18s, transform .18s, background .18s;
}

.quick-action:hover {
  transform: translateY(-2px);
  border-color: #ccd6f0;
  background: #fff;
}

.quick-action span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--blue);
  background: #edf3ff;
}

.quick-action strong {
  font-size: 10px;
}

.permission-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  color: #667085;
  background: #f7f8fa;
  font-size: 9px;
}

.permission-note svg {
  color: var(--green);
}

.attendance-summary {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 170px;
}

.attendance-chart {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  flex: 0 0 128px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 66.6%, #eef1f4 66.6% 100%);
  position: relative;
}

.attendance-chart::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: #fff;
}

.attendance-chart > span {
  position: relative;
  z-index: 1;
  color: #1d2939;
  font-size: 26px;
  font-weight: 900;
  direction: ltr;
}

.attendance-chart small {
  color: #98a2b3;
  font-size: 11px;
}

.attendance-legend {
  min-width: 180px;
  flex: 1;
}

.attendance-legend > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-top: 1px solid #eff1f4;
}

.attendance-legend > div:first-child {
  border-top: 0;
}

.attendance-legend p {
  margin: 0;
  color: #667085;
  font-size: 10px;
}

.attendance-legend strong {
  color: #344054;
  font-size: 11px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot--green { background: var(--green); }
.legend-dot--orange { background: var(--orange); }
.legend-dot--blue { background: var(--blue); }

.healthy-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 9px;
  color: #067647;
  background: #ecfdf3;
  font-size: 9px;
  font-weight: 800;
}

.healthy-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #12b76a;
}

.system-list {
  display: flex;
  flex-direction: column;
}

.system-list > div {
  min-height: 47px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #eff1f4;
  color: #667085;
}

.system-list > div:first-child {
  border-top: 0;
}

.system-list svg {
  color: #98a2b3;
}

.system-list span,
.system-list strong {
  font-size: 9px;
}

.system-list strong {
  color: #344054;
}

.storage-progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: #eef1f4;
  appearance: none;
}

.storage-progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #eef1f4;
}

.storage-progress::-webkit-progress-value,
.storage-progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--green);
}

.system-footnote {
  margin: 12px 0 0;
  color: #98a2b3;
  font-size: 9px;
  line-height: 1.7;
}

.healthy-badge.is-unhealthy {
  color: #b42318;
  background: #fef3f2;
}

.healthy-badge.is-unhealthy span,
.status-dot.is-unhealthy {
  background: #f04438;
}

.pulse-ring.is-unhealthy {
  color: #f97066;
  background: rgba(240, 68, 56, .1);
  box-shadow: inset 0 0 0 1px rgba(240, 68, 56, .2);
}

.pending-empty {
  padding: 28px 12px;
  border: 1px dashed #e1e5eb;
  border-radius: 14px;
  color: #667085;
  background: #fafbfc;
  font-size: 11px;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 100;
  left: 24px;
  bottom: 24px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid #303b4d;
  border-radius: 13px;
  color: #fff;
  background: #111827;
  box-shadow: 0 18px 48px rgba(16, 24, 40, .24);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
}

.button-busy {
  cursor: wait;
  opacity: .72;
}

@media (max-width: 1180px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 960px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    display: none;
  }

  .auth-panel {
    min-height: 100vh;
  }

  .auth-card__mobile-brand {
    display: block;
  }

  .sidebar {
    transform: translateX(105%);
    transition: transform .25s ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-close,
  .menu-button {
    display: grid;
  }

  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: block;
    border: 0;
    opacity: 0;
    visibility: hidden;
    background: rgba(10, 16, 28, .55);
    transition: opacity .2s, visibility .2s;
  }

  .sidebar-scrim.is-open {
    opacity: 1;
    visibility: visible;
  }

  .dashboard-main {
    margin-right: 0;
  }
}

@media (max-width: 720px) {
  .auth-panel,
  .verify-page {
    padding: 18px;
  }

  .auth-card,
  .verify-card {
    padding: 28px 22px;
    border-radius: 21px;
  }

  .topbar {
    min-height: 86px;
  }

  .topbar__identity p {
    display: none;
  }

  .topbar__identity h1 {
    font-size: 17px;
  }

  .search-box,
  .profile-menu > div:nth-child(2),
  .profile-menu > svg {
    display: none;
  }

  .profile-menu {
    min-width: auto;
    width: 52px;
  }

  .welcome-card {
    min-height: 235px;
    align-items: flex-start;
    flex-direction: column;
    padding: 27px 24px;
  }

  .welcome-card__pulse {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card {
    min-height: 150px;
    flex-direction: column;
    padding: 16px;
  }

  .stat-card__copy > span {
    min-height: auto;
  }

  .panel {
    padding: 20px;
  }

  .quick-grid {
    grid-template-columns: 1fr 1fr;
  }

  .attendance-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .attendance-legend {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .dashboard-main {
    padding-inline: 14px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 118px;
    flex-direction: row;
  }

  .pending-item {
    grid-template-columns: auto 1fr auto;
  }

  .pending-item > b {
    display: none;
  }

  .panel-link {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* 7.21.0 — connected management sections */
.section-workspace {
  padding-bottom: 24px;
}

.section-hero {
  min-height: 178px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 12%, rgba(54, 104, 255, .08), transparent 34%),
    linear-gradient(145deg, #fff, #fbfcff);
  box-shadow: 0 14px 34px rgba(31, 42, 68, .06);
}

.section-hero h2 {
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: clamp(25px, 2.4vw, 38px);
  letter-spacing: -.035em;
}

.section-hero p {
  max-width: 720px;
  margin: 0;
  color: #6f7c90;
  font-size: 13px;
  line-height: 1.9;
}

.section-back {
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid #e6eaf1;
  border-radius: 10px;
  color: #536176;
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.section-back:hover {
  border-color: #cfd7e4;
  color: var(--ink);
}

.readonly-pill {
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 1px solid #dfe8ff;
  border-radius: 999px;
  color: #3857a5;
  background: #f3f7ff;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.section-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.section-metric {
  min-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(31, 42, 68, .045);
}

.section-metric span {
  color: #7b8798;
  font-size: 10px;
  font-weight: 800;
}

.section-metric strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}

.section-metric small {
  color: #9aa4b2;
  font-size: 9px;
}

.section-metric--green { border-top: 3px solid #43bf86; }
.section-metric--orange { border-top: 3px solid #f6a94a; }
.section-metric--violet { border-top: 3px solid #8b7cf6; }
.section-metric--blue { border-top: 3px solid #6389ff; }

.section-tables {
  display: grid;
  gap: 18px;
}

.section-table-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 42, 68, .045);
}

.section-table-heading {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid #edf0f4;
}

.section-table-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.section-table-heading p {
  margin: 5px 0 0;
  color: #8792a3;
  font-size: 10px;
}

.table-count {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 9px;
  color: #657186;
  background: #f5f7fa;
  font-size: 9px;
  font-weight: 800;
}

.table-scroller {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: auto;
  text-align: right;
}

.data-table th,
.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #f0f2f5;
  vertical-align: middle;
}

.data-table th {
  color: #6d788a;
  background: #fafbfc;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.data-table td {
  max-width: 340px;
  color: #364152;
  font-size: 10px;
  line-height: 1.65;
}

.data-table tbody tr:hover td {
  background: #fcfdff;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.section-loading,
.section-error,
.section-empty,
.section-note {
  padding: 18px 20px;
  border-radius: 16px;
  font-size: 11px;
  line-height: 1.8;
}

.section-loading,
.section-empty {
  color: #748095;
  border: 1px dashed #dfe4eb;
  background: #fafbfc;
}

.section-empty--large {
  min-height: 140px;
  display: grid;
  place-items: center;
  text-align: center;
}

.section-error {
  margin-bottom: 18px;
  color: #b42318;
  border: 1px solid #fecdca;
  background: #fff4f2;
}

.section-note {
  margin-top: 18px;
  color: #55647b;
  border: 1px solid #e6eaf1;
  background: #f8fafc;
}

.nav-item:not(.is-active):hover {
  opacity: 1;
}

@media (max-width: 1100px) {
  .section-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .section-hero {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 18px;
  }
  .section-metrics { grid-template-columns: 1fr; }
  .section-metric { min-height: 104px; }
  .section-table-heading { padding: 15px 14px; }
  .data-table th, .data-table td { padding: 11px 12px; }
}
