:root {
  --navy: #17245f;
  --navy-2: #21347e;
  --text: #111827;
  --muted: #64748b;
  --line: #d8e1ee;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --bg: #f4f7fb;
  --mint: #c9fff1;
  --green: #d7e4ff;
  --blue: #cfe3ff;
  --purple: #ded4ff;
  --amber: #ffd9a4;
  --cream: #f7f8ff;
  --wine: #243a8f;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.attendance-home-card,
.attendance-control-panel,
.attendance-print-report {
  display: grid;
  gap: 22px;
  padding: 28px;
  margin-bottom: 18px;
  border: 1px solid rgba(211, 221, 238, 0.92);
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 10%, rgba(47, 72, 167, 0.12), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(248, 196, 60, 0.14), transparent 28%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 55px rgba(24, 36, 76, 0.08);
}

.attendance-home-card h2,
.attendance-control-panel h2,
.attendance-print-report h2 {
  margin: 0;
  color: #304f78;
  font-size: 34px;
  letter-spacing: 0;
  text-align: center;
}

.attendance-status-box {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(211, 221, 238, 0.92);
  border-radius: 14px;
  background: rgba(246, 249, 253, 0.9);
}

.attendance-status-box p,
.attendance-summary-result p {
  margin: 0;
  color: #40506d;
  line-height: 1.45;
}

.status-good {
  color: #167044;
  font-weight: 800;
}

.status-danger {
  color: #a32117;
  font-weight: 800;
}

.attendance-link-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.attendance-management-row {
  margin-top: 18px;
}

.attendance-member-action,
.attendance-summary-result {
  display: grid;
  gap: 16px;
}

.attendance-member-action h3 {
  margin: 0;
  color: #111a3b;
  font-size: 16px;
}

.attendance-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.attendance-details-grid span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(226, 231, 240, 0.95);
  border-radius: 12px;
  color: #667192;
  background: rgba(255, 255, 255, 0.82);
}

.attendance-details-grid strong {
  color: #111a3b;
}

.attendance-quick-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(90px, 130px) minmax(90px, 130px) auto;
}

.attendance-quick-form label {
  display: grid;
  gap: 4px;
  color: #5b6688;
  font-size: 12px;
}

.attendance-quick-form input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #d8e0ed;
  border-radius: 9px;
  font: inherit;
}

.attendance-report-metrics {
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
}

.attendance-report-metrics strong {
  display: block;
  padding: 13px 16px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  color: #111a3b;
  background: #ffffff;
}

.attendance-report-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: #ffffff;
}

.attendance-report-table th,
.attendance-report-table td {
  padding: 10px;
  border: 1px solid #dbe4f0;
  text-align: left;
}

.attendance-report-table th {
  color: #111a3b;
  background: #f4f7fb;
}

.attendance-member-dashboard {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) repeat(3, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.attendance-dashboard-card {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgba(211, 221, 238, 0.92);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(47, 72, 167, 0.12), rgba(248, 196, 60, 0.10)),
    #ffffff;
  box-shadow: 0 16px 45px rgba(24, 36, 76, 0.08);
}

.attendance-dashboard-card > span {
  color: #5b6688;
  font-weight: 750;
}

.attendance-dashboard-card > strong {
  color: #111a3b;
  font-size: 44px;
  line-height: 1;
}

.attendance-dashboard-card small {
  color: #667192;
}

.distribution-list {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
  padding-right: 4px;
}

.distribution-list p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  color: #111a3b;
}

.distribution-list em {
  color: #2f48a7;
  font-style: normal;
  font-weight: 800;
}

.distribution-list div > span {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ecf5;
}

.distribution-list i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f48a7, #f8c43c);
}

.attendance-import-panel {
  margin-bottom: 18px;
}

.attendance-filter-bar {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(226, 231, 240, 0.95);
  border-radius: 14px;
  background: rgba(246, 249, 253, 0.86);
}

.attendance-filter-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.attendance-filter-bar label {
  display: grid;
  gap: 6px;
  color: #5b6688;
  font-size: 13px;
  font-weight: 700;
}

.attendance-filter-bar input,
.attendance-filter-bar select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d8e0ed;
  border-radius: 10px;
  background: #ffffff;
  color: #111a3b;
  font: inherit;
}

.attendance-directory-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
  color: #667192;
}

.attendance-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.attendance-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.attendance-pagination .btn.active {
  color: #ffffff;
  border-color: #243a8f;
  background: #243a8f;
}

.attendance-pagination .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.attendance-pagination span {
  align-self: center;
  color: #667192;
  font-weight: 800;
}

.attendance-member-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(226, 231, 240, 0.95);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
}

.attendance-member-card h3,
.attendance-member-card p {
  margin: 0;
}

.attendance-member-card h3 {
  color: #111a3b;
  font-size: 17px;
}

.attendance-member-card p,
.attendance-member-card span {
  color: #667192;
}

.attendance-member-card .btn {
  grid-column: 1 / -1;
}

.attendance-member-avatar,
.attendance-photo-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8c43c, #2f48a7);
  color: #ffffff;
  font-weight: 850;
}

.attendance-member-avatar {
  width: 56px;
  height: 56px;
}

.attendance-member-avatar.wide {
  width: 128px;
  height: 128px;
  border-radius: 18px;
}

.attendance-photo-approval-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 18px;
}

.photo-approval-card {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 210px;
  padding: 18px;
  border-color: rgba(207, 218, 236, 0.95);
  background:
    radial-gradient(circle at 5% 10%, rgba(47, 72, 167, 0.10), transparent 34%),
    radial-gradient(circle at 94% 4%, rgba(248, 196, 60, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.95);
}

.photo-approval-card .inline-actions {
  grid-column: 1 / -1;
}

.photo-approval-image {
  width: 132px !important;
  height: 150px !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 35px rgba(24, 36, 76, 0.16);
}

.photo-approval-details {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.photo-approval-details h3 {
  margin: 0;
  color: #101a42;
  font-size: 20px;
  line-height: 1.2;
}

.photo-approval-meta {
  display: grid;
  gap: 4px;
}

.photo-approval-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #60708f;
  font-size: 14px;
}

.photo-approval-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.photo-approval-message {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(216, 225, 238, 0.9);
  border-radius: 12px;
  color: #435171;
  background: rgba(246, 249, 253, 0.9);
}

.photo-approval-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(216, 225, 238, 0.9);
}

.photo-approval-actions .btn {
  grid-column: auto;
}

.photo-approval-reviewer {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(216, 225, 238, 0.9);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(211, 221, 238, 0.92);
  border-radius: 12px;
  background: rgba(247, 249, 253, 0.92);
  font-weight: 800;
}

.toggle-row input {
  width: 18px;
  height: 18px;
}

.attendance-member-avatar img,
.attendance-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attendance-profile-page {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.attendance-profile-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 26px;
  border: 1px solid rgba(211, 221, 238, 0.92);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0, rgba(248, 196, 60, 0.16), transparent 34%),
    #ffffff;
  box-shadow: 0 18px 55px rgba(24, 36, 76, 0.08);
  text-align: center;
}

.attendance-photo-frame {
  width: 132px;
  height: 132px;
  font-size: 36px;
}

.attendance-profile-card h2,
.attendance-profile-card p {
  margin: 0;
}

.profile-status {
  padding: 6px 12px;
  border-radius: 999px;
  color: #167044;
  background: rgba(49, 166, 106, 0.12);
  font-weight: 800;
}

.attendance-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

.attendance-profile-stats strong {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  color: #111a3b;
  background: #f4f7fb;
}

.attendance-profile-stats span {
  color: #667192;
  font-size: 12px;
}

.profile-actions {
  margin-top: 16px;
}

.attendance-scan-shell {
  display: grid;
  place-items: center;
  min-height: 58vh;
}

