/* =========================================================
   Creative Safety Portal — Design System (mirrors Power Portal)
   ========================================================= */

:root {
  --navy:       #0f172a;
  --navy-light: #1e293b;
  --amber:      #f59e0b;
  --amber-dark: #d97706;
  --white:      #ffffff;
  --slate-50:   #f8fafc;
  --slate-100:  #f1f5f9;
  --slate-200:  #e2e8f0;
  --slate-400:  #94a3b8;
  --slate-600:  #475569;
  --slate-800:  #1e293b;
  --success:    #10b981;
  --danger:     #ef4444;
  --warning:    #f59e0b;
  --radius:     8px;
  --radius-lg:  12px;
  --shadow:     0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --sidebar-w:  248px;
  --transition: 0.18s ease;
  --border:     var(--slate-200);
}

/* ─── Reset ────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--slate-50);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: var(--amber-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.02em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
small { font-size: 13px; color: var(--slate-400); }

/* ─── Admin Layout ──────────────────────────────────────── */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: var(--sidebar-w);
  background: var(--navy);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  overflow-y: auto;
  transition: transform var(--transition);
}

.admin-sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.admin-sidebar-logo .logo-mark {
  width: 36px;
  height: 36px;
  background: var(--amber);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 10px;
}

.admin-sidebar-logo .logo-name {
  font-weight: 800;
  font-size: 15px;
  color: var(--white);
  letter-spacing: -0.2px;
}

.admin-sidebar-logo .logo-sub {
  font-size: 11px;
  color: var(--slate-400);
  margin-top: 2px;
}

.hub-back-link {
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 6px;
}

.admin-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 0;
}

.admin-nav-section {
  padding: 8px 16px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--slate-400);
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  margin: 1px 8px;
  transition: background var(--transition), color var(--transition);
}

.admin-nav a .nav-icon {
  width: 18px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

.admin-nav a:hover {
  background: rgba(255,255,255,.06);
  color: var(--white);
  text-decoration: none;
}

.admin-nav a.active {
  background: var(--amber);
  color: var(--navy);
  font-weight: 700;
}

.admin-nav a.active:hover {
  background: var(--amber-dark);
}

.admin-sidebar-footer {
  padding: 14px 8px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.admin-sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: var(--slate-400);
  text-decoration: none;
  font-size: 13px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}

.admin-sidebar-footer a:hover {
  background: rgba(255,255,255,.06);
  color: var(--white);
  text-decoration: none;
}

.admin-sidebar-user {
  padding: 12px 16px 8px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.admin-sidebar-user .user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.admin-sidebar-user .user-role {
  font-size: 11px;
  color: var(--slate-400);
  text-transform: capitalize;
}

.admin-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: clip;
}

.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
}

.admin-topbar-title {
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-content {
  padding: 28px;
  flex: 1;
}

.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 150;
}

.admin-overlay.active { display: block; }

/* ─── Page Header ─────────────────────────────────────────── */
.page-header {
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.page-header .page-subtitle {
  color: var(--slate-600);
  font-size: 14px;
  margin: 0;
}

.page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
}

.card-header {
  margin: -22px -22px 22px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--slate-100);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card-header h2,
.card-header h3 {
  margin: 0;
  font-size: 1rem;
}

.card-subtitle {
  flex: 0 0 100%;
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}

.card-body { padding: 0; }
.card-footer {
  margin: 22px -22px -22px;
  padding: 14px 22px;
  border-top: 1px solid var(--slate-100);
  background: var(--slate-50);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ─── Metric Cards ────────────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.metric-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--amber);
}

.metric-card.green::before  { background: var(--success); }
.metric-card.red::before    { background: var(--danger); }
.metric-card.navy::before   { background: var(--navy); }

.metric-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--slate-400);
  margin-bottom: 8px;
}

.metric-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -1px;
}

.metric-sub {
  font-size: 12px;
  color: var(--slate-400);
  margin-top: 5px;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
  font-family: inherit;
}

