:root {
  --ink: #061018;
  --navy-950: #061018;
  --navy-900: #0a1824;
  --navy-800: #102233;
  --navy-700: #173044;
  --gold: #d4b36a;
  --gold-bright: #f0d48a;
  --gold-deep: #a88840;
  --gold-glow: rgba(212, 179, 106, 0.28);
  --foam: #f4efe4;
  --text: #e9eef4;
  --muted: #8ea0b3;
  --line: rgba(240, 212, 138, 0.14);
  --glass: rgba(12, 28, 40, 0.72);
  --danger: #ef5b6a;
  --success: #3dcf8e;
  --info: #5aa7d4;
  --purple: #9b7ee0;
  --teal: #3ec6c1;
  --sidebar: 272px;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(212, 179, 106, 0.12), transparent 50%),
    radial-gradient(900px 500px at 110% 10%, rgba(62, 198, 193, 0.08), transparent 45%),
    linear-gradient(165deg, #061018 0%, #0b1c2b 48%, #102433 100%);
}
h1, h2, h3, .brand-name, .page-ref {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.01em;
}
a { color: var(--gold); text-decoration: none; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.brand-crest {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold-deep));
  color: #1a1204; font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 1.4rem;
  box-shadow: 0 0 0 4px rgba(212, 179, 106, 0.12);
}
.brand-logo {
  height: 48px;
  width: auto;
  max-width: 148px;
  object-fit: contain;
  display: block;
}

.auth-body { min-height: 100vh; }
.auth-shell { display: grid; grid-template-columns: 1.15fr 0.85fr; min-height: 100vh; }
.auth-visual {
  position: relative;
  background:
    linear-gradient(160deg, rgba(6,16,24,0.25), rgba(6,16,24,0.72)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23081a28'/%3E%3Cstop offset='1' stop-color='%230c3344'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect fill='url(%23g)' width='1600' height='900'/%3E%3Cpath d='M0 620 C 220 540 380 700 620 640 C 860 580 980 720 1600 560 L1600 900 L0 900 Z' fill='%2307141e' opacity='.85'/%3E%3Cpath d='M0 700 C 300 640 500 780 820 700 C 1100 630 1300 760 1600 680 L1600 900 L0 900 Z' fill='%23d4b36a' opacity='.08'/%3E%3C/svg%3E") center/cover;
  padding: 64px;
  display: flex; align-items: flex-end;
}
.auth-visual-copy h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 0.95; margin: 0 0 16px; }
.auth-visual-copy p { max-width: 460px; color: var(--muted); font-size: 1.05rem; }
.brand-mark { display: flex; gap: 14px; align-items: center; }
.brand-name { font-size: 1.45rem; }
.brand-sub { color: var(--muted); font-size: 0.85rem; }
.auth-panel { display: grid; place-items: center; padding: 40px 32px; background: rgba(6, 16, 24, 0.55); backdrop-filter: blur(16px); }
.login-card { width: min(420px, 100%); }
.login-card h2 { font-size: 2.2rem; margin-bottom: 8px; }
.login-lead, .login-hint { color: var(--muted); }
.login-hint { margin-top: 28px; font-size: 0.86rem; }

.app-shell { display: flex; flex-direction: column; min-height: 100vh; }
.app-main { flex: 1; min-width: 0; }

