:root {
  color-scheme: dark;
  --bg: #050a17;
  --bg-top: #091224;
  --bg-deep: #030814;
  --panel: rgba(14, 22, 42, 0.82);
  --panel-strong: rgba(9, 15, 31, 0.94);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --panel-glow: rgba(117, 193, 255, 0.08);
  --text: #f7f9fd;
  --muted: #8f9bb4;
  --muted-strong: #dce6f8;
  --line: rgba(182, 206, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(204, 220, 255, 0.14);
  --brand: #3c6dff;
  --brand-strong: #77ceff;
  --brand-soft: rgba(71, 116, 255, 0.18);
  --accent: #b7dbff;
  --shadow: 0 28px 70px rgba(0, 4, 16, 0.5);
  --shadow-soft: 0 20px 44px rgba(0, 4, 16, 0.34);
  --radius: 30px;
  --radius-sm: 20px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Helvetica Neue",
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(72, 154, 255, 0.14), transparent 20%),
    radial-gradient(circle at 88% 0%, rgba(65, 125, 255, 0.1), transparent 22%),
    linear-gradient(180deg, #08101f 0%, var(--bg-top) 18%, var(--bg) 54%, var(--bg-deep) 100%);
  color: var(--text);
}

body {
  position: relative;
  isolation: isolate;
  padding: 16px;
  overflow-x: hidden;
}

body.app-locked {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  filter: blur(28px);
  opacity: 0.9;
  animation: ambientFloat 18s ease-in-out infinite alternate;
}

body::before {
  top: 88px;
  left: -100px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 153, 255, 0.18), transparent 68%);
}

body::after {
  top: 180px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 192, 255, 0.12), transparent 70%);
  animation-delay: -6s;
}

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

button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, #4d76ff 0%, #355de0 64%, #274dbf 100%);
  color: #fff;
  padding: 0.74rem 1.02rem;
  cursor: pointer;
  transition:
    transform 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out),
    border-color 240ms var(--ease-out),
    opacity 180ms ease,
    background 240ms var(--ease-out);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -8px 16px rgba(0, 53, 120, 0.2),
    0 18px 30px rgba(39, 77, 191, 0.24);
}

button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 15%, rgba(255, 255, 255, 0.18) 50%, transparent 85%);
  transform: translateX(-130%);
  transition: transform 600ms var(--ease-out);
  pointer-events: none;
  z-index: -1;
}

button:hover,
button:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -8px 16px rgba(0, 53, 120, 0.24),
    0 22px 36px rgba(39, 77, 191, 0.3);
}

button:hover::after,
button:focus-visible::after {
  transform: translateX(120%);
}

button.secondary-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.028);
  color: var(--muted-strong);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 22px rgba(0, 0, 0, 0.16);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.app-shell {
  max-width: 1888px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.app-shell.is-blurred {
  filter: blur(18px) saturate(0.86);
  opacity: 0.28;
  pointer-events: none;
  user-select: none;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background:
    radial-gradient(circle at top, rgba(82, 157, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(3, 5, 10, 0.88), rgba(3, 5, 10, 0.94));
  backdrop-filter: blur(28px) saturate(120%);
}

.auth-panel {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  display: grid;
  gap: 16px;
  padding: 26px 26px 24px;
  overflow-y: auto;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top left, rgba(92, 172, 255, 0.08), transparent 44%),
    rgba(10, 14, 22, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 36px 70px rgba(0, 0, 0, 0.34);
}

.auth-brand-mark {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px 14px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top left, rgba(86, 173, 255, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 36px rgba(0, 0, 0, 0.24);
}

.auth-brand-logo {
  display: block;
  width: min(284px, 62vw);
  height: auto;
  opacity: 0.98;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.24));
}

.auth-panel h2 {
  margin: -0.2rem 0 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.auth-page-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  justify-content: center;
  margin-bottom: 0;
}

.auth-page-switcher .page-link {
  width: 100%;
  min-width: 0;
}

.auth-panel .helper-text {
  font-size: 0.94rem;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form > button[type="submit"] {
  width: 100%;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.02);
}

.auth-mode-button {
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-strong);
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: none;
}

.auth-mode-button:hover,
.auth-mode-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.auth-mode-button.is-active {
  background: linear-gradient(180deg, #1490ff 0%, #0077ed 72%, #0066d7 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -8px 16px rgba(0, 53, 120, 0.18),
    0 14px 26px rgba(10, 132, 255, 0.18);
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form label span {
  font-weight: 600;
  color: var(--muted-strong);
}

.auth-action-row {
  margin-top: 0;
}

.hero,
.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    var(--shadow);
  backdrop-filter: blur(28px) saturate(140%);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(420px, 0.74fr);
  gap: 34px;
  align-items: start;
  padding: 26px 28px 32px;
  animation: riseFade 800ms var(--ease-out) both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -130px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.16), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 28%),
    linear-gradient(180deg, transparent 48%, rgba(95, 159, 255, 0.05) 100%);
  pointer-events: none;
  z-index: -1;
}

.page-switcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 1180px);
  margin-bottom: 14px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.2);
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  padding: 0.72rem 1.18rem;
  border-radius: 999px;
  color: var(--muted-strong);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    background 240ms var(--ease-out),
    color 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out),
    transform 240ms var(--ease-out);
}

.page-link:hover,
.page-link:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #f4f7ff;
  transform: translateY(-1px);
}

.page-link.is-active {
  background: linear-gradient(180deg, #1490ff 0%, #0077ed 72%, #0066d7 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -8px 16px rgba(0, 53, 120, 0.18),
    0 14px 26px rgba(10, 132, 255, 0.22);
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.hero-brand {
  display: grid;
  grid-template-columns: minmax(300px, 0.54fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.hero-logo-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 24px 28px 20px;
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at top left, rgba(90, 182, 255, 0.09), transparent 60%),
    rgba(255, 255, 255, 0.025);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 44px rgba(0, 0, 0, 0.22);
}

.hero-logo {
  display: block;
  width: clamp(248px, 22vw, 340px);
  height: auto;
  opacity: 0.98;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.24));
}

.hero-brand-copy {
  display: grid;
  gap: 4px;
  align-content: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.38rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  color: #9cc4ff;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: none;
  font-size: clamp(3.6rem, 5.8vw, 6.2rem);
  line-height: 0.9;
  font-weight: 650;
  text-wrap: balance;
}

.hero-text,
.helper-text,
.status-text,
.plot-status,
.table-count {
  color: var(--muted);
}

.hero-text {
  margin: 0.35rem 0 0;
  max-width: 50ch;
  line-height: 1.52;
  font-size: 1.05rem;
}

.hero-actions {
  width: 100%;
  max-width: 560px;
  justify-self: end;
  align-self: stretch;
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at top right, rgba(91, 177, 255, 0.09), transparent 42%),
    var(--panel-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    var(--shadow-soft);
}

.hero-button-stack {
  display: grid;
  gap: 10px;
}

.hero-button-stack button {
  width: 100%;
}

.auth-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.status-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#datasetStatus:empty,
#heroDescription:empty,
#heroSupportText:empty {
  display: none;
}

.card {
  padding: 18px 20px;
  animation: riseFade 820ms var(--ease-out) both;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: 1.24rem;
  font-weight: 630;
  letter-spacing: -0.03em;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.86rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dce7fb;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

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

.workspace-card {
  display: grid;
  gap: 20px;
  min-height: 0;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.workspace-header h2 {
  font-size: 1.5rem;
  font-weight: 640;
  letter-spacing: -0.04em;
}

.workspace-header .helper-text {
  max-width: 42ch;
  text-align: right;
}

.workspace-tab-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 26px rgba(0, 0, 0, 0.18);
}

.workspace-tab {
  min-width: 142px;
  padding: 0.78rem 1.16rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-strong);
  font-weight: 700;
  box-shadow: none;
}

.workspace-tab:hover,
.workspace-tab:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  color: #f4f7ff;
  box-shadow: none;
}

.workspace-tab.is-active {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #1490ff 0%, #0077ed 72%, #0066d7 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -8px 16px rgba(0, 53, 120, 0.18),
    0 14px 28px rgba(10, 132, 255, 0.22);
}

.workspace-panel {
  min-height: 0;
}

.workspace-panel.is-active > * {
  animation: panelIn 460ms var(--ease-out) both;
}

.workspace-panel[hidden] {
  display: none;
}

.workspace-surface {
  padding: 18px 20px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.016)),
    radial-gradient(circle at top left, rgba(124, 190, 255, 0.05), transparent 36%),
    rgba(255, 255, 255, 0.013);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    var(--shadow-soft);
}

.analysis-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.summary-card {
  animation-delay: 80ms;
}

.add-sample-card {
  animation-delay: 120ms;
}

.workspace-card {
  animation-delay: 160ms;
}

.summary-tile {
  position: relative;
  overflow: hidden;
  padding: 16px 17px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.024);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 28px rgba(0, 0, 0, 0.14);
  transition:
    transform 260ms var(--ease-out),
    border-color 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out);
}

.summary-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 35%);
  pointer-events: none;
}

.summary-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 202, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 34px rgba(0, 0, 0, 0.18);
}

.summary-tile p {
  margin: 0;
}

.summary-tile .label {
  color: var(--muted);
  font-size: 0.79rem;
}

.summary-tile .value {
  margin-top: 0.4rem;
  font-size: 1.46rem;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.two-column-layout {
  display: grid;
  gap: 14px;
}

.lookup-panel,
.plot-panel,
.add-sample-card,
.chart-card,
.table-card,
.workspace-surface,
.analysis-preview,
.records-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.add-sample-card[hidden] {
  display: none;
}

.add-sample-form {
  display: grid;
  gap: 12px;
}

.add-sample-meta-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sample-run-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.record-field-groups {
  display: grid;
  gap: 14px;
}

.record-field-group {
  display: grid;
  gap: 14px;
}

.run-input-card {
  margin: 0;
  min-width: 0;
  padding: 13px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016)),
    rgba(255, 255, 255, 0.016);
  display: grid;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.run-input-card legend {
  padding: 0 0.4rem;
  color: #d7e5ff;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.run-input-card label {
  display: grid;
  gap: 7px;
}

.run-input-card label span {
  font-weight: 600;
  color: var(--muted-strong);
}

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

.filter-grid.add-sample-meta-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

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

.analysis-config-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.records-control-grid {
  grid-template-columns: minmax(0, 2fr) minmax(220px, 0.8fr);
}

.filter-grid label,
.sample-compare {
  display: grid;
  gap: 7px;
}

.record-notes-field {
  grid-column: 1 / -1;
}

.filter-grid label span {
  font-weight: 600;
  color: var(--muted-strong);
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.72rem 0.92rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(8, 10, 16, 0.9);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 18px rgba(0, 0, 0, 0.12);
  transition:
    border-color 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    background 220ms var(--ease-out),
    transform 220ms var(--ease-out);
}

input::placeholder {
  color: #738098;
}

textarea::placeholder {
  color: #738098;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(102, 183, 255, 0.46);
  box-shadow:
    0 0 0 4px rgba(10, 132, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 24px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

input[readonly] {
  color: var(--accent);
  background:
    linear-gradient(180deg, rgba(84, 158, 255, 0.08), rgba(255, 255, 255, 0.018)),
    rgba(8, 10, 16, 0.9);
  border-color: rgba(102, 183, 255, 0.18);
}

select[multiple] {
  min-height: 122px;
  resize: vertical;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.helper-text,
.plot-status,
.table-count {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.lookup-results {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin-top: 12px;
  display: grid;
  gap: 10px;
  padding-right: 3px;
}

.lookup-card {
  display: grid;
  gap: 8px;
  padding: 15px 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.016);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.12);
  transition:
    transform 260ms var(--ease-out),
    border-color 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out);
}

.lookup-card:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 191, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 30px rgba(0, 0, 0, 0.16);
}

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