.btn:hover { text-decoration: none; }

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}

.btn-primary:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  color: var(--navy);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--slate-200);
}

.btn-secondary:hover {
  background: var(--slate-100);
  border-color: var(--slate-400);
  color: var(--navy);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}

.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.btn-success {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}

.btn-success:hover {
  background: #059669;
  border-color: #059669;
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-dark:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-600);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--slate-100);
  color: var(--navy);
}

.btn-sm {
  padding: 6px 13px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.badge-pending  { background: rgba(245,158,11,.15); color: #92400e; }
.badge-approved { background: rgba(16,185,129,.15); color: #065f46; }
.badge-rejected { background: rgba(239,68,68,.15);  color: #991b1b; }
.badge-draft    { background: rgba(100,116,139,.15); color: #334155; }
.badge-active   { background: rgba(16,185,129,.15); color: #065f46; }
.badge-closed   { background: rgba(239,68,68,.15);  color: #991b1b; }
.badge-success  { background: rgba(16,185,129,.15); color: #065f46; }
.badge-warning  { background: rgba(245,158,11,.15); color: #92400e; }
.badge-info     { background: rgba(59,130,246,.15); color: #1e40af; }
.badge-neutral  { background: rgba(100,116,139,.12); color: #334155; }

/* ─── Alerts ─────────────────────────────────────────────── */
.alert {
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-icon { flex-shrink: 0; font-size: 16px; }

.alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.alert-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

/* ─── Forms ──────────────────────────────────────────────── */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--danger);
  margin-left: 3px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
  line-height: 1.5;
}

.form-control:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}

.form-control::placeholder { color: var(--slate-400); }

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-hint {
  font-size: 12px;
  color: var(--slate-400);
  margin-top: 5px;
}

.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 5px;
  font-weight: 500;
}

.form-control.has-error {
  border-color: var(--danger);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  flex-wrap: wrap;
}

/* ─── Tables ─────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table thead th {
  background: var(--slate-50);
  padding: 11px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--slate-600);
  border-bottom: 1px solid var(--slate-200);
  white-space: nowrap;
}

table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--slate-100);
  color: var(--navy);
  vertical-align: middle;
}

table tbody tr:last-child td { border-bottom: none; }
table tbody tr:hover { background: var(--slate-50); }

.table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

/* ─── Tabs ────────────────────────────────────────────────── */
.tabs-nav {
  display: flex;
  gap: 2px;
  border-bottom: 2px solid var(--slate-200);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-600);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  font-family: inherit;
}

.tab-btn:hover { color: var(--navy); }

.tab-btn.active {
  color: var(--amber-dark);
  border-bottom-color: var(--amber);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Empty States ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 14px;
  opacity: 0.3;
}

.empty-state h3 {
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.empty-state p {
  color: var(--slate-400);
  font-size: 14px;
  max-width: 340px;
  margin: 0 auto 18px;
}

/* ─── Login / Auth Pages ─────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo .logo-mark {
  width: 52px;
  height: 52px;
  background: var(--amber);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 24px;
  color: var(--navy);
  margin: 0 auto 12px;
}

.login-logo h1 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.login-logo p {
  font-size: 13px;
  color: var(--slate-400);
  margin: 0;
}

/* ─── Modal ──────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn .15s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-box,
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  animation: modalSlideIn .15s ease;
}

@keyframes modalSlideIn {
  from { transform: translateY(-12px) scale(.97); }
  to   { transform: translateY(0)     scale(1);   }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--slate-200);
}

.modal-header h2,
.modal-header h3 { margin: 0; font-size: 1rem; }

.modal-body { padding: 20px 22px; }

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--slate-200);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--slate-400);
  padding: 2px 4px;
  border-radius: 4px;
}

.modal-close:hover { color: var(--slate-600); background: var(--slate-100); }

/* ─── Dialog (native <dialog>) ───────────────────────────── */
dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  margin: auto;
  max-width: 95vw;
}
dialog::backdrop { background: rgba(0,0,0,.45); }

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--slate-200);
}

.dialog-header h2,
.dialog-header h3 { margin: 0; font-size: 1rem; }

.dialog-body  { padding: 20px 28px; overflow-y: auto; max-height: calc(85vh - 120px); }

.dialog-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--slate-200);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dialog-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--slate-400);
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
}

.dialog-close:hover { color: var(--slate-600); background: var(--slate-100); }

/* ─── Toggle Switch ──────────────────────────────────────── */
.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.toggle-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: relative;
  width: 40px;
  height: 22px;
  background: var(--slate-200);
  border-radius: 11px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.toggle-switch input:checked ~ .toggle-track {
  background: var(--success);
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform 0.2s;
}

.toggle-switch input:checked ~ .toggle-track .toggle-thumb {
  transform: translateX(18px);
}

/* ─── Toast ──────────────────────────────────────────────── */
.admin-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  z-index: 99999;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  color: var(--white);
  animation: toastIn .2s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.admin-toast-success { background: var(--success); }
.admin-toast-error   { background: var(--danger); }
.admin-toast-warning { background: var(--warning); color: var(--navy); }

/* ─── Audit Form: top-level layout ──────────────────────── */
.audit-shell {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.audit-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 3px solid var(--amber);
}

.audit-topbar .btn-ghost {
  color: var(--white);
  border-color: rgba(255,255,255,.3);
}

.audit-topbar .btn-ghost:hover {
  background: rgba(255,255,255,.12);
}

.audit-title {
  flex: 1;
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audit-progress-ring {
  background: var(--amber);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.audit-sections {
  padding: 16px 12px 80px;
}

.audit-section-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}

.audit-section-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--slate-400);
  flex-shrink: 0;
}

/* Button group (Yes / No / N/A) */
.button-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn-option {
  flex: 1;
  min-width: 72px;
  padding: 10px 8px;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-600);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-option:hover { border-color: var(--amber); color: var(--navy); }

.btn-option.selected-yes { background: #f0fdf4; border-color: var(--success); color: #065f46; }
.btn-option.selected-no  { background: #fef2f2; border-color: var(--danger);  color: #991b1b; }
.btn-option.selected-na  { background: var(--slate-100); border-color: var(--slate-400); color: var(--slate-600); }

/* Required dot */
.req-dot {
  color: var(--danger);
  margin-left: 3px;
}

/* Badge variant used in audit */
.badge-indigo {
  background: rgba(99,102,241,.12);
  color: #4338ca;
}

/* Note + action expandable areas */
.field-note-area,
.field-action-area {
  display: none;
  margin-top: 10px;
}

.field-note-area.open,
.field-action-area.open {
  display: block;
}

/* Hidden field-value inputs */
.field-value {
  display: none;
}

/* Media remove button */
.remove-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,.6);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Page indicator (pagination) */
.page-indicator {
  font-size: 12px;
  color: var(--slate-400);
  font-weight: 500;
}

/* Bottom save indicator bar */
.audit-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  box-shadow: 0 -2px 8px rgba(0,0,0,.06);
}

/* ─── Safety-Specific: Audit Form ────────────────────────── */
.audit-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

.audit-progress-bar {
  height: 6px;
  background: var(--slate-200);
  border-radius: 3px;
  margin-bottom: 20px;
  overflow: hidden;
}

.audit-progress-fill {
  height: 100%;
  background: var(--amber);
  border-radius: 3px;
  transition: width .3s ease;
}

.audit-section {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.audit-section-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-100);
}