.top-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 12px 28px;
  background: rgba(5, 14, 22, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(16px);
}
.top-brand { display: flex; gap: 10px; align-items: center; color: var(--foam); justify-self: start; }
.top-brand small { display: block; color: var(--muted); font-size: 0.72rem; }
.top-groups { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.nav-group {
  background: transparent; border: 0; color: #c5d2de;
  font-weight: 700; padding: 8px 12px; border-radius: 10px;
}
.nav-group i { font-size: 0.65rem; margin-left: 4px; color: var(--gold); }
.nav-group:hover, .nav-group.active, .nav-group.show {
  background: rgba(212, 179, 106, 0.12); color: #fff;
}
.nav-drop {
  background: #0c1c28 !important; border: 1px solid var(--line) !important;
  border-radius: 12px; padding: 6px; min-width: 220px;
}
.nav-drop .dropdown-item {
  color: #d5dee6; border-radius: 8px; font-weight: 600; padding: 8px 10px;
}
.nav-drop .dropdown-item i { width: 18px; color: var(--gold); margin-right: 6px; }
.nav-drop .dropdown-item:hover, .nav-drop .dropdown-item.active {
  background: rgba(212, 179, 106, 0.14); color: #fff;
}
.top-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }
.user-chip { display: flex; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 14px; background: rgba(255,255,255,0.03); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-700); color: var(--gold); font-weight: 700; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-chip small { display: block; color: var(--muted); }
.page-head { padding: 22px 36px 6px; }
.page-head h1 { font-size: 2rem; margin: 0; }
.app-content { padding: 12px 36px 48px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--text); position: relative;
}
.notify-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.notify-panel {
  position: absolute; right: 28px; top: 72px; width: 360px; z-index: 40;
  background: var(--glass); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px; box-shadow: var(--shadow); backdrop-filter: blur(18px);
}

.glass-card, .glass-alert {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); backdrop-filter: blur(18px);
}
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.section-head h2, .section-head h3 { margin: 0; font-size: 1.6rem; }
.section-head p { margin: 0; color: var(--muted); }

.hero-band {
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 8px 4px 28px;
}
.hero-band h2 { font-size: clamp(2rem, 3vw, 3rem); margin: 0 0 8px; }
.hero-band p { max-width: 640px; color: var(--muted); }