.attendance-scan-card {
  display: grid;
  gap: 20px;
  width: min(860px, 100%);
  padding: 34px;
  border: 1px solid rgba(211, 221, 238, 0.95);
  border-radius: 22px;
  background:
    radial-gradient(circle at 16% 0, rgba(47, 72, 167, 0.12), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(248, 196, 60, 0.14), transparent 30%),
    #ffffff;
  box-shadow: 0 22px 70px rgba(24, 36, 76, 0.12);
}

.attendance-scan-card h2,
.attendance-scan-card h3 {
  margin: 0;
  text-align: center;
  letter-spacing: 0;
}

.attendance-scan-card h2 {
  color: #304f78;
  font-size: 42px;
}

.attendance-scan-card h3 {
  color: #111a3b;
  font-size: 26px;
}

.camera-scan-box {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(226, 231, 240, 0.95);
  border-radius: 16px;
  background: #f8fbff;
}

.camera-scan-box video {
  width: 100%;
  max-height: 300px;
  border-radius: 14px;
  background: #111a3b;
}

.camera-scan-box p {
  margin: 0;
  color: #667192;
}

.attendance-scan-form {
  display: grid;
  gap: 14px;
}

.attendance-scan-form label,
.attendance-qr-layout label {
  display: grid;
  gap: 8px;
  color: #5b6688;
  font-weight: 750;
}

.attendance-scan-form input,
.attendance-qr-layout input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d8e0ed;
  border-radius: 12px;
  color: #111a3b;
  background: #ffffff;
  font: inherit;
}

.attendance-scan-member {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.attendance-scan-member p {
  margin: 0 0 8px;
  color: #40506d;
  font-size: 20px;
  line-height: 1.35;
}

.attendance-scan-member strong {
  color: #111a3b;
}

.attendance-scan-photo {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #f8c43c, #2f48a7);
  font-size: 38px;
  font-weight: 850;
}

.attendance-scan-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attendance-open-sessions {
  display: grid;
  gap: 12px;
}

.attendance-open-sessions h4 {
  margin: 0;
  color: #111a3b;
  font-size: 20px;
}

.attendance-open-session {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(226, 231, 240, 0.95);
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.9);
}

.attendance-open-session strong,
.attendance-open-session span {
  display: block;
}

.attendance-open-session strong {
  color: #111a3b;
}

.attendance-open-session span {
  color: #667192;
}

.attendance-match-list,
.attendance-google-panel,
.attendance-private-lock {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(226, 231, 240, 0.95);
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.92);
}

.attendance-match-list strong,
.attendance-google-panel strong,
.attendance-private-lock strong {
  color: #111a3b;
}

.attendance-match-button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8e0ed;
  border-radius: 12px;
  color: #111a3b;
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.attendance-match-button span,
.attendance-google-panel span,
.attendance-private-lock span {
  color: #667192;
  font-weight: 650;
}

.attendance-private-lock {
  border-color: rgba(47, 72, 167, 0.22);
  background:
    linear-gradient(135deg, rgba(47, 72, 167, 0.1), rgba(248, 196, 60, 0.12)),
    #ffffff;
}

.attendance-google-panel.verified {
  border-color: rgba(22, 112, 68, 0.25);
  background: rgba(49, 166, 106, 0.1);
}

.attendance-google-panel.error {
  border-color: rgba(180, 35, 24, 0.24);
  color: #8f1d15;
  background: rgba(180, 35, 24, 0.08);
}

.attendance-open-session .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.attendance-qr-panel {
  margin-bottom: 18px;
}

.attendance-qr-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.attendance-qr-image {
  width: 180px;
  height: 180px;
  padding: 10px;
  border: 1px solid #d8e0ed;
  border-radius: 18px;
  background: #ffffff;
}

@media (max-width: 1100px) {
  .attendance-member-dashboard,
  .attendance-filter-bar,
  .attendance-filter-row,
  .attendance-profile-page {
    grid-template-columns: 1fr;
  }

  .attendance-scan-member,
  .attendance-open-session,
  .attendance-qr-layout {
    grid-template-columns: 1fr;
  }

  .attendance-scan-photo {
    justify-self: center;
  }
}

@media print {
  body,
  .app-shell,
  .main-content {
    background: #ffffff !important;
  }

  .sidebar,
  .topbar,
  .hero-panel,
  .toast {
    display: none !important;
  }

  .main-content {
    padding: 0 !important;
  }

  .attendance-print-report {
    box-shadow: none;
    border: 0;
    margin: 0;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "Segoe UI", "Arial", ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  background:
    radial-gradient(circle at 15% 12%, rgba(47, 72, 167, 0.14), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(248, 196, 60, 0.12), transparent 35%),
    linear-gradient(135deg, #f8fbff, var(--bg));
}

body.dark {
  --text: #f8fafc;
  --muted: #b6c2d6;
  --line: #293855;
  --surface: rgba(16, 24, 39, 0.88);
  --surface-strong: #111827;
  --bg: #07111f;
  background:
    radial-gradient(circle at 15% 12%, rgba(47, 72, 167, 0.24), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(248, 196, 60, 0.16), transparent 35%),
    linear-gradient(135deg, #07111f, #101827);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.portal {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(320px, 86vw);
  height: 100vh;
  overflow-y: auto;
  color: white;
  background: linear-gradient(180deg, var(--navy), #111c4f);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 14px;
  z-index: 30;
  transform: translateX(-110%);
  transition: transform 0.2s ease;
  box-shadow: 24px 0 50px rgba(2, 6, 23, 0.22);
}

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

body.team-mode .portal {
  grid-template-columns: 292px minmax(0, 1fr);
}

body.team-mode .sidebar {
  position: sticky;
  inset: auto;
  top: 0;
  width: 292px;
  transform: none;
  box-shadow: none;
  background: #17245f;
  padding: 20px 14px;
}

.brand-block {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-logo,
.avatar,
.auth-mark {
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, #f8c43c, #2643b9);
  border-radius: 8px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.22);
}

.brand-logo.has-image,
.brand-logo.large.has-image {
  background-color: white;
}

.brand-logo.large {
  width: 78px;
  height: 78px;
  font-size: 24px;
  background-size: cover;
  background-position: center;
}

.brand-block strong {
  display: block;
  font-size: 17px;
  line-height: 1.15;
}

.brand-block span,
.user-mini span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  margin-top: 3px;
}

.menu-search {
  display: block;
  margin: 12px 0 20px;
}

body.team-mode .menu-search,
body.team-mode .global-search {
  display: none;
}

.menu-search span,
.global-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.menu-search input {
  width: 100%;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 13px 14px;
  outline: none;
}

.menu-search input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.nav-group {
  margin: 22px 10px 10px;
  color: #f6c342;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-nav button {
  width: 100%;
  min-height: 48px;
  margin: 4px 0;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 800;
  text-align: left;
}

.side-nav button::after {
  content: ">";
  opacity: 0.35;
}

.nav-badge {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: #17204b;
  background: #f8c43c;
  font-size: 12px;
  font-weight: 900;
}

.side-nav button.active,
.side-nav button:hover {
  color: white;
  background: rgba(58, 78, 175, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.72);
}

.nav-icon::before {
  font-size: 18px;
  line-height: 1;
}

.nav-icon.grid::before { content: "\25A6"; }
.nav-icon.book::before { content: "\2630"; }
.nav-icon.plus::before { content: "+"; }
.nav-icon.calendar::before { content: "\25A1"; }
.nav-icon.users::before { content: "\25CC"; }
.nav-icon.settings::before { content: "\2699"; }
.nav-icon.globe::before { content: "\25CE"; }
.nav-icon.bell::before { content: "\25D6"; }
.nav-icon.scan::before { content: "\25CE"; }

.user-mini {
  position: sticky;
  bottom: 12px;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 10px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 8px;
}

.avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #f7c948, #4462d9);
}

.main-shell {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto auto minmax(360px, 1fr) minmax(180px, 320px) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background:
    radial-gradient(circle at 12% 0%, rgba(248, 196, 60, 0.18), transparent 28%),
    linear-gradient(110deg, rgba(255, 255, 255, 0.96), rgba(242, 246, 255, 0.92) 52%, rgba(236, 241, 255, 0.96));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

body.dark .topbar {
  background:
    radial-gradient(circle at 12% 0%, rgba(248, 196, 60, 0.12), transparent 28%),
    linear-gradient(110deg, rgba(7, 17, 31, 0.94), rgba(20, 32, 70, 0.92));
}

body.public-mode .sidebar,
body.public-mode #sidebarToggle,
body.public-mode .global-search {
  display: none;
}

body.public-mode .topbar {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

body.login-mode .topbar {
  display: none;
}

body.login-mode .footer {
  display: none;
}

body.login-mode .main-shell {
  min-height: 100vh;
}

body.login-mode .content {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 72px);
}

body.team-mode .topbar {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
}

body.team-mode .top-nav {
  display: none;
}

body.team-mode .top-brand {
  display: none;
}

body.team-mode #sidebarToggle {
  width: 44px;
  padding: 0;
  font-size: 0;
}

body.team-mode #sidebarToggle::before {
  content: "";
  width: 18px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.top-actions,
.profile-area {
  position: relative;
}

body.public-mode .top-actions {
  display: none;
}

.profile-btn {
  min-width: 44px;
  width: 44px;
  padding: 0;
  border-radius: 999px;
}

body.public-mode .profile-btn {
  min-width: auto;
  width: auto;
  padding: 0 18px;
  border-radius: 8px;
}

body.team-mode .profile-btn,
body.team-mode .notify-btn {
  color: var(--navy);
  background: #f4f7ff;
  border-color: #d8e1ee;
  box-shadow: none;
}

#themeToggle,
.notify-btn,
body.team-mode .profile-btn {
  font-size: 0;
}

#themeToggle::before,
.notify-btn::before,
body.team-mode .profile-btn::before {
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

#themeToggle::before {
  content: "\263E";
}

body.dark #themeToggle::before {
  content: "\2600";
}

.notify-btn::before {
  content: "\25D6";
}

body.team-mode .profile-btn::before {
  content: "\25CC";
}

.notify-btn {
  width: 44px;
  padding: 0;
  border-radius: 999px;
}

.profile-menu,
.notification-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  width: min(360px, 86vw);
  padding: 14px;
  background: white;
  border: 1px solid #dbe2ef;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.menu-card-header {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #e7ecf5;
}