.audit-section-header h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: var(--navy);
}

.audit-section-header .section-progress {
  font-size: 12px;
  color: var(--slate-400);
  font-weight: 500;
}

.audit-section-body {
  padding: 16px;
}

.field-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.field-card:last-child { margin-bottom: 0; }

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.field-label .required { color: var(--danger); margin-left: 3px; }

/* Button group (Yes/No/N/A) */
.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-group-option {
  flex: 1;
  min-width: 80px;
  padding: 10px;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-600);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
}

.btn-group-option:hover {
  border-color: var(--amber);
  color: var(--navy);
}

.btn-group-option.selected-yes  { background: #f0fdf4; border-color: var(--success); color: #065f46; }
.btn-group-option.selected-no   { background: #fef2f2; border-color: var(--danger);  color: #991b1b; }
.btn-group-option.selected-na   { background: var(--slate-100); border-color: var(--slate-400); color: var(--slate-600); }

/* Field action bar */
.field-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.field-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  background: var(--white);
  font-size: 12px;
  color: var(--slate-600);
  cursor: pointer;
  transition: all var(--transition);
}

.field-action-btn:hover { background: var(--slate-100); color: var(--navy); }
.field-action-btn.active { border-color: var(--amber); color: var(--amber-dark); }
.field-action-btn.flagged { border-color: var(--danger); color: var(--danger); background: #fef2f2; }

/* Media thumbnails */
.media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.media-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--slate-200);
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-thumb-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: rgba(0,0,0,.6);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Audit sticky header */
.audit-sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.audit-sticky-title {
  font-weight: 700;
  font-size: 14px;
}

.audit-score-pill {
  background: var(--amber);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ─── Safety-Specific: Risk Matrix ───────────────────────── */
.risk-matrix {
  overflow-x: auto;
}

.risk-matrix table {
  min-width: 400px;
}

.risk-matrix td,
.risk-matrix th {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border: 1px solid var(--slate-200);
}

.risk-cell-low        { background: #f0fdf4; color: #166534; }
.risk-cell-medium     { background: #fffbeb; color: #92400e; }
.risk-cell-significant{ background: #fff7ed; color: #9a3412; }
.risk-cell-major      { background: #fef2f2; color: #991b1b; }

/* Score badges */
.score-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.score-low          { background: rgba(16,185,129,.15);  color: #065f46; }
.score-medium       { background: rgba(245,158,11,.15);  color: #92400e; }
.score-significant  { background: rgba(249,115,22,.15);  color: #9a3412; }
.score-major        { background: rgba(239,68,68,.15);   color: #991b1b; }

/* ─── Safety-Specific: RAMS Builder ──────────────────────── */
.rams-section-block {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.rams-section-header {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-100);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rams-section-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  flex: 1;
}

.rams-section-body {
  padding: 20px;
}

.hazard-row {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  background: var(--slate-50);
}

.hazard-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hazard-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.risk-score-display {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.risk-score-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
}

/* ─── Safety-Specific: Hazard Table (read-only) ──────────── */
.hazard-table-wrap {
  overflow-x: auto;
}

.hazard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.hazard-table th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.hazard-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: top;
}

.hazard-table tbody tr:nth-child(even) td {
  background: var(--slate-50);
}

/* ─── Template Builder ───────────────────────────────────── */
.template-builder {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.template-sections-list, .template-section-list {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.template-section-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--slate-100);
  cursor: pointer;
  transition: background var(--transition);
  font-size: 14px;
  color: var(--navy);
}

.template-section-item:last-child { border-bottom: none; }
.template-section-item:hover { background: var(--slate-50); }
.template-section-item.active { background: #fffbeb; border-left: 3px solid var(--amber); }

.template-field-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.template-field-card .drag-handle {
  color: var(--slate-400);
  cursor: grab;
  font-size: 16px;
  margin-top: 2px;
}

/* ─── View Audit: Photo Lightbox ─────────────────────────── */
.photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,.1);
  border: none;
  color: var(--white);
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Dispatch / Scheduling ──────────────────────────────── */
.dispatch-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--slate-100);
}

.dispatch-item:last-child { border-bottom: none; }

.dispatch-icon {
  width: 36px;
  height: 36px;
  background: var(--slate-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.dispatch-icon.sent { background: #f0fdf4; }
.dispatch-icon.pending { background: #fffbeb; }

/* ─── Viewer Subscription Grid ───────────────────────────── */
.subscription-grid {
  display: grid;
  gap: 0;
}

.subscription-grid .sub-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--slate-100);
  gap: 12px;
}

.subscription-grid .sub-row:last-child { border-bottom: none; }

/* ─── Utility Classes ────────────────────────────────────── */
.hidden { display: none !important; }
.text-muted { color: var(--slate-400); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-amber   { color: var(--amber-dark); }
.text-xs  { font-size: 11px; }
.text-sm  { font-size: 13px; }
.fw-bold  { font-weight: 700; }
.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 8px; }
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.mt-4  { margin-top: 32px; }
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 8px; }
.mb-2  { margin-bottom: 16px; }
.mb-3  { margin-bottom: 24px; }
.mb-4  { margin-bottom: 32px; }
.flex  { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }
.divider { border: none; border-top: 1px solid var(--slate-200); margin: 20px 0; }
.font-mono { font-family: ui-monospace, 'Cascadia Code', monospace; }
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.sticky-top { position: sticky; top: 20px; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.bg-slate { background: var(--slate-50); }
.bg-white { background: var(--white); }
.border-top { border-top: 1px solid var(--slate-200); }
.border-bottom { border-bottom: 1px solid var(--slate-200); }

/* ─── Template editor — field list ───────────────────────── */
.field-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: box-shadow var(--transition);
}

.field-item:hover { box-shadow: var(--shadow-sm, 0 1px 4px rgba(0,0,0,.08)); }

/* Form inside flex row must not create its own box */
.field-item > form { display: contents; }

.field-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.field-type-badge {
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .template-builder {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

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

  .admin-main {
    margin-left: 0;
  }

  .admin-hamburger {
    display: flex;
    align-items: center;
  }

  .admin-content {
    padding: 16px;
  }

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

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

  .card { padding: 16px; }
  .card-header { margin: -16px -16px 16px; padding: 14px 16px; }
  .card-footer { margin: 16px -16px -16px; }

  .table-wrap { border-radius: var(--radius); }

  .page-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

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

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  table { font-size: 13px; }
  table thead th { padding: 8px 10px; }
  table tbody td { padding: 9px 10px; }
  .table-actions { flex-wrap: wrap; gap: 4px; }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric-value { font-size: 2rem; }
  .admin-content { padding: 12px; }
  .btn { padding: 9px 16px; font-size: 13px; }
  .btn-sm { padding: 5px 10px; font-size: 11px; }
  .login-box { padding: 28px 20px; }
  h1 { font-size: 1.2rem; }
}

/* ─── Table → Card stacking on phones ───────────────────────
   JS stamps data-label on each td from the thead at ≤640px. */
@media (max-width: 640px) {
  .table-wrap {
    border: none;
    border-radius: 0;
    overflow-x: visible;
    background: transparent;
    box-shadow: none;
  }

  .table-wrap table { display: block; }
  .table-wrap table thead { display: none; }
  .table-wrap table tbody { display: block; }

  .table-wrap table tbody tr {
    display: block;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .table-wrap table tbody td {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--slate-100);
    font-size: 13px;
  }

  .table-wrap table tbody tr td:last-child { border-bottom: none; }

  .table-wrap table tbody td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--slate-400);
    min-width: 90px;
    flex-shrink: 0;
    padding-top: 2px;
  }

  .table-wrap table tbody td[data-label=""]::before,
  .table-wrap table tbody td:not([data-label])::before { display: none; }

  .table-wrap.table-no-stack {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    overflow-x: auto;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .table-wrap.table-no-stack table          { display: table; font-size: 12px; }
  .table-wrap.table-no-stack thead          { display: table-header-group; }
  .table-wrap.table-no-stack tbody          { display: table-row-group; }
  .table-wrap.table-no-stack tbody tr       { display: table-row; background: transparent; border: none; border-radius: 0; margin: 0; box-shadow: none; }
  .table-wrap.table-no-stack thead th       { padding: 8px 10px; font-size: 11px; }
  .table-wrap.table-no-stack tbody td       { display: table-cell; padding: 8px 10px; border-bottom: 1px solid var(--slate-100); }
  .table-wrap.table-no-stack tbody td::before { display: none; }
}

/* ─── Legacy class aliases (old dark-theme names → power-portal names) ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--amber);
}

.stat-val {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--slate-400);
}

p.subtitle,
.page-subtitle,
.subtitle {
  color: var(--slate-600);
  font-size: 14px;
  margin: 0;
}

.mb-24 { margin-bottom: 24px; }

.empty-icon {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 14px;
  text-align: center;
}

.empty-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 6px;
  text-align: center;
}

/* Old sidebar class names — map to admin-* equivalents */
.app-shell        { display: flex; min-height: 100vh; }
.sidebar          { width: var(--sidebar-w); background: var(--navy); flex-shrink: 0; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 200; overflow-y: auto; }
.main-content     { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.content-area     { padding: 28px; flex: 1; }
.topbar           { background: var(--white); border-bottom: 1px solid var(--slate-200); padding: 0 28px; height: 60px; display: flex; align-items: center; position: sticky; top: 0; z-index: 100; }
.topbar-title     { font-weight: 700; font-size: 17px; color: var(--navy); flex: 1; }
.topbar-actions   { display: flex; align-items: center; gap: 10px; }
.sidebar-link     { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: #94a3b8; text-decoration: none; font-size: 14px; font-weight: 500; border-radius: 6px; margin: 1px 8px; transition: background .18s, color .18s; }
.sidebar-link:hover { background: rgba(255,255,255,.06); color: var(--white); text-decoration: none; }
.sidebar-link.active { background: var(--amber); color: var(--navy); font-weight: 700; }
.sidebar-section-label { padding: 8px 16px 4px; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--slate-400); }
.sidebar-logo     { padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
.logo-mark        { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; color: var(--white); }
.logo-icon        { width: 36px; height: 36px; background: var(--amber); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px; color: var(--navy); }
.sidebar-footer   { padding: 14px 8px; border-top: 1px solid rgba(255,255,255,.07); }
.sidebar-footer .user-name  { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.sidebar-footer .logout-link { display: inline-block; margin-top: 6px; color: var(--danger); font-size: 12px; }
.sidebar-nav      { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 0; }


/* ── Tab bar ──────────────────────────────────────────────── */
.tab-bar { display:flex; gap:4px; border-bottom:2px solid var(--slate-200); }
.tab-link { padding:10px 18px; font-size:14px; font-weight:600; color:var(--slate-500); text-decoration:none; border-bottom:3px solid transparent; margin-bottom:-2px; transition:color .15s, border-color .15s; }
.tab-link:hover { color:var(--navy); }
.tab-link.active { color:var(--indigo); border-bottom-color:var(--indigo); }

/* ── Admin dialog ─────────────────────────────────────────── */
dialog.admin-dialog { background:var(--white); border:1px solid var(--slate-200); border-radius:var(--radius); padding:0; max-width:480px; width:90vw; box-shadow:0 20px 60px rgba(0,0,0,.15); }
dialog.admin-dialog .dialog-header { display:flex; align-items:center; justify-content:space-between; padding:18px 20px 14px; border-bottom:1px solid var(--slate-200); }
dialog.admin-dialog form { padding:20px; }
dialog.admin-dialog::backdrop { background:rgba(0,0,0,.35); }

/* ── Auth / Login page ────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  padding: 24px 16px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
}
.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-align: center;
}
.auth-logo .logo-icon {
  width: 56px;
  height: 56px;
  font-size: 28px;
  border-radius: 14px;
}
.auth-logo .app-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-400);
  letter-spacing: .3px;
  text-transform: uppercase;
}
.auth-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--slate-400);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--slate-200);
}
.auth-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--slate-200);
  text-align: center;
  font-size: 12px;
  color: var(--slate-400);
}
