:root {
  color-scheme: dark;
  --app-background-image: none;
  --bg: #071821;
  --bg-elevated: #0d1b2a;
  --card: rgba(15, 23, 42, 0.9);
  --card-soft: rgba(15, 23, 42, 0.72);
  --text: #ecf4ff;
  --muted: #a7b8c8;
  --accent: #67e8f9;
  --accent-strong: #7dd3fc;
  --cyan: #7dd3fc;
  --warning: #fbbf24;
  --danger: #f87171;
  --success: #5eead4;
  --accent-soft: rgba(103, 232, 249, 0.12);
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(103, 232, 249, 0.25);
  --shadow: 0 18px 44px rgba(2, 6, 23, 0.28);
  --shadow-soft: 0 10px 24px rgba(2, 6, 23, 0.18);
  --radius-card: 18px;
  --radius-control: 10px;
  --ease: 180ms ease;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

body.report-modal-open::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(1, 10, 24, 0.78);
}

#movementReportCard.report-workflow-modal {
  position: fixed;
  inset: 3vh 4vw;
  z-index: 30;
  overflow-y: auto;
  max-height: 94vh;
  margin: 0;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
}

body.report-modal-open .workspace-sidebar,
body.report-modal-open .workspace-sidebar-backdrop {
  z-index: 24;
}

#engineerDialog {
  z-index: 40;
}

.report-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1;
}

.field-note {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(103, 232, 249, 0.12), transparent 25%),
    linear-gradient(180deg, #0a1724 0%, var(--bg) 100%);
  color: var(--text);
  min-height: 100vh;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 10, 24, 0.75);
}

.modal-content {
  position: relative;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  padding: 2rem;
  width: min(440px, 90vw);
  max-height: min(90vh, 560px);
  overflow: hidden;
  z-index: 1;
}

.modal-content h3 {
  margin-top: 0;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.modal-actions button,
#engineerSubmitBtn {
  flex: 1 1 140px;
}

#engineerOtherSection {
  margin-top: 1rem;
}

#engineerOtherSection label {
  display: block;
}

.modal-content .ghost {
  margin-top: 1rem;
  width: 100%;
}

#engineerFieldsSection {
  display: grid;
  gap: 0.75rem;
  max-height: min(40vh, 280px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.35rem;
  margin-top: 0.75rem;
}

#engineerFieldsSection label {
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.42);
}

.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-row > div:first-child {
  flex: 1 1 420px;
  min-width: 0;
}

.workspace-shell {
  --sidebar-width: 76px;
  --sidebar-expanded-width: 278px;
  min-height: 100vh;
}

.workspace-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  padding: 0.85rem 0.65rem 0.75rem;
  color: #e7eef9;
  background: linear-gradient(180deg, #081321 0%, #10233b 100%);
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 12px 0 36px rgba(1, 8, 20, 0.18);
  transition: width 220ms ease, padding 220ms ease;
}

.workspace-sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-height: 3.8rem;
  padding: 0.1rem 0 0.75rem;
  border-bottom: 1px solid rgba(203, 213, 225, 0.14);
}

.workspace-brand-copy,
.workspace-nav-link > span:not(.workspace-nav-code) {
  display: none;
}

.workspace-sidebar-nav {
  padding: 1rem 0;
}

.workspace-nav-link {
  justify-content: center;
  padding-right: 0;
  padding-left: 0;
}

.workspace-sidebar-footer { text-align: center; }
.workspace-signout { justify-content: center; padding-right: 0; padding-left: 0; font-size: 0; }
.workspace-signout::after { content: "↪"; font-size: 1rem; }

.workspace-sidebar:hover,
.workspace-sidebar:focus-within {
  width: var(--sidebar-expanded-width);
  padding-right: 1rem;
  padding-left: 1rem;
}

.workspace-sidebar:hover .workspace-sidebar-brand,
.workspace-sidebar:focus-within .workspace-sidebar-brand {
  flex-direction: row;
  gap: 0.8rem;
  padding-right: 0.25rem;
  padding-left: 0.25rem;
}

.workspace-sidebar:hover .workspace-brand-copy,
.workspace-sidebar:focus-within .workspace-brand-copy,
.workspace-sidebar:hover .workspace-nav-link > span:not(.workspace-nav-code),
.workspace-sidebar:focus-within .workspace-nav-link > span:not(.workspace-nav-code) {
  display: grid;
  visibility: visible;
  opacity: 1;
}

.workspace-sidebar:hover .workspace-nav-link,
.workspace-sidebar:focus-within .workspace-nav-link {
  justify-content: flex-start;
  padding-right: 0.55rem;
  padding-left: 0.55rem;
}

.workspace-sidebar:hover .workspace-sidebar-footer,
.workspace-sidebar:focus-within .workspace-sidebar-footer { text-align: left; }
.workspace-sidebar:hover .workspace-signout,
.workspace-sidebar:focus-within .workspace-signout { justify-content: flex-start; padding: 0.55rem 0.8rem; font-size: 0.82rem; }
.workspace-sidebar:hover .workspace-signout::after,
.workspace-sidebar:focus-within .workspace-signout::after { content: none; }

.workspace-brand-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.28), rgba(15, 118, 110, 0.34));
  color: #e0f2fe;
  font-size: 0.78rem;
  font-weight: 850;
}

.workspace-brand-copy { display: grid; gap: 0.17rem; min-width: 0; }
.workspace-sidebar:not(:hover):not(:focus-within) .workspace-brand-copy { display: none; }
.workspace-brand-copy strong { overflow: hidden; color: #f8fafc; font-size: 0.86rem; text-overflow: ellipsis; white-space: nowrap; }
.workspace-brand-copy small { color: #aab9cb; font-size: 0.7rem; }

.workspace-sidebar-nav {
  display: grid;
  align-content: start;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0.28rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.7rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, 0.55) rgba(148, 163, 184, 0.1);
}

.workspace-nav-section {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  width: 100%;
}

.workspace-sidebar-nav {
  min-width: 0;
  width: 100%;
}

.workspace-nav-heading {
  margin: 0;
  padding: 0.35rem 0.6rem;
  color: #8192a8;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.workspace-sidebar-nav::-webkit-scrollbar { width: 8px; }
.workspace-sidebar-nav::-webkit-scrollbar-track { background: rgba(148, 163, 184, 0.1); border-radius: 999px; }
.workspace-sidebar-nav::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: rgba(125, 211, 252, 0.55); background-clip: padding-box; }
.workspace-sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(125, 211, 252, 0.82); background-clip: padding-box; }

.workspace-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-width: 0;
  min-height: 2.45rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #bac7d8;
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
  transition: color var(--ease), background var(--ease), border-color var(--ease), transform var(--ease);
}

.workspace-nav-link:hover {
  transform: translateX(2px);
  border-color: rgba(148, 163, 184, 0.13);
  background: rgba(148, 163, 184, 0.1);
  color: #fff;
}

.workspace-nav-link.is-current {
  border-color: rgba(125, 211, 252, 0.25);
  background: linear-gradient(105deg, rgba(37, 99, 235, 0.4), rgba(15, 118, 110, 0.3));
  color: #f8fafc;
  box-shadow: inset 3px 0 #38bdf8, 0 7px 18px rgba(2, 8, 23, 0.16);
}

.workspace-nav-code {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 1.55rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.09);
  color: #d7e1ef;
  font-size: 0.55rem;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.workspace-nav-link.is-current .workspace-nav-code {
  border-color: rgba(125, 211, 252, 0.2);
  background: #0ea5e9;
  color: #fff;
}

@media (min-width: 761px) {
  .workspace-sidebar:not(:hover):not(:focus-within) .workspace-nav-heading {
    display: none;
  }

  .workspace-sidebar:not(:hover):not(:focus-within) .workspace-nav-link {
    padding-right: 0;
    padding-left: 0;
  }
}

.workspace-sidebar-footer { margin-top: auto; padding-top: 0.9rem; border-top: 1px solid rgba(203, 213, 225, 0.14); }

.workspace-shell,
.workspace-sidebar,
.workspace-main,
.workspace-menu-toggle {
  visibility: visible;
}

@media (min-width: 761px) {
  .workspace-sidebar {
    z-index: 60;
    transform: none;
  }
}
.workspace-signout {
  display: flex;
  align-items: center;
  min-height: 2.9rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(196, 181, 253, 0.18);
  border-radius: 12px;
  background: rgba(109, 78, 139, 0.2);
  color: #f1e9ff;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
}
.workspace-signout:hover { border-color: rgba(196, 181, 253, 0.36); background: rgba(109, 78, 139, 0.34); }
.workspace-sidebar:not(:hover):not(:focus-within) .workspace-signout { justify-content: center; padding-right: 0; padding-left: 0; font-size: 0; }

.workspace-main { min-width: 0; min-height: 100vh; margin-left: var(--sidebar-width); }
.workspace-main > .hero { padding-top: 1.6rem; padding-bottom: 1.65rem; }
.workspace-main > .hero .hero-actions { display: none; }
.workspace-main > main { min-height: calc(100vh - 8rem); }
.workspace-menu-toggle, .workspace-sidebar-backdrop { display: none; }

.hero-actions {
  display: flex;
  flex: 0 1 auto;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  margin-left: auto;
}

.auth-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.auth-link:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.2);
}

.auth-link.secondary {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.75rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(96, 165, 250, 0.24);
}

.auth-link.secondary:hover {
  background: rgba(96, 165, 250, 0.22);
}

.admin-nav-link {
  display: none;
  color: #fef08a;
  border-color: rgba(254, 240, 138, 0.34);
  background: rgba(13, 148, 136, 0.22);
}

.image-reports-page {
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(7, 17, 31, 0.96)),
    var(--app-background-image) center / cover scroll,
    var(--bg);
}

.image-reports-hero {
  background: linear-gradient(135deg, #312e81 0%, #075985 54%, #0f766e 100%);
}

.image-reports-layout {
  max-width: 1240px;
}

.image-reports-card {
  min-width: 0;
}

.image-reports-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.image-report-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.5);
}