.occupancy-orb { position: relative; width: 140px; height: 140px; }
.occupancy-orb svg { width: 140px; height: 140px; transform: rotate(-90deg); }
.orb-track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 8; }
.orb-value { fill: none; stroke: var(--gold); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 327; }
.occupancy-orb.is-blocked .orb-value { stroke: var(--danger); }
.orb-copy { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.orb-copy strong { display: block; font-size: 1.5rem; }
.orb-copy span { color: var(--muted); font-size: 0.75rem; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi-card {
  padding: 20px; border-radius: var(--radius); background: rgba(16, 34, 51, 0.7);
  border: 1px solid var(--line);
}
.kpi-card span { color: var(--muted); font-size: 0.82rem; }
.kpi-card strong { display: block; font-size: 2rem; font-family: "Cormorant Garamond", serif; }
.kpi-card.danger { border-color: rgba(239, 91, 106, 0.4); }

.table-darkish { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: rgba(255,255,255,0.06); color: var(--text); }
.table-darkish thead th { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.link-gold { color: var(--gold-bright); font-weight: 700; }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1b1306; border: 0; font-weight: 800; border-radius: 12px; padding: 10px 18px;
  box-shadow: 0 8px 24px var(--gold-glow);
}
.btn-gold:hover { color: #1b1306; filter: brightness(1.05); }
.btn-ghost, .btn-danger-ghost {
  background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: 12px; font-weight: 700;
}
.btn-danger-ghost { color: #ffb4bb; border-color: rgba(239,91,106,0.35); }
.btn-icon-danger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border-radius: 10px;
  background: rgba(239, 91, 106, 0.12); border: 1px solid rgba(239, 91, 106, 0.28);
  color: #ffb3bb; cursor: pointer;
}
.btn-icon-danger:hover { background: rgba(239, 91, 106, 0.22); color: #fff; }
.btn-icon-danger:disabled { opacity: 0.45; cursor: not-allowed; }
.table-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.btn-icon-view {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border-radius: 10px;
  background: rgba(90, 167, 212, 0.12); border: 1px solid rgba(90, 167, 212, 0.32);
  color: #9ed3ef; text-decoration: none;
}
.btn-icon-view:hover { background: rgba(90, 167, 212, 0.22); color: #fff; }
.btn-icon-edit {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border-radius: 10px;
  background: rgba(212, 179, 106, 0.14); border: 1px solid rgba(212, 179, 106, 0.35);
  color: var(--gold-bright); cursor: pointer;
}
.btn-icon-edit:hover { background: rgba(212, 179, 106, 0.24); color: #fff; }
.guest-doc-actions { position: relative; display: flex; align-items: center; gap: 8px; min-height: 46px; }
.guest-doc-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.btn-icon-upload {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border-radius: 10px;
  background: rgba(212, 179, 106, 0.14); border: 1px solid rgba(212, 179, 106, 0.35);
  color: var(--gold-bright); cursor: pointer;
}
.btn-icon-upload:hover { background: rgba(212, 179, 106, 0.24); color: #fff; }
.btn-doc-preview {
  border: 1px solid rgba(158, 211, 239, 0.35); background: rgba(90, 167, 212, 0.12);
  color: #9ed3ef; border-radius: 999px; padding: 4px 10px; font-size: 0.75rem; font-weight: 700;
}
.btn-doc-preview:hover { color: #fff; background: rgba(90, 167, 212, 0.22); }
.guest-doc-name { margin-top: 4px; font-size: 0.72rem; color: #9fb0bd; word-break: break-all; }
.guest-doc-frame { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 12px; background: #061018; }
.guest-doc-pdf { min-height: 70vh; border: 0; }
.guest-doc-fallback { text-align: center; padding: 28px 12px; }
.guest-doc-fallback i { font-size: 2.4rem; color: var(--gold-bright); margin-bottom: 12px; }
#guestDocPreviewModal { z-index: 1090; }

.form-control, .form-select {
  background: rgba(6, 16, 24, 0.65); border: 1px solid rgba(255,255,255,0.1); color: var(--text);
  border-radius: 12px; padding: 0.7rem 0.9rem;
}
.form-control:focus, .form-select:focus {
  background: rgba(6, 16, 24, 0.8); color: #fff; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-label { color: #c2d0dc; font-weight: 600; font-size: 0.86rem; }
.form-check-label { color: #d5dee6; }

.status-pill {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em;
}
.tone-muted { background: rgba(255,255,255,0.08); color: #c5d0da; }
.tone-info { background: rgba(90,167,212,0.16); color: #9ed3ef; }
.tone-warning { background: rgba(240,212,138,0.16); color: var(--gold-bright); }
.tone-purple { background: rgba(155,126,224,0.16); color: #cbb8ff; }
.tone-gold { background: rgba(212,179,106,0.2); color: var(--gold-bright); }
.tone-teal { background: rgba(62,198,193,0.16); color: #8ef0ec; }
.tone-success { background: rgba(61,207,142,0.16); color: #8cf0c0; }
.tone-danger { background: rgba(239,91,106,0.16); color: #ffb3bb; }

.page-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 18px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 0.82rem; }
.chip.active { background: rgba(212,179,106,0.16); color: var(--gold-bright); border-color: var(--gold); }

.process-list { padding-left: 18px; color: var(--muted); }
.process-list li { margin: 8px 0; }
.process-list .current { color: var(--gold-bright); font-weight: 700; }
.sticky-card { position: sticky; top: 24px; }
.preview-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.preview-note, .preview-warn, .preview-err { margin-top: 12px; font-size: 0.88rem; }
.preview-warn { color: var(--gold-bright); }
.preview-err { color: #ffb3bb; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-grid span { display: block; color: var(--muted); font-size: 0.78rem; }
.flow-track { display: flex; gap: 8px; flex-wrap: wrap; }
.flow-step { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.flow-step.active { background: rgba(212,179,106,0.16); color: var(--gold-bright); }
.flow-step.done { color: var(--success); border-color: rgba(61,207,142,0.3); }

.timeline { display: flex; flex-direction: column; gap: 16px; }
.timeline-item { display: flex; gap: 12px; }
.timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-top: 7px; flex: 0 0 10px; }
.timeline-comment { margin-top: 4px; color: var(--muted); }

.queue-list { display: flex; flex-direction: column; gap: 10px; }
.queue-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px; border-radius: 14px; border: 1px solid var(--line); color: inherit;
}
.queue-item:hover { background: rgba(212,179,106,0.08); }
.empty-copy { color: var(--muted); margin: 0; }
.occupancy-big { font-family: "Cormorant Garamond", serif; font-size: 4rem; line-height: 1; }
.occupancy-big.is-blocked { color: var(--danger); }
.policy-doc h3 { margin-top: 28px; color: var(--gold-bright); }
.lead-copy { color: var(--muted); font-size: 1.05rem; }
.policy-banner { padding: 12px 14px; border-radius: 12px; background: rgba(240,212,138,0.1); color: var(--gold-bright); }

.request-modal {
  --bs-modal-bg: #0a1824;
  --bs-modal-color: #e9eef4;
  --bs-modal-border-color: rgba(240, 212, 138, 0.14);
  --bs-modal-header-border-color: rgba(240, 212, 138, 0.14);
  --bs-modal-footer-border-color: rgba(240, 212, 138, 0.14);
  color-scheme: dark;
}
.request-modal .modal-content {
  background: linear-gradient(165deg, #061018 0%, #0b1c2b 48%, #102433 100%) !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px;
  color: var(--text) !important;
  box-shadow: var(--shadow);
}
.request-modal .modal-header {
  background: transparent;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.request-modal .modal-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  margin: 0;
  color: var(--foam);
}
.request-modal .modal-body {
  padding: 1.25rem 1.4rem 1.6rem;
  background: transparent;
  color: var(--text);
}
.request-modal .glass-card {
  background: rgba(12, 28, 40, 0.55);
  box-shadow: none;
}
.request-modal .form-control,
.request-modal .form-select,
.request-modal textarea {
  background: rgba(6, 16, 24, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text) !important;
}
.request-modal .form-control:focus,
.request-modal .form-select:focus,
.request-modal textarea:focus {
  background: rgba(6, 16, 24, 0.9) !important;
  color: #fff !important;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.request-modal .form-label,
.request-modal .form-check-label {
  color: #c2d0dc;
}
.request-modal .section-head h2 {
  color: var(--foam);
}

.er-modal-dialog {
  width: min(1240px, 96vw);
  max-width: 96vw;
  margin: 1rem auto;
}
#erModal .modal-content {
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
}
#erModal .modal-header,
#erModal .modal-footer {
  flex-shrink: 0;
  padding: 0.7rem 1.1rem;
}
#erModal .modal-title { font-size: 1.45rem; }
#erModal .modal-body {
  padding: 0.75rem 1.1rem 0.9rem;
  overflow: auto;
}
#erModal .form-label {
  font-size: 0.74rem;
  margin-bottom: 0.18rem;
}
#erModal .form-control,
#erModal .form-select,
#erModal textarea {
  min-height: 36px;
  padding: 0.32rem 0.6rem;
  font-size: 0.9rem;
}
.er-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
}
.er-form-title {
  margin: 0 0 8px;
  color: var(--gold-bright);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .er-form { grid-template-columns: 1fr; }
}

.wa-qr { width: 260px; max-width: 100%; background: #fff; padding: 12px; border-radius: 14px; }
.wa-status-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.92rem; }
.wa-status-pill.connected { color: var(--success); }
.wa-status-pill.qr-required { color: var(--gold-bright); }
.wa-status-pill.disconnected, .wa-status-pill.error { color: var(--danger); }
.wa-log-sent { color: var(--success); }
.wa-log-pending { color: var(--gold); }
.wa-log-failed { color: var(--danger); }

.rights-matrix {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}
.rights-matrix th,
.rights-matrix td {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  vertical-align: middle;
}
.rights-matrix thead th {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  background: rgba(255,255,255,0.02);
}
.rights-matrix thead th small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.rights-matrix th:first-child,
.rights-matrix td:first-child {
  text-align: left;
  color: #e9eef4;
  font-weight: 600;
  min-width: 280px;
}
.rights-matrix td { text-align: center; }
.rights-check {
  appearance: none;
  -webkit-appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  border: 2px solid rgba(255,255,255,0.28);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  vertical-align: middle;
}
.rights-check:checked {
  background: #3b82f6;
  border-color: #3b82f6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.rights-check:disabled {
  cursor: default;
  opacity: 1;
}
.rights-matrix-foot {
  display: flex;
  justify-content: flex-end;
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.rights-user-select {
  min-width: 180px;
  max-width: 260px;
  padding: 0.35rem 0.55rem;
  font-size: 0.86rem;
  font-weight: 700;
}
.users-rights-card { overflow: visible; }
.users-rights-table { overflow: visible; }
.rights-multi { position: relative; min-width: 180px; }
.rights-multi-toggle {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.rights-multi-menu {
  min-width: 220px;
  max-height: none;
  overflow: auto;
  background: #0c1c28;
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--shadow);
}
.rights-multi-menu.is-open {
  position: fixed;
  z-index: 2100;
}
.rights-multi-menu label {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  color: #d5dee6;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
}
.rights-multi-menu label:hover { background: rgba(212,179,106,0.14); }
.rights-multi-menu input { accent-color: #3b82f6; }
.rights-multi-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(6, 16, 24, 0.45);
}
.rights-multi-form .form-check { margin: 0; min-height: 0; }
.emp-dept-head {
  padding: 10px 16px;
  font-weight: 800;
  color: var(--gold-bright);
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.emp-photo, .hod-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-grid;
  place-items: center;
  background: var(--navy-700);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
}
.emp-photo { border: 2px solid rgba(62, 198, 193, 0.55); }
.hod-photo { border: 2px solid rgba(212, 179, 106, 0.75); box-shadow: 0 0 0 3px rgba(212, 179, 106, 0.12); }
.emp-photo-empty, .hod-photo-empty { border-style: dashed; }
.hod-card-head, .emp-card-head {
  padding: 16px 18px 14px;
}
.hod-card-head {
  background: linear-gradient(135deg, rgba(212, 179, 106, 0.18), rgba(62, 198, 193, 0.08));
  border-bottom: 1px solid rgba(212, 179, 106, 0.22);
}
.hod-card-head h2, .emp-card-head h2 { color: #fff; }
.hod-card-head p, .emp-card-head p { color: #c5d2de; font-size: 0.86rem; }
.emp-card-head {
  background: linear-gradient(135deg, rgba(62, 198, 193, 0.16), rgba(90, 167, 212, 0.1));
  border-bottom: 1px solid rgba(62, 198, 193, 0.22);
}
.hod-role-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.dept-pill {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 800;
}
.dept-pill.tone-0, .chip-tone-0 { background: rgba(212,179,106,0.18); color: var(--gold-bright); border-color: rgba(212,179,106,0.35); }
.dept-pill.tone-1, .chip-tone-1 { background: rgba(62,198,193,0.18); color: #8ef0ec; border-color: rgba(62,198,193,0.35); }
.dept-pill.tone-2, .chip-tone-2 { background: rgba(90,167,212,0.18); color: #9ed3ef; border-color: rgba(90,167,212,0.35); }
.dept-pill.tone-3, .chip-tone-3 { background: rgba(155,126,224,0.18); color: #cbb8ff; border-color: rgba(155,126,224,0.35); }
.dept-pill.tone-4, .chip-tone-4 { background: rgba(61,207,142,0.16); color: #8cf0c0; border-color: rgba(61,207,142,0.32); }
.dept-pill.tone-5, .chip-tone-5 { background: rgba(239,91,106,0.16); color: #ffb3bb; border-color: rgba(239,91,106,0.32); }
.chip-tone-0, .chip-tone-1, .chip-tone-2, .chip-tone-3, .chip-tone-4, .chip-tone-5 {
  border: 1px solid transparent;
}
.chip-tone-0.active, .chip-tone-1.active, .chip-tone-2.active, .chip-tone-3.active, .chip-tone-4.active, .chip-tone-5.active {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.12);
}

.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast-item { min-width: 260px; padding: 12px 14px; border-radius: 12px; background: #102233; border: 1px solid var(--line); box-shadow: var(--shadow); }
.toast-item.ok { border-color: rgba(61,207,142,0.4); }
.toast-item.err { border-color: rgba(239,91,106,0.45); }

@media (max-width: 1100px) {
  .auth-shell, .kpi-grid, .detail-grid { grid-template-columns: 1fr; }
  .app-content, .page-head { padding-left: 18px; padding-right: 18px; }
  .user-chip { display: none; }
  .top-nav { flex-wrap: wrap; }
}