.lookup-title h3 {
  margin: 0;
  font-size: 0.98rem;
}

.lookup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.lookup-repeat-details {
  margin-top: 2px;
}

.lookup-card-footer {
  display: flex;
  justify-content: flex-end;
}

.repeat-details {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.repeat-details summary {
  list-style: none;
  cursor: pointer;
  padding: 0.7rem 0.86rem;
  font-weight: 600;
  color: #dbe6fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.repeat-details summary::-webkit-details-marker {
  display: none;
}

.repeat-details summary::after {
  content: "+";
  color: #8fb6ff;
  font-size: 1rem;
}

.repeat-details[open] summary::after {
  content: "−";
}

.repeat-details-body {
  display: grid;
  gap: 8px;
  padding: 0 0.86rem 0.86rem;
}

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

.field-detail-group-title {
  margin: 0;
  color: #dce8ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.field-detail-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.field-detail-item span {
  color: var(--muted);
  font-size: 0.76rem;
}

.field-detail-item strong {
  color: #eef3ff;
  font-size: 0.88rem;
  font-weight: 650;
}

.repeat-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted-strong);
}

.repeat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  padding: 0.28rem 0.56rem;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.18);
  color: #d9e9ff;
  font-weight: 700;
}

.chart-card {
  min-height: 0;
  gap: 14px;
}

.deleted-samples-card {
  animation-delay: 140ms;
}

.user-admin-shell {
  animation-delay: 150ms;
}

.deleted-samples-list {
  display: grid;
  gap: 12px;
}

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

.user-admin-column,
.user-admin-list {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.user-admin-list,
.audit-log-list {
  max-height: 640px;
  overflow: auto;
  padding-right: 4px;
}

.deleted-sample-card,
.request-card,
.user-admin-card-item {
  display: grid;
  gap: 12px;
  padding: 17px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.016);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.12);
}

.deleted-sample-copy,
.request-card-body,
.user-admin-card-copy {
  display: grid;
  gap: 10px;
}

.deleted-sample-header,
.request-card-header,
.user-admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}

.deleted-sample-header h3,
.request-card-header h3,
.user-admin-card-header h3 {
  margin: 0;
  font-size: 1rem;
}

.compact-section-heading {
  margin-bottom: 6px;
  align-items: center;
}

.row-action-group,
.request-card-actions,
.request-pill-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-action-button {
  min-width: 9.8rem;
  padding: 0.62rem 0.9rem;
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 22px rgba(10, 132, 255, 0.16);
}

.row-action-button-danger {
  background: linear-gradient(180deg, #ff6a73 0%, #ff4f5d 68%, #e64052 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 24px rgba(255, 79, 93, 0.18);
}

.row-action-button-restore {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.028);
  color: var(--muted-strong);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 12px 22px rgba(0, 0, 0, 0.16);
}

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

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

.sample-request-form {
  display: grid;
  gap: 14px;
}

.request-meta-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.request-notes-field {
  display: grid;
  gap: 7px;
}

.request-notes-field span {
  font-weight: 600;
  color: var(--muted-strong);
}

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

.request-column {
  min-height: 0;
}

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

.request-requester,
.request-card-note {
  margin: 0;
}

.request-requester {
  color: var(--muted);
  font-size: 0.9rem;
}

.request-card-note {
  color: var(--muted-strong);
  line-height: 1.5;
}

.request-card-note.is-empty {
  color: var(--muted);
}

.inspection-workflow {
  display: grid;
  gap: 18px;
}

.inspection-toolbar,
.inspection-form-surface,
.inspection-roll-summary-surface,
.inspection-summary-surface,
.inspection-sessions-surface,
.inspection-photos-surface,
.inspection-defects-surface {
  display: grid;
  gap: 16px;
}

.inspection-layout,
.inspection-detail-layout {
  display: grid;
  gap: 18px;
}

.inspection-layout {
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  align-items: start;
}

.inspection-detail-layout {
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
}

.inspection-sidebar {
  display: grid;
  gap: 18px;
}

.inspection-form {
  display: grid;
  gap: 18px;
}

.inspection-roll-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 20px;
  border: 1px solid rgba(111, 190, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(32, 119, 255, 0.14), rgba(255, 255, 255, 0.025)),
    rgba(7, 14, 28, 0.72);
  color: var(--muted-strong);
  line-height: 1.45;
}

.inspection-roll-gate strong {
  color: var(--text);
}

.inspection-roll-gate.is-complete {
  border-color: rgba(83, 211, 145, 0.32);
  background:
    linear-gradient(135deg, rgba(83, 211, 145, 0.12), rgba(111, 190, 255, 0.06)),
    rgba(7, 14, 28, 0.74);
}

.inspection-live-stage {
  display: grid;
  gap: 18px;
}

.inspection-setup-stage[hidden],
.inspection-live-stage[hidden] {
  display: none !important;
}

.inspection-live-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.inspection-live-actions button {
  width: auto;
}

.inspection-roll-summary-card {
  display: grid;
  gap: 16px;
}

.inspection-roll-summary-main {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
}

.inspection-roll-summary-main h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.inspection-roll-summary-main p {
  margin: 0.65rem 0 0;
  color: var(--muted-strong);
}

.inspection-roll-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.inspection-meta-grid,
.inspection-weight-grid,
.inspection-measurement-grid,
.inspection-harvest-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inspection-live-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.inspection-notes-field,
.inspection-textarea-field {
  grid-column: 1 / -1;
}

.inspection-notes-field textarea,
.inspection-textarea-field textarea {
  min-height: 112px;
  resize: vertical;
}

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

.inspection-section-block {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 20, 0.52);
}

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

.inspection-harvest-card {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.018);
}

.inspection-harvest-card h4 {
  margin: 0;
  font-size: 1rem;
}

.inspection-harvest-card label {
  display: grid;
  gap: 7px;
}

.inspection-harvest-card label span {
  color: var(--muted-strong);
  font-weight: 600;
}

.inspection-harvest-card button {
  width: auto;
}

.inspection-action-row {
  justify-content: flex-start;
  flex-wrap: wrap;
}

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

.inspection-summary-card {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.018);
}

.inspection-summary-card .label {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.inspection-summary-card .value {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.inspection-session-list,
.inspection-photo-list,
.inspection-defect-list {
  display: grid;
  gap: 12px;
}

.inspection-session-card,
.inspection-photo-card,
.inspection-defect-card,
.inspection-defect-editor-empty,
.inspection-empty-state {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.018);
}

.inspection-session-card {
  display: grid;
  gap: 10px;
}

.inspection-session-card.is-active,
.inspection-defect-card.is-active {
  border-color: rgba(10, 132, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.18) inset;
}

.inspection-session-head,
.inspection-defect-head,
.inspection-photo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.inspection-session-head h4,
.inspection-defect-head h4,
.inspection-photo-head h4,
.inspection-defect-editor h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.1;
}

.inspection-session-meta,
.inspection-defect-meta,
.inspection-photo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.inspection-session-actions,
.inspection-photo-actions,
.inspection-defect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inspection-map-shell {
  display: grid;
  gap: 12px;
}

.inspection-map-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inspection-map {
  position: relative;
  min-height: 460px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(7, 18, 34, 0.96), rgba(4, 10, 18, 0.98)),
    rgba(2, 6, 12, 0.92);
  overflow: hidden;
}

.inspection-map::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 14% 100%,
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 100% 12.5%,
    linear-gradient(180deg, rgba(43, 143, 255, 0.08), rgba(35, 72, 118, 0.02));
}

.inspection-map-surface {
  position: absolute;
  inset: 24px;
  border-radius: 22px;
}

.inspection-map-label {
  position: absolute;
  z-index: 2;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inspection-map-label.top {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.inspection-map-label.bottom {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.inspection-map-label.left {
  left: 8px;
  top: 50%;
  transform: rotate(-90deg) translateY(-50%);
  transform-origin: left top;
}

.inspection-map-label.right {
  right: 8px;
  top: 50%;
  transform: rotate(90deg) translateY(-50%);
  transform-origin: right top;
}

.inspection-map-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  margin-top: -8px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
}

.inspection-map-dot.passable {
  background: #53d391;
}

.inspection-map-dot.non-passable {
  background: #ff6b6b;
}

.inspection-map-dot.is-active {
  transform: scale(1.14);
  box-shadow: 0 0 0 8px rgba(10, 132, 255, 0.18);
}

.inspection-defect-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: start;
}

.inspection-defect-column {
  display: grid;
  gap: 16px;
}

.inspection-defect-editor {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.018);
}

.inspection-defect-editor-grid,
.inspection-photo-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inspection-defect-editor-grid .inspection-notes-field,
.inspection-photo-grid .inspection-notes-field {
  grid-column: 1 / -1;
}

.inspection-photo-card input[type="file"],
.inspection-defect-editor input[type="file"] {
  width: 100%;
}

.inspection-photo-preview-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
}

.inspection-photo-preview {
  display: grid;
  gap: 8px;
}

.inspection-photo-preview img {
  width: 100%;
  height: 108px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}

.inspection-photo-preview span {
  font-size: 0.8rem;
  color: var(--muted);
}

.inspection-pill-passable {
  background: rgba(83, 211, 145, 0.14);
  color: #b8ffda;
}

.inspection-pill-non-passable {
  background: rgba(255, 107, 107, 0.14);
  color: #ffd1d1;
}

.request-priority-pill[data-priority="High"] {
  background:
    linear-gradient(180deg, rgba(255, 96, 114, 0.18), rgba(255, 96, 114, 0.08)),
    rgba(255, 96, 114, 0.08);
  border-color: rgba(255, 96, 114, 0.18);
}

.request-priority-pill[data-priority="Normal"] {
  background:
    linear-gradient(180deg, rgba(10, 132, 255, 0.18), rgba(10, 132, 255, 0.08)),
    rgba(10, 132, 255, 0.08);
  border-color: rgba(10, 132, 255, 0.16);
}

.request-priority-pill[data-priority="Low"] {
  background:
    linear-gradient(180deg, rgba(112, 134, 160, 0.18), rgba(112, 134, 160, 0.08)),
    rgba(112, 134, 160, 0.08);
  border-color: rgba(112, 134, 160, 0.16);
}

.chart-builder-shell {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top left, rgba(112, 186, 255, 0.06), transparent 38%),
    rgba(255, 255, 255, 0.018);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 30px rgba(0, 0, 0, 0.14);
}

.chart-builder-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
}

.chart-builder-heading h3 {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.chart-builder-heading .helper-text {
  max-width: 36ch;
  text-align: right;
}

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

.chart-filter-grid .sample-compare {
  grid-column: 1 / -1;
}

.chart-builder-actions {
  margin-top: 0;
}

.plot-status {
  margin-bottom: 10px;
}

.plot-area {
  flex: 1;
  min-height: 460px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    radial-gradient(circle at top, rgba(93, 168, 255, 0.07), transparent 42%),
    rgba(4, 6, 11, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 80px rgba(56, 112, 180, 0.07);
}

.table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(3, 5, 8, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

#dataTable {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
}

#dataTable > thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

#dataTable th,
#dataTable td {
  padding: 0.74rem 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
  vertical-align: top;
}

#dataTable th {
  background: rgba(12, 15, 22, 0.985);
  color: #9eadc5;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

#dataTable td {
  color: #e9edf7;
  font-size: 0.88rem;
}