.image-report-card a {
  display: block;
  aspect-ratio: 4 / 3;
  background: #020617;
}

.image-report-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease, opacity 180ms ease;
}

.image-report-card a:hover img {
  transform: scale(1.03);
  opacity: 0.9;
}

.image-report-meta {
  padding: 0.85rem;
}

.image-report-meta h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.image-report-meta p,
.image-report-meta span,
.image-reports-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.image-report-meta span {
  display: block;
  margin-top: 0.35rem;
  color: var(--accent);
}

.auth-shell,
.profile-shell {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.profile-shell > .notification-panel {
  width: min(100%, 720px);
}

.auth-card,
.profile-card {
  width: min(100%, 560px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.auth-card {
  margin-top: 1rem;
}

.muted {
  color: var(--muted);
}

.admin-page {
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.84), rgba(7, 17, 31, 0.96)),
    var(--app-background-image) center / cover scroll,
    var(--bg);
}

.admin-hero {
  background: linear-gradient(135deg, #082f49 0%, #0f766e 54%, #164e63 100%);
}

.admin-hero.hero { padding: 1.2rem 1.5rem 1.35rem; }
.admin-hero .hero-row { align-items: center; }
.admin-hero h1 { margin: 0.1rem 0 0.25rem; }
.admin-hero .subtitle { margin: 0; max-width: 60ch; }
.admin-hero .hero-actions { gap: 0.5rem; }
.admin-hero .auth-link { padding: 0.55rem 0.8rem; }

.admin-shell {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 1rem 1.5rem 1.5rem;
}

.admin-banner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem 1.1rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: linear-gradient(110deg, rgba(8, 19, 29, 0.94), rgba(12, 48, 59, 0.78));
  box-shadow: var(--shadow-soft);
}

.admin-banner h2 { margin: 0.1rem 0 0.3rem; }
.admin-status { margin: 0; color: #b7ebff; }
.admin-last-sync { margin: 0.35rem 0 0; color: rgba(226, 232, 240, 0.72); font-size: 0.76rem; }
.admin-seal {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  border: 1px solid rgba(167, 184, 200, 0.4);
  border-radius: 50%;
  color: #d5ecff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-align: center;
}
.admin-seal strong { color: #fef3c7; font-size: 0.78rem; }
.admin-content { display: grid; min-width: 0; gap: 0.85rem; }
.admin-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.85rem; }
.admin-metric {
  padding: 1rem 1.05rem 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.86);
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.3rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}
.admin-metric-snapshot { border-color: rgba(103, 232, 249, 0.15); }
.admin-metric span, .admin-metric small { display: block; }
.admin-metric span {
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.3;
}
.admin-metric small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
  margin-top: auto;
}
.admin-metric strong {
  display: block;
  margin: 0.2rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--text);
}
.admin-metric-alert {
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(127, 29, 29, 0.18);
}
.admin-metric-alert span { color: #fca5a5; }
.admin-metric-alert strong { color: #fce7e7; }
.admin-metric-alert small { color: #fecaca; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.9fr); gap: 1.25rem; align-items: start; }
.admin-stack { display: grid; gap: 1.25rem; }
.admin-panel { padding: 1.25rem; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 18px; background: rgba(15, 23, 42, 0.92); box-shadow: var(--shadow-soft); }
.admin-roster-layout { display: grid; grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.7fr); gap: 1rem; align-items: start; }
.admin-invite-panel, .admin-roster-panel { min-width: 0; }
.admin-invite-form { border-bottom: 0; padding-bottom: 0; }
.admin-panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.admin-panel-heading h2 { margin: 0.1rem 0 0; font-size: 1.25rem; }
.admin-panel-note { margin: 0.35rem 0 0; color: #c1ceda; font-size: 0.78rem; }
.admin-refresh { padding: 0.55rem 0.8rem; }
.admin-report-list, .admin-user-list, .admin-job-list { display: grid; gap: 0.6rem; }
.admin-report-head { display: grid; grid-template-columns: 0.9fr 1fr 1.35fr auto; gap: 0.8rem; padding: 0 0 0.45rem; color: #67e8f9; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.admin-report-row { display: grid; grid-template-columns: 0.9fr 1fr 1.35fr auto; gap: 0.8rem; align-items: center; padding: 0.85rem 0; border-top: 1px solid rgba(148, 163, 184, 0.12); }
.admin-report-row strong, .admin-report-row span, .admin-report-row small { display: block; }
.admin-report-row span, .admin-report-row small { color: #c1ceda; font-size: 0.8rem; line-height: 1.45; }
.admin-report-date strong { color: #a5f3fc; }
.admin-image-link { color: #fef08a; font-size: 0.78rem; font-weight: 800; white-space: nowrap; }
.admin-no-image { color: #c1ceda !important; white-space: nowrap; }
.admin-job-form, .admin-invite-form { display: grid; gap: 0.7rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(148, 163, 184, 0.14); }
.admin-job-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-job-form .span-2 { grid-column: 1 / -1; }
.job-creation-fields { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.job-form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.job-form-actions button:disabled { cursor: wait; opacity: 0.65; }
.admin-filter-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; margin: 0.7rem 0 0.2rem; }
.admin-filter-group { display: flex; flex-wrap: wrap; gap: 0.5rem; flex: 1; }
.filter-chip { padding: 0.42rem 0.7rem; border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 999px; background: rgba(15, 23, 42, 0.68); color: #e2e8f0; font-size: 0.74rem; font-weight: 700; cursor: pointer; }
.filter-chip.is-active { background: rgba(45, 212, 191, 0.18); border-color: rgba(45, 212, 191, 0.5); color: #b6f7eb; }
.job-history-page .job-history-panel { width: 100%; }
.report-range-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 3.25rem;
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(100deg, #1d4ed8, #0e7490);
  color: #f0f9ff;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}
.report-range-banner:hover { background: linear-gradient(100deg, #1e40af, #155e75); }
.report-range-banner span { font-size: 1.3rem; line-height: 1; }
.report-range-options { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.9rem; }
.report-custom-range { width: 100%; }
.report-company-filter { grid-column: 1 / -1; }
.job-history-page .report-range-options .filter-chip { min-height: 2.5rem; }
.job-history-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0 0.5rem; }
.job-history-card .job-meta { color: #c1ceda; }
.admin-sort-select { padding: 0.42rem 0.7rem; border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 8px; background: rgba(15, 23, 42, 0.68); color: #e2e8f0; font-size: 0.74rem; font-weight: 700; cursor: pointer; }
.admin-job-card { display: grid; gap: 0.6rem; padding: 0.9rem; border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 14px; background: rgba(15, 23, 42, 0.7); }
.archive-panel { border-color: rgba(45, 212, 191, 0.22); }
.archive-panel .admin-job-card { background: rgba(15, 42, 38, 0.68); border-color: rgba(45, 212, 191, 0.13); }
.admin-job-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.8rem; }
.admin-job-header strong, .admin-job-header small { display: block; }
.admin-job-header small { color: var(--muted); font-size: 0.72rem; }
.admin-job-status { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; padding: 0.35rem 0.55rem; border-radius: 999px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.admin-job-status.assigned { background: rgba(59, 130, 246, 0.18); color: #93c5fd; }
.admin-job-status.accepted { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.admin-job-status.rejected { background: rgba(239, 68, 68, 0.14); color: #fca5a5; }
.admin-job-status.on-site { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.admin-job-status.completed { background: rgba(45, 212, 191, 0.18); color: #99f6e4; }
.admin-job-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; color: var(--muted); font-size: 0.72rem; }
.admin-job-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.admin-job-action { padding: 0.45rem 0.65rem; font-size: 0.75rem; }
.admin-job-action.secondary { opacity: 0.8; }
.admin-user-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto auto; gap: 0.6rem; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid rgba(148, 163, 184, 0.1); }
.admin-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #0d9488; color: white; font-weight: 800; }
.admin-user-copy strong, .admin-user-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-copy small { display: block; color: #c1ceda; font-size: 0.68rem; }
.admin-user-copy span, .admin-user-status { color: #c1ceda; font-size: 0.72rem; }
.admin-user-status-wrap small { display: block; margin-top: 0.2rem; color: #c1ceda; font-size: 0.68rem; white-space: nowrap; }
.admin-user-status { color: #6ee7b7; white-space: nowrap; }
.admin-user-status.is-disabled { color: #fb923c; }
.admin-user-status.is-active { color: #6ee7b7; }
.admin-user-status.is-inactive { color: #fca5a5; }
.admin-user-action { padding: 0.45rem 0.65rem; font-size: 0.75rem; }
.admin-presence { display: inline-flex; align-items: center; gap: 0.4rem; color: #c1ceda; font-size: 0.72rem; white-space: nowrap; }
.admin-presence-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #94a3b8; box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.12); }
.admin-presence.is-online { color: #a7f3d0; }
.admin-presence.is-online .admin-presence-dot { background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16); }
.admin-presence.is-offline .admin-presence-dot { background: #94a3b8; }
.field-error { display: block; min-height: 1.1rem; margin-top: 0.3rem; color: #fda4af; font-size: 0.78rem; }
#inviteEmail[aria-invalid="true"] { border-color: #fb7185; box-shadow: 0 0 0 2px rgba(251, 113, 133, 0.18); }
.admin-empty { color: #c1ceda; }
.admin-template-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.24);
}
.admin-template-card + .admin-template-card { margin-top: 0.75rem; }
.admin-template-card h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.admin-template-card p { margin: 0 0 0.3rem; color: #d3deea; }
.admin-template-card small { color: #aab9cb; }
.admin-template-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.admin-template-actions .btn-secondary { padding: 0.55rem 0.8rem; }
.template-save-form { display: grid; gap: 0.75rem; }
.template-save-form label { color: var(--text); font-weight: 600; }
.template-save-form input { width: 100%; }
.template-save-form .confirmation-actions { margin-top: 0.5rem; }
@media (max-width: 520px) {
  .admin-template-card { align-items: flex-start; flex-direction: column; }
  .admin-template-actions { width: 100%; }
}
.admin-metrics .admin-metric:nth-child(4) { border-color: rgba(52, 211, 153, 0.3); }
.admin-page .admin-last-sync { color: #c1ceda; }

.admin-page .chart-summary { margin: 0; }
.admin-page .chart-summary .metric { flex: 1 1 180px; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 0.65rem; row-gap: 0.25rem; padding: 0.7rem 0.85rem; border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 12px; background: rgba(2, 6, 23, 0.3); }
.admin-page .chart-summary .metric strong { grid-row: span 2; color: var(--text); font-size: 1.8rem; }
.admin-page .chart-summary .metric span { color: var(--accent); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.admin-page .chart-summary .metric small { color: #c1ceda; font-size: 0.72rem; }

@media (max-width: 850px) {
  .admin-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-roster-layout { grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr); }
  .image-reports-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .admin-shell { padding: 0.85rem; }
  .admin-hero.hero { padding: 1rem 0.85rem; }
  .admin-banner { align-items: flex-start; }
  .admin-roster-layout { grid-template-columns: 1fr; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .admin-metric { min-height: 120px; padding: 0.8rem 0.8rem 0.7rem; }
  .admin-metric span { letter-spacing: 0.08em; font-size: 0.6rem; }
  .admin-metric strong { font-size: clamp(1.6rem, 9vw, 2.4rem); }
  .admin-report-row { grid-template-columns: 1fr 1fr; }
  .admin-report-head { display: none; }
  .admin-report-row > :nth-child(3) { grid-column: 1 / -1; }
  .admin-report-row > :last-child { justify-self: end; }
  .admin-user-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .admin-user-status-wrap { grid-column: 2; }
  .admin-presence { grid-column: 2 / -1; }
  .admin-user-action { grid-column: 2 / -1; justify-self: start; }
  .image-reports-gallery { grid-template-columns: 1fr; }
}

.status {
  min-height: 1.25rem;
  margin-top: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.job-list-stack {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.job-card {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.84);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.job-header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.job-unread {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.job-card-header strong,
.job-card-header small,
.job-card p,
.job-meta,
.job-rejection {
  display: block;
}

.job-card-header small,
.job-meta,
.job-rejection {
  color: var(--muted);
  font-size: 0.75rem;
}

.job-status {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.job-status.assigned { background: rgba(59, 130, 246, 0.18); color: #93c5fd; }
.job-status.accepted { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.job-status.rejected { background: rgba(239, 68, 68, 0.14); color: #fca5a5; }
.job-status.on-site { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.job-status.completed { background: rgba(45, 212, 191, 0.18); color: #99f6e4; }

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.job-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 10px;
  background: #0f766e;
  color: white;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.job-action.ghost {
  background: transparent;
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.job-action.secondary {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.job-detail-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 40;
}

.job-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
}

.job-detail-panel {
  position: relative;
  width: min(760px, calc(100vw - 2rem));
  max-height: min(78vh, 760px);
  overflow: auto;
  padding: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow-soft);
}

.job-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.job-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.job-detail-grid p,
.job-detail-section p {
  display: grid;
  gap: 0.3rem;
  margin: 0;
}

.job-detail-grid strong,
.job-detail-section h4 {
  color: #a5f3fc;
}

.job-detail-grid span,
.job-detail-section p {
  color: #e2e8f0;
}

.job-detail-section {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.job-history-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.job-history-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.62);
}

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

.job-history-item small {
  color: var(--muted);
  margin-top: 0.2rem;
}

.job-history-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.14);
  color: #99f6e4;
  font-size: 0.6rem;
  font-weight: 800;
}

/* Job card and detail styles */
.job-card-completed {
  opacity: 0.85;
}

.job-card-header h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.job-scheduled {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.job-description {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
}

.job-card-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.view-job-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.view-job-btn:hover {
  background: #3b82f6;
}

.job-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.job-status-assigned { background: rgba(59, 130, 246, 0.18); color: #93c5fd; }
.job-status-accepted { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.job-status-rejected { background: rgba(239, 68, 68, 0.14); color: #fca5a5; }
.job-status-on-site { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.job-status-completed { background: rgba(45, 212, 191, 0.18); color: #99f6e4; }

.detail-row {
  margin-bottom: 1rem;
}

.detail-row label {
  display: block;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.detail-row p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.detail-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
  font-style: italic;
}

.error-state {
  text-align: center;
  color: var(--danger);
  padding: 1rem;
  font-size: 0.9rem;
}

/* Job detail tabs */
.job-detail-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.job-detail-tab {
  padding: 0.6rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.job-detail-tab:hover {
  color: var(--text);
  border-bottom-color: rgba(96, 165, 250, 0.3);
}

.job-detail-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.job-detail-tab-content {
  animation: fadeIn 0.2s ease;
}

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

.job-history-loading {
  text-align: center;
  color: var(--muted);
  padding: 1rem;
}

/* Job controls */
.jobs-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  align-items: center;
}

.jobs-search {
  flex: 1;
  min-width: 200px;
}

.search-input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.55);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.jobs-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Job templates */
.template-card {
  display: grid;
  gap: 0.8rem;
  padding: 1.1rem;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  transition: border-color 0.2s, background-color 0.2s;
}

.template-card:hover {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(15, 23, 42, 0.9);
}

.template-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.template-header h4 {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
}

.template-client {
  margin: 0.25rem 0 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.template-priority {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.template-priority.normal {
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
}

.template-priority.high {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}

.template-priority.urgent {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.template-description {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
}

.template-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.template-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.template-use-btn,
.template-edit-btn,
.template-delete-btn {
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.template-use-btn {
  background: var(--accent);
  color: white;
  font-weight: 600;
  flex: 1;
  min-width: 100px;
}

.template-use-btn:hover {
  background: #3b82f6;
}

.template-edit-btn {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.template-edit-btn:hover {
  background: rgba(148, 163, 184, 0.2);
}

.template-delete-btn {
  background: transparent;
  color: var(--muted);
  border: none;
}

.template-delete-btn:hover {
  color: var(--danger);
}

.template-preview {
  padding: 0.8rem;
  background: rgba(96, 165, 250, 0.1);
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--accent);
}

.template-preview p {
  margin: 0;
  line-height: 1.4;
}

.template-preview strong {
  color: var(--accent);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.6);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

#adminTemplatesList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.profile-header {
  display: block;
  margin-bottom: 1rem;
}

.profile-form {
  display: grid;
  gap: 0.9rem;
}

.profile-actions {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-actions .auth-link.secondary {
  margin-top: 0;
}

.profile-details + .profile-actions {
  margin-top: 1rem;
}

#profileImageFile { display: block; width: 100%; max-width: 100%; min-width: 0; }

.hero {
  background: linear-gradient(135deg, #020617 0%, #111827 42%, #1d4ed8 100%);
  color: white;
  padding: 2.35rem 1.5rem 2.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.08) 45%, transparent 100%);
  pointer-events: none;
}

.hero h1 {
  margin: 0.2rem 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.025em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.8rem;
  opacity: 0.85;
}

.subtitle {
  max-width: 700px;
  margin: 0;
  opacity: 0.92;
}

.hero-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-greeting {
  margin-top: 1.4rem;
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: min(680px, 100%);
}

.greeting-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.greeting-name {
  margin: 0.55rem 0 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .hero-greeting {
    margin-top: 1.1rem;
    padding: 1.05rem 1rem 1.15rem;
  }

  .greeting-name {
    font-size: 1.85rem;
  }
}

.greeting-subtitle {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 85%;
  line-height: 1.55;
}

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.badge {
  background: rgba(255,255,255,0.15);
  color: white;
}

.pill {
  background: var(--accent-soft);
  color: var(--accent);
}

.pill.subtle {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: var(--warning);
}

.layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.layout.single-column {
  grid-template-columns: minmax(0, 1fr);
  max-width: 900px;
}

.layout.overview-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "report report"
    "jobs jobs";
  width: 100%;
  max-width: none;
}

#movementReportCard {
  grid-area: report;
}

#memberJobsCard {
  grid-area: jobs;
}

@media (max-width: 520px) {
  .layout.overview-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "report"
      "jobs";
  }
}

.card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.section-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  color: var(--accent);
  font-weight: 700;
}

.card-copy {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.55;
}

form {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

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

input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  background: rgba(2, 6, 23, 0.55);
  color: var(--text);
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  width: 100%;
  padding-right: 3.2rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  transform: translateY(-50%);
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.password-toggle:hover {
  transform: translateY(-50%);
  color: var(--text);
  background: rgba(96, 165, 250, 0.12);
  box-shadow: none;
}

.password-toggle-icon {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

button {
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  color: white;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.24);
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.ghost {
  background: rgba(96, 165, 250, 0.12);
  color: var(--accent);
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  color: white;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.24);
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.btn-secondary {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.btn-secondary:hover {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.3);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.metric {
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 14px;
  padding: 0.9rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.9));
  display: grid;
  gap: 0.2rem;
}

.feature-stack {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.chart-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  padding: 0.95rem;
  background: rgba(2, 6, 23, 0.42);
  margin: 0.75rem 0 1rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.chart-header h3 {
  margin: 0;
  font-size: 1rem;
}

.chart-summary {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.summary-pill {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.18);
}

.summary-pill strong {
  color: var(--accent);
  font-size: 0.95rem;
}

.trend-pill {
  min-width: 220px;
}

.trend-pill strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-pill span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chart-legend {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(180deg, #93c5fd 0%, #2563eb 100%);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.2);
}

.chart-panel {
  display: grid;
  gap: 0.7rem;
}

.trend-heading,
.breakdown-heading,
.trend-footnote {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.trend-heading {
  padding: 0.2rem 0.1rem 0;
}

.trend-heading h3 {
  margin: 0.15rem 0 0;
  font-size: 1.25rem;
}

.trend-latest {
  display: grid;
  justify-items: end;
  gap: 0.08rem;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trend-latest strong {
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.trend-latest em {
  color: var(--success);
  font-style: normal;
  font-size: 0.68rem;
}

.trend-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0.65rem 0 0.2rem;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.trend-legend .legend-swatch {
  width: 22px;
  height: 3px;
  border-radius: 999px;
}

.visits-swatch,
.visits-line {
  background: #67e8f9;
  stroke: #67e8f9;
}

.trend-chart-wrap {
  margin-top: 0.3rem;
  border: 1px solid rgba(103, 232, 249, 0.12);
  border-radius: 16px;
  padding: 0.45rem 0.35rem 0.15rem;
  background:
    linear-gradient(145deg, rgba(8, 47, 73, 0.28), rgba(2, 6, 23, 0.6)),
    rgba(2, 6, 23, 0.44);
  overflow: hidden;
}

.trend-chart {
  display: block;
  width: 100%;
  min-width: 560px;
  height: auto;
}

.trend-grid line {
  stroke: rgba(148, 163, 184, 0.14);
  stroke-dasharray: 3 6;
}

.trend-grid text,
.trend-labels text {
  fill: #64748b;
  font-size: 11px;
  font-family: inherit;
}

.trend-area {
  fill: url(#trendFill);
  fill: rgba(34, 211, 238, 0.1);
  stroke: none;
}

.trend-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(103, 232, 249, 0.26));
}

.trend-dot {
  stroke: #0f172a;
  stroke-width: 2;
  transition: r 120ms ease;
}

.trend-dot:hover {
  r: 6;
}

.visits-dot {
  fill: #67e8f9;
}

.trend-footnote {
  color: var(--muted);
  font-size: 0.74rem;
  padding: 0.15rem 0.2rem 0.1rem;
}

.company-breakdown {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  margin-top: 0.45rem;
  padding-top: 0.8rem;
}

.breakdown-heading {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.company-breakdown .chart-summary-list {
  display: grid;
  gap: 0.5rem;
}

.company-breakdown .chart-row {
  margin: 0;
}

.monthly-chart {
  display: grid;
  gap: 0.7rem;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 0.45rem;
  margin-left: 92px;
}

.chart-month-label {
  text-align: center;
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.series-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.7rem;
  align-items: center;
}

.series-label {
  font-size: 0.82rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.series-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 0.3rem;
  align-items: end;
}

.series-bar {
  height: 70px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.14), rgba(15, 23, 42, 0.24));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0.2rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  position: relative;
}

.series-fill {
  width: 100%;
  height: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #93c5fd 0%, #2563eb 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 4px 10px rgba(37, 99, 235, 0.18);
  animation: growBar 650ms ease-out forwards;
  animation-delay: inherit;
}

@keyframes growBar {
  from {
    height: 0;
  }
  to {
    height: var(--bar-height);
  }
}

.series-value {
  position: absolute;
  top: -0.2rem;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 700;
}

.feature-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  background: rgba(2, 6, 23, 0.4);
}

.feature-item p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.metric strong {
  font-size: 1.05rem;
  color: var(--accent);
}

.metric span {
  color: var(--muted);
  font-size: 0.9rem;
}

.status-pill {
  min-height: 1.35rem;
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.status-pill.loading {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
}

.status-pill.loading::before {
  content: '';
  width: 0.85rem;
  height: 0.85rem;
  flex: 0 0 0.85rem;
  border: 2px solid rgba(236, 244, 255, 0.32);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: report-save-spin 800ms linear infinite;
}

#movementForm[aria-busy="true"] button[type="submit"] {
  cursor: progress;
  opacity: 0.75;
}

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

.status-pill.success {
  color: var(--success);
}

.status-pill.error {
  color: var(--danger);
}

.motivational-quote {
  margin-top: 0.75rem;
  font-style: italic;
  color: var(--text);
  background: rgba(102, 163, 255, 0.08);
  border-left: 4px solid var(--success);
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.query-form {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.query-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.query-actions {
  display: flex;
  justify-content: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.analytics-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
}

.analytics-filter-grid label,
.analytics-preset-controls label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.analytics-view-options {
  align-items: end;
}

.analytics-checkbox {
  display: flex !important;
  align-items: center;
  min-height: 42px;
  gap: 0.55rem !important;
}

.analytics-checkbox input {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}

.analytics-preset-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.analytics-preset-controls label {
  flex: 1 1 220px;
}

.analytics-result-count {
  margin: 0.25rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.analytics-comparison {
  margin-top: 0.65rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.analytics-comparison p {
  margin: 0;
}

.analytics-comparison strong {
  color: var(--text);
}

.analytics-company-chart-heading {
  margin-top: 1.2rem;
}

.analytics-company-chart {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.32);
}

.analytics-company-y-axis {
  display: grid;
  grid-template-columns: 1.8rem minmax(2rem, 1fr);
  align-items: center;
  gap: 0.25rem;
}

.analytics-company-axis-title {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.analytics-company-ticks {
  position: relative;
  height: 17rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.analytics-company-ticks span {
  position: absolute;
  right: 0.25rem;
  transform: translateY(-50%);
}

.analytics-company-ticks span:first-child {
  transform: none;
}

.analytics-company-ticks span:last-child {
  transform: translateY(-100%);
}

.analytics-company-scroll {
  min-width: 0;
  overflow-x: auto;
}

.analytics-company-content {
  width: 100%;
}

.analytics-company-plot {
  position: relative;
  height: 17rem;
  border-left: 1px solid rgba(148, 163, 184, 0.45);
  border-bottom: 1px solid rgba(148, 163, 184, 0.7);
}

.analytics-company-gridlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.analytics-company-gridlines span {
  position: absolute;
  right: 0;
  left: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.analytics-company-columns {
  position: absolute;
  inset: 10% 0 0;
  display: flex;
}

.analytics-company-column {
  position: relative;
  flex: 1 0 96px;
  min-width: 96px;
}

.analytics-company-bar-area {
  position: relative;
  width: 100%;
  height: 100%;
}

.analytics-company-value {
  position: absolute;
  left: 50%;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  transform: translateX(-50%);
}

.analytics-company-bar {
  position: absolute;
  right: 26%;
  bottom: 0;
  left: 26%;
  min-height: 2px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #22d3ee, #3b82f6);
}

.analytics-company-column:nth-child(5n + 1) .analytics-company-bar {
  background: linear-gradient(180deg, #93c5fd, #2563eb);
}

.analytics-company-column:nth-child(5n + 2) .analytics-company-bar {
  background: linear-gradient(180deg, #60a5fa, #1d4ed8);
}

.analytics-company-column:nth-child(5n + 3) .analytics-company-bar {
  background: linear-gradient(180deg, #f472b6, #9d174d);
}

.analytics-company-column:nth-child(5n + 4) .analytics-company-bar {
  background: linear-gradient(180deg, #34d399, #047857);
}

.analytics-company-column:nth-child(5n) .analytics-company-bar {
  background: linear-gradient(180deg, #fb923c, #c2410c);
}

.analytics-company-categories {
  display: flex;
}

.analytics-company-label {
  flex: 1 0 96px;
  min-width: 96px;
  padding: 0.45rem 0.35rem 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.analytics-company-x-title {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.analytics-table-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.analytics-table-heading h3,
.analytics-table-heading p {
  margin: 0;
}

.analytics-table-heading p {
  color: var(--muted);
  font-size: 0.8rem;
}

.analytics-table-scroll {
  overflow-x: auto;
}

.analytics-table th button {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.analytics-table th button:hover {
  color: var(--text);
}

.analytics-image-link {
  display: inline-block;
  margin: 0.1rem 0.4rem 0.1rem 0;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  white-space: nowrap;
}

.analytics-image-link:hover {
  color: var(--text);
}

.analytics-no-image {
  color: var(--muted);
}

.entries-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.entries {
  display: grid;
  gap: 0.75rem;
}

.entry {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 0.95rem;
  background: rgba(2, 6, 23, 0.42);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.22);
}

.entry h3 {
  margin: 0 0 0.4rem;
}

.entry p {
  margin: 0.2rem 0;
  color: var(--muted);
}

.report-image {
  display: block;
  width: min(100%, 520px);
  max-height: 360px;
  object-fit: contain;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  margin-top: 0.6rem;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.delete-entry-button {
  border: 1px solid rgba(248, 250, 252, 0.18);
  background: transparent;
  color: var(--danger);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: background 120ms ease, transform 120ms ease;
}

.delete-entry-button:hover {
  background: rgba(251, 146, 60, 0.12);
  transform: translateY(-1px);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 1rem 0;
}

.detail-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 0.95rem;
  background: rgba(2, 6, 23, 0.4);
  margin-top: 0.9rem;
}

.detail-card h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

.analytics-list {
  display: grid;
  gap: 0.55rem;
}

.analytics-list-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

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

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.analytics-table th,
.analytics-table td {
  text-align: left;
  padding: 0.6rem 0.45rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.analytics-table th {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 840px) {
  .hero {
    padding: 2rem 1rem 2.25rem;
  }

  .hero-row {
    display: grid;
    gap: 1.25rem;
  }

  .hero-actions {
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .auth-link {
    min-width: 0;
    padding: 0.62rem 0.45rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

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

  .metric-grid,
  .query-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .workspace-sidebar {
    width: min(290px, calc(100vw - 3rem));
    padding: 1rem;
    transform: translateX(-102%);
    transition: transform 220ms ease;
  }
  .workspace-sidebar-brand { flex-direction: row; gap: 0.8rem; min-height: 4.4rem; padding: 0.15rem 0.25rem 1rem; }
  .workspace-brand-copy,
  .workspace-nav-link > span:not(.workspace-nav-code) { display: grid; }
  .workspace-sidebar:not(:hover):not(:focus-within) .workspace-brand-copy { display: grid; }
  .workspace-nav-link { justify-content: flex-start; min-height: 2.9rem; padding: 0.45rem 0.55rem; }
  .workspace-sidebar-footer { text-align: left; }
  .workspace-signout { justify-content: flex-start; padding: 0.55rem 0.8rem; font-size: 0.82rem; }
  .workspace-signout::after { content: none; }
  .workspace-sidebar:hover,
  .workspace-sidebar:focus-within { width: min(290px, calc(100vw - 3rem)); }
  .workspace-shell.is-sidebar-open .workspace-sidebar { transform: translateX(0); }
  .workspace-shell.is-sidebar-open .workspace-sidebar:not(:hover):not(:focus-within) .workspace-signout {
    justify-content: flex-start;
    padding: 0.55rem 0.8rem;
    font-size: 0.82rem;
  }
  .workspace-main { margin-left: 0; }
  .workspace-main > .hero { padding: 4rem 1rem 1.35rem; }
  .workspace-main > .hero .hero-row { display: block; }
  .workspace-main > .hero .hero-row > div:first-child { width: 100%; }
  .workspace-menu-toggle {
    position: absolute;
    top: 0.9rem;
    left: 1rem;
    z-index: 2;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    width: 2.55rem;
    height: 2.4rem;
    padding: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.34);
    cursor: pointer;
  }
  .workspace-menu-toggle span { width: 1.1rem; height: 2px; border-radius: 2px; background: #f8fafc; }
  .workspace-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 59;
    display: block;
    visibility: hidden;
    border: 0;
    background: rgba(2, 8, 20, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
  }
  .workspace-shell.is-sidebar-open .workspace-sidebar-backdrop { visibility: visible; opacity: 1; pointer-events: auto; }
}

@media (max-width: 520px) {
  .job-creation-fields {
    grid-template-columns: 1fr;
  }

  .analytics-table {
    min-width: 600px;
  }

  .analytics-preset-controls > button {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-sidebar, .workspace-sidebar-backdrop, .workspace-nav-link, .workspace-signout { transition: none; }
}

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

fieldset {
  min-width: 0;
  margin: 0;
  padding: 1.05rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.24);
}

legend {
  position: relative;
  top: 0.5rem;
  max-width: 100%;
  padding: 0 0.55rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

legend span {
  color: var(--cyan);
  margin-right: 0.35rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  gap: 0.9rem;
}

.form-grid > label { min-width: 0; }
.form-grid input,
.form-grid select,
.form-grid textarea { max-width: 100%; min-width: 0; }

#movementForm .form-grid > label {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#movementForm .form-grid input,
#movementForm .form-grid select,
#movementForm .form-grid textarea {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: normal;
}

#movementForm .form-grid input::placeholder,
#movementForm .form-grid textarea::placeholder {
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
  opacity: 1;
}

.form-grid .span-2 {
  grid-column: 1 / -1;
}

#movementForm > button[type="submit"] {
  min-height: 3rem;
  margin-top: 0.15rem;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.report-page-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
  margin: -0.15rem 0 1.1rem;
}

.report-page-links .auth-link {
  justify-content: center;
  margin-top: 0;
}

.metric,
.feature-item,
.detail-card,
.entry,
.chart-card {
  box-shadow: var(--shadow-soft);
  transition: border-color var(--ease), transform var(--ease), background var(--ease), box-shadow var(--ease);
}

.metric:hover,
.feature-item:hover,
.detail-card:hover,
.entry:hover,
.chart-card:hover {
  border-color: rgba(103, 232, 249, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.32);
}

.metric strong {
  color: var(--cyan);
  font-size: 1.35rem;
}

.auth-card,
.profile-card {
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9)),
    radial-gradient(circle at top right, rgba(103, 232, 249, 0.08), transparent 38%);
}

.auth-card h2,
.profile-card h2,
.card h2 {
  letter-spacing: -0.02em;
}

.profile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.profile-details p {
  margin: 0;
  padding: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.28);
}

.profile-details strong {
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.entry {
  border-left-color: var(--cyan);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.5));
}

.entry h3 {
  color: var(--text);
}

.empty {
  padding: 2.25rem 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.22);
}

.modal-content {
  border-radius: var(--radius-card);
  border-color: rgba(103, 232, 249, 0.22);
  background: linear-gradient(145deg, #111c31, #0b1222);
}

@media (max-width: 840px) {
  #movementReportCard.report-workflow-modal {
    inset: 0;
    max-height: 100vh;
    border-radius: 0;
  }

  .report-modal-close {
    position: static;
    display: block;
    margin: 0 0 1rem auto;
  }

  .form-grid,
  .profile-details {
    grid-template-columns: 1fr;
  }

  .form-grid .span-2 {
    grid-column: auto;
  }

}

@media (max-width: 520px) {
  .layout,
  .auth-shell,
  .profile-shell {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .card,
  .auth-card,
  .profile-card {
    padding: 1rem;
  }
  .auth-shell,
  .profile-shell {
    padding-top: 1rem;
  }

  .auth-card {
    margin-top: 0;
  }

  .card-header,
  .trend-heading,
  .trend-footnote {
    flex-direction: column;
  }

  .trend-latest {
    justify-items: start;
  }

  .report-page-links {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .auth-card,
  .profile-card,
  .card {
    width: 100%;
  }

  .auth-card form,
  .profile-form {
    min-width: 0;
  }
}

/* Authentication experience */
.auth-page {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(7, 17, 31, 0.92), rgba(7, 17, 31, 0.72)),
    radial-gradient(circle at 8% 12%, rgba(56, 189, 248, 0.16), transparent 24rem),
    radial-gradient(circle at 90% 85%, rgba(37, 99, 235, 0.2), transparent 28rem),
    var(--app-background-image) center / cover fixed,
    #07111f;
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
}

.auth-page::before {
  inset: -35vmax;
  opacity: 0.75;
  background:
    radial-gradient(circle at 40% 42%, rgba(34, 211, 238, 0.16), transparent 18%),
    radial-gradient(circle at 62% 56%, rgba(59, 130, 246, 0.18), transparent 20%),
    radial-gradient(circle at 52% 62%, rgba(14, 165, 233, 0.09), transparent 23%);
  filter: blur(18px);
  animation: auth-aurora 18s ease-in-out infinite alternate;
}

.auth-page::after {
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.11) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 76%);
  animation: auth-grid-drift 22s linear infinite;
}

.auth-shell.auth-shell-animated {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 3rem));
  min-height: 100vh;
  margin: 0 auto;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}

.auth-showcase {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 490px;
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid rgba(103, 232, 249, 0.15);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.58)),
    linear-gradient(120deg, transparent 35%, rgba(103, 232, 249, 0.08), transparent 65%);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.35);
  animation: auth-enter-left 650ms cubic-bezier(.2,.8,.2,1) both;
}

.auth-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(108deg, transparent 30%, rgba(255, 255, 255, 0.09) 49%, transparent 56%);
  transform: translateX(-135%);
  animation: auth-light-sweep 7s 1.1s ease-in-out infinite;
}

.auth-showcase > *:not(.auth-orbit) { position: relative; z-index: 1; }
.auth-showcase h1 { max-width: 500px; margin: 1.45rem 0 1rem; font-size: clamp(2.25rem, 4vw, 4rem); line-height: 1.04; letter-spacing: -0.05em; }
.auth-showcase > p:not(.eyebrow) { max-width: 470px; margin: 0; color: rgba(226, 232, 240, 0.78); line-height: 1.7; }
.auth-showcase .eyebrow { color: var(--cyan, #67e8f9); font-weight: 700; }

.brand-mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 12px;
  color: #07111f;
  background: linear-gradient(135deg, #67e8f9, #60a5fa);
  box-shadow: 0 12px 32px rgba(96, 165, 250, 0.28);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-mark-mobile { display: none; }

.auth-orbit {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  border: 1px solid rgba(103, 232, 249, 0.2);
  pointer-events: none;
}

.auth-orbit-one { width: 30rem; height: 30rem; right: -15rem; bottom: -15rem; animation: auth-orbit 18s linear infinite, auth-breathe 4.5s ease-in-out infinite alternate; }
.auth-orbit-two { width: 20rem; height: 20rem; right: -8rem; bottom: -8rem; border-style: dashed; animation: auth-orbit 12s linear infinite reverse, auth-breathe 3.8s 0.4s ease-in-out infinite alternate; }

.auth-stat {
  display: grid;
  gap: 0.35rem;
  margin-top: 4.5rem;
  padding: 1rem 1.1rem;
  width: min(100%, 330px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(10px);
  animation: auth-float 5.5s 700ms ease-in-out infinite alternate;
}

.auth-stat span { color: var(--muted); font-size: 0.73rem; text-transform: uppercase; letter-spacing: 0.11em; }
.auth-stat strong { color: #f8fafc; font-size: 0.92rem; }

.auth-card.auth-card-animated {
  width: 100%;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 24px;
  animation: auth-enter-right 750ms 130ms cubic-bezier(.16,1,.3,1) both;
}

.auth-card-heading { margin-bottom: 1.8rem; }
.auth-card-heading h2 { margin: 0.28rem 0 0.55rem; font-size: clamp(1.6rem, 2.5vw, 2.1rem); }
.auth-card-heading .muted { margin: 0; line-height: 1.6; }
.auth-card form { gap: 1rem; }
.auth-card form label { opacity: 0; animation: auth-field-reveal 450ms cubic-bezier(.16,1,.3,1) forwards; }
.auth-card form label:nth-child(1) { animation-delay: 260ms; }
.auth-card form label:nth-child(2) { animation-delay: 335ms; }
.auth-card form label:nth-child(3) { animation-delay: 410ms; }
.auth-card form label:nth-child(4) { animation-delay: 485ms; }
.auth-card form label:nth-child(5) { animation-delay: 560ms; }
.auth-card form label:nth-child(6) { animation-delay: 635ms; }
.auth-card form button { min-height: 3.1rem; margin-top: 0.35rem; display: inline-flex; justify-content: center; align-items: center; gap: 0.65rem; }
.auth-card form button span { transition: transform 160ms ease; }
.auth-card form button:hover span { transform: translateX(4px); }
.auth-switch { margin: 1.25rem 0 0; text-align: center; }
.auth-switch a { color: var(--cyan, #67e8f9); font-weight: 700; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

@keyframes auth-enter-left { from { opacity: 0; transform: translateX(-28px) scale(0.985); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes auth-enter-right { from { opacity: 0; transform: translateX(28px) scale(0.985); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes auth-orbit { to { transform: rotate(360deg); } }
@keyframes auth-aurora { from { transform: rotate(-8deg) scale(1); } to { transform: rotate(8deg) scale(1.12); } }
@keyframes auth-grid-drift { to { background-position: 56px 56px; } }
@keyframes auth-light-sweep { 0%, 55% { transform: translateX(-135%); } 78%, 100% { transform: translateX(135%); } }
@keyframes auth-breathe { from { opacity: 0.55; } to { opacity: 0.95; } }
@keyframes auth-float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes auth-field-reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 800px) {
  .auth-shell.auth-shell-animated { width: min(560px, calc(100% - 1.7rem)); grid-template-columns: 1fr; padding: 1rem 0 2rem; }
  .auth-showcase { display: none; }
  .brand-mark-mobile { display: grid; margin-bottom: 1.25rem; }
  .auth-card.auth-card-animated { animation-name: auth-enter-right; }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: toast-slide-in 300ms ease-out forwards;
  pointer-events: auto;
  font-size: 0.95rem;
}

.toast.toast-success {
  border-color: rgba(52, 211, 153, 0.3);
  background: linear-gradient(135deg, rgba(5, 50, 30, 0.8), rgba(15, 60, 40, 0.9));
}

.toast.toast-error {
  border-color: rgba(251, 146, 60, 0.3);
  background: linear-gradient(135deg, rgba(60, 20, 10, 0.8), rgba(80, 25, 10, 0.9));
}

.toast.toast-info {
  border-color: rgba(96, 165, 250, 0.3);
  background: linear-gradient(135deg, rgba(15, 30, 60, 0.8), rgba(20, 40, 80, 0.9));
}

.toast.toast-warning {
  border-color: rgba(251, 191, 36, 0.42);
  background: linear-gradient(135deg, rgba(65, 46, 10, 0.92), rgba(75, 54, 12, 0.96));
}

.toast-icon {
  flex-shrink: 0;
  font-size: 1.3rem;
}

.toast-message {
  flex: 1;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.4rem;
  font-size: 1.2rem;
  opacity: 0.6;
  transition: opacity var(--ease);
}

.toast-close:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .toast-container { top: auto; right: 0.75rem; bottom: 0.75rem; left: 0.75rem; max-width: none; }
  .toast { gap: 0.65rem; padding: 0.85rem 1rem; font-size: 0.88rem; }
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(420px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid rgba(96, 165, 250, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.spinner-small {
  width: 0.9rem;
  height: 0.9rem;
  border-width: 1.5px;
}

.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

/* Confirmation Modal */
.confirmation-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  animation: modal-fade-in 200ms ease-out;
}

.confirmation-modal.hidden {
  display: none;
}

.confirmation-panel {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  animation: modal-scale-in 250ms cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.template-dialog-header {
  position: sticky;
  top: -2rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: -2rem -2rem 1rem;
  padding: 1rem 2rem;
  background: rgba(15, 23, 42, 0.98);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.template-dialog-header h3 {
  margin: 0;
}

.template-close-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(248, 250, 252, 0.42);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  color: var(--text);
  background: rgba(248, 250, 252, 0.08);
  cursor: pointer;
}

.confirmation-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  color: var(--text);
}

.confirmation-panel p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.6;
}

.confirmation-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.confirmation-actions button {
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
}

.confirmation-actions .btn-confirm {
  background: var(--danger);
  color: white;
}

.confirmation-actions .btn-confirm:hover {
  background: #ea580c;
  transform: translateY(-1px);
}

.confirmation-actions .btn-cancel {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.confirmation-actions .btn-cancel:hover {
  background: rgba(148, 163, 184, 0.15);
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-scale-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.pagination button,
.pagination a {
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--ease);
  text-decoration: none;
}

.pagination button:hover,
.pagination a:hover {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.3);
}

.pagination .active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
}

.pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination .disabled:hover {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 184, 0.2);
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 1rem;
}

/* Search Input */
.search-input {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  font-size: 0.95rem;
  transition: all var(--ease);
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  outline: none;
  background: rgba(15, 23, 42, 0.8);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Required Field Indicator */
.required-indicator::after {
  content: " *";
  color: var(--danger);
  font-weight: 700;
}

label.required-label::after {
  content: " *";
  color: var(--danger);
  margin-left: 0.25rem;
}

/* Form Field Improvements */
input[required],
textarea[required],
select[required] {
  border-color: rgba(96, 165, 250, 0.3);
}

input[required]:focus,
textarea[required]:focus,
select[required]:focus {
  border-color: var(--accent);
}

.form-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.form-error {
  display: block;
  margin-top: 0.4rem;
  color: var(--danger);
  font-size: 0.85rem;
}

.workspace-sidebar-footer {
  display: grid;
  gap: 0.55rem;
}

.workspace-theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 2.9rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: #0d1b2a;
  color: #e7eef9;
  color-scheme: dark;
  font-size: 0.82rem;
  font-weight: 750;
  box-shadow: none;
}

.workspace-theme-toggle:hover {
  border-color: rgba(148, 163, 184, 0.36);
  background: #17283b;
}

.workspace-theme-toggle:focus-within {
  outline: 2px solid #67e8f9;
  outline-offset: 2px;
}

.workspace-theme-icon {
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 1.2rem;
  place-items: center;
}

.workspace-theme-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.workspace-theme-label {
  display: none;
}

.workspace-theme-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  appearance: none;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.workspace-sidebar:not(:hover):not(:focus-within) .workspace-theme-select {
  background: transparent !important;
  color: transparent !important;
}

.workspace-sidebar:not(:hover):not(:focus-within) .workspace-theme-icon {
  margin: 0 auto;
}

.workspace-theme-select option {
  background: #0d1b2a;
  color: #e7eef9;
}

.workspace-sidebar:hover .workspace-theme-label,
.workspace-sidebar:focus-within .workspace-theme-label,
.workspace-theme-toggle-floating .workspace-theme-label {
  display: inline;
}

.workspace-sidebar:hover .workspace-theme-select,
.workspace-sidebar:focus-within .workspace-theme-select,
.workspace-theme-toggle-floating .workspace-theme-select {
  position: static;
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  padding: 0.35rem 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  appearance: auto;
  background: #0d1b2a;
  color: #e7eef9;
}

.workspace-theme-toggle-floating {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
  width: auto;
  min-width: 9.5rem;
  justify-content: flex-start;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f1f5f9;
  --bg-elevated: #ffffff;
  --card: rgba(255, 255, 255, 0.96);
  --card-soft: rgba(248, 250, 252, 0.96);
  --text: #111827;
  --muted: #475569;
  --accent: #0369a1;
  --accent-strong: #075985;
  --cyan: #0369a1;
  --warning: #92400e;
  --danger: #b91c1c;
  --success: #0f766e;
  --accent-soft: rgba(2, 132, 199, 0.1);
  --border: rgba(15, 23, 42, 0.14);
  --border-strong: rgba(3, 105, 161, 0.3);
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
  color: var(--text);
}

:root[data-theme="light"] .workspace-sidebar {
  border-color: rgba(15, 23, 42, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #e8f0f8 100%);
  color: var(--text);
  box-shadow: 12px 0 36px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .workspace-sidebar-brand {
  border-color: rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .workspace-brand-mark {
  color: #172033;
}

:root[data-theme="light"] .workspace-brand-copy strong {
  color: #172033;
}

:root[data-theme="light"] .workspace-brand-copy small,
:root[data-theme="light"] .workspace-nav-heading {
  color: #526174;
}

:root[data-theme="light"] .workspace-nav-link {
  color: #334155;
}

:root[data-theme="light"] .workspace-nav-link:hover {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

:root[data-theme="light"] .workspace-nav-link.is-current {
  border-color: rgba(2, 132, 199, 0.2);
  background: linear-gradient(105deg, rgba(37, 99, 235, 0.16), rgba(15, 118, 110, 0.12));
  color: #0f172a;
  box-shadow: inset 3px 0 #0284c7, 0 7px 18px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .workspace-nav-code {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.05);
  color: #334155;
}

:root[data-theme="light"] .workspace-nav-link.is-current .workspace-nav-code {
  background: #0284c7;
  color: #ffffff;
}

:root[data-theme="light"] .workspace-sidebar-footer {
  border-color: rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .workspace-theme-toggle {
  border-color: rgba(15, 23, 42, 0.12);
  background: #ffffff !important;
  color: #334155 !important;
  color-scheme: light;
}

:root[data-theme="light"] .workspace-theme-toggle:hover {
  border-color: rgba(2, 132, 199, 0.3);
  background: #ffffff;
}

:root[data-theme="light"] .workspace-theme-toggle:focus-within {
  outline-color: #0369a1;
}

:root[data-theme="light"] .workspace-theme-select {
  color-scheme: light;
}

:root[data-theme="light"] .workspace-theme-select option {
  background: #ffffff;
  color: #172033;
}

:root[data-theme="light"] .workspace-theme-toggle-floating {
  border-color: rgba(15, 23, 42, 0.14);
  background: #ffffff;
  color: #334155;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .workspace-theme-select {
  background: #ffffff;
  color: #334155;
}

:root[data-theme="light"] .workspace-signout {
  border-color: rgba(109, 40, 217, 0.16);
  background: rgba(124, 58, 237, 0.08);
  color: #5b21b6;
}

:root[data-theme="light"] .workspace-signout:hover {
  border-color: rgba(109, 40, 217, 0.28);
  background: rgba(124, 58, 237, 0.13);
}

:root[data-theme="light"] .hero,
:root[data-theme="light"] .admin-hero {
  border-color: rgba(15, 23, 42, 0.1);
  background: linear-gradient(120deg, #ffffff 0%, #e8f3fb 55%, #dbeafe 100%);
  color: #172033;
}

:root[data-theme="light"] body.auth-page {
  background:
    radial-gradient(circle at 8% 12%, rgba(56, 189, 248, 0.1), transparent 24rem),
    radial-gradient(circle at 90% 85%, rgba(37, 99, 235, 0.08), transparent 28rem),
    linear-gradient(135deg, #f8fafc, #eaf3fb);
}

:root[data-theme="light"] .auth-showcase {
  border-color: rgba(15, 23, 42, 0.12);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(224, 242, 254, 0.88));
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .auth-showcase > p:not(.eyebrow) {
  color: #526174;
}

:root[data-theme="light"] .auth-stat {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

:root[data-theme="light"] .auth-stat strong {
  color: #172033;
}

:root[data-theme="light"] .auth-orbit {
  border-color: rgba(2, 132, 199, 0.2);
}

:root[data-theme="light"] .hero::after {
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.55) 45%, transparent 100%);
}

:root[data-theme="light"] .hero-greeting {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.62);
}

:root[data-theme="light"] .greeting-subtitle {
  color: #526174;
}

:root[data-theme="light"] .badge {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.75);
  color: #334155;
}

:root[data-theme="light"] .card,
:root[data-theme="light"] .auth-card,
:root[data-theme="light"] .profile-card,
:root[data-theme="light"] .detail-card,
:root[data-theme="light"] .admin-panel,
:root[data-theme="light"] .admin-metric,
:root[data-theme="light"] .admin-job-card,
:root[data-theme="light"] .job-card,
:root[data-theme="light"] .job-detail-panel,
:root[data-theme="light"] .job-history-item,
:root[data-theme="light"] .admin-template-card,
:root[data-theme="light"] .entry,
:root[data-theme="light"] .chart-card,
:root[data-theme="light"] .feature-item,
:root[data-theme="light"] .analytics-company-chart,
:root[data-theme="light"] .admin-page .chart-summary .metric {
  border-color: rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

:root[data-theme="light"] .card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
}

:root[data-theme="light"] .profile-details p,
:root[data-theme="light"] .admin-template-card,
:root[data-theme="light"] .admin-page .chart-summary .metric,
:root[data-theme="light"] .analytics-company-chart {
  background: #f8fafc;
}

:root[data-theme="light"] .admin-page {
  background: linear-gradient(135deg, #e0f2fe, #f8fafc 55%, #e2e8f0);
}

:root[data-theme="light"] .admin-metric-alert {
  border-color: rgba(185, 28, 28, 0.24);
  background: #fef2f2;
}

:root[data-theme="light"] .admin-metric-alert span,
:root[data-theme="light"] .admin-metric-alert strong,
:root[data-theme="light"] .admin-metric-alert small {
  color: #991b1b;
}

:root[data-theme="light"] .admin-panel-note,
:root[data-theme="light"] .admin-report-row span,
:root[data-theme="light"] .admin-report-row small,
:root[data-theme="light"] .admin-no-image,
:root[data-theme="light"] .admin-job-meta,
:root[data-theme="light"] .admin-user-copy small,
:root[data-theme="light"] .admin-user-copy span,
:root[data-theme="light"] .admin-user-status-wrap small,
:root[data-theme="light"] .admin-presence,
:root[data-theme="light"] .admin-empty,
:root[data-theme="light"] .admin-last-sync,
:root[data-theme="light"] .admin-page .chart-summary .metric small,
:root[data-theme="light"] .job-detail-grid span,
:root[data-theme="light"] .job-detail-section p,
:root[data-theme="light"] .job-action.secondary {
  color: #526174 !important;
}

:root[data-theme="light"] .admin-report-head,
:root[data-theme="light"] .admin-metric-date strong,
:root[data-theme="light"] .admin-report-date strong,
:root[data-theme="light"] .job-detail-grid strong,
:root[data-theme="light"] .job-detail-section h4 {
  color: #0369a1;
}

:root[data-theme="light"] .admin-image-link {
  color: #92400e;
}

:root[data-theme="light"] .admin-sort-select,
:root[data-theme="light"] .filter-chip {
  border-color: rgba(15, 23, 42, 0.14);
  background: #ffffff;
  color: #334155;
}

:root[data-theme="light"] .filter-chip.is-active {
  border-color: rgba(13, 148, 136, 0.35);
  background: rgba(13, 148, 136, 0.1);
  color: #115e59;
}

:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea {
  border-color: rgba(15, 23, 42, 0.18);
  background: #ffffff;
  color: var(--text);
}

:root[data-theme="light"] input::placeholder,
:root[data-theme="light"] textarea::placeholder {
  color: #64748b;
}

:root[data-theme="light"] button.ghost,
:root[data-theme="light"] .btn-secondary {
  border-color: rgba(15, 23, 42, 0.14);
  background: #e8f1f8;
  color: #075985;
}

:root[data-theme="light"] .auth-link {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: #1e3a5f;
}

:root[data-theme="light"] .auth-link.secondary {
  border-color: rgba(2, 132, 199, 0.2);
  background: #e0f2fe;
  color: #075985;
}

:root[data-theme="light"] .job-action {
  background: #0f766e;
  color: #ffffff;
}

:root[data-theme="light"] .job-action.ghost {
  border-color: rgba(185, 28, 28, 0.26);
  background: #fef2f2;
  color: #b91c1c;
}

:root[data-theme="light"] .job-action.secondary {
  border-color: rgba(15, 23, 42, 0.14);
  background: #f1f5f9;
  color: #334155 !important;
}

:root[data-theme="light"] .job-status.assigned,
:root[data-theme="light"] .admin-job-status.assigned {
  background: #dbeafe;
  color: #1d4ed8;
}

:root[data-theme="light"] .job-status.accepted,
:root[data-theme="light"] .admin-job-status.accepted,
:root[data-theme="light"] .job-status.completed,
:root[data-theme="light"] .admin-job-status.completed {
  background: #ccfbf1;
  color: #115e59;
}

:root[data-theme="light"] .job-status.rejected,
:root[data-theme="light"] .admin-job-status.rejected {
  background: #fee2e2;
  color: #b91c1c;
}

:root[data-theme="light"] .job-status.on-site,
:root[data-theme="light"] .admin-job-status.on-site {
  background: #fef3c7;
  color: #92400e;
}

:root[data-theme="light"] .analytics-company-ticks,
:root[data-theme="light"] .analytics-company-label,
:root[data-theme="light"] .analytics-company-x-title {
  color: #334155;
}

:root[data-theme="light"] .analytics-company-plot {
  border-color: rgba(15, 23, 42, 0.3);
}

:root[data-theme="light"] .analytics-company-gridlines span {
  border-color: rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .workspace-menu-toggle {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .workspace-menu-toggle span {
  background: #172033;
}

@media (max-width: 760px) {
  .workspace-shell.is-sidebar-open .workspace-sidebar:not(:hover):not(:focus-within) .workspace-theme-toggle {
    padding: 0.55rem 0.8rem;
    font-size: 0.82rem;
    justify-content: flex-start;
  }

  .workspace-shell.is-sidebar-open .workspace-sidebar:not(:hover):not(:focus-within) .workspace-theme-label {
    display: inline;
  }

  .workspace-shell.is-sidebar-open .workspace-sidebar:not(:hover):not(:focus-within) .workspace-theme-select {
    position: static;
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    padding: 0.35rem 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    appearance: auto;
    background: #0d1b2a !important;
    color: #e7eef9 !important;
  }

  :root[data-theme="light"] .workspace-shell.is-sidebar-open .workspace-sidebar:not(:hover):not(:focus-within) .workspace-theme-select {
    background: #ffffff !important;
    color: #334155 !important;
  }
}

.notification-badge {
  display: inline-grid;
  min-width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  margin-left: auto;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #e85d75;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.supervisor-overview {
  display: grid;
  grid-area: report;
  gap: 1rem;
  width: min(1200px, 100%);
  margin: 0 auto 1.25rem;
  padding: 1.25rem;
}

.supervisor-overview-heading,
.supervisor-overview-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.supervisor-overview-heading h2,
.supervisor-overview-panel-heading h3 {
  margin: 0.15rem 0 0;
}

.supervisor-overview-heading > div > p:last-child {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.supervisor-overview-heading > .status {
  text-align: right;
}

.supervisor-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.supervisor-metric,
.supervisor-overview-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.supervisor-metric {
  display: grid;
  min-height: 135px;
  align-content: space-between;
  padding: 1rem;
}

.supervisor-metric > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.supervisor-metric > strong {
  font-size: 2rem;
}

.supervisor-metric > small {
  color: var(--muted);
}

.supervisor-metric-alert {
  border-color: rgba(248, 113, 113, 0.42);
}

.supervisor-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.supervisor-overview-panel {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1.15rem;
}

.supervisor-overview-panel-heading {
  align-items: center;
}

.supervisor-overview-panel-heading .btn-secondary {
  white-space: nowrap;
}

.supervisor-overview-panel > .status {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.supervisor-overdue-list,
.supervisor-activity-list {
  display: grid;
  gap: 0.65rem;
}

.supervisor-overdue-item,
.supervisor-activity-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.supervisor-overdue-item span,
.supervisor-overdue-item small,
.supervisor-activity-item p,
.supervisor-activity-item time,
.supervisor-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.supervisor-activity-item > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.supervisor-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

:root[data-theme="light"] .supervisor-metric,
:root[data-theme="light"] .supervisor-overview-panel,
:root[data-theme="light"] .supervisor-overdue-item,
:root[data-theme="light"] .supervisor-activity-item {
  background: #fff;
}

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

  .supervisor-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .supervisor-overview {
    padding: 0.75rem;
  }

  .supervisor-overview-heading,
  .supervisor-overview-panel-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .supervisor-overview-heading > .status {
    text-align: left;
  }

  .supervisor-activity-item > div {
    flex-direction: column;
  }
}

.notifications-page .subtitle a {
  color: var(--accent-strong);
  font-weight: 700;
}

.notifications-page .subtitle a:hover {
  color: #fff;
}

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

.notifications-shell {
  display: grid;
  max-width: 1100px;
  gap: 1rem;
  margin: 0 auto;
  padding: 1.25rem;
}

.notification-panel {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.notification-panel-heading,
.notification-item-heading,
.notification-push-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.notification-header-actions,
.notification-item-actions,
.notification-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notification-tabs {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.notification-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #aab8ca;
  cursor: pointer;
  padding: 0.65rem 0.8rem;
}

.notification-tab.is-active {
  border-bottom-color: #86b8ff;
  color: #f8fafc;
}

.notification-panel h2 {
  margin: 0.2rem 0 0;
}

.notification-status {
  margin: 0.35rem 0 0;
  color: #aab8ca;
  font-size: 0.88rem;
}

.notification-list,
.notification-review-list {
  display: grid;
  gap: 0.75rem;
}

.notification-item,
.notification-review-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.58);
}

.notification-item.is-unread {
  border-color: rgba(91, 158, 255, 0.65);
  background: rgba(46, 89, 143, 0.18);
}

.notification-item-copy {
  min-width: 0;
}

.notification-item-heading strong,
.notification-review-item h3 {
  color: #f8fafc;
}

.notification-item time,
.notification-review-item small {
  color: #aab8ca;
  font-size: 0.75rem;
}

.notification-item p,
.notification-review-item p {
  margin: 0.5rem 0;
  color: #d3dce8;
}

.notification-item a {
  color: #86b8ff;
  font-size: 0.82rem;
}

.notification-empty {
  margin: 0;
  padding: 1.25rem;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  color: #aab8ca;
  text-align: center;
}

.notification-preferences {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.65rem;
}

.notification-preference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  color: #e2e8f0;
}

.notification-preference input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #4285f4;
}

.notification-push-controls {
  padding-top: 0.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.notification-timezone-form,
.notification-correction-form {
  display: grid;
  gap: 0.65rem;
}

.notification-timezone-form {
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
}

.notification-timezone-form input,
.notification-correction-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 9px;
  background: rgba(2, 6, 23, 0.4);
  color: #f8fafc;
}

.notification-review-item {
  display: grid;
}

.notification-review-item h3 {
  margin: 0;
}

.notification-review-item.is-focused-report {
  border-color: #86b8ff;
  box-shadow: 0 0 0 3px rgba(91, 158, 255, 0.22);
}

.notification-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.notification-correction-form label {
  display: grid;
  gap: 0.35rem;
  color: #d3dce8;
}

.notification-correction-form textarea {
  min-height: 5rem;
  resize: vertical;
}

.notification-load-more {
  justify-self: center;
}

:root[data-theme="light"] .notification-status,
:root[data-theme="light"] .notification-item time,
:root[data-theme="light"] .notification-review-item small,
:root[data-theme="light"] .notification-empty {
  color: #475569;
}

:root[data-theme="light"] .notification-item,
:root[data-theme="light"] .notification-review-item,
:root[data-theme="light"] .notification-preference {
  border-color: rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.75);
  color: #172033;
}

:root[data-theme="light"] .notification-item-heading strong,
:root[data-theme="light"] .notification-review-item h3 {
  color: #172033;
}

:root[data-theme="light"] .notification-item p,
:root[data-theme="light"] .notification-review-item p,
:root[data-theme="light"] .notification-preference,
:root[data-theme="light"] .notification-correction-form label {
  color: #334155;
}

:root[data-theme="light"] .notification-timezone-form input,
:root[data-theme="light"] .notification-correction-form textarea {
  background: #fff;
  color: #172033;
}

/* Keep secondary copy readable across all light-theme pages. */
:root[data-theme="light"] .card-copy,
:root[data-theme="light"] .field-note,
:root[data-theme="light"] .status,
:root[data-theme="light"] .status-pill,
:root[data-theme="light"] .greeting-subtitle,
:root[data-theme="light"] .job-meta,
:root[data-theme="light"] .job-detail-grid span,
:root[data-theme="light"] .job-detail-section p,
:root[data-theme="light"] .profile-details p,
:root[data-theme="light"] .profile-details small,
:root[data-theme="light"] .admin-panel-note,
:root[data-theme="light"] .admin-last-sync,
:root[data-theme="light"] .admin-empty,
:root[data-theme="light"] .admin-user-copy small,
:root[data-theme="light"] .admin-user-copy span,
:root[data-theme="light"] .admin-user-status-wrap small,
:root[data-theme="light"] .admin-presence,
:root[data-theme="light"] .admin-report-row span,
:root[data-theme="light"] .admin-report-row small,
:root[data-theme="light"] .admin-template-card p,
:root[data-theme="light"] .admin-template-card small,
:root[data-theme="light"] .job-history-card .job-meta,
:root[data-theme="light"] .entry small,
:root[data-theme="light"] .entry time,
:root[data-theme="light"] .chart-summary small,
:root[data-theme="light"] .notification-status,
:root[data-theme="light"] .notification-item time,
:root[data-theme="light"] .notification-review-item small,
:root[data-theme="light"] .notification-empty {
  color: #475569 !important;
}

:root[data-theme="light"] label,
:root[data-theme="light"] legend,
:root[data-theme="light"] small,
:root[data-theme="light"] dt,
:root[data-theme="light"] dd,
:root[data-theme="light"] figcaption,
:root[data-theme="light"] caption {
  color: #334155;
}

:root[data-theme="light"] input::placeholder,
:root[data-theme="light"] textarea::placeholder {
  color: #475569;
  opacity: 1;
}

/* Solid, high-contrast typography for every light-theme section. */
:root[data-theme="light"] h1,
:root[data-theme="light"] h2,
:root[data-theme="light"] h3,
:root[data-theme="light"] h4,
:root[data-theme="light"] h5,
:root[data-theme="light"] h6,
:root[data-theme="light"] strong,
:root[data-theme="light"] dt,
:root[data-theme="light"] th {
  color: #111827 !important;
  background: none !important;
  -webkit-text-fill-color: #111827 !important;
  opacity: 1;
}

:root[data-theme="light"] p,
:root[data-theme="light"] li,
:root[data-theme="light"] dd,
:root[data-theme="light"] td,
:root[data-theme="light"] label,
:root[data-theme="light"] legend,
:root[data-theme="light"] caption,
:root[data-theme="light"] figcaption,
:root[data-theme="light"] time,
:root[data-theme="light"] small {
  color: #334155 !important;
  background: none !important;
  -webkit-text-fill-color: #334155 !important;
  opacity: 1;
}

:root[data-theme="light"] a {
  color: #075985 !important;
  -webkit-text-fill-color: #075985 !important;
  opacity: 1;
}

:root[data-theme="light"] .eyebrow,
:root[data-theme="light"] .section-kicker,
:root[data-theme="light"] .greeting-label,
:root[data-theme="light"] .workspace-nav-heading,
:root[data-theme="light"] .analytics-company-ticks,
:root[data-theme="light"] .analytics-company-label,
:root[data-theme="light"] .analytics-company-x-title {
  color: #1e3a5f !important;
  -webkit-text-fill-color: #1e3a5f !important;
  opacity: 1;
}

:root[data-theme="light"] .hero::after {
  display: none;
}

:root[data-theme="light"] .hero h1,
:root[data-theme="light"] .admin-hero h1,
:root[data-theme="light"] .hero h2,
:root[data-theme="light"] .hero h3,
:root[data-theme="light"] .greeting-name,
:root[data-theme="light"] .card h2,
:root[data-theme="light"] .auth-card h2,
:root[data-theme="light"] .profile-card h2,
:root[data-theme="light"] .admin-panel h2,
:root[data-theme="light"] .admin-panel h3 {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  background: none !important;
  text-shadow: none;
  opacity: 1;
}

:root[data-theme="light"] .admin-banner .section-kicker {
  color: #bae6fd !important;
  -webkit-text-fill-color: #bae6fd !important;
}

:root[data-theme="light"] .admin-banner h2,
:root[data-theme="light"] .admin-banner .admin-status,
:root[data-theme="light"] .admin-banner .admin-last-sync,
:root[data-theme="light"] .admin-banner .admin-seal,
:root[data-theme="light"] .admin-banner .admin-seal strong {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  background: none !important;
  text-shadow: none;
  opacity: 1;
}

:root[data-theme="light"] .hero p,
:root[data-theme="light"] .greeting-subtitle,
:root[data-theme="light"] .card-copy,
:root[data-theme="light"] .card p,
:root[data-theme="light"] .profile-card p,
:root[data-theme="light"] .auth-card p,
:root[data-theme="light"] .admin-panel p,
:root[data-theme="light"] .admin-panel small,
:root[data-theme="light"] .admin-metric span,
:root[data-theme="light"] .admin-metric small,
:root[data-theme="light"] .job-card p,
:root[data-theme="light"] .job-card small,
:root[data-theme="light"] .job-history-item p,
:root[data-theme="light"] .job-history-item small,
:root[data-theme="light"] .entry p,
:root[data-theme="light"] .entry small {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  text-shadow: none;
  opacity: 1;
}

:root[data-theme="light"] .admin-banner .admin-last-sync {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
}

:root[data-theme="light"] .admin-banner .admin-seal strong {
  color: #fef3c7 !important;
  -webkit-text-fill-color: #fef3c7 !important;
}

@media (max-width: 600px) {
  .notifications-shell {
    padding: 0.75rem;
  }

  .notification-panel-heading,
  .notification-push-controls,
  .notification-item-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .notification-item {
    flex-direction: column;
  }

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