.menu-card-header strong,
.notification-item strong,
.menu-empty strong,
.menu-title {
  display: block;
  color: #0f1838;
  font-weight: 700;
}

.menu-card-header span,
.menu-empty span,
.notification-item span {
  display: block;
  color: #607095;
  font-size: 13px;
  margin-top: 3px;
}

.menu-meta {
  display: grid;
  gap: 10px;
  padding: 12px 0;
}

.menu-meta span {
  display: block;
  color: #607095;
  font-size: 12px;
}

.menu-meta strong {
  color: #0f1838;
  font-weight: 600;
  word-break: break-word;
}

.notification-menu {
  display: grid;
  gap: 10px;
}

.notification-item {
  padding: 12px;
  border: 1px solid #e7ecf5;
  border-radius: 10px;
  background: #f8faff;
}

.notification-menu[hidden] {
  display: none;
}

.top-brand {
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: 0 6px;
  color: var(--text);
  background: transparent;
  border: 0;
  text-align: left;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-brand strong {
  font-size: 14px;
}

.top-brand span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.top-nav button {
  min-height: 42px;
  padding: 0 14px;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
}

.top-nav button:hover {
  border-color: var(--line);
  background: rgba(47, 72, 167, 0.08);
}

.content {
  width: min(1680px, 100%);
  margin: 0 auto;
  padding: 28px 28px 92px;
}

.footer {
  color: var(--muted);
  text-align: center;
  padding: 18px 24px 38px;
}

.btn,
.icon-btn,
.module-btn {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  color: white;
  background: var(--navy);
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(47, 72, 167, 0.14);
}

.btn.small {
  min-height: 40px;
}

.btn.full {
  width: 100%;
}

.btn.ghost,
.icon-btn,
.module-btn {
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: none;
}

.btn.cream {
  color: var(--navy);
  background: var(--cream);
}

.btn.outline-light {
  color: white;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.52);
  box-shadow: none;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.global-search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-strong);
  padding: 0 16px;
}

body.team-mode .global-search input,
body.team-mode .menu-search input {
  border-color: #d5dbea;
  background: #f9fbff;
}

body.team-mode .menu-search input {
  color: white;
  background: rgba(67, 89, 185, 0.35);
  border-color: rgba(255, 255, 255, 0.08);
}

body.team-mode .btn,
body.team-mode .icon-btn,
body.team-mode .module-btn {
  border-radius: 8px;
}

.official-hero {
  position: relative;
  min-height: clamp(620px, 78vh, 860px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(9, 20, 48, 0.96), rgba(35, 52, 83, 0.78) 52%, rgba(47, 72, 167, 0.48)),
    radial-gradient(circle at 78% 42%, rgba(248, 196, 60, 0.22), transparent 30%),
    linear-gradient(135deg, #091430, #34455f 58%, #3044a5);
  border-radius: 0;
}

.official-hero::after,
.work-showcase::after {
  content: "";
  position: absolute;
  inset: auto -12% -44% auto;
  width: 52vw;
  height: 52vw;
  border: 1px solid rgba(247, 242, 230, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 120px rgba(247, 242, 230, 0.05),
    0 0 0 240px rgba(247, 242, 230, 0.04);
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: end;
  max-width: 980px;
  padding: clamp(44px, 7vw, 118px);
}

.site-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: #f8c43c;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-kicker::before {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor;
}

.hero-copy h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(64px, 9vw, 150px);
  line-height: 0.92;
  letter-spacing: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.hero-copy h1 em,
.identity-panel h2 em {
  display: inline;
  color: #f8c43c;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
}

.hero-copy p {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.45;
}

.hero-year {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: clamp(32px, 6vw, 92px);
}

.hero-year span,
.hero-year small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-year strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(88px, 13vw, 210px);
  line-height: 0.82;
  color: #f8c43c;
}

.identity-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  min-height: 560px;
}

.identity-panel {
  padding: clamp(36px, 6vw, 90px);
}

.identity-panel.dark {
  color: white;
  background: var(--navy);
}

.identity-panel.light {
  background: var(--cream);
}

.identity-panel h2,
.story-section h2,
.work-showcase h2,
.request-cta h2 {
  margin: 0;
  font-size: clamp(42px, 5.8vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.identity-panel p,
.story-copy p {
  max-width: 780px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.65;
}

.identity-panel.dark h2 {
  color: white;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.mini-stats strong {
  display: block;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
}

.mini-stats span {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 7vw, 120px);
  padding: clamp(44px, 7vw, 112px);
  background: var(--surface-strong);
}

.work-showcase {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 26px;
  padding: clamp(36px, 6vw, 88px);
  color: white;
  background:
    linear-gradient(90deg, rgba(23, 36, 95, 0.98), rgba(33, 52, 126, 0.92)),
    #21347e;
}

.showcase-card {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.service-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 210px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.service-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--wine);
  background: var(--cream);
  border-radius: 999px;
  font-weight: 900;
}

.service-card h3 {
  margin: 28px 0 10px;
  font-size: 25px;
}

.service-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.request-cta {
  padding: clamp(44px, 7vw, 110px);
  background: var(--cream);
}

.request-cta h2 {
  max-width: 980px;
}

.hero-panel,
.panel,
.form-card,
.auth-card,
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

body.team-mode .content {
  width: 100%;
  padding: 28px 34px 92px;
}

body.team-mode .hero-panel {
  display: block;
  padding: 20px 0 8px;
  margin-bottom: 22px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.team-mode .hero-panel h1 {
  margin: 0;
  color: #0f1838;
  font-size: 29px;
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: 650;
}

body.team-mode .hero-panel p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #52618a;
  font-size: 16px;
}

body.team-mode .hero-panel .eyebrow {
  display: none;
}

body.team-mode .panel,
body.team-mode .form-card,
body.team-mode .auth-card {
  background: #ffffff;
  border: 1px solid #e2e7f0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.hero-panel {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 34px;
  margin-bottom: 24px;
  background:
    linear-gradient(120deg, rgba(199, 255, 241, 0.72), rgba(219, 228, 255, 0.58), rgba(255, 247, 219, 0.66)),
    var(--surface);
}

body.dark .hero-panel {
  background:
    linear-gradient(120deg, rgba(20, 83, 81, 0.42), rgba(40, 46, 105, 0.5), rgba(84, 60, 20, 0.38)),
    var(--surface);
}

.hero-panel h1 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-grid,
.stats-grid,
.split-grid,
.queue-layout {
  display: grid;
  gap: 18px;
}

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

.feature-card {
  padding: 26px;
}

.feature-card h2,
.section-title h2,
.detail-header h2 {
  margin: 0;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 14px;
  color: var(--navy);
  background: #f6c342;
  border-radius: 8px;
  font-weight: 900;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 24px;
}

.member-dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-bottom: 26px;
  padding: 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, #6574d9, #727de1);
}