#dataTable > tbody > tr:nth-child(even) > td {
  background: rgba(255, 255, 255, 0.014);
}

#dataTable > tbody > tr:hover > td {
  background: rgba(10, 132, 255, 0.08);
}

.summary-data-row.is-expanded td {
  background: rgba(10, 132, 255, 0.09);
}

.table-expand-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11.5rem;
  padding: 0.56rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(143, 182, 255, 0.18);
  background: rgba(143, 182, 255, 0.08);
  color: #e4efff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: none;
}

.table-expand-button:hover,
.table-expand-button:focus-visible {
  transform: none;
  box-shadow: none;
  background: rgba(143, 182, 255, 0.13);
}

.table-expand-button.is-open {
  background: rgba(10, 132, 255, 0.18);
  border-color: rgba(90, 200, 250, 0.28);
}

.expanded-run-row > td {
  padding: 0;
  background: rgba(4, 7, 12, 0.96);
}

.inline-run-table-shell {
  overflow: auto;
}

.inline-run-table {
  width: 100%;
  min-width: 1220px;
  border-collapse: collapse;
}

.inline-run-table th,
.inline-run-table td {
  padding: 0.68rem 0.82rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.inline-run-table th {
  background: rgba(10, 14, 21, 0.98);
  color: #8f9bb0;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.inline-run-table td {
  color: #dbe4f6;
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.012);
}

.inline-run-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.024);
}

.inline-run-table tbody tr:hover td {
  background: rgba(10, 132, 255, 0.06);
}

.repeat-badge-inline {
  min-width: 2.1rem;
  padding-inline: 0.48rem;
  font-size: 0.76rem;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

@keyframes riseFade {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambientFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(18px, -12px, 0) scale(1.08);
  }
}

@keyframes connectionPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 7px rgba(111, 190, 255, 0.14),
      0 0 22px rgba(111, 190, 255, 0.42);
  }
  50% {
    box-shadow:
      0 0 0 12px rgba(111, 190, 255, 0.06),
      0 0 34px rgba(111, 190, 255, 0.62);
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

@media (min-width: 1120px) {
  body {
    overflow: auto;
  }

  .lookup-results {
    flex: 0 1 auto;
    max-height: 460px;
  }

  .analysis-preview .plot-area {
    min-height: 520px;
  }

  .records-panel .table-wrap {
    min-height: 520px;
  }
}

@media (min-width: 1120px) and (max-height: 859px) {
  body {
    padding: 12px;
  }

  .app-shell {
    gap: 12px;
  }

  .hero {
    gap: 22px;
    padding: 18px 20px 22px;
    grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
  }

  .hero-copy {
    gap: 12px;
  }

  .hero-brand {
    gap: 16px;
    grid-template-columns: minmax(228px, 0.48fr) minmax(0, 1fr);
  }

  .hero-logo-shell {
    padding: 16px 18px 14px;
    border-radius: 26px;
  }

  .hero-logo {
    width: clamp(204px, 18vw, 270px);
  }

  .hero h1 {
    font-size: clamp(2.9rem, 4.2vw, 4.4rem);
  }

  .hero-actions {
    gap: 8px;
    padding: 12px;
  }

  .card {
    padding: 13px 14px;
  }

  .section-heading {
    margin-bottom: 10px;
  }

  .summary-grid {
    gap: 8px;
  }

  .summary-tile {
    padding: 12px 13px;
  }

  .summary-tile .value {
    font-size: 1.24rem;
  }
}

@media (max-width: 1119px) {
  body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .hero,
  .summary-grid,
  .filter-grid,
  .lookup-filter-grid,
  .record-dynamic-grid,
  .analysis-config-grid,
  .records-control-grid,
  .add-sample-meta-grid,
  .sample-run-grid,
  .request-meta-grid,
  .request-board,
  .user-admin-grid,
  .inspection-layout,
  .inspection-detail-layout,
  .inspection-defect-layout,
  .inspection-subgrid,
  .inspection-live-data-grid,
  .inspection-meta-grid,
  .inspection-weight-grid,
  .inspection-measurement-grid,
  .inspection-harvest-grid,
  .inspection-harvest-card,
  .inspection-defect-editor-grid,
  .inspection-photo-grid,
  .inspection-summary-grid {
    grid-template-columns: 1fr;
  }

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

  .workspace-header .helper-text {
    max-width: none;
    text-align: left;
  }

  .daily-start-topline {
    grid-template-columns: 1fr;
  }

  body.dashboard-neo .daily-start-meta-panel,
  body.dashboard-neo .daily-start-status {
    justify-items: start;
    justify-content: flex-start;
  }

  .workspace-tab-strip {
    width: 100%;
    justify-content: space-between;
  }

  .workspace-tab {
    flex: 1;
    min-width: 0;
  }

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

  .chart-builder-heading {
    align-items: start;
    flex-direction: column;
  }

  .deleted-sample-header,
  .request-card-header,
  .user-admin-card-header {
    flex-direction: column;
    align-items: start;
  }

  .chart-builder-heading .helper-text {
    max-width: none;
    text-align: left;
  }

  .chart-filter-grid {
    grid-template-columns: 1fr;
  }

  .field-detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 18px;
  }

  .auth-panel {
    width: min(100%, 620px);
    padding: 22px 20px 20px;
  }

  .hero-brand {
    flex-direction: column;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
  }

  .hero-logo-shell {
    padding: 18px 20px;
  }

  .page-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .page-link {
    flex: 1;
    min-width: 0;
  }

  .hero-actions {
    justify-self: stretch;
    max-width: none;
  }

  .plot-area {
    min-height: 360px;
  }

  .table-wrap {
    min-height: 340px;
  }
}

@media (max-width: 720px) {
  body {
    padding: 12px;
  }

  .card,
  .hero {
    border-radius: 22px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .action-row {
    flex-direction: column;
  }

  .auth-gate {
    padding: 14px;
  }

  .auth-panel {
    border-radius: 24px;
  }

  .row-action-group,
  .request-card-actions,
  .request-pill-stack,
  .lookup-card-footer,
  .auth-summary {
    width: 100%;
  }

  button {
    width: 100%;
  }
}

body.dashboard-neo {
  --bg: #08101f;
  --bg-top: #0a1226;
  --bg-deep: #050c18;
  --panel: rgba(12, 20, 40, 0.97);
  --panel-strong: rgba(8, 14, 30, 0.99);
  --panel-soft: rgba(86, 118, 224, 0.07);
  --panel-glow: rgba(88, 150, 255, 0.12);
  --text: #f5f8ff;
  --muted: #8c9abb;
  --muted-strong: #dbe5fb;
  --line: rgba(130, 152, 208, 0.16);
  --line-soft: rgba(130, 152, 208, 0.09);
  --line-strong: rgba(150, 175, 255, 0.2);
  --brand: #496cff;
  --brand-strong: #6fbeff;
  --brand-soft: rgba(73, 108, 255, 0.16);
  --accent: #add8ff;
  --shadow: 0 28px 48px rgba(0, 4, 16, 0.52);
  --shadow-soft: 0 20px 30px rgba(0, 4, 16, 0.38);
  --radius: 24px;
  --radius-sm: 16px;
  background:
    radial-gradient(circle at 18% 0%, rgba(89, 118, 255, 0.12), transparent 22%),
    radial-gradient(circle at 82% 12%, rgba(88, 190, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #091224 0%, #08101f 42%, #050c18 100%);
  padding: 16px;
}

body.dashboard-neo::before {
  top: 56vh;
  left: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(98, 113, 255, 0.2), transparent 66%);
  filter: blur(56px);
}

body.dashboard-neo::after {
  top: 10vh;
  right: -110px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(79, 181, 255, 0.16), transparent 68%);
  filter: blur(56px);
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.52;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes loaderDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -12px, 0);
  }
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.app-loader.is-active {
  opacity: 1;
  visibility: visible;
}

.app-loader-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 26% 18%, rgba(99, 127, 255, 0.2), transparent 24%),
    radial-gradient(circle at 74% 24%, rgba(110, 196, 255, 0.14), transparent 20%),
    linear-gradient(180deg, rgba(7, 12, 26, 0.92), rgba(7, 12, 26, 0.97));
  backdrop-filter: blur(12px);
}

.app-loader-halo {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  animation:
    loaderPulse 2.8s ease-in-out infinite,
    loaderDrift 4.2s ease-in-out infinite;
}

.app-loader-halo-one {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(95, 113, 255, 0.34), transparent 68%);
}

.app-loader-halo-two {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(93, 201, 255, 0.22), transparent 72%);
  animation-delay: -1.1s;
}

.app-loader-core {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.app-loader-logo-shell {
  width: min(420px, calc(100vw - 56px));
  padding: 20px 22px 16px;
  border-radius: 28px;
  border: 1px solid rgba(127, 150, 217, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(10, 18, 38, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 60px rgba(2, 7, 20, 0.44);
}

.app-loader-logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 540 / 139;
  object-fit: contain;
}

.app-loader-text {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8ccff;
}

body.dashboard-neo button {
  border-radius: 14px;
  padding: 0.82rem 1rem;
  border-color: rgba(126, 156, 235, 0.28);
  background: linear-gradient(180deg, #5579ff 0%, #4463ea 56%, #304ab5 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 24px rgba(48, 74, 181, 0.3);
}

body.dashboard-neo button::after {
  background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.12) 50%, transparent 85%);
}

body.dashboard-neo button:hover,
body.dashboard-neo button:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 28px rgba(48, 74, 181, 0.36);
}

body.dashboard-neo button.secondary-button,
body.dashboard-neo .row-action-button-restore {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(12, 20, 42, 0.96);
  border-color: rgba(129, 150, 198, 0.18);
  color: var(--muted-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 20px rgba(3, 9, 28, 0.24);
}

body.dashboard-neo .app-shell {
  max-width: 1780px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(126, 151, 211, 0.14);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(13, 19, 37, 0.98), rgba(8, 12, 24, 0.99)),
    rgba(8, 12, 24, 0.99);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 34px 80px rgba(0, 4, 16, 0.44);
  overflow: hidden;
}

body.dashboard-neo .hero,
body.dashboard-neo .card {
  background:
    linear-gradient(180deg, rgba(18, 28, 60, 0.98), rgba(12, 20, 42, 0.98)),
    var(--panel);
  border: 1px solid rgba(123, 147, 204, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(120%);
}

body.dashboard-neo .hero {
  grid-column: 1 / -1;
  grid-row: auto;
  position: relative;
  top: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  padding: 6px 2px 20px;
  border: 0;
  border-bottom: 1px solid rgba(126, 151, 211, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.dashboard-neo .hero::before,
body.dashboard-neo .hero::after {
  display: none;
}

body.dashboard-neo .hero-copy {
  display: grid;
  align-items: center;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 16px 18px;
}

body.dashboard-neo .page-switcher {
  grid-column: 2;
  grid-row: 1;
  width: fit-content;
  justify-self: start;
  align-self: center;
  display: inline-grid;
  grid-auto-flow: column;
  gap: 8px;
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(126, 151, 211, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(9, 16, 34, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 28px rgba(2, 8, 24, 0.22);
  backdrop-filter: blur(14px) saturate(120%);
}

body.dashboard-neo .page-link {
  min-width: 0;
  justify-content: center;
  gap: 10px;
  min-width: 108px;
  padding: 0.74rem 0.95rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

body.dashboard-neo .page-link::before {
  display: none;
}

body.dashboard-neo .page-link:hover,
body.dashboard-neo .page-link:focus-visible {
  background: rgba(92, 110, 168, 0.18);
  border-color: rgba(130, 149, 204, 0.16);
  color: #eef3ff;
}

body.dashboard-neo .page-link.is-active {
  background:
    linear-gradient(180deg, rgba(84, 117, 240, 0.82), rgba(55, 75, 164, 0.92)),
    rgba(31, 46, 92, 0.96);
  border-color: rgba(111, 190, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 14px 24px rgba(12, 18, 40, 0.28);
  color: #ffffff;
}

body.dashboard-neo .page-link.is-active::before {
  display: none;
}

body.dashboard-neo .auth-page-switcher {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.dashboard-neo .auth-page-switcher .page-link {
  justify-content: center;
}

body.dashboard-neo .auth-page-switcher .page-link::before {
  display: none;
}

body.dashboard-neo .hero .pill-row {
  display: none;
}

body.dashboard-neo .hero-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 0;
}

body.dashboard-neo .hero-logo-shell {
  width: fit-content;
  padding: 8px 12px 9px;
  border-radius: 16px;
  border-color: rgba(126, 151, 211, 0.18);
  background:
    linear-gradient(180deg, rgba(74, 96, 176, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(6, 13, 28, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 28px rgba(2, 8, 24, 0.28);
}

body.dashboard-neo .hero-logo {
  width: clamp(148px, 9vw, 178px);
}

body.dashboard-neo .hero-brand-copy {
  gap: 2px;
  align-self: center;
}

body.dashboard-neo .hero h1 {
  font-size: clamp(1.6rem, 2vw, 2rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

body.dashboard-neo .eyebrow,
body.dashboard-neo .section-kicker {
  color: #86aefb;
}

body.dashboard-neo .hero-text {
  display: none;
}

body.dashboard-neo .sidebar-nav-card,
body.dashboard-neo .sidebar-info-card {
  display: none;
}

body.dashboard-neo .sidebar-nav-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

body.dashboard-neo .sidebar-tab-list {
  display: grid;
  gap: 8px;
}

body.dashboard-neo .sidebar-tab-link {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: flex-start;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  color: var(--muted-strong);
}

body.dashboard-neo .sidebar-tab-link::after {
  display: none;
}

body.dashboard-neo .sidebar-tab-link:hover,
body.dashboard-neo .sidebar-tab-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(86, 111, 186, 0.15);
  box-shadow: none;
}

body.dashboard-neo .sidebar-tab-link.is-active {
  background:
    linear-gradient(180deg, rgba(103, 132, 255, 0.22), rgba(69, 86, 170, 0.26)),
    rgba(19, 32, 68, 0.96);
  border-color: rgba(124, 155, 255, 0.22);
  box-shadow:
    inset 2px 0 0 #78d4ff,
    0 10px 18px rgba(8, 13, 34, 0.22);
}

body.dashboard-neo #sourceBreakdownPills {
  gap: 8px;
}

body.dashboard-neo #sourceBreakdownPills .pill {
  width: 100%;
  justify-content: flex-start;
}

body.dashboard-neo .hero-actions {
  grid-column: 2;
  grid-row: 1;
  max-width: none;
  justify-self: end;
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.dashboard-neo .hero-button-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

body.dashboard-neo .hero-button-stack button {
  width: auto;
  min-width: 162px;
}

body.dashboard-neo .auth-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 0;
  border-top: 0;
}

body.dashboard-neo .auth-summary .pill {
  width: fit-content;
}

body.dashboard-neo .add-sample-card,
body.dashboard-neo .deleted-samples-card,
body.dashboard-neo .workspace-card {
  grid-column: 1 / -1;
}

body.dashboard-neo .card {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 22px;
  background:
    linear-gradient(180deg, rgba(16, 24, 48, 0.96), rgba(8, 14, 30, 0.99)),
    rgba(8, 14, 30, 0.99);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 36px rgba(2, 8, 24, 0.28);
}

body.dashboard-neo .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(117, 152, 255, 0.08), transparent 34%, transparent 72%, rgba(112, 197, 255, 0.05));
  pointer-events: none;
}

body.dashboard-neo .summary-card {
  grid-column: 1 / span 4;
  padding: 24px;
}

body.dashboard-neo .greeting-card {
  grid-column: 1 / span 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  min-height: 0;
  padding: 24px;
}

body.dashboard-neo .greeting-card h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.05rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

body.dashboard-neo .greeting-card .helper-text {
  max-width: 760px;
  margin-top: 10px;
  font-size: 0.94rem;
}

body.dashboard-neo .greeting-card-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
}

body.dashboard-neo .summary-card .section-heading h2,
body.dashboard-neo .workspace-header h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.35rem);
  letter-spacing: -0.05em;
}

body.dashboard-neo .summary-card .section-heading,
body.dashboard-neo .workspace-header {
  align-items: start;
}

body.dashboard-neo .summary-tile,
body.dashboard-neo .lookup-card,
body.dashboard-neo .deleted-sample-card,
body.dashboard-neo .request-card,
body.dashboard-neo .user-admin-card-item,
body.dashboard-neo .inspection-session-card,
body.dashboard-neo .inspection-photo-card,
body.dashboard-neo .inspection-defect-card,
body.dashboard-neo .inspection-defect-editor,
body.dashboard-neo .run-input-card,
body.dashboard-neo .field-detail-item {
  border-radius: 16px;
  border-color: rgba(126, 151, 211, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(16, 24, 50, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 12px 20px rgba(3, 8, 24, 0.22);
}

body.dashboard-neo .summary-tile {
  padding: 16px;
}

body.dashboard-neo .summary-tile .label {
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

body.dashboard-neo .summary-tile .value {
  font-size: 1.72rem;
}

body.dashboard-neo .todo-board {
  display: grid;
  gap: 18px;
}

body.dashboard-neo .todo-composer {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(126, 151, 211, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
    rgba(12, 20, 40, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 28px rgba(3, 8, 24, 0.18);
}

body.dashboard-neo .todo-primary-field,
body.dashboard-neo .todo-secondary-field {
  display: grid;
  gap: 8px;
}

body.dashboard-neo .todo-composer-actions {
  display: grid;
  gap: 8px;
  min-width: 190px;
}

body.dashboard-neo .todo-composer-actions .status-text {
  min-height: 1.2rem;
  margin: 0;
}

body.dashboard-neo .todo-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.dashboard-neo .todo-column {
  display: grid;
  gap: 12px;
  min-height: 0;
}

body.dashboard-neo .todo-column-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

body.dashboard-neo .todo-column-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

body.dashboard-neo .todo-list {
  display: grid;
  gap: 12px;
}

body.dashboard-neo .todo-item-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(126, 151, 211, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
    rgba(9, 16, 32, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 22px rgba(3, 8, 24, 0.18);
}

body.dashboard-neo .todo-item-card.is-completed {
  opacity: 0.88;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    rgba(7, 12, 24, 0.94);
}

body.dashboard-neo .todo-item-card-request {
  border-color: rgba(75, 151, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(32, 119, 255, 0.16), rgba(255, 255, 255, 0.018) 46%),
    rgba(9, 16, 32, 0.94);
}

body.dashboard-neo .todo-item-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

body.dashboard-neo .todo-item-title-row h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

body.dashboard-neo .todo-item-card.is-completed .todo-item-title-row h3,
body.dashboard-neo .todo-item-card.is-completed .todo-item-note {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(173, 216, 255, 0.6);
}

body.dashboard-neo .todo-item-note {
  margin: 8px 0 0;
  color: var(--muted-strong);
  line-height: 1.5;
}

body.dashboard-neo .todo-item-note.is-empty {
  color: var(--muted);
}

body.dashboard-neo .todo-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.83rem;
}

body.dashboard-neo .todo-item-actions {
  display: grid;
  gap: 8px;
}

body.dashboard-neo .daily-start-card {
  display: grid;
  gap: 14px;
}

body.dashboard-neo .daily-start-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

body.dashboard-neo .daily-start-meta-panel {
  display: grid;
  gap: 8px;
  justify-items: end;
}

body.dashboard-neo .daily-start-status {
  justify-content: flex-end;
  gap: 6px;
}

body.dashboard-neo .daily-start-card h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

body.dashboard-neo .daily-start-card .helper-text {
  max-width: 760px;
  margin-top: 10px;
  font-size: 0.94rem;
}

body.dashboard-neo .workspace-card {
  grid-column: 1 / -1;
  gap: 18px;
  padding: 22px;
}

body.dashboard-neo .workspace-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
  gap: 20px;
}

body.dashboard-neo .workspace-header .helper-text {
  max-width: none;
  text-align: left;
  justify-self: end;
}

body.dashboard-neo .workspace-tab-strip {
  width: fit-content;
  padding: 6px;
  border-radius: 16px;
  border-color: rgba(126, 151, 211, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    rgba(15, 23, 47, 0.94);
  box-shadow: none;
}

body.dashboard-neo .workspace-tab {
  min-width: 132px;
  border-radius: 12px;
  padding: 0.76rem 1rem;
}

body.dashboard-neo .workspace-tab.is-active {
  background: linear-gradient(180deg, #6685ff 0%, #586bff 56%, #4958db 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 18px rgba(56, 78, 211, 0.24);
}

body.dashboard-neo .workspace-surface {
  border-radius: 18px;
  padding: 20px;
  border-color: rgba(126, 151, 211, 0.12);
  background:
    linear-gradient(180deg, rgba(16, 24, 50, 0.98), rgba(12, 20, 42, 0.98)),
    rgba(16, 24, 50, 0.98);
  box-shadow: var(--shadow-soft);
}

body.dashboard-neo .filter-grid,
body.dashboard-neo .request-board,
body.dashboard-neo .analysis-layout,
body.dashboard-neo .inspection-layout,
body.dashboard-neo .inspection-detail-layout {
  gap: 14px;
}

body.dashboard-neo input,
body.dashboard-neo select,
body.dashboard-neo textarea {
  min-height: 44px;
  border-radius: 12px;
  border-color: rgba(129, 150, 198, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(10, 18, 38, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 8px 16px rgba(4, 10, 28, 0.16);
}

body.dashboard-neo input:focus,
body.dashboard-neo select:focus,
body.dashboard-neo textarea:focus {
  border-color: rgba(111, 190, 255, 0.46);
  box-shadow:
    0 0 0 4px rgba(96, 155, 255, 0.12),
    0 12px 22px rgba(4, 10, 28, 0.18);
}

body.dashboard-neo .lookup-results,
body.dashboard-neo .user-admin-list,
body.dashboard-neo .audit-log-list,
body.dashboard-neo .inspection-session-list,
body.dashboard-neo .inspection-photo-list,
body.dashboard-neo .inspection-defect-list {
  padding-right: 2px;
}

body.dashboard-neo .plot-area,
body.dashboard-neo .table-wrap {
  border-radius: 16px;
  border: 1px solid rgba(126, 151, 211, 0.12);
  background:
    linear-gradient(180deg, rgba(10, 17, 34, 0.94), rgba(7, 12, 26, 0.96)),
    rgba(7, 12, 26, 0.96);
}

body.dashboard-neo .plot-area {
  min-height: 440px;
}

body.dashboard-neo .table-wrap {
  padding: 4px;
}

body.dashboard-neo #dataTable {
  border-collapse: separate;
  border-spacing: 0;
}

body.dashboard-neo #dataTable > thead {
  background: rgba(19, 30, 60, 0.94);
}

body.dashboard-neo #dataTable th,
body.dashboard-neo #dataTable td {
  border-color: rgba(126, 151, 211, 0.08);
}

body.dashboard-neo #dataTable th {
  color: #aebce2;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

body.dashboard-neo #dataTable td {
  background: rgba(10, 17, 34, 0.86);
}

body.dashboard-neo #dataTable > tbody > tr:nth-child(even) > td {
  background: rgba(12, 20, 40, 0.92);
}

body.dashboard-neo #dataTable > tbody > tr:hover > td {
  background: rgba(20, 33, 66, 0.96);
}

body.dashboard-neo .inspection-toolbar,
body.dashboard-neo .inspection-form-surface,
body.dashboard-neo .inspection-roll-summary-surface,
body.dashboard-neo .inspection-summary-surface,
body.dashboard-neo .inspection-sessions-surface,
body.dashboard-neo .inspection-photos-surface,
body.dashboard-neo .inspection-defects-surface {
  border-radius: 18px;
}

body.dashboard-neo .inspection-map {
  border-radius: 18px;
  border-color: rgba(129, 150, 198, 0.16);
  background:
    linear-gradient(180deg, rgba(13, 23, 46, 0.98), rgba(8, 14, 30, 0.98)),
    rgba(8, 14, 30, 0.98);
}

body.dashboard-neo .inspection-map::before {
  background:
    linear-gradient(180deg, rgba(91, 109, 255, 0.12), transparent),
    linear-gradient(90deg, rgba(111, 190, 255, 0.12), transparent);
}

body.dashboard-neo .inspection-map-dot.passable {
  background: #6fbeff;
}

body.dashboard-neo .inspection-map-dot.non-passable {
  background: #ff5e78;
}

body.dashboard-neo .inspection-map-dot.is-active {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.08),
    0 0 0 10px rgba(111, 190, 255, 0.12);
}

body.dashboard-neo .auth-panel {
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(18, 28, 60, 0.98), rgba(12, 20, 42, 0.98)),
    rgba(14, 22, 48, 0.98);
  border-color: rgba(123, 147, 204, 0.18);
  box-shadow: 0 34px 64px rgba(2, 8, 24, 0.48);
}

body.dashboard-neo .auth-mode-switch {
  border-radius: 16px;
}

body.dashboard-neo .auth-mode-button {
  border-radius: 12px;
}

body.dashboard-neo .auth-brand-mark {
  border-radius: 20px;
}

body.dashboard-neo .pill {
  border-radius: 999px;
  border-color: rgba(126, 151, 211, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(13, 21, 44, 0.94);
}

@media (max-width: 1480px) {
  body.dashboard-neo .app-shell {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  body.dashboard-neo .greeting-card,
  body.dashboard-neo .summary-card {
    grid-column: 1 / -1;
  }

  body.dashboard-neo .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  body.dashboard-neo .page-switcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    width: 100%;
    justify-self: stretch;
    grid-column: 1;
    grid-row: auto;
  }

  body.dashboard-neo .page-link {
    justify-content: center;
  }

  body.dashboard-neo .hero-actions {
    grid-column: 1;
    grid-row: auto;
  }

  body.dashboard-neo .workspace-header {
    grid-template-columns: 1fr;
  }

  body.dashboard-neo .workspace-header .helper-text {
    justify-self: start;
  }

  body.dashboard-neo .greeting-card,
  body.dashboard-neo .todo-composer,
  body.dashboard-neo .todo-columns {
    grid-template-columns: 1fr;
  }

  body.dashboard-neo .greeting-card-meta {
    justify-items: start;
  }
}

@media (max-width: 1120px) {
  body.dashboard-neo .app-shell {
    grid-template-columns: 1fr;
  }

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

  body.dashboard-neo .hero,
  body.dashboard-neo .greeting-card,
  body.dashboard-neo .summary-card,
  body.dashboard-neo .add-sample-card,
  body.dashboard-neo .deleted-samples-card,
  body.dashboard-neo .workspace-card {
    grid-column: auto;
  }

  body.dashboard-neo .hero-copy {
    grid-template-columns: 1fr;
  }

  body.dashboard-neo .page-switcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.dashboard-neo .hero-brand {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body.dashboard-neo .sidebar-nav-card,
  body.dashboard-neo .sidebar-info-card {
    max-width: none;
  }
}

@media (max-width: 860px) {
  body.dashboard-neo .hero-brand,
  body.dashboard-neo .todo-item-card {
    grid-template-columns: 1fr;
  }

  body.dashboard-neo .hero {
    padding: 18px;
    gap: 16px;
  }

  body.dashboard-neo .hero-copy {
    gap: 14px;
  }

  body.dashboard-neo .hero h1 {
    font-size: clamp(2.3rem, 10vw, 3.3rem);
  }

  body.dashboard-neo .hero-logo {
    width: clamp(168px, 44vw, 208px);
  }

  body.dashboard-neo .page-switcher {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
  }

  body.dashboard-neo .page-link {
    min-width: 0;
    padding: 0.72rem 0.5rem;
    font-size: 0.94rem;
  }

  body.dashboard-neo .sidebar-nav-copy {
    display: none;
  }

  body.dashboard-neo .sidebar-tab-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.dashboard-neo .sidebar-tab-link {
    justify-content: center;
    padding-inline: 0.8rem;
  }

  body.dashboard-neo .todo-item-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.dashboard-neo {
    padding: 12px;
  }

  body.dashboard-neo .page-switcher {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.dashboard-neo .workspace-tab-strip {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body.dashboard-neo .workspace-tab {
    min-width: 0;
    width: 100%;
    padding-inline: 0.75rem;
  }

  body.dashboard-neo .workspace-header h2,
  body.dashboard-neo .summary-card .section-heading h2 {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  body.dashboard-neo .workspace-surface,
  body.dashboard-neo .summary-card,
  body.dashboard-neo .greeting-card,
  body.dashboard-neo .workspace-card {
    padding: 16px;
  }

  body.dashboard-neo .hero-actions {
    padding: 14px;
  }

  body.dashboard-neo .todo-item-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  body.dashboard-neo .page-link,
  body.dashboard-neo .workspace-tab,
  body.dashboard-neo .sidebar-tab-link {
    font-size: 0.88rem;
  }

  body.dashboard-neo .hero-logo-shell {
    padding: 8px 10px 9px;
  }

  body.dashboard-neo .pill {
    font-size: 0.78rem;
  }
}

body.dashboard-neo {
  background:
    radial-gradient(circle at 14% 14%, rgba(80, 109, 240, 0.14), transparent 20%),
    radial-gradient(circle at 86% 20%, rgba(83, 172, 255, 0.1), transparent 18%),
    linear-gradient(180deg, #070d1c 0%, #060b17 100%);
}

body.dashboard-neo .app-shell {
  max-width: 1640px;
  gap: 18px;
  padding: 18px 18px 22px;
  border-radius: 28px;
}

body.dashboard-neo .hero {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(126, 151, 211, 0.12);
}

body.dashboard-neo .hero-copy {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.dashboard-neo .hero-brand {
  gap: 12px;
}

body.dashboard-neo .hero-logo-shell {
  padding: 8px 12px 9px;
  border-radius: 16px;
}

body.dashboard-neo .hero-logo {
  width: 132px;
}

body.dashboard-neo .hero-brand-copy {
  display: grid;
  gap: 2px;
}

body.dashboard-neo .hero h1 {
  font-size: 1.18rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

body.dashboard-neo .eyebrow {
  margin: 0;
  font-size: 0.64rem;
}

body.dashboard-neo .page-switcher {
  grid-column: auto;
  grid-row: auto;
  justify-self: center;
  width: auto;
}

body.dashboard-neo .hero-actions {
  grid-column: auto;
  grid-row: auto;
  justify-self: end;
  max-width: 560px;
}

body.dashboard-neo .hero-button-stack {
  align-items: center;
}

body.dashboard-neo .hero-button-stack button {
  min-width: 144px;
}

body.dashboard-neo.is-home-page .greeting-card {
  grid-column: 1 / span 5;
  grid-row: 2;
  order: 1;
  min-height: 0;
}

body.dashboard-neo .greeting-card h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
}

body.dashboard-neo .greeting-card-meta {
  justify-items: start;
}

body.dashboard-neo.is-home-page .summary-card {
  grid-column: 1 / span 5;
  grid-row: 2;
  order: 1;
  max-height: none;
  min-height: 0;
  overflow: hidden;
}

body.dashboard-neo .summary-card .todo-composer,
body.dashboard-neo .summary-card .todo-columns {
  grid-template-columns: 1fr;
}

body.dashboard-neo .summary-card .todo-composer-actions {
  min-width: 0;
}

body.dashboard-neo .workspace-card {
  grid-column: 5 / -1;
  grid-row: 2 / span 2;
  min-height: 0;
}

body.dashboard-neo .workspace-tab-strip {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

body.dashboard-neo .workspace-surface {
  min-height: 0;
}

body.dashboard-neo:not(.is-home-page) .workspace-card {
  grid-column: 1 / -1;
  grid-row: auto;
  gap: 12px;
  padding: 16px;
}

body.dashboard-neo:not(.is-home-page) .workspace-header {
  display: none;
}

body.dashboard-neo:not(.is-home-page) #datasetStatus {
  display: none;
}

body.dashboard-neo:not(.is-home-page) .hero {
  padding-bottom: 12px;
}

body.dashboard-neo:not(.is-home-page) .workspace-surface {
  padding: 16px;
}

body.dashboard-neo:not(.is-home-page) .section-heading {
  margin-bottom: 10px;
}

body.dashboard-neo:not(.is-home-page) .section-heading h2 {
  font-size: 1.3rem;
}

body.dashboard-neo.is-home-page .home-visual-section {
  grid-column: 6 / -1;
  grid-row: 2;
  order: 2;
  min-height: 0;
}

body.dashboard-neo .home-command-panel {
  display: grid;
  grid-template-rows: auto auto minmax(360px, 1fr);
  gap: 18px;
  min-height: 100%;
}

body.dashboard-neo .home-command-copy h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.05;
  letter-spacing: 0;
}

body.dashboard-neo .home-command-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.dashboard-neo .home-command-metrics > div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(126, 151, 211, 0.14);
  border-radius: 12px;
  background: rgba(8, 14, 30, 0.72);
}

body.dashboard-neo .home-command-metrics span {
  color: #f5f8ff;
  font-size: 1.55rem;
  font-weight: 760;
  line-height: 1;
}

body.dashboard-neo .home-command-metrics small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.dashboard-neo .home-orbit {
  position: relative;
  min-height: 340px;
  border: 1px solid rgba(126, 151, 211, 0.14);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(76, 115, 255, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(76, 115, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 50% 52%, rgba(111, 190, 255, 0.14), transparent 24%),
    rgba(7, 12, 26, 0.96);
  background-size:
    42px 42px,
    42px 42px,
    auto,
    auto;
}

body.dashboard-neo .home-orbit::before,
body.dashboard-neo .home-orbit::after {
  content: "";
  position: absolute;
  inset: 20%;
  border: 1px solid rgba(126, 151, 211, 0.18);
  border-radius: 50%;
  transform: rotate(10deg) scaleX(1.38);
}

body.dashboard-neo .home-orbit::after {
  inset: 30%;
  border-color: rgba(111, 190, 255, 0.18);
  transform: rotate(-18deg) scaleX(1.62);
}

body.dashboard-neo .home-orbit-core,
body.dashboard-neo .home-orbit-node {
  position: absolute;
  z-index: 1;
}

body.dashboard-neo .home-orbit-core {
  left: 50%;
  top: 52%;
  width: min(250px, 42%);
  padding: 14px 18px 12px;
  border: 1px solid rgba(126, 151, 211, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(9, 16, 34, 0.94);
  box-shadow: 0 22px 42px rgba(0, 4, 16, 0.36);
  transform: translate(-50%, -50%);
}

body.dashboard-neo .home-orbit-core img {
  display: block;
  width: 100%;
  height: auto;
}

body.dashboard-neo .home-orbit-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  min-height: 44px;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(111, 190, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(76, 110, 255, 0.86), rgba(47, 69, 174, 0.94)),
    rgba(16, 24, 50, 0.96);
  color: #fff;
  font-weight: 760;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 28px rgba(0, 4, 16, 0.28);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

body.dashboard-neo .home-orbit-node:hover,
body.dashboard-neo .home-orbit-node:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(111, 190, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 22px 36px rgba(0, 4, 16, 0.36);
}

body.dashboard-neo .home-orbit-node-pemion {
  left: 9%;
  top: 16%;
}

body.dashboard-neo .home-orbit-node-aemion {
  right: 10%;
  top: 22%;
}

body.dashboard-neo .home-orbit-node-inspection {
  left: 50%;
  bottom: 13%;
  transform: translateX(-50%);
}

body.dashboard-neo .home-orbit-node-inspection:hover,
body.dashboard-neo .home-orbit-node-inspection:focus-visible {
  transform: translateX(-50%) translateY(-2px);
}

body.dashboard-neo .records-primary-actions,
body.dashboard-neo .admin-export-actions {
  justify-content: flex-start;
  margin-bottom: 16px;
}

body.dashboard-neo .embedded-record-section {
  display: grid;
  gap: 16px;
  margin: 0 0 18px;
  padding: 18px 0 20px;
  border-top: 1px solid rgba(126, 151, 211, 0.14);
  border-bottom: 1px solid rgba(126, 151, 211, 0.14);
}

body.dashboard-neo .embedded-record-section[hidden] {
  display: none;
}

body.dashboard-neo .admin-export-panel {
  min-height: 0;
}

body.dashboard-neo .auth-panel {
  width: min(1240px, calc(100vw - 32px));
  max-height: none;
  padding: 18px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.8fr);
  gap: 18px;
}

.auth-showcase,
.auth-form-shell {
  border: 1px solid rgba(123, 147, 204, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(18, 28, 60, 0.98), rgba(12, 20, 42, 0.98)),
    rgba(14, 22, 48, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 44px rgba(0, 4, 16, 0.26);
}

.auth-showcase {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px;
}

.auth-showcase-copy {
  display: grid;
  gap: 10px;
}

.auth-showcase-copy .helper-text {
  max-width: 52ch;
}

.auth-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.auth-showcase-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(126, 151, 211, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(9, 16, 34, 0.94);
}

.auth-showcase-card h3,
.auth-form-header h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.auth-showcase-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-form-shell {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
}

.auth-form-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 6px;
}

.auth-form-header .section-kicker {
  margin-bottom: 0;
}

body.dashboard-neo .auth-brand-mark {
  justify-self: start;
}

.theme-toggle {
  white-space: nowrap;
}

body.dashboard-neo .auth-page-switcher {
  justify-content: start;
}

body.dashboard-neo .auth-page-switcher .page-link {
  min-width: 0;
}

@media (max-width: 1320px) {
  body.dashboard-neo .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body.dashboard-neo .hero-copy {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.dashboard-neo .page-switcher {
    justify-self: stretch;
    width: 100%;
  }

  body.dashboard-neo .hero-actions {
    justify-self: stretch;
    justify-content: flex-start;
    max-width: none;
  }

  body.dashboard-neo .greeting-card,
  body.dashboard-neo .summary-card,
  body.dashboard-neo .home-visual-section,
  body.dashboard-neo .workspace-card {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  body.dashboard-neo .summary-card .todo-composer {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  }

  body.dashboard-neo .summary-card .todo-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.dashboard-neo .workspace-card,
  body.dashboard-neo .workspace-surface,
  body.dashboard-neo .workspace-header,
  body.dashboard-neo .workspace-panel {
    min-width: 0;
  }

  body.dashboard-neo .workspace-header h2,
  body.dashboard-neo .workspace-header .helper-text {
    overflow-wrap: anywhere;
  }

  body.dashboard-neo .workspace-tab-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  body.dashboard-neo .workspace-tab {
    width: 100%;
    min-width: 0;
    padding-inline: 0.75rem;
  }

  body.dashboard-neo .records-primary-actions,
  body.dashboard-neo .admin-export-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.dashboard-neo .records-primary-actions button,
  body.dashboard-neo .admin-export-actions button {
    width: 100%;
    min-width: 0;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-showcase-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .auth-gate {
    align-items: start;
    padding: 14px;
  }

  body.dashboard-neo .auth-panel {
    width: min(100%, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    padding: 14px;
  }

  .auth-showcase {
    gap: 12px;
    padding: 16px;
  }

  .auth-showcase-grid {
    display: none;
  }

  .auth-form-shell {
    padding: 16px;
  }

  body.dashboard-neo .hero-copy {
    gap: 12px;
  }

  body.dashboard-neo .hero-brand {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  body.dashboard-neo .page-switcher,
  body.dashboard-neo .auth-page-switcher {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.dashboard-neo .page-link {
    min-width: 0;
    padding-inline: 0.7rem;
  }

  body.dashboard-neo .hero-button-stack,
  body.dashboard-neo .auth-summary {
    width: 100%;
    justify-content: stretch;
  }

  body.dashboard-neo .hero-button-stack button,
  body.dashboard-neo .auth-summary button {
    flex: 1 1 180px;
  }

  body.dashboard-neo .summary-card .todo-composer,
  body.dashboard-neo .summary-card .todo-columns {
    grid-template-columns: 1fr;
  }

  body.dashboard-neo .home-command-metrics {
    grid-template-columns: 1fr;
  }

  body.dashboard-neo .home-orbit {
    min-height: 360px;
  }

  body.dashboard-neo .home-orbit-node-pemion {
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
  }

  body.dashboard-neo .home-orbit-node-aemion {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 10%;
    transform: translateX(-50%);
  }

  body.dashboard-neo .home-orbit-node-inspection {
    left: 50%;
    bottom: auto;
    top: 36%;
    transform: translate(-50%, -50%);
  }

  body.dashboard-neo .home-orbit-core {
    top: 62%;
    width: min(230px, 58%);
  }

  body.dashboard-neo .home-orbit-node-pemion:hover,
  body.dashboard-neo .home-orbit-node-pemion:focus-visible,
  body.dashboard-neo .home-orbit-node-aemion:hover,
  body.dashboard-neo .home-orbit-node-aemion:focus-visible {
    transform: translateX(-50%) translateY(-2px);
  }

  body.dashboard-neo .home-orbit-node-inspection:hover,
  body.dashboard-neo .home-orbit-node-inspection:focus-visible {
    transform: translate(-50%, -50%) translateY(-2px);
  }

  body.dashboard-neo .workspace-tab-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.dashboard-neo .workspace-tab {
    width: 100%;
    min-width: 0;
    padding-inline: 0.7rem;
  }

  body.dashboard-neo .records-primary-actions,
  body.dashboard-neo .admin-export-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.dashboard-neo .records-primary-actions button,
  body.dashboard-neo .admin-export-actions button {
    width: 100%;
  }
}

/* Compact navigation pass: keep the app powerful without making every section shout at once. */
body.dashboard-neo .auth-page-switcher {
  display: none !important;
}

body.dashboard-neo button {
  min-height: 36px;
  padding: 0.54rem 0.78rem;
  border-radius: 11px;
  font-size: 0.88rem;
  line-height: 1.1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 18px rgba(48, 74, 181, 0.2);
}

body.dashboard-neo button:hover,
body.dashboard-neo button:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 14px 22px rgba(48, 74, 181, 0.24);
}

body.dashboard-neo button.secondary-button,
body.dashboard-neo .row-action-button-restore {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 14px rgba(3, 9, 28, 0.18);
}

body.dashboard-neo .page-switcher,
body.dashboard-neo .workspace-tab-strip {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  max-width: 100%;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

body.dashboard-neo .page-switcher::-webkit-scrollbar,
body.dashboard-neo .workspace-tab-strip::-webkit-scrollbar {
  display: none;
}

body.dashboard-neo .page-switcher {
  justify-self: start;
  padding: 4px;
  border-radius: 14px;
}

body.dashboard-neo .page-link {
  flex: 0 0 auto;
  min-width: 0;
  padding: 0.46rem 0.66rem;
  border-radius: 10px;
  font-size: 0.84rem;
  scroll-snap-align: start;
}

body.dashboard-neo .workspace-tab-strip {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 4px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(8, 14, 30, 0.96);
  backdrop-filter: blur(18px) saturate(135%);
}

body.dashboard-neo .workspace-tab {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 34px;
  padding: 0.48rem 0.68rem;
  border-radius: 10px;
  font-size: 0.84rem;
  line-height: 1.1;
  scroll-snap-align: start;
}

body.dashboard-neo .workspace-tab:not(.is-active) {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

body.dashboard-neo .workspace-tab:not(.is-active):hover,
body.dashboard-neo .workspace-tab:not(.is-active):focus-visible {
  background: rgba(92, 110, 168, 0.16);
  border-color: rgba(130, 149, 204, 0.14);
  color: #eef3ff;
  box-shadow: none;
}

body.dashboard-neo .workspace-tab.is-active {
  border-color: rgba(111, 190, 255, 0.18);
  background: linear-gradient(180deg, #6685ff 0%, #586bff 56%, #4958db 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 14px rgba(56, 78, 211, 0.18);
}

body.dashboard-neo:not(.is-home-page) .workspace-card {
  gap: 10px;
  padding: 12px;
}

body.dashboard-neo:not(.is-home-page) .workspace-header {
  display: none !important;
}

body.dashboard-neo:not(.is-home-page) .workspace-surface {
  padding: 14px;
}

body.dashboard-neo:not(.is-home-page) .section-heading {
  align-items: center;
  margin-bottom: 10px;
}

body.dashboard-neo:not(.is-home-page) .section-heading h2 {
  font-size: 1.16rem;
}

body.dashboard-neo:not(.is-home-page) .section-heading .helper-text {
  max-width: 54ch;
}

body.dashboard-neo:not(.is-home-page) .hero {
  gap: 12px;
  padding-bottom: 10px;
}

body.dashboard-neo:not(.is-home-page) .hero-actions {
  gap: 8px;
}

body.dashboard-neo:not(.is-home-page) .hero-actions:has(#authSummary[hidden]) {
  display: none;
}

body.dashboard-neo:not(.is-home-page) .auth-summary {
  gap: 6px;
}

body.dashboard-neo:not(.is-home-page) .auth-summary .pill {
  padding: 0.36rem 0.68rem;
  font-size: 0.76rem;
}

body.dashboard-neo:not(.is-home-page) .filter-grid,
body.dashboard-neo:not(.is-home-page) .request-board,
body.dashboard-neo:not(.is-home-page) .analysis-layout,
body.dashboard-neo:not(.is-home-page) .inspection-layout,
body.dashboard-neo:not(.is-home-page) .inspection-detail-layout {
  gap: 10px;
}

body.dashboard-neo .home-connection-board {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 14px;
  min-height: 390px;
}

body.dashboard-neo .home-us-map {
  position: relative;
  min-height: 390px;
  border: 1px solid rgba(126, 151, 211, 0.14);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(76, 115, 255, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, rgba(76, 115, 255, 0.09) 1px, transparent 1px),
    radial-gradient(circle at 60% 42%, rgba(111, 190, 255, 0.14), transparent 28%),
    rgba(7, 12, 26, 0.96);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

body.dashboard-neo .home-us-map::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(111, 190, 255, 0.16);
  border-radius: 50%;
  transform: rotate(-12deg) scaleX(1.55);
  pointer-events: none;
}

body.dashboard-neo .home-us-map-svg {
  position: absolute;
  inset: 7% 4% 6%;
  width: 92%;
  height: 86%;
  filter: drop-shadow(0 22px 42px rgba(0, 4, 16, 0.34));
}

body.dashboard-neo .home-us-land {
  fill: url(#usMapFill);
  stroke: rgba(142, 199, 255, 0.34);
  stroke-width: 3;
  filter: url("#usMapGlow");
}

body.dashboard-neo .home-us-line {
  fill: none;
  stroke: rgba(111, 190, 255, 0.34);
  stroke-width: 2.5;
  stroke-dasharray: 10 12;
}

body.dashboard-neo .home-us-line.secondary {
  stroke: rgba(104, 133, 255, 0.28);
}

body.dashboard-neo .connection-pin {
  position: absolute;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 72px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

body.dashboard-neo .connection-pin span {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(126, 151, 211, 0.42);
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 7px rgba(126, 151, 211, 0.1);
}

body.dashboard-neo .connection-pin.is-active {
  color: #f5f8ff;
  opacity: 1;
  transform: translateY(-2px);
}

body.dashboard-neo .connection-pin.is-active span {
  background: #70c5ff;
  box-shadow:
    0 0 0 7px rgba(111, 190, 255, 0.16),
    0 0 26px rgba(111, 190, 255, 0.5);
  animation: connectionPulse 1900ms ease-in-out infinite;
}

body.dashboard-neo .connection-pin-west {
  left: 15%;
  top: 42%;
}

body.dashboard-neo .connection-pin-central {
  left: 47%;
  top: 43%;
}

body.dashboard-neo .connection-pin-east {
  right: 13%;
  top: 38%;
}

body.dashboard-neo .connection-pin-south {
  left: 57%;
  bottom: 17%;
}

body.dashboard-neo .home-connection-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(126, 151, 211, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(8, 14, 30, 0.86);
}

body.dashboard-neo .home-connection-panel h3 {
  margin: 0;
  font-size: 1.04rem;
}

body.dashboard-neo .home-connection-list {
  display: grid;
  gap: 10px;
}

body.dashboard-neo .home-connection-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(126, 151, 211, 0.12);
  border-radius: 14px;
  background: rgba(10, 18, 38, 0.76);
}

body.dashboard-neo .home-connection-item h4,
body.dashboard-neo .home-connection-item p {
  margin: 0;
}

body.dashboard-neo .home-connection-item h4 {
  font-size: 0.92rem;
}

body.dashboard-neo .home-connection-item p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

body.dashboard-neo .home-connection-item .pill {
  grid-column: 1 / -1;
  width: fit-content;
  padding: 0.32rem 0.62rem;
  font-size: 0.72rem;
}

body.dashboard-neo .home-connection-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #70c5ff;
  box-shadow: 0 0 0 6px rgba(111, 190, 255, 0.14);
}

@media (min-width: 1120px) {
  body.dashboard-neo.is-home-page {
    overflow: hidden;
  }

  body.dashboard-neo.is-home-page .app-shell {
    min-height: calc(100vh - 32px);
    max-height: calc(100vh - 32px);
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.dashboard-neo.is-home-page .hero {
    grid-row: 1;
  }

  body.dashboard-neo.is-home-page .daily-start-card,
  body.dashboard-neo.is-home-page .home-visual-section {
    max-height: 100%;
  }

  body.dashboard-neo.is-home-page .daily-start-card {
    grid-template-rows: auto minmax(0, 1fr);
    padding: 16px;
  }

  body.dashboard-neo.is-home-page .daily-start-topline {
    gap: 12px;
  }

  body.dashboard-neo.is-home-page .daily-start-card h2 {
    font-size: clamp(1.85rem, 2.4vw, 2.3rem);
  }

  body.dashboard-neo.is-home-page .daily-start-card .helper-text {
    max-width: none;
    margin-top: 6px;
    font-size: 0.86rem;
    line-height: 1.35;
  }

  body.dashboard-neo.is-home-page .greeting-card-meta,
  body.dashboard-neo.is-home-page .daily-start-status {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  body.dashboard-neo.is-home-page .daily-start-card .pill {
    padding: 0.34rem 0.6rem;
    font-size: 0.72rem;
  }

  body.dashboard-neo.is-home-page .todo-board {
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
  }

  body.dashboard-neo.is-home-page .todo-composer {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr) auto;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
  }

  body.dashboard-neo.is-home-page .todo-primary-field,
  body.dashboard-neo.is-home-page .todo-secondary-field {
    gap: 5px;
  }

  body.dashboard-neo.is-home-page .todo-primary-field span,
  body.dashboard-neo.is-home-page .todo-secondary-field span {
    font-size: 0.78rem;
  }

  body.dashboard-neo.is-home-page .todo-composer input {
    min-height: 36px;
  }

  body.dashboard-neo.is-home-page .todo-composer-actions {
    min-width: 120px;
    gap: 4px;
  }

  body.dashboard-neo.is-home-page .todo-composer-actions .status-text {
    display: none;
  }

  body.dashboard-neo.is-home-page .todo-columns {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.dashboard-neo.is-home-page .todo-column {
    min-height: 0;
    overflow: hidden;
    gap: 8px;
  }

  body.dashboard-neo.is-home-page .todo-column-header {
    align-items: center;
  }

  body.dashboard-neo.is-home-page .todo-column-header h3 {
    font-size: 1rem;
  }

  body.dashboard-neo.is-home-page .todo-list {
    min-height: 0;
    overflow: auto;
    gap: 8px;
    padding-right: 2px;
  }

  body.dashboard-neo.is-home-page .todo-item-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
  }

  body.dashboard-neo.is-home-page .todo-item-title-row {
    gap: 8px;
  }

  body.dashboard-neo.is-home-page .todo-item-title-row h3 {
    font-size: 0.9rem;
  }

  body.dashboard-neo.is-home-page .todo-item-note {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-height: 1.28;
    font-size: 0.8rem;
  }

  body.dashboard-neo.is-home-page .todo-item-meta {
    gap: 5px 8px;
    margin-top: 5px;
    font-size: 0.72rem;
  }

  body.dashboard-neo.is-home-page .todo-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  body.dashboard-neo.is-home-page .todo-item-actions button {
    min-height: 30px;
    padding: 0.38rem 0.54rem;
    font-size: 0.76rem;
  }

  body.dashboard-neo.is-home-page .home-visual-section {
    padding: 16px;
    overflow: hidden;
  }

  body.dashboard-neo.is-home-page .home-command-panel {
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 10px;
  }

  body.dashboard-neo.is-home-page .home-command-copy h2 {
    font-size: 1.28rem;
  }

  body.dashboard-neo.is-home-page .home-command-metrics {
    gap: 8px;
  }

  body.dashboard-neo.is-home-page .home-command-metrics > div {
    padding: 10px;
  }

  body.dashboard-neo.is-home-page .home-command-metrics span {
    font-size: 1.18rem;
  }

  body.dashboard-neo.is-home-page .home-command-metrics small {
    font-size: 0.68rem;
  }

  body.dashboard-neo.is-home-page .home-connection-board {
    min-height: 0;
    height: 100%;
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.55fr);
    gap: 10px;
  }

  body.dashboard-neo.is-home-page .home-us-map {
    min-height: 0;
    height: 100%;
  }

  body.dashboard-neo.is-home-page .home-connection-panel {
    min-height: 0;
    overflow: auto;
    gap: 10px;
    padding: 12px;
  }

  body.dashboard-neo.is-home-page .home-connection-list {
    gap: 8px;
  }

  body.dashboard-neo.is-home-page .home-connection-item {
    gap: 8px;
    padding: 9px;
  }

  body.dashboard-neo.is-home-page .home-connection-panel .helper-text {
    display: none;
  }
}

body.dashboard-neo .inspection-map-deck {
  gap: 14px;
  order: 0;
}

body.dashboard-neo .inspection-map-deck > .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

body.dashboard-neo .inspection-map-deck > .section-heading button {
  width: auto;
  min-width: 112px;
  justify-self: end;
}

body.dashboard-neo .inspection-map-deck-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 14px;
  align-items: start;
}

body.dashboard-neo .inspection-map-stack {
  display: grid;
  gap: 14px;
}

body.dashboard-neo .inspection-map-horizontal {
  min-height: 210px;
}

body.dashboard-neo .inspection-map-horizontal::before,
body.dashboard-neo .inspection-map-horizontal .inspection-map-surface {
  inset: 26px 42px;
}

body.dashboard-neo .inspection-map-horizontal .inspection-map-label.left {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  transform-origin: center;
}

body.dashboard-neo .inspection-map-horizontal .inspection-map-label.right {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  transform-origin: center;
}

body.dashboard-neo .inspection-map-horizontal .inspection-map-label.top {
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
}

body.dashboard-neo .inspection-map-horizontal .inspection-map-label.bottom {
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
}

body.dashboard-neo .inspection-harvest-map {
  background:
    linear-gradient(180deg, rgba(10, 24, 42, 0.96), rgba(5, 12, 24, 0.98)),
    rgba(2, 6, 12, 0.92);
}

body.dashboard-neo .inspection-harvest-windows {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body.dashboard-neo .inspection-harvest-window {
  position: absolute;
  top: 8%;
  bottom: 8%;
  display: flex;
  align-items: end;
  justify-content: center;
  padding-bottom: 8px;
  border-inline: 1px solid rgba(111, 190, 255, 0.24);
  background: linear-gradient(180deg, rgba(111, 190, 255, 0.13), rgba(81, 111, 255, 0.06));
  color: rgba(232, 241, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 760;
}

body.dashboard-neo .inspection-harvest-window.is-scrap {
  border-color: rgba(255, 107, 107, 0.24);
  background: linear-gradient(180deg, rgba(255, 107, 107, 0.14), rgba(255, 107, 107, 0.04));
}

body.dashboard-neo .inspection-map-dot {
  z-index: 2;
}

body.dashboard-neo .inspection-map-dot.is-harvest-dot.non-passable {
  background: #ff5e78;
}

body.dashboard-neo .inspection-map-dot.is-harvest-dot.passable {
  background: #70c5ff;
}

body.dashboard-neo .inspection-photo-detail-layout {
  grid-template-columns: 1fr;
}

@media (max-width: 820px) {
  body.dashboard-neo .app-shell {
    padding: 12px;
    gap: 12px;
    border-radius: 22px;
  }

  body.dashboard-neo .hero {
    gap: 10px;
    padding-bottom: 10px;
  }

  body.dashboard-neo .hero-copy {
    gap: 10px;
  }

  body.dashboard-neo .hero-logo {
    width: 118px;
  }

  body.dashboard-neo .page-switcher {
    justify-self: start;
    width: auto;
    max-width: 100%;
  }

  body.dashboard-neo .page-link {
    padding: 0.44rem 0.62rem;
    font-size: 0.82rem;
  }

  body.dashboard-neo .hero-actions,
  body.dashboard-neo .hero-button-stack,
  body.dashboard-neo .auth-summary {
    width: auto;
    justify-content: flex-start;
  }

  body.dashboard-neo .hero-button-stack button,
  body.dashboard-neo .auth-summary button {
    flex: 0 0 auto;
  }

  body.dashboard-neo .workspace-tab-strip {
    width: auto;
  }

  body.dashboard-neo .workspace-tab {
    padding: 0.46rem 0.62rem;
    font-size: 0.82rem;
  }

  body.dashboard-neo:not(.is-home-page) .section-heading {
    align-items: start;
  }

  body.dashboard-neo:not(.is-home-page) .section-heading > .helper-text {
    display: none;
  }

  body.dashboard-neo:not(.is-home-page) .workspace-surface,
  body.dashboard-neo:not(.is-home-page) .workspace-card {
    padding: 12px;
  }

  body.dashboard-neo .home-connection-board,
  body.dashboard-neo .inspection-map-deck-grid,
  .inspection-live-data-grid {
    grid-template-columns: 1fr;
  }

  .inspection-roll-summary-main {
    display: grid;
  }

  .inspection-roll-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.dashboard-neo .home-us-map {
    min-height: 300px;
  }

  body.dashboard-neo .inspection-map-horizontal {
    min-height: 180px;
  }
}

body.dashboard-neo.theme-light {
  color-scheme: light;
  --bg: #f5f8ff;
  --bg-top: #edf4ff;
  --bg-deep: #ffffff;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --panel-soft: rgba(42, 112, 255, 0.06);
  --panel-glow: rgba(0, 114, 255, 0.12);
  --text: #07162f;
  --muted: #62708a;
  --muted-strong: #223454;
  --line: rgba(35, 82, 154, 0.16);
  --line-soft: rgba(35, 82, 154, 0.11);
  --line-strong: rgba(35, 82, 154, 0.24);
  --brand: #006ee6;
  --brand-strong: #118cff;
  --brand-soft: rgba(0, 110, 230, 0.12);
  --accent: #176dce;
  --shadow: 0 28px 58px rgba(23, 67, 126, 0.16);
  --shadow-soft: 0 18px 34px rgba(23, 67, 126, 0.12);
  background:
    radial-gradient(circle at 16% 0%, rgba(0, 125, 255, 0.16), transparent 24%),
    radial-gradient(circle at 82% 8%, rgba(90, 176, 255, 0.18), transparent 20%),
    linear-gradient(180deg, #f3f8ff 0%, #ffffff 48%, #edf5ff 100%);
}

body.dashboard-neo.theme-light::before {
  background: radial-gradient(circle, rgba(0, 117, 255, 0.18), transparent 66%);
}

body.dashboard-neo.theme-light::after {
  background: radial-gradient(circle, rgba(107, 190, 255, 0.18), transparent 68%);
}

body.dashboard-neo.theme-light .app-loader-backdrop,
body.dashboard-neo.theme-light .auth-gate {
  background:
    radial-gradient(circle at 26% 18%, rgba(0, 118, 255, 0.16), transparent 26%),
    radial-gradient(circle at 74% 24%, rgba(108, 190, 255, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(246, 250, 255, 0.88), rgba(255, 255, 255, 0.94));
}

body.dashboard-neo.theme-light .app-shell,
body.dashboard-neo.theme-light .auth-panel {
  border-color: rgba(38, 89, 158, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.98)),
    rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 34px 80px rgba(23, 67, 126, 0.14);
}

body.dashboard-neo.theme-light .hero,
body.dashboard-neo.theme-light .card,
body.dashboard-neo.theme-light .workspace-card,
body.dashboard-neo.theme-light .workspace-surface,
body.dashboard-neo.theme-light .auth-showcase,
body.dashboard-neo.theme-light .auth-form-shell,
body.dashboard-neo.theme-light .add-sample-card,
body.dashboard-neo.theme-light .deleted-samples-card {
  border-color: rgba(38, 89, 158, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.98)),
    rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 38px rgba(23, 67, 126, 0.12);
}

body.dashboard-neo.theme-light .hero {
  background: transparent;
  box-shadow: none;
}

body.dashboard-neo.theme-light .card::before {
  background: linear-gradient(135deg, rgba(0, 112, 255, 0.08), transparent 34%, transparent 72%, rgba(106, 190, 255, 0.11));
}

body.dashboard-neo.theme-light .hero-logo-shell,
body.dashboard-neo.theme-light .auth-brand-mark,
body.dashboard-neo.theme-light .app-loader-logo-shell {
  border-color: rgba(0, 114, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(8, 38, 86, 0.96), rgba(0, 94, 205, 0.92)),
    #082656;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 36px rgba(23, 67, 126, 0.22);
}

body.dashboard-neo.theme-light .page-switcher,
body.dashboard-neo.theme-light .workspace-tab-strip,
body.dashboard-neo.theme-light .auth-mode-switch {
  border-color: rgba(38, 89, 158, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(235, 244, 255, 0.92)),
    rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 12px 24px rgba(23, 67, 126, 0.1);
}

body.dashboard-neo.theme-light .page-link,
body.dashboard-neo.theme-light .workspace-tab:not(.is-active),
body.dashboard-neo.theme-light .sidebar-tab-link,
body.dashboard-neo.theme-light .auth-mode-button {
  color: #51617c;
}

body.dashboard-neo.theme-light .page-link:hover,
body.dashboard-neo.theme-light .page-link:focus-visible,
body.dashboard-neo.theme-light .workspace-tab:not(.is-active):hover,
body.dashboard-neo.theme-light .workspace-tab:not(.is-active):focus-visible,
body.dashboard-neo.theme-light .sidebar-tab-link:hover,
body.dashboard-neo.theme-light .sidebar-tab-link:focus-visible,
body.dashboard-neo.theme-light .auth-mode-button:hover,
body.dashboard-neo.theme-light .auth-mode-button:focus-visible {
  background: rgba(0, 111, 230, 0.08);
  border-color: rgba(0, 111, 230, 0.14);
  color: #0a2856;
}

body.dashboard-neo.theme-light .page-link.is-active,
body.dashboard-neo.theme-light .workspace-tab.is-active,
body.dashboard-neo.theme-light .auth-mode-button.is-active,
body.dashboard-neo.theme-light .sidebar-tab-link.is-active {
  border-color: rgba(0, 112, 255, 0.22);
  background: linear-gradient(180deg, #2494ff 0%, #006ee6 62%, #005fc7 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 18px rgba(0, 104, 214, 0.2);
}

body.dashboard-neo.theme-light button {
  border-color: rgba(0, 111, 230, 0.24);
  background: linear-gradient(180deg, #2d9aff 0%, #0077ed 62%, #0063c9 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 10px 18px rgba(0, 104, 214, 0.18);
}

body.dashboard-neo.theme-light button.secondary-button,
body.dashboard-neo.theme-light .row-action-button-restore,
body.dashboard-neo.theme-light .theme-toggle {
  border-color: rgba(38, 89, 158, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 243, 255, 0.94)),
    rgba(255, 255, 255, 0.96);
  color: #183154;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 16px rgba(23, 67, 126, 0.1);
}

body.dashboard-neo.theme-light input,
body.dashboard-neo.theme-light select,
body.dashboard-neo.theme-light textarea {
  border-color: rgba(38, 89, 158, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(244, 249, 255, 0.98)),
    #ffffff;
  color: #0b1f3d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 8px 16px rgba(23, 67, 126, 0.07);
}

body.dashboard-neo.theme-light input::placeholder,
body.dashboard-neo.theme-light textarea::placeholder {
  color: #91a0b8;
}

body.dashboard-neo.theme-light .summary-tile,
body.dashboard-neo.theme-light .lookup-card,
body.dashboard-neo.theme-light .request-card,
body.dashboard-neo.theme-light .todo-item-card,
body.dashboard-neo.theme-light .todo-column,
body.dashboard-neo.theme-light .todo-composer,
body.dashboard-neo.theme-light .user-admin-card-item,
body.dashboard-neo.theme-light .inspection-session-card,
body.dashboard-neo.theme-light .inspection-photo-card,
body.dashboard-neo.theme-light .inspection-defect-card,
body.dashboard-neo.theme-light .inspection-defect-editor,
body.dashboard-neo.theme-light .inspection-section-block,
body.dashboard-neo.theme-light .inspection-summary-card,
body.dashboard-neo.theme-light .inspection-harvest-card,
body.dashboard-neo.theme-light .auth-showcase-card,
body.dashboard-neo.theme-light .home-connection-panel,
body.dashboard-neo.theme-light .home-connection-item {
  border-color: rgba(38, 89, 158, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.96)),
    rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 10px 24px rgba(23, 67, 126, 0.08);
}

body.dashboard-neo.theme-light .plot-area,
body.dashboard-neo.theme-light .table-wrap,
body.dashboard-neo.theme-light .inspection-map,
body.dashboard-neo.theme-light .home-us-map {
  border-color: rgba(38, 89, 158, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(233, 243, 255, 0.96)),
    rgba(255, 255, 255, 0.96);
}

body.dashboard-neo.theme-light .inspection-map::before {
  background:
    linear-gradient(180deg, rgba(0, 112, 255, 0.08), transparent),
    linear-gradient(90deg, rgba(0, 112, 255, 0.1), transparent);
}

body.dashboard-neo.theme-light #dataTable > thead {
  background: rgba(226, 239, 255, 0.96);
}

body.dashboard-neo.theme-light #dataTable th {
  color: #536785;
}

body.dashboard-neo.theme-light #dataTable td,
body.dashboard-neo.theme-light #dataTable > tbody > tr:nth-child(even) > td {
  background: rgba(255, 255, 255, 0.96);
}

body.dashboard-neo.theme-light #dataTable > tbody > tr:hover > td {
  background: rgba(231, 242, 255, 0.98);
}

body.dashboard-neo.theme-light .home-us-land {
  stroke: rgba(0, 112, 255, 0.34);
}

body.dashboard-neo.theme-light .home-us-line {
  stroke: rgba(0, 112, 255, 0.3);
}

body.dashboard-neo.theme-light .pill {
  border-color: rgba(38, 89, 158, 0.14);
  background: rgba(235, 244, 255, 0.78);
  color: #294260;
}

body.dashboard-neo.theme-light .eyebrow,
body.dashboard-neo.theme-light .section-kicker,
body.dashboard-neo.theme-light .app-loader-text {
  color: #006ee6;
}

body.dashboard-neo.theme-light .helper-text,
body.dashboard-neo.theme-light .status-text,
body.dashboard-neo.theme-light .auth-showcase-card p:last-child,
body.dashboard-neo.theme-light .home-connection-item p {
  color: #64748f;
}

body.dashboard-neo:not(.is-home-page) .hero-actions:has(#authSummary[hidden]) {
  display: flex;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