.database-dashboard-card {
  position: relative;
  display: flex;
  min-height: 138px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(32, 44, 119, .16);
}

.database-dashboard-copy { position: relative; z-index: 1; min-width: 0; }
.database-dashboard-copy span,
.database-dashboard-copy small { display: block; color: #65708d; }
.database-dashboard-copy span { font-size: 17px; font-weight: 700; }
.database-dashboard-copy strong { display: block; margin: 12px 0 4px; color: #24345e; font-size: 38px; line-height: 1; }
.database-dashboard-copy small { font-size: 13px; }
.database-dashboard-icon { display: grid; flex: 0 0 58px; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; background: #6c63d9; font-size: 17px; font-style: normal; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.database-dashboard-card.males .database-dashboard-icon { background: #e9664d; }
.database-dashboard-card.females .database-dashboard-icon { background: #ee9a48; }
.database-dashboard-card.action-units .database-dashboard-icon { background: #7265d9; }
.database-dashboard-card.attendance .database-dashboard-icon { background: #e95b59; }
.database-dashboard-card.users .database-dashboard-icon { background: #63c7a7; }
.database-dashboard-card.registrations .database-dashboard-icon,
.database-dashboard-card.photos .database-dashboard-icon { background: #e3a34f; }
.database-dashboard-card.cards .database-dashboard-icon { background: #58bea6; }
.database-dashboard-card.undergraduates .database-dashboard-icon { background: #7265d9; }
.database-dashboard-card.postgraduates .database-dashboard-icon { background: #e9664d; }
.database-dashboard-card.nsps .database-dashboard-icon { background: #58bea6; }
.database-dashboard-card.staff .database-dashboard-icon { background: #ee9a48; }
.dashboard-level-section { display: block; margin-bottom: 26px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.84); }
.dashboard-level-section .section-title { margin: 0; }
.member-distribution-cards,
.member-level-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.member-level-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.member-distribution-cards { margin-top: 20px; }
.member-level-cards { margin-top: 20px; }
.member-level-cards .attendance-dashboard-card { margin: 0; }

.stats-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

body.team-mode .stat-card {
  min-height: 126px;
  padding: 24px;
  border-color: #e2e7f0;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

body.team-mode .stat-card::after {
  right: 24px;
  bottom: auto;
  top: 28px;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -36px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.stat-card span,
.stat-card small {
  display: block;
  color: #4b5563;
  font-weight: 800;
}

body.team-mode .stat-card span,
body.team-mode .stat-card small {
  position: relative;
  z-index: 1;
  color: #536188;
  font-weight: 500;
}

body.dark .stat-card span,
body.dark .stat-card small {
  color: #243247;
}

.stat-card strong {
  display: block;
  margin: 14px 0 8px;
  color: #172033;
  font-size: 30px;
  line-height: 1;
}

body.team-mode .stat-card strong {
  position: relative;
  z-index: 1;
  margin: 14px 0 4px;
  color: #0f1838;
  font-size: 34px;
  font-weight: 650;
}

.stat-card.mint {
  background: linear-gradient(135deg, #e5fff7, #c8f3ff);
}

.stat-card.green {
  background: linear-gradient(135deg, #edf4ff, #d5dcff);
}

.stat-card.blue {
  background: linear-gradient(135deg, #e9f4ff, #bcd8ff);
}

.stat-card.purple {
  background: linear-gradient(135deg, #f2ecff, #d9c8ff);
}

.stat-card.amber {
  background: linear-gradient(135deg, #fff4d1, #ffd59a);
}

.split-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
}

.queue-layout {
  grid-template-columns: 1fr;
  align-items: start;
}

.users-layout {
  grid-template-columns: minmax(260px, 0.65fr) minmax(320px, 0.9fr);
}

.panel,
.form-card {
  padding: 24px;
}

.section-title {
  padding-bottom: 18px;
  border-bottom: 3px solid rgba(47, 72, 167, 0.14);
  margin-bottom: 18px;
}

body.team-mode .section-title {
  padding-bottom: 14px;
  border-bottom: 0;
  margin-bottom: 16px;
}

body.team-mode .section-title h2 {
  color: #0f1838;
  font-size: 21px;
  font-weight: 650;
}

body.team-mode .eyebrow {
  color: #2f48a7;
}

.section-title p:not(.eyebrow) {
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.5;
}

.request-branch {
  margin: 24px 0;
  padding-top: 8px;
}

.field-label {
  margin: 18px 0 10px;
  color: #334155;
  font-weight: 900;
}

body.dark .field-label {
  color: #d8e1ee;
}

.form-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid label,
.stacked label,
.form-card > label,
.auth-card label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 800;
}

body.dark .form-grid label,
body.dark .stacked label,
body.dark .form-card > label,
body.dark .auth-card label {
  color: #d8e1ee;
}

.file-description-list {
  display: grid;
  gap: 10px;
  margin: -4px 0 14px;
  padding: 14px;
  border: 1px dashed #cbd6ea;
  border-radius: 10px;
  background: #f8faff;
}

.file-description-list[hidden] {
  display: none;
}

.file-description-list label {
  display: grid;
  gap: 7px;
  color: #536188;
  font-weight: 650;
}

.file-description-list span {
  font-size: 13px;
  word-break: break-word;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-strong);
  padding: 13px 14px;
  outline: none;
}

textarea {
  resize: vertical;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.check-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface-strong);
  font-weight: 800;
}

.check-pill input {
  width: auto;
}

.auth-page {
  width: min(1360px, 100%);
  min-height: min(760px, calc(100vh - 80px));
  display: grid;
  place-items: center;
}

.auth-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1fr);
  overflow: hidden;
  border: 1px solid rgba(47, 72, 167, 0.14);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.auth-intro,
.auth-card {
  min-height: 620px;
  padding: clamp(34px, 5vw, 58px);
}

.auth-intro {
  display: grid;
  align-content: center;
  gap: 24px;
  color: white;
  background:
    radial-gradient(circle at 18% 88%, rgba(248, 196, 60, 0.16), transparent 28%),
    linear-gradient(145deg, #162357, #2f48a7 58%, #4165ec);
}

.auth-intro .eyebrow {
  color: #f8c43c;
}

.auth-intro h1 {
  max-width: 440px;
  margin: 0;
  color: white;
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

.auth-intro p {
  max-width: 470px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.7;
}

.auth-card {
  width: 100%;
  display: grid;
  align-content: center;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.auth-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
}

.auth-card h1,
.auth-card p {
  text-align: left;
}

.auth-card h1 {
  margin: 8px 0 14px;
  color: #0f1838;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: 0;
}

.auth-card p {
  max-width: 560px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.auth-card label {
  margin-bottom: 18px;
  color: #101a3d;
  font-size: 15px;
  font-weight: 800;
}

.auth-card input {
  min-height: 62px;
  border-radius: 12px;
  margin-top: 8px;
  background: #edf2ff;
  border-color: #d9e2f2;
  font-size: 16px;
}

.auth-card .btn {
  min-height: 58px;
  margin-top: 8px;
  border-radius: 12px;
}

.auth-card .link-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  color: #17245f;
  background: transparent;
  border: 1px solid #d9e2f2;
  border-radius: 12px;
  font-weight: 800;
}

.request-list {
  display: grid;
  gap: 10px;
}

.request-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  text-align: left;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

body.team-mode .request-row {
  border-color: #e2e7f0;
  border-radius: 10px;
  padding: 18px;
}

body.team-mode .request-row:hover,
body.team-mode .request-row.active {
  border-color: #2f48a7;
  background: #f8faff;
}

.request-row:hover {
  border-color: #2f48a7;
}

.request-row.active {
  border-color: #2f48a7;
  box-shadow: inset 3px 0 0 #2f48a7;
}

.request-row span,
.request-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  color: #2f48a7 !important;
  background: #eef2ff;
  border-radius: 8px;
  font-weight: 900;
}

.pill.large {
  min-height: 40px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.detail-header span {
  color: var(--muted);
}

.detail-grid {
  margin-bottom: 18px;
}

.detail-grid div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(199, 255, 241, 0.22), rgba(219, 228, 255, 0.2)),
    var(--surface-strong);
}

body.team-mode .detail-grid div {
  border-color: #e2e7f0;
  border-radius: 10px;
  background: #f9fbff;
}

.detail-grid.compact div {
  min-height: 72px;
}

.detail-grid span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.detail-grid strong {
  word-break: break-word;
}

.note-box,
.empty-state,
.activity-list,
.workflow-panel,
.file-summary-panel,
.schedule-box,
.logo-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 18px;
  margin: 18px 0;
}

body.team-mode .note-box,
body.team-mode .empty-state,
body.team-mode .activity-list,
body.team-mode .workflow-panel,
body.team-mode .file-summary-panel,
body.team-mode .schedule-box,
body.team-mode .logo-preview,
body.team-mode .section-task,
body.team-mode .workload-row,
body.team-mode .activity-item {
  border-color: #e2e7f0;
  border-radius: 10px;
  background: #ffffff;
}

body.team-mode .setup-panel {
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
}

body.team-mode .status-panel {
  background: linear-gradient(135deg, #ffffff, #fff8df);
}

body.team-mode .performance-panel {
  background: linear-gradient(135deg, #ffffff, #effaf6);
}

.file-summary-panel {
  margin: 18px 0;
  background:
    radial-gradient(circle at 92% 0%, rgba(248, 196, 60, 0.18), transparent 28%),
    linear-gradient(135deg, #ffffff, #eef4ff);
}

.file-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.file-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #dfe7f5;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.file-card.highlight {
  border-color: rgba(47, 72, 167, 0.28);
  background: linear-gradient(135deg, #eef4ff, #fff9e8);
}

.file-card strong {
  color: #0f1838;
}

.file-card p {
  display: grid;
  gap: 3px;
  margin: 0;
  color: #607095;
}

.file-card p span {
  color: #607095;
  font-size: 13px;
}

.workflow-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.workflow-guide > div,
.workflow-guide > span {
  border: 1px solid #e2e7f0;
  border-radius: 10px;
  background: #f8faff;
  padding: 14px;
}

.workflow-guide > div.active {
  border-color: rgba(47, 72, 167, 0.42);
  background: linear-gradient(135deg, #edf4ff, #fff7db);
}

.workflow-guide span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  color: white;
  background: #2f48a7;
  border-radius: 999px;
  font-weight: 800;
}

.workflow-guide strong,
.workflow-guide small {
  display: block;
}

.workflow-guide small {
  color: #607095;
  margin-top: 4px;
}

.note-box.subtle {
  background: rgba(255, 255, 255, 0.58);
}

.schedule-box {
  margin: 18px 0;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
}

.quality-box {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #dfe7f5;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
}

.proof-box,
.submission-success {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #dfe7f5;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #e2e7f0;
  border-radius: 10px;
  background: #ffffff;
}

.check-line input {
  width: 18px;
  height: 18px;
}

.comment-panel {
  background: linear-gradient(135deg, #ffffff, #f9fbff);
}

.comment-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.comment-item {
  padding: 14px;
  border: 1px solid #e2e7f0;
  border-radius: 10px;
  background: #ffffff;
}

.comment-item strong,
.comment-item small {
  display: block;
}

.comment-item strong span,
.comment-item small {
  color: #607095;
  font-weight: 500;
}

.comment-item p {
  margin: 8px 0;
  color: #0f1838;
  line-height: 1.55;
}

.empty-state.compact {
  margin: 0;
}

.note-box p,
.logo-preview p {
  color: var(--muted);
  line-height: 1.6;
}

.section-task-list,
.workload-list,
.activity-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.workflow-panel {
  margin: 18px 0;
}

.action-card {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid #dfe7f5;
  border-radius: 12px;
  background:
    radial-gradient(circle at 92% 10%, rgba(248, 196, 60, 0.2), transparent 28%),
    linear-gradient(135deg, #f7fbff, #ffffff);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.action-card.gold {
  border-color: rgba(248, 196, 60, 0.45);
  background: linear-gradient(135deg, #fff8dc, #ffffff);
}

.action-card.muted {
  background: #f8faff;
}

.action-card h3 {
  margin: 0 0 6px;
  color: #0f1838;
  font-size: 24px;
  font-weight: 650;
}

.action-card span {
  color: #607095;
}

.request-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  padding: 8px;
  border: 1px solid #e2e7f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.request-tabs button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  color: #607095;
  background: transparent;
  font-weight: 650;
}

.request-tabs button.active {
  color: white;
  background: #2f48a7;
  box-shadow: 0 8px 18px rgba(47, 72, 167, 0.18);
}

.tracking-result {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid #dfe7f5;
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 12%, rgba(248, 196, 60, 0.18), transparent 28%),
    linear-gradient(135deg, #ffffff, #f7fbff);
}

.tracker-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.tracker-steps div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid #e2e7f0;
  border-radius: 12px;
  background: #ffffff;
}

.tracker-steps span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  color: #607095;
  background: #edf1f8;
  border-radius: 999px;
  font-weight: 800;
}

.tracker-steps .done {
  border-color: rgba(47, 72, 167, 0.36);
  background: linear-gradient(135deg, #eef4ff, #fff9e8);
}

.tracker-steps .done span {
  color: white;
  background: #2f48a7;
}

.workflow-panel .section-title {
  margin-bottom: 14px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.section-task,
.workload-row,
.activity-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 14px;
}

.section-task strong,
.section-task span,
.section-task small,
.workload-row strong,
.workload-row span,
.activity-item span,
.activity-item small {
  display: block;
}

.section-task span,
.workload-row span,
.activity-item span,
.activity-item small {
  color: var(--muted);
  margin-top: 4px;
}

.workload-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.workload-card-grid,
.user-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.section-loads {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.load-card,
.user-card {
  border: 1px solid #e2e7f0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #f8faff);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.load-card {
  min-height: 126px;
  padding: 18px;
  border-top: 4px solid #2f48a7;
}

.load-card span,
.load-card small {
  display: block;
  color: #607095;
  font-weight: 500;
}

.load-card strong {
  display: block;
  margin: 12px 0 4px;
  color: #0f1838;
  font-size: 34px;
  font-weight: 650;
}

.section-card:nth-child(3n + 1) {
  border-top-color: #2f48a7;
}

.section-card:nth-child(3n + 2) {
  border-top-color: #f8c43c;
}

.section-card:nth-child(3n + 3) {
  border-top-color: #8aa5ff;
}

.user-directory-shell {
  display: grid;
  gap: 18px;
}

.narrow-panel {
  max-width: 820px;
  margin: 0 auto;
}

.notification-page {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid #e2e7f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.notification-page-grid {
  display: grid;
  gap: 14px;
}

.notification-group {
  display: grid;
  gap: 10px;
}

.notification-group h3 {
  margin: 8px 0 0;
  color: #2f48a7;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.notification-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid #e2e7f0;
  border-left: 5px solid #2f48a7;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #f8faff);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.notification-card.gold {
  border-left-color: #f8c43c;
}

.notification-card.danger {
  border-left-color: #d95c5c;
}

.notification-card strong,
.notification-card span {
  display: block;
}

.notification-card strong {
  color: #0f1838;
  font-size: 18px;
  font-weight: 650;
}

.notification-card span {
  margin-top: 5px;
  color: #607095;
}

.pr-board {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid #e2e7f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.pr-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
}

.pr-schedule-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dfe7f5;
  border-top: 5px solid #2f48a7;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.pr-schedule-card.posted {
  border-top-color: #31a66a;
}

.pr-schedule-card.delayed,
.pr-schedule-card.cancelled {
  border-top-color: #d95c5c;
}

.pr-schedule-card.scheduled {
  border-top-color: #f8c43c;
}

.pr-schedule-card h3 {
  margin: 0 0 4px;
  color: #0f1838;
  font-size: 22px;
  font-weight: 650;
}

.pr-schedule-card p {
  margin: 0;
  color: #607095;
  line-height: 1.5;
}

.calendar-board,
.report-grid {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid #e2e7f0;
  border-radius: 14px;
  background:
    radial-gradient(circle at 14% 10%, rgba(47, 72, 167, 0.12), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(248, 196, 60, 0.14), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 255, 0.94));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.calendar-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.calendar-head h2 {
  margin: 0;
  color: #0f1838;
  font-size: 30px;
  font-weight: 650;
}

.calendar-head span {
  color: #607095;
  font-weight: 650;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 4px 0 8px;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(226, 231, 240, 0.9);
  border-radius: 999px;
  color: #334065;
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.calendar-legend span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2f48a7;
}

.calendar-legend .requester::before {
  background: #f8c43c;
}

.calendar-legend .section::before {
  background: #8b5cf6;
}

.calendar-legend .posting::before {
  background: #31a66a;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays strong {
  padding: 0 4px;
  color: #607095;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 10px;
  border: 1px solid #e2e7f0;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(250, 252, 255, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.calendar-day.muted {
  background: rgba(248, 250, 255, 0.58);
}

.calendar-day.has-items {
  border-color: rgba(47, 72, 167, 0.28);
  background: linear-gradient(145deg, #ffffff, #f7faff);
  box-shadow: 0 10px 22px rgba(47, 72, 167, 0.06);
}

.calendar-day.programme {
  border-color: rgba(47, 72, 167, 0.32);
  background: linear-gradient(145deg, #ffffff, #edf4ff);
}

.calendar-day.requester {
  border-color: rgba(248, 196, 60, 0.38);
  background: linear-gradient(145deg, #ffffff, #fff8de);
}

.calendar-day.section {
  border-color: rgba(139, 92, 246, 0.32);
  background: linear-gradient(145deg, #ffffff, #f4efff);
}

.calendar-day.posting {
  border-color: rgba(49, 166, 106, 0.34);
  background: linear-gradient(145deg, #ffffff, #ecfbf3);
}

.calendar-day > span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  color: #0f1838;
  background: #eef2fb;
  border-radius: 999px;
  font-weight: 800;
}

.calendar-event {
  width: 100%;
  border: 1px solid rgba(47, 72, 167, 0.16);
  border-left: 4px solid #2f48a7;
  border-radius: 8px;
  padding: 8px;
  color: #0f1838;
  background: #f7fbff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.calendar-event:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.calendar-event.programme {
  border-color: rgba(47, 72, 167, 0.22);
  border-left-color: #2f48a7;
  background: #edf4ff;
}

.calendar-event.requester {
  border-color: rgba(248, 196, 60, 0.32);
  border-left-color: #f8c43c;
  background: #fff8de;
}

.calendar-event.section {
  border-color: rgba(139, 92, 246, 0.24);
  border-left-color: #8b5cf6;
  background: #f3efff;
}

.calendar-event.posting {
  border-color: rgba(49, 166, 106, 0.24);
  border-left-color: #31a66a;
  background: #ecfbf3;
}

.calendar-event small {
  display: block;
  margin-bottom: 3px;
  color: #607095;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-event.programme small {
  color: #2f48a7;
}

.calendar-event.requester small {
  color: #946b00;
}

.calendar-event.section small {
  color: #6d43cc;
}

.calendar-event.posting small {
  color: #1f7a4c;
}

.calendar-day em {
  color: #607095;
  font-style: normal;
  font-size: 13px;
}

.report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e2e7f0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #f8faff);
}

.report-row span,
.report-row strong {
  display: block;
}

.report-row span {
  margin: 0;
  color: #607095;
}

.report-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.operations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.operation-module-layout {
  display: grid;
  gap: 18px;
}

.module-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.module-card {
  cursor: pointer;
}

.module-card > strong {
  color: #2f48a7;
  font-size: 28px;
  font-weight: 650;
}

.module-home-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 28px;
  border-radius: 18px;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 10%, rgba(248, 196, 60, 0.24), transparent 28%),
    linear-gradient(135deg, #17245b, #3148ad);
  box-shadow: 0 20px 50px rgba(23, 36, 91, 0.18);
}

.module-home-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0;
}

.module-home-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.module-home-hero > span {
  padding: 8px 14px;
  border: 1px solid rgba(248, 196, 60, 0.38);
  border-radius: 8px;
  color: #f8c43c;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.avatar.large {
  width: 72px;
  height: 72px;
  font-size: 24px;
}

.module-heading {
  margin: 28px 0 10px;
  color: #101936;
  font-size: 22px;
}

.module-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.module-choice-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid #e2e7f0;
  border-top: 5px solid #2f48a7;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.module-choice-card.attendance {
  border-top-color: #31a66a;
}

.module-choice-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #17245b, #3148ad);
  font-weight: 900;
}

.module-choice-card.attendance .module-choice-icon {
  background: linear-gradient(135deg, #1f7a4f, #31a66a);
}

.module-choice-card h2 {
  margin: 0;
  color: #101936;
}

.module-choice-card span,
.module-choice-card li {
  color: #5b6688;
  line-height: 1.55;
}

.module-choice-card ul {
  margin: 0;
  padding-left: 18px;
}

.operation-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 22px;
  border: 1px solid #e2e7f0;
  border-radius: 14px;
  background:
    radial-gradient(circle at 10% 0%, rgba(47, 72, 167, 0.08), transparent 28%),
    radial-gradient(circle at 100% 10%, rgba(248, 196, 60, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.operation-panel:nth-child(2n) {
  background:
    radial-gradient(circle at 10% 0%, rgba(49, 166, 106, 0.08), transparent 28%),
    radial-gradient(circle at 100% 10%, rgba(47, 72, 167, 0.10), transparent 30%),
    rgba(255, 255, 255, 0.94);
}

.operation-panel:nth-child(3n) {
  background:
    radial-gradient(circle at 10% 0%, rgba(139, 92, 246, 0.08), transparent 28%),
    radial-gradient(circle at 100% 10%, rgba(248, 196, 60, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.94);
}

.operation-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(226, 231, 240, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.messaging-channel-fields,
.messaging-audience-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line, #dbe3ee);
  border-radius: 8px;
  background: rgba(248, 250, 252, .72);
}

.messaging-recipient-count {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #e8f5ee;
  color: #166534;
  font-weight: 700;
}

.messaging-campaign-list {
  display: grid;
  gap: 10px;
}

.messaging-campaign-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line, #dbe3ee);
  border-radius: 8px;
  background: rgba(255, 255, 255, .84);
}

.messaging-campaign-card > div,
.messaging-campaign-card > p,
.messaging-campaign-card > small {
  margin: 0;
}

.messaging-campaign-card span,
.messaging-campaign-card small {
  display: block;
  color: var(--muted, #64748b);
}

@media (max-width: 720px) {
  .messaging-campaign-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

.operation-list {
  display: grid;
  gap: 10px;
}

.operation-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #e2e7f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.operation-card strong {
  color: #0f1838;
  font-size: 16px;
  font-weight: 700;
}

.operation-card span,
.operation-card small,
.operation-card p {
  margin: 0;
  color: #52618a;
  line-height: 1.45;
}

.operation-card a {
  color: #2f48a7;
  font-weight: 700;
  text-decoration: none;
}

.operation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.btn.danger,
.operation-actions .danger {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.28);
}

.mini-history {
  display: grid;
  gap: 4px;
  padding-top: 6px;
  border-top: 1px solid #e2e7f0;
}

.mini-history span {
  color: #64748b;
  font-size: 12px;
}

.attendance-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.attendance-panel {
  min-height: 100%;
}

.attendance-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.attendance-link-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(226, 231, 240, 0.95);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(47, 72, 167, 0.08), rgba(248, 196, 60, 0.10)),
    rgba(255, 255, 255, 0.86);
}

.attendance-link-card strong {
  color: #111a3b;
  font-size: 15px;
  font-weight: 700;
}

.attendance-link-card p,
.attendance-link-card span {
  margin: 0;
  color: #5d6889;
  line-height: 1.45;
}

.attendance-link-card a,
.attendance-table a {
  color: #2f48a7;
  font-weight: 700;
  text-decoration: none;
}

.attendance-table {
  display: grid;
  gap: 10px;
}

.attendance-table > div {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(150px, 0.9fr) minmax(110px, 0.7fr) minmax(130px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(226, 231, 240, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
}

.attendance-table strong {
  color: #111a3b;
  font-weight: 700;
}

.attendance-table span {
  color: #667192;
}

.attendance-settings {
  margin-top: 18px;
}

.attendance-session-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.attendance-session-strip.empty {
  display: block;
  padding: 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: #5b6688;
  background: rgba(255, 255, 255, 0.72);
}

.attendance-session-strip > div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(49, 166, 106, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(49, 166, 106, 0.12), rgba(47, 72, 167, 0.08)),
    rgba(255, 255, 255, 0.9);
}

.attendance-session-strip strong {
  color: #10203a;
}

.attendance-session-strip span,
.attendance-session-strip small {
  color: #5b6688;
}

.attendance-checkin-form {
  background:
    linear-gradient(135deg, rgba(47, 72, 167, 0.10), rgba(49, 166, 106, 0.10)),
    rgba(255, 255, 255, 0.88);
}

.attendance-list {
  display: grid;
  gap: 10px;
}

.attendance-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(226, 231, 240, 0.95);
  border-left: 5px solid #2f48a7;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
}

.attendance-row.duplicate {
  border-left-color: #f8c43c;
}

.attendance-row.unknown-code {
  border-left-color: #b42318;
}

.attendance-row strong,
.attendance-row b {
  color: #111a3b;
  font-weight: 750;
}

.attendance-row span {
  display: block;
  margin-top: 3px;
  color: #667192;
}

.related-ops {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e2e7f0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
}

.related-ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.related-ops-column {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e2e7f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.related-ops-column > strong {
  color: #0f1838;
}

.related-ops-column p {
  margin: 0;
  color: #334065;
  font-size: 13px;
  line-height: 1.4;
}

.related-ops-column span {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.related-ops-column a {
  color: #2f48a7;
  font-weight: 700;
  text-decoration: none;
}

.public-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.gallery-card {
  overflow: hidden;
  border: 1px solid #e2e7f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.gallery-card img,
.gallery-placeholder {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #17245f, #3f5bd6);
  font-size: 38px;
  font-weight: 800;
}

.gallery-card > div:last-child {
  padding: 20px;
}

.gallery-card h2 {
  margin: 0 0 10px;
  color: #0f1838;
  font-size: 24px;
}

.gallery-card p {
  color: #52618a;
  line-height: 1.55;
}

.report-row {
  margin: 10px 0;
}

.directory-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e2e7f0;
  border-radius: 12px;
  background: #ffffff;
}

.user-card {
  min-height: 260px;
  padding: 22px;
  text-align: center;
}

.user-card .avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  color: #2f48a7;
  background: #e9edf8;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.user-card h3 {
  margin: 0;
  color: #0f1838;
  font-size: 18px;
  font-weight: 650;
}

.user-card p {
  margin: 5px 0 12px;
  color: #607095;
}

.user-card-meta {
  display: grid;
  gap: 6px;
  margin: 16px 0;
  padding-top: 14px;
  border-top: 1px solid #e7ecf5;
  text-align: left;
}

.user-card-meta span {
  color: #607095;
  font-size: 13px;
}

.user-card-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.activity-item p {
  margin: 5px 0 0;
  line-height: 1.45;
}

.stacked {
  display: grid;
  gap: 14px;
}

.logo-preview {
  display: flex;
  align-items: center;
  gap: 18px;
}

.loading-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: #0f1838;
}

.loading-page strong {
  font-size: 18px;
  font-weight: 650;
}

.loading-mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 4px solid rgba(47, 72, 167, 0.16);
  border-top-color: #2f48a7;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  max-width: 360px;
  padding: 16px 18px;
  color: white;
  background: #0f766e;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.toast.error {
  background: #b42318;
}

@media (max-width: 1180px) {
  body.team-mode .portal {
    grid-template-columns: 1fr;
  }

  body.team-mode .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 86vw);
    transform: translateX(-110%);
    box-shadow: 24px 0 50px rgba(2, 6, 23, 0.22);
  }

  body.team-mode .sidebar.open {
    transform: translateX(0);
  }

  .topbar {
    grid-template-columns: auto auto minmax(0, 1fr) auto auto auto;
  }

  body.team-mode .topbar {
    grid-template-columns: auto minmax(180px, 320px) minmax(0, 1fr) auto auto;
  }

  body.public-mode .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .top-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .stats-grid,
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .official-hero,
  .identity-band,
  .story-section,
  .work-showcase {
    grid-template-columns: 1fr;
  }

  .hero-year {
    padding-top: 0;
  }

  .queue-layout,
  .users-layout,
  .split-grid,
  .operations-grid,
  .module-home-hero,
  .attendance-layout,
  .attendance-actions {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    width: min(760px, 100%);
    grid-template-columns: 1fr;
  }

  .auth-intro,
  .auth-card {
    min-height: auto;
  }

  .auth-intro {
    padding: 34px;
  }

  .auth-intro h1 {
    font-size: 40px;
  }

  .auth-intro p {
    font-size: 17px;
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: auto 1fr auto auto;
  }

  .top-nav,
  .global-search {
    display: none;
  }

  .content {
    padding: 18px 14px 78px;
  }

  .hero-panel {
    display: block;
    padding: 24px;
  }

  .hero-panel h1 {
    font-size: 30px;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .official-hero {
    min-height: auto;
  }

  .hero-copy,
  .hero-year,
  .identity-panel,
  .story-section,
  .work-showcase,
  .request-cta {
    padding: 28px;
  }

  .hero-copy h1,
  .identity-panel h2,
  .story-section h2,
  .work-showcase h2,
  .request-cta h2 {
    font-size: 42px;
  }

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

  .stats-grid,
  .stats-grid.three,
  .quick-grid,
  .form-grid,
  .detail-grid,
  .check-grid,
  .attendance-photo-approval-grid {
    grid-template-columns: 1fr;
  }

  .request-row {
    grid-template-columns: 1fr;
  }

  .photo-approval-card {
    grid-template-columns: 1fr;
  }

  .photo-approval-image {
    width: 100% !important;
    max-width: 260px;
    height: 240px !important;
    justify-self: center;
  }

  .photo-approval-actions {
    flex-direction: column;
  }

  .photo-approval-actions .btn {
    width: 100%;
  }

  .directory-toolbar,
  .notification-card {
    grid-template-columns: 1fr;
  }

  .notification-card .btn {
    width: 100%;
  }

  body.login-mode .content {
    padding: 18px;
  }

  .auth-shell {
    border-radius: 22px;
  }

  .auth-intro,
  .auth-card {
    padding: 28px 22px;
  }

  .auth-intro h1,
  .auth-card h1 {
    font-size: 34px;
  }

  .auth-card p {
    margin-bottom: 24px;
    font-size: 16px;
  }
}

.photo-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 15, 42, 0.58);
  backdrop-filter: blur(10px);
}

.photo-crop-dialog {
  width: min(560px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.photo-crop-stage {
  position: relative;
  width: min(360px, 82vw);
  aspect-ratio: 426 / 486;
  margin: 18px auto;
  overflow: hidden;
  border: 4px solid var(--accent);
  border-radius: 78px;
  background: #eef2f7;
  touch-action: none;
  cursor: grab;
}

.photo-crop-stage:active {
  cursor: grabbing;
}

.photo-crop-stage img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  transform-origin: center;
  translate: -50% -50%;
  user-select: none;
  pointer-events: none;
}

.photo-crop-zoom {
  display: grid;
  gap: 8px;
  font-weight: 800;
  color: var(--ink);
}

.photo-crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.public-photo-card {
  max-width: 760px;
}

.public-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 22px;
}

.public-step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.public-step span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.public-step strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-step.active,
.public-step.done {
  color: var(--primary);
}

.public-step.active span,
.public-step.done span {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.public-photo-stage {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.72);
}

.public-photo-stage:not(.active) {
  display: none;
}

.public-photo-stage h4 {
  margin: 0;
  font-size: 22px;
}

.verified-member-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(47, 68, 169, 0.18);
  border-radius: 14px;
  background: rgba(47, 68, 169, 0.08);
}

.pill.subtle {
  background: rgba(15, 23, 42, 0.06);
  color: var(--ink);
}

@media (max-width: 680px) {
  .public-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* id-card-style-marker */

.database-update-shell {
  max-width: 1160px;
  margin: 0 auto;
}

.database-update-form,
.database-stage-card,
.database-update-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.database-update-form { padding: 28px; }
.database-stepper { margin-bottom: 24px; }
.database-update-form .database-stage-card { display: none; }
.database-update-form .database-stage-card.active { display: block; }
.database-stage-card { padding: 24px; margin-bottom: 18px; }
.database-stage-card h2 { margin: 4px 0 18px; font-size: 1.35rem; }
.database-step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.database-step-actions .btn:last-child { margin-left: auto; }
.database-submit-row { display: flex; justify-content: flex-end; }
.database-update-review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; }
.database-duplicate-warning { display: grid; gap: 7px; margin: 12px 0; padding: 10px 12px; border: 1px solid #f3c56b; border-radius: 8px; color: #713f12; background: #fff8e7; }
.database-duplicate-warning strong { color: #92400e; }
.database-duplicate-warning span { font-size: 13px; }
.database-duplicate-warning .btn { justify-self: start; }
.database-update-card { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 18px; align-items: start; overflow: hidden; }
.database-update-card img { width: 130px; height: 150px; object-fit: cover; border-radius: 14px; background: #eef2ff; }
.database-update-card h3 { margin: 0 0 6px; }
.database-update-card p { margin: 3px 0; overflow-wrap: anywhere; }
.review-academic-year { display: grid; gap: 6px; margin: 12px 0; padding: 10px 12px; border: 1px solid #c7d2fe; border-radius: 10px; background: #f5f7ff; color: #172554; }
.review-academic-year select { width: 100%; }
.review-academic-year small { color: #64748b; font-size: 12px; }
.database-update-card.sent-card-review,
.photo-approval-card.sent-card-review { background: #ecfdf3; border-color: #86efac; }

.portal-member-hero { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: 0 20px 50px rgba(15,23,42,.08); }
.portal-member-avatar { display: grid; place-items: center; flex: 0 0 78px; width: 78px; height: 78px; overflow: hidden; border-radius: 50%; background: #1f2a6b; color: #fff; font-size: 24px; font-weight: 900; }
.portal-member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.portal-member-hero h2 { margin: 0 0 5px; }
.portal-member-hero p { margin: 0; }
.portal-service-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; margin: 22px 0; }
.portal-service-card { padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.9); box-shadow: 0 18px 42px rgba(15,23,42,.07); }
.portal-service-card h2 { margin: 4px 0 8px; }
.portal-service-card > p:not(.eyebrow) { color: var(--muted); }
.portal-detail-list { display: grid; gap: 12px; margin: 20px 0; }
.portal-detail-list span { display: grid; gap: 3px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.portal-detail-list b { color: var(--navy); font-size: .82rem; }
.portal-request-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.portal-request-row div { display: grid; gap: 4px; }
.portal-request-row span { color: var(--muted); }
.portal-management-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0; }
.portal-member-table { display: grid; gap: 8px; }
.portal-member-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; }
.portal-member-row span { display: grid; gap: 4px; min-width: 0; }
.portal-member-row small { color: var(--muted); overflow-wrap: anywhere; }
.portal-member-row b { white-space: nowrap; }
body.dark .portal-member-row { background: rgba(15,23,42,.72); }
@media (max-width: 800px) { .portal-service-grid { grid-template-columns: 1fr; } .portal-member-hero { align-items: flex-start; } }
@media (max-width: 620px) { .portal-management-actions { align-items: stretch; flex-direction: column; } .portal-member-row { grid-template-columns: 24px minmax(0, 1fr); } .portal-member-row b { grid-column: 2; justify-self: start; } }

.attendance-photo-approval-grid { align-items: stretch; }
.photo-approval-card { overflow: hidden; }
.photo-approval-card > div { min-width: 0; overflow-wrap: anywhere; }

.template-id-card-preview {
  position: relative;
  width: 820px;
  aspect-ratio: 3508 / 1811;
  background: #fff url("/assets/membership-card-template.png?v=20260712") center / 100% 100% no-repeat;
  border: 1px solid #d8e0ed;
  border-radius: 12px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, .14);
  overflow: hidden;
  break-inside: avoid;
}

.template-id-card-preview .preview-photo {
  position: absolute;
  left: 3.8%;
  top: 24.5%;
  width: 20.8%;
  height: 45.1%;
  border-radius: 8.4%;
  overflow: hidden;
}

.template-id-card-preview .preview-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.template-id-card-preview .preview-initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  background: linear-gradient(135deg, #f6c348, #2f48a7);
  font-size: 38px;
  font-weight: 900;
}

.template-id-card-preview .preview-name {
  position: absolute;
  left: 27%;
  top: 24.3%;
  width: 41%;
  color: #05075f;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.template-id-card-preview .preview-programme {
  position: absolute;
  left: 32%;
  top: 42.5%;
  width: 31.5%;
  color: #000;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.08;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.template-id-card-preview .preview-au {
  position: absolute;
  left: 32%;
  top: 58%;
  width: 18%;
  color: #000;
  font-size: 20px;
  font-weight: 800;
}

.template-id-card-preview .preview-year {
  position: absolute;
  left: 32%;
  top: 70.8%;
  width: 20%;
  color: #000;
  font-size: 20px;
  font-weight: 800;
}

.template-id-card-preview .preview-code {
  position: absolute;
  left: 8.7%;
  top: 80.8%;
  width: 18%;
  color: #000;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.template-id-card-preview .preview-qr {
  position: absolute;
  left: 79.2%;
  top: 38.2%;
  width: 13.8%;
  aspect-ratio: 1;
}

.template-id-card-preview .preview-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.programme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.programme-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(239, 245, 255, .82));
  box-shadow: var(--shadow-soft);
}

.programme-card h3 {
  margin: 4px 0 8px;
}

.programme-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.programme-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn.danger,
.pill.danger {
  color: #991b1b;
}

.pill.success {
  color: #166534;
  background: #dcfce7;
}

@media (max-width: 760px) {
  .member-dashboard-metrics { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .database-dashboard-card { min-height: 112px; padding: 18px; }
  .database-dashboard-copy strong { font-size: 32px; }
  .dashboard-level-section { grid-template-columns: 1fr; padding: 18px; }
  .member-distribution-cards,
  .member-level-cards { grid-template-columns: 1fr; }
}

