:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: rgba(7, 17, 31, 0.72);
  --panel-strong: rgba(9, 24, 44, 0.92);
  --panel-border: rgba(117, 151, 197, 0.18);
  --text: #ebf2ff;
  --muted: #9eb0cd;
  --accent: #6ee7f7;
  --accent-strong: #15b7d8;
  --accent-soft: rgba(110, 231, 247, 0.14);
  --danger: #ff7b88;
  --warning: #f6c76f;
  --success: #7ef0b5;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Aptos", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(26, 109, 173, 0.35), transparent 30%),
    radial-gradient(circle at bottom right, rgba(13, 87, 93, 0.35), transparent 32%),
    linear-gradient(160deg, #02060d 0%, #07111f 45%, #041220 100%);
  overflow-x: hidden;
}

body.cursor-active,
body.cursor-active a,
body.cursor-active button {
  cursor: none;
}

.aurora,
.grid-sheen {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.aurora {
  filter: blur(48px);
  opacity: 0.45;
}

.aurora-one {
  background: radial-gradient(circle at 18% 16%, rgba(52, 167, 255, 0.28), transparent 28%);
}

.aurora-two {
  background: radial-gradient(circle at 78% 22%, rgba(77, 214, 189, 0.2), transparent 24%);
}

.grid-sheen {
  background-image:
    linear-gradient(rgba(144, 189, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(144, 189, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.45), transparent 85%);
}

.topbar,
.shell {
  position: relative;
  z-index: 1;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem 1.5rem;
  padding: 1.4rem clamp(1.25rem, 4vw, 4rem) 0.65rem;
}

.topbar-copy {
  display: grid;
  gap: 0.45rem;
}

.topbar h1 {
  margin: 0;
  max-width: 16ch;
  font-family: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 2.95rem);
  line-height: 1;
}

.topbar-text {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ghost-link,
.primary-button,
.secondary-button {
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.status-pill,
.ghost-link,
.primary-button,
.secondary-button,
.filter-chip,
.status-tag {
  border-radius: 999px;
}

.status-pill,
.ghost-link,
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

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

.ghost-button {
  font: inherit;
  cursor: pointer;
}

.status-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.shell {
  display: grid;
  gap: 1.25rem;
  padding: 0 clamp(1.25rem, 4vw, 4rem) 3rem;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(12, 27, 48, 0.82), rgba(7, 17, 31, 0.9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

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

.panel::before,
.glass-card::after,
.vendor-row::after,
.queue-item::after,
.workflow-node::after,
.ops-card::before,
.spotlight-stat::before,
.timeline-step::before,
.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(
    240px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(110, 231, 247, 0.16),
    transparent 58%
  );
  pointer-events: none;
  transition: opacity 180ms ease;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  align-items: start;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% auto -20% -10%;
  width: 40%;
  background: linear-gradient(180deg, rgba(152, 246, 255, 0), rgba(152, 246, 255, 0.18), rgba(152, 246, 255, 0));
  filter: blur(12px);
  transform: rotate(12deg);
  animation: sweep 8s linear infinite;
  pointer-events: none;
}

.hero-copy h2,
.section-heading h3 {
  margin: 0;
  font-family: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
}

.hero-copy h2 {
  font-size: clamp(1.95rem, 3.5vw, 3rem);
  max-width: 13ch;
}

.hero-text {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 0.95rem 1.1rem;
  font-weight: 700;
}

.primary-button {
  color: #04131c;
  background: linear-gradient(135deg, #98f6ff, #35d9ea);
  box-shadow: 0 20px 30px rgba(53, 217, 234, 0.22);
}

.secondary-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
}

.hero-grid {
  display: grid;
  gap: 0.85rem;
}

.control-grid,
.mission-grid,
.ops-strip {
  display: grid;
  gap: 1rem;
}

.control-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  align-items: start;
}

.mission-grid {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
}

.glass-card {
  position: relative;
  padding: 1.1rem;
  border-radius: 22px;
  border: 1px solid rgba(150, 194, 255, 0.14);
  background: linear-gradient(160deg, rgba(11, 31, 55, 0.92), rgba(6, 21, 37, 0.84));
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.spotlight {
  position: relative;
}

.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(110, 231, 247, 0.22), transparent 55%);
  pointer-events: none;
}

.mini-label,
.eyebrow {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.74rem;
}

.pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.pipeline span {
  padding: 0.58rem 0.8rem;
  border-radius: 999px;
  background: rgba(110, 231, 247, 0.08);
  color: var(--text);
  border: 1px solid rgba(110, 231, 247, 0.16);
}

.upload-lab {
  display: grid;
  gap: 1rem;
  padding-bottom: 1.35rem;
}

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

.upload-form,
.upload-status-card,
.spotlight-shell,
.flip-grid {
  padding: 0 1.35rem;
}

.upload-form,
.upload-status-card {
  display: grid;
  gap: 1rem;
}

.upload-warning-spotlight {
  animation: upload-warning-spotlight 1.8s ease-out;
}

.upload-preview-shell {
  display: grid;
  gap: 0.9rem;
}

.upload-preview-frame {
  position: relative;
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(122, 164, 213, 0.16);
  background: linear-gradient(160deg, rgba(10, 29, 52, 0.9), rgba(5, 20, 36, 0.82));
  overflow: hidden;
}

.preview-empty,
.preview-pdf-card {
  display: grid;
  gap: 0.55rem;
  max-width: 34ch;
  text-align: left;
}

.preview-empty p,
.preview-pdf-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.preview-empty strong,
.preview-pdf-card strong {
  font-size: 1.05rem;
}

.preview-image {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(152, 246, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.preview-pdf-card::before {
  content: "PDF";
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(110, 231, 247, 0.12);
  border: 1px solid rgba(110, 231, 247, 0.24);
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

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

.preview-stat {
  position: relative;
  padding: 0.9rem 0.95rem;
  border-radius: 20px;
  border: 1px solid rgba(122, 164, 213, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.preview-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.preview-stat strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.98rem;
}

.dropzone {
  position: relative;
  display: grid;
  gap: 0.55rem;
  min-height: 220px;
  padding: 1.25rem;
  border-radius: 24px;
  border: 1px dashed rgba(110, 231, 247, 0.3);
  background: linear-gradient(160deg, rgba(10, 29, 52, 0.96), rgba(5, 20, 36, 0.88));
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.dropzone::before {
  content: "";
  position: absolute;
  inset: auto -35% -35% -35%;
  height: 160px;
  background: linear-gradient(90deg, transparent, rgba(110, 231, 247, 0.22), transparent);
  transform: rotate(-8deg);
  animation: sweep 6.5s linear infinite;
  pointer-events: none;
}

.dropzone.is-dragging {
  border-color: rgba(152, 246, 255, 0.82);
  box-shadow: 0 24px 70px rgba(53, 217, 234, 0.18);
  transform: translateY(-3px);
}

.drop-kicker,
.drop-copy {
  position: relative;
  z-index: 1;
}

.drop-kicker {
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.drop-title {
  position: relative;
  z-index: 1;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-family: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
}

.drop-copy {
  color: var(--muted);
  max-width: 34ch;
  line-height: 1.6;
}

.field-grid,
.spotlight-facts,
.flip-grid {
  display: grid;
  gap: 0.9rem;
}

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

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(122, 164, 213, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.text-input:focus {
  outline: none;
  border-color: rgba(152, 246, 255, 0.66);
  box-shadow: 0 0 0 4px rgba(110, 231, 247, 0.1);
}

.upload-actions-row {
  display: grid;
  gap: 0.55rem;
  align-items: start;
}

.upload-submit {
  width: 100%;
  min-width: 0;
}

.upload-helper {
  color: var(--muted);
  max-width: none;
  line-height: 1.6;
}

.upload-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.timeline-list {
  display: grid;
  gap: 0.75rem;
}

.upload-warning-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.06rem 1.1rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 146, 109, 0.32);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 205, 122, 0.18), transparent 26%),
    radial-gradient(circle at 82% 28%, rgba(255, 118, 92, 0.18), transparent 24%),
    linear-gradient(150deg, rgba(42, 18, 23, 0.96), rgba(18, 10, 16, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 44px rgba(255, 108, 88, 0.18),
    0 0 0 1px rgba(255, 186, 126, 0.05),
    0 0 40px rgba(255, 118, 92, 0.1);
}

.upload-warning-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 232, 170, 0.12) 46%, transparent 62%),
    linear-gradient(90deg, rgba(255, 130, 98, 0.2), transparent 24%, transparent 76%, rgba(255, 190, 132, 0.14));
  mix-blend-mode: screen;
  opacity: 0.82;
  transform: translateX(-18%);
  animation: upload-warning-sweep 5.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.upload-warning-aura {
  position: absolute;
  top: -52px;
  right: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 141, 104, 0.34), transparent 68%);
  filter: blur(10px);
  opacity: 0.92;
  pointer-events: none;
  z-index: 0;
  animation: upload-warning-pulse 4.6s ease-in-out infinite;
}

.upload-warning-grid,
.upload-warning-scan,
.upload-warning-emblem,
.upload-warning-icon,
.upload-warning-copy {
  position: relative;
  z-index: 1;
}

.upload-warning-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 196, 143, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 196, 143, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 82%);
  opacity: 0.42;
  pointer-events: none;
}

.upload-warning-scan {
  position: absolute;
  left: -22%;
  right: -22%;
  top: 42%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 210, 143, 0.82), transparent);
  box-shadow:
    0 0 18px rgba(255, 178, 118, 0.36),
    0 0 36px rgba(255, 126, 102, 0.2);
  opacity: 0.68;
  animation: upload-warning-scanline 3.2s ease-in-out infinite;
  pointer-events: none;
}

.upload-warning-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
}

.upload-warning-emblem-ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 202, 140, 0.28);
  box-shadow: 0 0 22px rgba(255, 126, 102, 0.12);
}

.upload-warning-emblem-ring--one {
  animation: upload-warning-ring-one 2.6s ease-out infinite;
}

.upload-warning-emblem-ring--two {
  inset: 0;
  border-color: rgba(255, 129, 114, 0.2);
  animation: upload-warning-ring-two 2.6s ease-out infinite 0.7s;
}

.upload-warning-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 20px;
  border: 1px solid rgba(255, 221, 157, 0.34);
  background:
    linear-gradient(160deg, rgba(255, 205, 122, 0.24), rgba(255, 102, 128, 0.18)),
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.18), transparent 42%);
  color: #fff2cf;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 26px rgba(255, 132, 100, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: upload-warning-icon-float 2.8s ease-in-out infinite;
}

.upload-warning-copy {
  display: grid;
  gap: 0.42rem;
}

.upload-warning-kicker {
  margin: 0;
  color: #ffd79c;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.upload-warning-copy strong {
  display: block;
  font-size: 1.12rem;
  color: #fff0dd;
  text-shadow: 0 0 16px rgba(255, 165, 115, 0.18);
}

.upload-warning-copy p:last-child {
  margin: 0;
  color: rgba(239, 226, 215, 0.84);
  line-height: 1.62;
}

.upload-warning-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.1rem;
}

.upload-warning-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 204, 146, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: #ffe5bb;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 18px rgba(255, 133, 98, 0.08);
}

.ops-card--warning {
  border-color: rgba(255, 146, 109, 0.24);
  background:
    radial-gradient(circle at top right, rgba(255, 169, 108, 0.14), transparent 32%),
    linear-gradient(155deg, rgba(39, 19, 28, 0.96), rgba(14, 13, 21, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 34px rgba(255, 98, 83, 0.14),
    0 0 28px rgba(255, 131, 88, 0.08);
}

.ops-card--warning::after {
  content: "";
  position: absolute;
  inset: auto 1rem 0.85rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 155, 102, 0.14), rgba(255, 216, 145, 0.92), rgba(255, 155, 102, 0.14));
  box-shadow: 0 0 18px rgba(255, 186, 112, 0.2);
  animation: upload-warning-strip 2.6s ease-in-out infinite;
}

.ops-card--warning .eyebrow {
  color: #ffd79c;
}

.ops-card--warning strong {
  color: #fff0db;
  text-shadow: 0 0 18px rgba(255, 161, 112, 0.12);
}

.ops-card--warning span {
  color: rgba(240, 225, 215, 0.78);
}

@media (max-width: 760px) {
  .upload-warning-banner {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .upload-warning-emblem {
    width: 64px;
    height: 64px;
  }

  .upload-warning-copy strong {
    font-size: 1.02rem;
  }
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(122, 164, 213, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.timeline-step strong {
  display: block;
}

.timeline-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(110, 231, 247, 0.08);
  border: 1px solid rgba(110, 231, 247, 0.2);
  color: var(--accent);
  font-weight: 700;
}

.timeline-step p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.timeline-active {
  border-color: rgba(110, 231, 247, 0.4);
  box-shadow: 0 18px 38px rgba(53, 217, 234, 0.14);
}

.timeline-active .timeline-dot {
  background: rgba(110, 231, 247, 0.14);
  border-color: rgba(110, 231, 247, 0.35);
  box-shadow: 0 0 24px rgba(53, 217, 234, 0.18);
}

.timeline-done .timeline-dot {
  background: rgba(126, 240, 181, 0.14);
  border-color: rgba(126, 240, 181, 0.28);
  color: var(--success);
}

.timeline-error .timeline-dot {
  background: rgba(255, 123, 136, 0.14);
  border-color: rgba(255, 123, 136, 0.28);
  color: var(--danger);
}

@keyframes upload-warning-pulse {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.68;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes upload-warning-spotlight {
  0% {
    transform: translateY(12px) scale(0.985);
    box-shadow:
      0 0 0 0 rgba(255, 171, 111, 0),
      0 0 0 1px rgba(255, 205, 133, 0.1);
  }
  28% {
    transform: translateY(0) scale(1.01);
    box-shadow:
      0 0 0 10px rgba(255, 171, 111, 0.08),
      0 0 42px rgba(255, 120, 96, 0.26),
      0 0 0 1px rgba(255, 215, 145, 0.24);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 0 0 0 rgba(255, 171, 111, 0),
      0 0 0 1px rgba(255, 205, 133, 0.08);
  }
}

@keyframes upload-warning-sweep {
  0%,
  100% {
    transform: translateX(-18%);
    opacity: 0.55;
  }
  50% {
    transform: translateX(18%);
    opacity: 0.95;
  }
}

@keyframes upload-warning-scanline {
  0%,
  100% {
    transform: translateY(-18px);
    opacity: 0.18;
  }
  45% {
    transform: translateY(0);
    opacity: 0.88;
  }
  85% {
    transform: translateY(24px);
    opacity: 0.2;
  }
}

@keyframes upload-warning-ring-one {
  0% {
    transform: scale(0.82);
    opacity: 0.18;
  }
  35% {
    opacity: 0.55;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

@keyframes upload-warning-ring-two {
  0% {
    transform: scale(0.86);
    opacity: 0;
  }
  30% {
    opacity: 0.48;
  }
  100% {
    transform: scale(1.24);
    opacity: 0;
  }
}

@keyframes upload-warning-icon-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes upload-warning-strip {
  0%,
  100% {
    opacity: 0.44;
    transform: scaleX(0.92);
  }
  50% {
    opacity: 0.94;
    transform: scaleX(1);
  }
}

.metrics-grid,
.insight-layout {
  display: grid;
  gap: 1rem;
}

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

.metric-card {
  padding: 1.15rem;
}

.metric-card strong {
  display: block;
  margin-top: 0.9rem;
  font-family: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
}

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

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

.ops-card {
  padding: 1rem 1.1rem;
}

.ops-card strong {
  display: block;
  margin-top: 0.7rem;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-family: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
}

.ops-card span {
  color: var(--muted);
  line-height: 1.6;
}

.spotlight-shell {
  display: grid;
  gap: 1rem;
  padding-bottom: 1.35rem;
}

.spotlight-kicker {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.spotlight-title {
  margin: 0.3rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-family: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
}

.spotlight-narrative {
  margin: 0.8rem 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 60ch;
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.95rem;
}

.spotlight-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 1.35rem;
}

.spotlight-stat {
  position: relative;
  min-width: 0;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(122, 164, 213, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.spotlight-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spotlight-stat strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.05rem;
  line-height: 1.32;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.spotlight-stat--wrap strong {
  font-size: 0.98rem;
}

.flip-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 1.35rem;
}

.flip-card {
  border: none;
  background: none;
  padding: 0;
  min-height: 270px;
  text-align: left;
  cursor: pointer;
  perspective: 1200px;
}

.flip-card-inner {
  position: relative;
  display: block;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform 460ms ease;
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-face {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 0.75rem;
  padding: 1.15rem;
  border-radius: 24px;
  border: 1px solid rgba(122, 164, 213, 0.16);
  background: linear-gradient(160deg, rgba(11, 31, 55, 0.92), rgba(6, 21, 37, 0.84));
  backface-visibility: hidden;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, rgba(15, 35, 63, 0.95), rgba(7, 23, 42, 0.92));
}

.flip-card strong {
  font-size: 1.18rem;
  font-family: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
}

.flip-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.flip-cta {
  margin-top: auto;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.insight-layout {
  grid-template-columns: 1.1fr 0.9fr;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.35rem 0;
}

.month-select {
  min-width: 160px;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(117, 151, 197, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.stack-chart,
.vendor-list,
.queue-list,
.trend-bars,
.architecture-track,
.table-wrap {
  padding: 1.35rem;
}

.chart-row,
.vendor-row,
.queue-item,
.workflow-node {
  display: grid;
  gap: 0.7rem;
}

.chart-row + .chart-row,
.vendor-row + .vendor-row,
.queue-item + .queue-item {
  margin-top: 1rem;
}

.chart-meta,
.vendor-meta,
.queue-header,
.trend-meta,
.receipt-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.trend-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.9fr);
  gap: 0.6rem;
  align-items: stretch;
}

.bar-track,
.trend-track {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.bar-fill,
.trend-fill {
  height: 12px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(152, 246, 255, 0.2), rgba(53, 217, 234, 0.95));
}

.vendor-row {
  position: relative;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(122, 164, 213, 0.14);
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

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

.architecture-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.workflow-node {
  position: relative;
  min-height: 220px;
  padding: 1.1rem;
  border-radius: 24px;
  border: 1px solid rgba(116, 167, 232, 0.16);
  background: linear-gradient(160deg, rgba(12, 27, 48, 0.92), rgba(4, 19, 33, 0.94));
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.workflow-step {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(110, 231, 247, 0.12);
  color: var(--accent);
  border: 1px solid rgba(110, 231, 247, 0.22);
  font-weight: 700;
}

.workflow-node p {
  color: var(--muted);
  line-height: 1.6;
}

.queue-item {
  position: relative;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.reason-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.trend-bar + .trend-bar {
  margin-top: 1rem;
}

.trend-bar-active {
  padding: 0.85rem;
  border-radius: 22px;
  background: rgba(152, 246, 255, 0.06);
  border: 1px solid rgba(110, 231, 247, 0.14);
}

.expense-donut-shell {
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem 1.35rem 1.35rem 0;
}

.expense-donut {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 250px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  background: conic-gradient(#98f6ff 0 40%, #35d9ea 40% 68%, #7ef0b5 68% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 28px 60px rgba(0, 0, 0, 0.26);
}

.expense-donut::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.95), rgba(4, 14, 25, 0.98));
  box-shadow: inset 0 0 0 1px rgba(117, 151, 197, 0.16);
}

.expense-donut-empty {
  background: linear-gradient(180deg, rgba(14, 31, 51, 0.92), rgba(7, 17, 31, 0.92));
}

.expense-donut-center {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.3rem;
  text-align: center;
  padding: 0 1.25rem;
}

.expense-donut-center span,
.expense-donut-center small {
  color: var(--muted);
}

.expense-donut-center strong {
  font-size: 1.4rem;
  font-family: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
}

.expense-legend {
  display: grid;
  gap: 0.65rem;
}

.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(117, 151, 197, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.legend-copy,
.legend-values {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.legend-copy strong {
  font-size: 0.96rem;
}

.legend-values {
  color: var(--text);
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.expense-empty-note {
  margin: 0;
}

.filter-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filter-chip {
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.filter-chip.active {
  color: #04131c;
  background: linear-gradient(135deg, #98f6ff, #35d9ea);
  border-color: transparent;
}

.table-panel {
  padding-bottom: 0.5rem;
}

.archive-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.archive-collapsed {
  display: none;
}

.archive-collapsed .archive-actions,
.archive-collapsed .table-wrap {
  display: none;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.receipt-stack {
  display: grid;
  gap: 0.2rem;
}

.receipt-highlight-row td {
  background: rgba(110, 231, 247, 0.06);
}

.receipt-empty {
  padding: 1.1rem 0;
  text-align: center;
}

.history-scrim {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 13, 0.5);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 18;
}

.history-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100vh;
  padding: 1.2rem 1.1rem 1.4rem;
  border-left: 1px solid rgba(117, 151, 197, 0.18);
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.96), rgba(5, 16, 28, 0.98));
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.34);
  transform: translateX(104%);
  transition: transform 260ms ease;
  z-index: 20;
  overflow-y: auto;
}

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

.history-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.history-copy {
  margin: 0.9rem 0 1rem;
  color: var(--muted);
  line-height: 1.65;
}

.history-range-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.history-field .text-input {
  padding: 0.78rem 0.95rem;
}

.history-note {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.history-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 1rem;
}

.history-delete-button {
  min-width: 0;
}

.history-list {
  display: grid;
  gap: 0.85rem;
}

.history-item {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.95rem;
  border-radius: 24px;
  border: 1px solid rgba(122, 164, 213, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.history-thumb,
.history-thumb-placeholder {
  width: 92px;
  height: 92px;
  border-radius: 18px;
}

.history-thumb {
  object-fit: cover;
  border: 1px solid rgba(152, 246, 255, 0.2);
}

.history-thumb-placeholder {
  display: grid;
  place-items: center;
  background: rgba(110, 231, 247, 0.1);
  border: 1px solid rgba(110, 231, 247, 0.2);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.history-meta {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  min-width: 0;
}

.history-topline,
.history-subline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.history-name {
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.history-fileline {
  min-width: 0;
  overflow-wrap: anywhere;
}

.history-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.history-repeat-pill,
.history-visit-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 181, 115, 0.28);
  background: rgba(255, 160, 82, 0.11);
  color: #ffd7b2;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.history-repeat-pill-soft,
.history-visit-pill {
  border-color: rgba(110, 231, 247, 0.2);
  background: rgba(110, 231, 247, 0.09);
  color: #c9faff;
}

.history-repeat-summary,
.history-store-summary {
  align-items: flex-start;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.1rem;
}

.history-item-rename-button,
.history-item-delete-button {
  min-width: 8.6rem;
}

.history-empty {
  padding: 1.2rem;
  border-radius: 22px;
  border: 1px dashed rgba(122, 164, 213, 0.18);
  color: var(--muted);
  line-height: 1.65;
}

body.history-open {
  overflow: hidden;
}

body.history-open .history-scrim {
  opacity: 1;
  pointer-events: auto;
}

body.history-open .history-drawer {
  transform: translateX(0);
}

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

.success-burst {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 22px;
  border-radius: 999px;
  opacity: 0;
  transform: translate3d(0, 0, 0) rotate(0deg);
  animation: confetti-rise 1150ms cubic-bezier(0.12, 0.75, 0.12, 1) forwards;
}

thead th {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

th,
td {
  padding: 1rem 0.8rem;
  border-bottom: 1px solid rgba(140, 170, 211, 0.12);
  text-align: left;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.receipt-line strong {
  display: block;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-auto-approved {
  background: rgba(126, 240, 181, 0.12);
  color: var(--success);
}

.status-needs-review,
.status-duplicate {
  background: rgba(255, 123, 136, 0.12);
  color: var(--danger);
}

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

.cursor-orb,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 30;
  transition: opacity 180ms ease, transform 120ms ease;
}

.cursor-orb {
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(152, 246, 255, 0.95), rgba(53, 217, 234, 0.72));
  box-shadow:
    0 0 22px rgba(53, 217, 234, 0.7),
    0 0 42px rgba(53, 217, 234, 0.42);
}

.cursor-ring {
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  border: 1px solid rgba(152, 246, 255, 0.45);
  box-shadow: 0 0 40px rgba(53, 217, 234, 0.18);
}

body.cursor-active .cursor-orb,
body.cursor-active .cursor-ring {
  opacity: 1;
}

body.cursor-hover .cursor-ring {
  transform: scale(1.22);
  border-color: rgba(152, 246, 255, 0.78);
}

.panel.is-visible,
.glass-card.is-visible,
.vendor-row.is-visible,
.queue-item.is-visible,
.workflow-node.is-visible,
.metric-card.is-visible {
  opacity: 1;
  transform: none;
}

.panel.reveal-ready,
.glass-card.reveal-ready,
.vendor-row.reveal-ready,
.queue-item.reveal-ready,
.workflow-node.reveal-ready,
.metric-card.reveal-ready {
  opacity: 1;
  transform: none;
  transition:
    opacity 420ms ease,
    transform 420ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.panel.is-hovered,
.glass-card.is-hovered,
.vendor-row.is-hovered,
.chart-row.is-hovered,
.legend-row.is-hovered,
.queue-item.is-hovered,
.workflow-node.is-hovered,
.ops-card.is-hovered,
.spotlight-stat.is-hovered,
.flip-card.is-hovered,
.timeline-step.is-hovered,
.dropzone.is-hovered,
.metric-card.is-hovered,
.primary-button:hover,
.secondary-button:hover,
.filter-chip:hover,
.ghost-link:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 231, 247, 0.34);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.panel.is-hovered::before,
.glass-card.is-hovered::after,
.vendor-row.is-hovered::after,
.queue-item.is-hovered::after,
.workflow-node.is-hovered::after,
.ops-card.is-hovered::before,
.spotlight-stat.is-hovered::before,
.timeline-step.is-hovered::before,
.dropzone.is-hovered::before,
.metric-card.is-hovered::before {
  opacity: 1;
}

.primary-button:hover,
.secondary-button:hover,
.filter-chip:hover,
.ghost-link:hover {
  box-shadow: 0 16px 36px rgba(53, 217, 234, 0.14);
}

/* Expense tracker product theme overrides */
:root {
  --bg: #0f1713;
  --panel: rgba(19, 30, 23, 0.92);
  --panel-strong: rgba(17, 28, 21, 0.98);
  --panel-border: rgba(146, 173, 154, 0.16);
  --text: #eef5ef;
  --muted: #99ab9d;
  --accent: #79d18d;
  --accent-strong: #2f9c57;
  --accent-soft: rgba(121, 209, 141, 0.12);
  --danger: #ff8f7c;
  --warning: #f0c46a;
  --success: #79d18d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

body {
  background:
    radial-gradient(circle at top left, rgba(62, 97, 74, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(25, 70, 48, 0.16), transparent 24%),
    linear-gradient(180deg, #0b120e 0%, #101813 48%, #0f1713 100%);
}

.aurora,
.grid-sheen {
  display: none;
}

.topbar {
  align-items: center;
  padding: 1.25rem clamp(1.25rem, 4vw, 4rem) 0.35rem;
}

.topbar h1 {
  max-width: 15ch;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  letter-spacing: -0.04em;
}

.topbar-text {
  max-width: 66ch;
  font-size: 0.96rem;
  color: #aab7ac;
}

.status-pill,
.ghost-link,
.filter-chip {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(146, 173, 154, 0.16);
}

.ghost-link {
  color: #c8d5cb;
}

.panel {
  border-radius: 24px;
  border-color: rgba(146, 173, 154, 0.14);
  background: linear-gradient(180deg, rgba(20, 30, 24, 0.95), rgba(16, 24, 19, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.panel::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34%);
}

.hero {
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.1rem;
  padding: 1.45rem;
}

.hero::before,
.dropzone::before,
.spotlight::before {
  display: none;
}

.hero-copy h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 3.2vw, 3.05rem);
  letter-spacing: -0.045em;
}

.hero-text {
  font-size: 0.99rem;
  color: #a8b7ac;
}

.primary-button,
.secondary-button {
  min-width: 164px;
  padding: 0.92rem 1.1rem;
  border-radius: 16px;
}

.primary-button {
  color: #08100a;
  background: linear-gradient(135deg, #8fe4a2, #5cbf78);
  box-shadow: 0 14px 28px rgba(58, 135, 82, 0.22);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(146, 173, 154, 0.16);
}

.glass-card,
.preview-stat,
.timeline-step,
.spotlight-stat,
.vendor-row,
.queue-item,
.workflow-node,
.legend-row,
.history-item {
  border-color: rgba(146, 173, 154, 0.14);
  background: linear-gradient(180deg, rgba(24, 36, 28, 0.94), rgba(18, 28, 21, 0.96));
  box-shadow: none;
}

.glass-card {
  border-radius: 20px;
}

.mini-label,
.eyebrow,
.spotlight-kicker,
.drop-kicker {
  color: #8cd6a0;
  letter-spacing: 0.16em;
}

.pipeline span {
  background: rgba(121, 209, 141, 0.09);
  border-color: rgba(121, 209, 141, 0.18);
  color: #dbe8dd;
}

.upload-lab {
  background: linear-gradient(180deg, rgba(18, 29, 22, 0.97), rgba(14, 23, 17, 0.99));
}

.upload-form,
.upload-status-card,
.spotlight-shell,
.flip-grid,
.stack-chart,
.vendor-list,
.queue-list,
.trend-bars,
.architecture-track,
.table-wrap {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.upload-preview-frame,
.dropzone {
  border-color: rgba(146, 173, 154, 0.16);
  background: linear-gradient(180deg, rgba(18, 29, 22, 0.98), rgba(13, 21, 16, 0.98));
}

.dropzone {
  min-height: 200px;
  border-style: dashed;
}

.dropzone.is-dragging {
  border-color: rgba(143, 228, 162, 0.72);
  box-shadow: 0 18px 40px rgba(47, 156, 87, 0.16);
}

.text-input,
.month-select {
  border-color: rgba(146, 173, 154, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.text-input:focus,
.month-select:focus {
  outline: none;
  border-color: rgba(121, 209, 141, 0.5);
  box-shadow: 0 0 0 4px rgba(121, 209, 141, 0.09);
}

.timeline-active {
  border-color: rgba(121, 209, 141, 0.26);
  box-shadow: 0 12px 26px rgba(47, 156, 87, 0.12);
}

.timeline-dot,
.workflow-step {
  background: rgba(121, 209, 141, 0.1);
  border-color: rgba(121, 209, 141, 0.18);
  color: #98e0aa;
}

.metric-card {
  padding: 1.1rem;
}

.metric-card strong,
.ops-card strong,
.spotlight-title {
  letter-spacing: -0.04em;
}

.metric-card span,
.ops-card span,
.spotlight-narrative,
.preview-empty p,
.preview-pdf-card p,
.drop-copy,
.upload-helper,
.history-copy,
.history-note,
.reason-list,
.workflow-node p,
.timeline-step p {
  color: #9cad9f;
}

.ops-card {
  background: linear-gradient(180deg, rgba(24, 36, 28, 0.96), rgba(18, 28, 21, 0.98));
}

.bar-track,
.trend-track {
  background: rgba(255, 255, 255, 0.045);
}

.bar-fill,
.trend-fill {
  background: linear-gradient(90deg, #3e9c5d, #8fe4a2);
}

.trend-bar-active {
  background: rgba(121, 209, 141, 0.06);
  border-color: rgba(121, 209, 141, 0.15);
}

.expense-donut {
  background: conic-gradient(#7ad28f 0 40%, #4cac69 40% 72%, #d4a94d 72% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 48px rgba(0, 0, 0, 0.18);
}

.expense-donut::after {
  background: linear-gradient(180deg, rgba(16, 24, 19, 0.98), rgba(14, 21, 16, 1));
  box-shadow: inset 0 0 0 1px rgba(146, 173, 154, 0.12);
}

.status-auto-approved {
  background: rgba(121, 209, 141, 0.12);
}

.status-needs-review,
.status-duplicate {
  background: rgba(255, 143, 124, 0.12);
}

.history-scrim {
  background: rgba(5, 9, 7, 0.58);
}

.history-drawer {
  border-left-color: rgba(146, 173, 154, 0.14);
  background: linear-gradient(180deg, rgba(15, 23, 18, 0.98), rgba(11, 17, 13, 1));
  box-shadow: -16px 0 52px rgba(0, 0, 0, 0.26);
}

.cursor-orb {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: linear-gradient(135deg, rgba(148, 229, 166, 0.95), rgba(72, 152, 93, 0.85));
  box-shadow:
    0 0 18px rgba(72, 152, 93, 0.45),
    0 0 34px rgba(72, 152, 93, 0.22);
}

.cursor-ring {
  border-color: rgba(143, 228, 162, 0.28);
  box-shadow: 0 0 28px rgba(72, 152, 93, 0.12);
}

body.cursor-hover .cursor-ring {
  border-color: rgba(143, 228, 162, 0.52);
}

.panel.is-hovered,
.glass-card.is-hovered,
.vendor-row.is-hovered,
.queue-item.is-hovered,
.workflow-node.is-hovered,
.ops-card.is-hovered,
.spotlight-stat.is-hovered,
.flip-card.is-hovered,
.timeline-step.is-hovered,
.dropzone.is-hovered,
.metric-card.is-hovered,
.primary-button:hover,
.secondary-button:hover,
.filter-chip:hover,
.ghost-link:hover {
  transform: translateY(-2px);
  border-color: rgba(121, 209, 141, 0.22);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.panel.is-hovered::before,
.glass-card.is-hovered::after,
.vendor-row.is-hovered::after,
.queue-item.is-hovered::after,
.workflow-node.is-hovered::after,
.ops-card.is-hovered::before,
.spotlight-stat.is-hovered::before,
.timeline-step.is-hovered::before,
.dropzone.is-hovered::before,
.metric-card.is-hovered::before {
  opacity: 0.45;
}

.primary-button:hover,
.secondary-button:hover,
.filter-chip:hover,
.ghost-link:hover {
  box-shadow: 0 12px 28px rgba(47, 156, 87, 0.12);
}

@keyframes sweep {
  0% {
    transform: translateX(-22%) rotate(12deg);
  }
  100% {
    transform: translateX(260%) rotate(12deg);
  }
}

@keyframes confetti-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) rotate(0deg) scale(0.8);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--burst-x, 0px), var(--burst-y, -180px), 0)
      rotate(var(--burst-rotate, 260deg))
      scale(1.05);
  }
}

@media (pointer: coarse) {
  .cursor-orb,
  .cursor-ring {
    display: none;
  }
}

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

  .panel.reveal-ready,
  .glass-card.reveal-ready,
  .vendor-row.reveal-ready,
  .queue-item.reveal-ready,
  .workflow-node.reveal-ready,
  .metric-card.reveal-ready {
    opacity: 1;
    transform: none;
  }
}

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

  .topbar-actions {
    justify-content: flex-start;
  }

  .control-grid,
  .mission-grid,
  .ops-strip {
    grid-template-columns: 1fr;
  }

  .hero,
  .insight-layout,
  .metrics-grid,
  .architecture-track {
    grid-template-columns: 1fr;
  }

  .preview-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .ops-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    padding-top: 1.2rem;
  }

  .field-grid,
  .flip-grid,
  .spotlight-facts,
  .preview-meta {
    grid-template-columns: 1fr;
  }

  .history-item {
    grid-template-columns: 1fr;
  }

  .history-range-shell,
  .history-toolbar {
    grid-template-columns: 1fr;
  }

  .history-thumb,
  .history-thumb-placeholder {
    width: 100%;
    height: 160px;
  }

  .upload-actions-row {
    gap: 0.75rem;
  }

  .upload-submit {
    width: 100%;
    min-width: 0;
  }

  .hero-copy h2 {
    max-width: none;
  }

  .shell {
    padding-bottom: 2rem;
  }

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

  .expense-donut-shell {
    padding: 0 1.35rem 1.35rem;
  }

  .archive-actions,
  .history-head-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Daily-use playful receipt app overrides */
:root {
  --bg: #16071d;
  --panel: rgba(41, 18, 52, 0.78);
  --panel-strong: rgba(38, 14, 49, 0.94);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #fff7ff;
  --muted: #dfcae4;
  --accent: #7de7ff;
  --accent-strong: #ff8a5b;
  --accent-soft: rgba(125, 231, 255, 0.14);
  --danger: #ff8d7a;
  --warning: #ffd84d;
  --success: #82f0ac;
  --shadow: 0 26px 72px rgba(13, 2, 18, 0.3);
}

body {
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 111, 181, 0.18), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(125, 231, 255, 0.18), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(255, 208, 77, 0.09), transparent 34%),
    linear-gradient(180deg, #120318 0%, #180724 45%, #12041b 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
  animation: mistDrift 18s ease-in-out infinite alternate;
}

body::before {
  top: 14%;
  left: -80px;
  background: radial-gradient(circle, rgba(255, 138, 91, 0.82), transparent 62%);
}

body::after {
  right: -90px;
  bottom: 10%;
  background: radial-gradient(circle, rgba(125, 231, 255, 0.72), transparent 62%);
  animation-delay: -9s;
}

.aurora,
.grid-sheen {
  display: block;
}

.aurora {
  opacity: 0.78;
  filter: blur(76px);
  animation: mistDrift 16s ease-in-out infinite alternate;
}

.aurora-one {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 113, 185, 0.34), transparent 26%),
    radial-gradient(circle at 45% 58%, rgba(255, 208, 77, 0.16), transparent 22%);
}

.aurora-two {
  background:
    radial-gradient(circle at 78% 14%, rgba(125, 231, 255, 0.3), transparent 25%),
    radial-gradient(circle at 66% 58%, rgba(168, 140, 255, 0.18), transparent 24%);
  animation-delay: -7s;
}

.grid-sheen {
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 38%, rgba(255, 255, 255, 0.12) 0 1.2px, transparent 2.4px),
    radial-gradient(circle at 54% 74%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px);
  background-size: 260px 260px;
  mask-image: none;
  animation: sparkleDrift 22s linear infinite;
}

.topbar {
  gap: 1rem 1.35rem;
}

.topbar h1 {
  font-size: clamp(2rem, 3.6vw, 3.3rem);
  max-width: 13ch;
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-shadow: 0 14px 34px rgba(255, 111, 181, 0.14);
}

.topbar-text {
  color: #e7d6eb;
  max-width: 64ch;
}

.status-pill,
.ghost-link,
.filter-chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.panel {
  border-radius: 30px;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(49, 23, 61, 0.82), rgba(29, 10, 39, 0.88));
  box-shadow:
    0 26px 72px rgba(13, 2, 18, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.panel::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 26%);
}

.hero {
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(66, 18, 82, 0.94), rgba(26, 11, 37, 0.88)),
    radial-gradient(circle at 80% 15%, rgba(125, 231, 255, 0.18), transparent 28%);
}

.hero::before {
  content: "";
  display: block;
  position: absolute;
  top: -18px;
  right: 16%;
  width: 170px;
  height: 220px;
  background: linear-gradient(180deg, rgba(255, 216, 77, 0.94), rgba(255, 138, 91, 0.35));
  clip-path: polygon(50% 0%, 64% 20%, 47% 20%, 68% 47%, 44% 47%, 57% 100%, 28% 60%, 46% 60%, 29% 34%, 49% 34%);
  filter: drop-shadow(0 0 22px rgba(255, 216, 77, 0.4));
  opacity: 0.46;
  animation: lightningPulse 3.8s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -36% 36%;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 111, 181, 0.2), transparent 60%);
  filter: blur(24px);
  opacity: 0.7;
  animation: mistDrift 14s ease-in-out infinite alternate;
}

.hero-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 3.7vw, 3.45rem);
  line-height: 0.94;
}

.hero-text,
.upload-helper,
.history-copy,
.history-note,
.reason-list,
.workflow-node p,
.timeline-step p,
.preview-empty p,
.preview-pdf-card p,
.metric-card span,
.ops-card span,
.spotlight-narrative {
  color: #e4d4ea;
}

.fun-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.fun-tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.88rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 22px rgba(10, 1, 14, 0.16);
  animation: floatTag 7s ease-in-out infinite;
}

.fun-tags span:nth-child(2) {
  animation-delay: -1.6s;
}

.fun-tags span:nth-child(3) {
  animation-delay: -3.1s;
}

.fun-tags span:nth-child(4) {
  animation-delay: -4.6s;
}

.primary-button,
.secondary-button {
  min-width: 176px;
  border-radius: 18px;
}

.primary-button {
  color: #2a0f08;
  background: linear-gradient(135deg, #ff8a5b, #ffd84d 85%);
  box-shadow: 0 16px 36px rgba(255, 138, 91, 0.28);
}

.secondary-button {
  background: linear-gradient(135deg, rgba(125, 231, 255, 0.14), rgba(168, 140, 255, 0.18));
  border-color: rgba(255, 255, 255, 0.16);
}

.glass-card,
.preview-stat,
.timeline-step,
.spotlight-stat,
.vendor-row,
.queue-item,
.workflow-node,
.legend-row,
.history-item,
.chart-row,
.metric-card,
.ops-card {
  background: linear-gradient(180deg, rgba(63, 26, 79, 0.74), rgba(33, 13, 45, 0.84));
  border-color: var(--theme-ring, rgba(255, 255, 255, 0.14));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 34px rgba(10, 1, 14, 0.14);
}

.glass-card:nth-child(2) {
  background: linear-gradient(180deg, rgba(27, 62, 82, 0.7), rgba(28, 14, 45, 0.84));
}

.glass-card:nth-child(3) {
  background: linear-gradient(180deg, rgba(77, 31, 73, 0.74), rgba(35, 13, 44, 0.84));
}

.glass-card:nth-child(4) {
  background: linear-gradient(180deg, rgba(89, 53, 21, 0.74), rgba(39, 18, 45, 0.84));
}

.mini-label,
.eyebrow,
.spotlight-kicker,
.drop-kicker {
  color: #8ff3ff;
}

.pipeline span {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff8ff;
}

.upload-lab {
  background:
    linear-gradient(180deg, rgba(44, 16, 58, 0.9), rgba(25, 8, 35, 0.94)),
    radial-gradient(circle at 88% 15%, rgba(255, 216, 77, 0.18), transparent 24%);
}

.upload-lab::before {
  content: "";
  position: absolute;
  top: 12%;
  right: 10%;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(255, 216, 77, 0.58), transparent 62%);
  filter: blur(18px);
  opacity: 0.52;
  animation: sparkleDrift 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.dropzone,
.upload-preview-frame {
  background: linear-gradient(180deg, rgba(56, 22, 69, 0.78), rgba(31, 11, 44, 0.92));
  border-color: rgba(255, 255, 255, 0.14);
}

.dropzone::before {
  display: block;
  content: "";
  position: absolute;
  inset: auto -22% -44% -22%;
  height: 170px;
  background: linear-gradient(90deg, transparent, rgba(125, 231, 255, 0.2), rgba(255, 138, 91, 0.18), transparent);
  transform: rotate(-7deg);
  filter: blur(18px);
  animation: waveSweep 8s linear infinite;
  pointer-events: none;
}

.dropzone.is-dragging {
  border-color: rgba(255, 216, 77, 0.7);
  box-shadow: 0 22px 54px rgba(255, 138, 91, 0.18);
}

.text-input,
.month-select {
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.text-input:focus,
.month-select:focus {
  border-color: rgba(125, 231, 255, 0.56);
  box-shadow: 0 0 0 4px rgba(125, 231, 255, 0.12);
}

.preview-image,
.history-thumb {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 42px rgba(10, 1, 14, 0.2);
}

.history-thumb-placeholder {
  background: linear-gradient(135deg, rgba(255, 138, 91, 0.22), rgba(125, 231, 255, 0.18));
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff7ff;
}

.bar-track,
.trend-track {
  background: rgba(255, 255, 255, 0.08);
}

.bar-fill,
.trend-fill {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.16);
}

.expense-donut {
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.04),
    0 22px 48px rgba(10, 1, 14, 0.22);
}

.expense-donut::after {
  background: linear-gradient(180deg, rgba(39, 13, 51, 0.98), rgba(29, 11, 40, 1));
}

.receipt-icon-badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: var(--theme-soft, rgba(125, 231, 255, 0.18));
  box-shadow:
    0 0 0 1px var(--theme-ring, rgba(125, 231, 255, 0.32)),
    0 10px 22px rgba(10, 1, 14, 0.16);
  flex-shrink: 0;
}

.receipt-mainline,
.history-name {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.receipt-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: var(--theme-soft, rgba(125, 231, 255, 0.18));
  border: 1px solid var(--theme-ring, rgba(125, 231, 255, 0.32));
  color: #fff8ff;
}

.category-cell {
  display: grid;
  gap: 0.35rem;
}

.receipt-detected {
  font-size: 0.78rem;
}

.themed-card,
.history-item,
.vendor-row,
.queue-item,
.legend-row,
.workflow-node,
.spotlight-panel,
.spotlight-stat {
  border-color: var(--theme-ring, rgba(255, 255, 255, 0.14));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 34px rgba(10, 1, 14, 0.16),
    0 0 0 1px var(--theme-soft, transparent);
}

.table-wrap tbody tr {
  transition: transform 180ms ease, background 180ms ease;
}

.table-wrap tbody tr:hover {
  transform: translateX(3px);
}

.table-wrap tbody tr td:first-child {
  box-shadow: inset 4px 0 0 var(--theme-accent, transparent);
}

.spotlight-panel {
  background:
    linear-gradient(180deg, rgba(57, 20, 68, 0.84), rgba(31, 11, 42, 0.92)),
    radial-gradient(circle at 82% 22%, var(--theme-soft, rgba(125, 231, 255, 0.18)), transparent 28%);
}

.spotlight-title {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
}

.history-drawer {
  background: linear-gradient(180deg, rgba(34, 12, 47, 0.98), rgba(23, 7, 33, 1));
  border-left-color: rgba(255, 255, 255, 0.12);
}

.cursor-orb {
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff7ff, #ff8a5b 48%, #7de7ff 100%);
  box-shadow:
    0 0 20px rgba(255, 138, 91, 0.34),
    0 0 38px rgba(125, 231, 255, 0.18);
}

.cursor-orb::after {
  content: "✦";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #3b1237;
}

.cursor-ring {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 26px rgba(125, 231, 255, 0.16),
    inset 0 0 0 1px rgba(255, 216, 77, 0.18);
}

body.cursor-hover .cursor-orb {
  transform: scale(1.35);
  background: radial-gradient(circle at 30% 30%, #fffdf3, #ffd84d 42%, #ff8a5b 100%);
}

body.cursor-hover .cursor-orb::after {
  content: "♡";
  font-size: 11px;
  color: #5a1838;
}

body.cursor-hover .cursor-ring {
  transform: scale(1.45);
  border-color: rgba(255, 216, 77, 0.5);
  box-shadow:
    0 0 36px rgba(255, 216, 77, 0.24),
    0 0 22px rgba(255, 138, 91, 0.18);
}

.panel.is-hovered,
.glass-card.is-hovered,
.vendor-row.is-hovered,
.queue-item.is-hovered,
.workflow-node.is-hovered,
.ops-card.is-hovered,
.spotlight-stat.is-hovered,
.flip-card.is-hovered,
.timeline-step.is-hovered,
.dropzone.is-hovered,
.metric-card.is-hovered,
.primary-button:hover,
.secondary-button:hover,
.filter-chip:hover,
.ghost-link:hover {
  transform: translateY(-3px);
  border-color: var(--theme-ring, rgba(255, 255, 255, 0.22));
  box-shadow:
    0 18px 42px rgba(10, 1, 14, 0.22),
    0 0 24px var(--theme-soft, rgba(125, 231, 255, 0.12));
}

.panel.is-hovered::before,
.glass-card.is-hovered::after,
.vendor-row.is-hovered::after,
.queue-item.is-hovered::after,
.workflow-node.is-hovered::after,
.ops-card.is-hovered::before,
.spotlight-stat.is-hovered::before,
.timeline-step.is-hovered::before,
.dropzone.is-hovered::before,
.metric-card.is-hovered::before {
  opacity: 0.62;
}

.primary-button:hover,
.secondary-button:hover,
.filter-chip:hover,
.ghost-link:hover {
  box-shadow:
    0 16px 34px rgba(10, 1, 14, 0.22),
    0 0 24px rgba(255, 216, 77, 0.18);
}

@keyframes mistDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(26px, -18px, 0) scale(1.1);
  }
}

@keyframes sparkleDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-36px, 24px, 0);
  }
}

@keyframes lightningPulse {
  0%,
  100% {
    opacity: 0.22;
    transform: scale(0.96) rotate(-3deg);
  }
  18%,
  22%,
  62% {
    opacity: 0.52;
    transform: scale(1.06) rotate(1deg);
  }
  20%,
  64% {
    opacity: 0.78;
    transform: scale(1.12) rotate(-2deg);
  }
}

@keyframes floatTag {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes waveSweep {
  0% {
    transform: translateX(-22%) rotate(-7deg);
  }
  100% {
    transform: translateX(200%) rotate(-7deg);
  }
}

@media (max-width: 900px) {
  .fun-tags {
    gap: 0.5rem;
  }

  .topbar h1,
  .hero-copy h2 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .fun-tags span,
  .receipt-mini-pill {
    width: fit-content;
  }

  .receipt-mainline,
  .history-name,
  .spotlight-title {
    align-items: flex-start;
  }
}

/* Focused polish pass */
.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  margin-bottom: 0.35rem;
  backdrop-filter: blur(20px);
  background: linear-gradient(180deg, rgba(18, 6, 25, 0.92), rgba(18, 6, 25, 0.62), transparent);
}

.topbar-copy {
  gap: 0.7rem;
}

.topbar-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.topbar-pills span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff7ff;
  font-size: 0.84rem;
  box-shadow: 0 10px 20px rgba(10, 1, 14, 0.12);
}

.hero-grid {
  align-content: start;
}

.hero-grid .glass-card {
  min-height: 132px;
}

.upload-actions-row {
  gap: 0.75rem;
}

.upload-helper {
  max-width: 52ch;
}

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

.history-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 0.9rem;
  background: linear-gradient(180deg, rgba(34, 12, 47, 0.98), rgba(34, 12, 47, 0.72), transparent);
}

.table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(31, 11, 42, 0.96);
  backdrop-filter: blur(10px);
}

.cursor-orb::after {
  content: "✦";
}

body.cursor-cta .cursor-orb {
  transform: scale(1.38);
  background: radial-gradient(circle at 30% 30%, #fffdf3, #ffd84d 42%, #ff8a5b 100%);
}

body.cursor-cta .cursor-orb::after {
  content: "🧾";
  font-size: 9px;
}

body.cursor-cta .cursor-ring {
  transform: scale(1.55);
  border-color: rgba(255, 216, 77, 0.62);
  box-shadow:
    0 0 42px rgba(255, 216, 77, 0.26),
    0 0 26px rgba(255, 138, 91, 0.22);
}

@media (max-width: 900px) {
  .spotlight-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    position: relative;
    backdrop-filter: none;
    background: none;
  }

  .topbar-pills,
  .spotlight-facts {
    grid-template-columns: 1fr;
  }
}

/* Clean consumer receipt app refinements */
:root {
  --bg: #0f1419;
  --panel: rgba(21, 27, 34, 0.84);
  --panel-strong: rgba(18, 23, 30, 0.96);
  --panel-border: rgba(148, 169, 189, 0.14);
  --text: #f4f8fb;
  --muted: #aebbc7;
  --accent: #67c7be;
  --accent-strong: #4f8de6;
  --accent-soft: rgba(103, 199, 190, 0.12);
  --danger: #f38e74;
  --warning: #dbb15f;
  --success: #79c89b;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

body {
  background:
    radial-gradient(circle at 14% 10%, rgba(79, 141, 230, 0.12), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(103, 199, 190, 0.1), transparent 26%),
    linear-gradient(180deg, #0b1117 0%, #111820 50%, #0f151c 100%);
}

body::before,
body::after {
  opacity: 0.14;
}

.aurora {
  opacity: 0.28;
  filter: blur(90px);
}

.aurora-one {
  background: radial-gradient(circle at 16% 14%, rgba(79, 141, 230, 0.22), transparent 24%);
}

.aurora-two {
  background: radial-gradient(circle at 82% 16%, rgba(103, 199, 190, 0.22), transparent 24%);
}

.grid-sheen {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.28), transparent 82%);
}

.topbar {
  background: linear-gradient(180deg, rgba(11, 17, 23, 0.92), rgba(11, 17, 23, 0.64), transparent);
}

.topbar h1 {
  text-shadow: none;
}

.topbar-text,
.hero-text,
.upload-helper,
.history-copy,
.history-note,
.reason-list,
.workflow-node p,
.timeline-step p,
.preview-empty p,
.preview-pdf-card p,
.metric-card span,
.ops-card span,
.spotlight-narrative {
  color: #aebbc7;
}

.topbar-pills span {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 169, 189, 0.14);
  color: #eef5fb;
}

.panel,
.glass-card,
.preview-stat,
.timeline-step,
.spotlight-stat,
.vendor-row,
.queue-item,
.workflow-node,
.legend-row,
.history-item,
.chart-row,
.metric-card,
.ops-card {
  border-color: var(--theme-ring, rgba(148, 169, 189, 0.14));
  background: linear-gradient(180deg, rgba(20, 27, 34, 0.92), rgba(16, 22, 29, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 42px rgba(0, 0, 0, 0.16);
}

.panel::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%);
}

.hero {
  background:
    linear-gradient(145deg, rgba(20, 29, 38, 0.96), rgba(14, 20, 28, 0.92)),
    radial-gradient(circle at 82% 14%, rgba(79, 141, 230, 0.1), transparent 26%);
}

.hero::before {
  display: none;
}

.hero::after {
  inset: auto -8% -34% 42%;
  background: radial-gradient(circle, rgba(103, 199, 190, 0.12), transparent 60%);
  filter: blur(26px);
  opacity: 0.7;
}

.fun-tags span {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 169, 189, 0.14);
  box-shadow: none;
  animation-duration: 10s;
}

.fun-tags span {
  color: transparent;
  position: relative;
}

.fun-tags span::after {
  color: #eef6fb;
  font-size: 0.88rem;
}

.fun-tags span:nth-child(1)::after {
  content: "\1F35C  Food";
}

.fun-tags span:nth-child(2)::after {
  content: "\1F6CD\00A0 Shopping";
}

.fun-tags span:nth-child(3)::after {
  content: "\26A1  Electricity";
}

.fun-tags span:nth-child(4)::after {
  content: "\2708\00A0 Travel";
}

.hero-grid .glass-card:nth-child(3) p {
  font-size: 0;
  line-height: 0;
}

.hero-grid .glass-card:nth-child(3) p::before {
  content: "Call a receipt \"Electricity\" and its icon, chart color, and receipt tag all switch to that label instantly.";
  display: block;
  font-size: 0.95rem;
  line-height: 1.62;
  color: #aebbc7;
}

.primary-button {
  color: #07161a;
  background: linear-gradient(135deg, #74d2c9, #5b9be3);
  box-shadow: 0 14px 32px rgba(79, 141, 230, 0.18);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 169, 189, 0.14);
}

.pipeline span,
.receipt-mini-pill,
.history-thumb-placeholder {
  background: var(--theme-soft, rgba(103, 199, 190, 0.12));
  border-color: var(--theme-ring, rgba(103, 199, 190, 0.24));
  color: #eef6fb;
}

.upload-lab {
  background:
    linear-gradient(180deg, rgba(18, 25, 32, 0.96), rgba(15, 20, 27, 0.98)),
    radial-gradient(circle at 88% 16%, rgba(103, 199, 190, 0.08), transparent 24%);
}

.upload-lab::before,
.dropzone::before {
  opacity: 0.45;
}

.dropzone,
.upload-preview-frame {
  background: linear-gradient(180deg, rgba(18, 25, 32, 0.98), rgba(14, 20, 27, 0.98));
  border-color: rgba(148, 169, 189, 0.14);
}

.dropzone.is-dragging {
  border-color: rgba(103, 199, 190, 0.56);
  box-shadow: 0 18px 44px rgba(79, 141, 230, 0.12);
}

.text-input,
.month-select {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 169, 189, 0.14);
}

.text-input:focus,
.month-select:focus {
  border-color: rgba(103, 199, 190, 0.42);
  box-shadow: 0 0 0 4px rgba(103, 199, 190, 0.08);
}

.expense-donut {
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.03),
    0 20px 42px rgba(0, 0, 0, 0.16);
}

.expense-donut::after {
  background: linear-gradient(180deg, rgba(18, 25, 32, 0.98), rgba(14, 20, 27, 1));
}

.spotlight-panel {
  background:
    linear-gradient(180deg, rgba(20, 28, 36, 0.96), rgba(15, 21, 28, 0.96)),
    radial-gradient(circle at 82% 20%, var(--theme-soft, rgba(103, 199, 190, 0.12)), transparent 28%);
}

.cursor-orb {
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(245, 250, 255, 0.95), rgba(103, 199, 190, 0.78));
  box-shadow:
    0 0 16px rgba(103, 199, 190, 0.16),
    0 0 30px rgba(79, 141, 230, 0.12);
}

.cursor-orb::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: #102129;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  border-color: rgba(103, 199, 190, 0.2);
  box-shadow: 0 0 28px rgba(79, 141, 230, 0.08);
}

body.cursor-hover .cursor-orb {
  transform: scale(1.16);
}

body.cursor-hover .cursor-ring {
  transform: scale(1.28);
  border-color: rgba(103, 199, 190, 0.34);
}

body.cursor-cta .cursor-orb {
  transform: scale(1.26);
  background: linear-gradient(135deg, rgba(245, 250, 255, 0.96), rgba(91, 155, 227, 0.84));
}

body.cursor-cta .cursor-orb::after {
  content: "↗";
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #0d2030;
  font-size: 10px;
  font-weight: 700;
  transform: translate(-50%, -56%);
}

body.cursor-cta .cursor-ring {
  transform: scale(1.42);
  border-color: rgba(91, 155, 227, 0.42);
  box-shadow:
    0 0 28px rgba(91, 155, 227, 0.12),
    0 0 18px rgba(103, 199, 190, 0.08);
}

.panel.is-hovered,
.glass-card.is-hovered,
.vendor-row.is-hovered,
.queue-item.is-hovered,
.workflow-node.is-hovered,
.ops-card.is-hovered,
.spotlight-stat.is-hovered,
.flip-card.is-hovered,
.timeline-step.is-hovered,
.dropzone.is-hovered,
.metric-card.is-hovered,
.primary-button:hover,
.secondary-button:hover,
.filter-chip:hover,
.ghost-link:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.16),
    0 0 18px var(--theme-soft, rgba(103, 199, 190, 0.08));
}

@media (max-width: 1024px) {
  .control-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .ops-strip,
  .architecture-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 0 1rem 2rem;
  }

  .topbar {
    gap: 0.9rem;
    padding: 1rem 1rem 0.25rem;
    position: relative;
    background: none;
    backdrop-filter: none;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar-pills {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero,
  .upload-lab,
  .panel {
    border-radius: 24px;
  }

  .hero-copy h2 {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button,
  .upload-submit {
    width: 100%;
    min-width: 0;
  }

  .fun-tags {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fun-tags span {
    justify-content: center;
    width: 100%;
  }

  .hero-grid,
  .field-grid,
  .flip-grid,
  .metrics-grid,
  .ops-strip,
  .mission-grid,
  .insight-layout,
  .architecture-track,
  .preview-meta,
  .spotlight-facts,
  .trend-shell {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .section-heading-tight {
    align-items: flex-start;
  }

  .history-drawer {
    width: min(100vw, 100%);
  }

  .history-range-shell,
  .history-toolbar {
    grid-template-columns: 1fr;
  }

  .history-item {
    grid-template-columns: 1fr;
  }
}

/* Upload motion and chart refresh pass */

.upload-motion-scene {
  --motion-accent: #67c7be;
  --motion-soft: rgba(103, 199, 190, 0.16);
  --motion-ring: rgba(103, 199, 190, 0.28);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.95rem 1rem;
  min-height: 236px;
  margin: 0 0 1rem;
  padding: 1rem;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(148, 169, 189, 0.14);
  background:
    radial-gradient(circle at 18% 88%, rgba(91, 155, 227, 0.08), transparent 34%),
    radial-gradient(circle at 80% 14%, var(--motion-soft), transparent 28%),
    linear-gradient(180deg, rgba(17, 24, 32, 0.98), rgba(12, 18, 24, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 34px rgba(0, 0, 0, 0.18);
}

.upload-motion-scene::before {
  content: "";
  position: absolute;
  left: 20%;
  top: 4.6rem;
  bottom: 4rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), var(--motion-ring), transparent);
  opacity: 0.92;
}

.motion-cloud,
.motion-processing {
  position: relative;
  z-index: 1;
}

.motion-cloud {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 4.85rem;
}

.motion-cloud-glow {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--motion-soft), transparent 68%);
  transform: translate(-50%, -50%);
  opacity: 0.5;
  filter: blur(6px);
}

.motion-cloud-core {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--motion-ring);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 28px rgba(0, 0, 0, 0.14);
}

.motion-cloud-icon,
.motion-cloud-icon::before,
.motion-cloud-icon::after {
  display: block;
  position: absolute;
  background: linear-gradient(180deg, rgba(244, 250, 255, 0.96), rgba(183, 221, 241, 0.9));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.motion-cloud-icon {
  position: relative;
  width: 2.1rem;
  height: 1rem;
  border-radius: 999px;
}

.motion-cloud-icon::before,
.motion-cloud-icon::after {
  content: "";
  border-radius: 50%;
}

.motion-cloud-icon::before {
  left: 0.2rem;
  bottom: 0.3rem;
  width: 1rem;
  height: 1rem;
}

.motion-cloud-icon::after {
  right: 0.05rem;
  bottom: 0.18rem;
  width: 1.18rem;
  height: 1.18rem;
}

.motion-cloud-copy,
.motion-receipt-copy,
.motion-processing-copy,
.motion-ledger-copy {
  display: grid;
  gap: 0.18rem;
}

.motion-cloud-copy strong,
.motion-processing-copy strong,
.motion-ledger-copy strong {
  font-size: 0.92rem;
}

.motion-cloud-copy span,
.motion-receipt-copy span,
.motion-processing-copy span,
.motion-ledger-copy span {
  color: #aebbc7;
  font-size: 0.84rem;
}

.motion-receipt,
.motion-ledger {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  min-width: min(15rem, calc(100% - 2rem));
  max-width: calc(100% - 2rem);
  border-radius: 20px;
  border: 1px solid rgba(148, 169, 189, 0.16);
  background: rgba(255, 255, 255, 0.05);
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.motion-receipt-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(204, 234, 248, 0.9));
  color: #0f2230;
  font-size: 1.2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.motion-receipt-copy strong {
  font-size: 0.95rem;
  max-width: 12rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.motion-receipt-armed {
  border-color: var(--motion-ring);
}

.motion-orbit {
  position: absolute;
  inset: 4.6rem 0 3.5rem;
  pointer-events: none;
}

.motion-orbit span {
  position: absolute;
  left: calc(20% - 0.3rem);
  top: 1.5rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(247, 252, 255, 0.96), var(--motion-accent));
  box-shadow: 0 0 18px var(--motion-soft);
  opacity: 0;
}

.motion-orbit span:nth-child(2) {
  animation-delay: 0.2s;
}

.motion-orbit span:nth-child(3) {
  animation-delay: 0.4s;
}

.motion-processing {
  align-self: end;
  margin-left: auto;
  width: min(100%, 17rem);
  padding: 1rem 1rem 0.95rem;
  border-radius: 22px;
  border: 1px solid rgba(148, 169, 189, 0.14);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.motion-processing-core {
  position: relative;
  height: 0.7rem;
  margin-bottom: 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.motion-processing-beam {
  position: absolute;
  inset: 0 auto 0 -28%;
  width: 36%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), var(--motion-accent), transparent);
  opacity: 0;
}

.motion-processing-dot {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%);
}

.motion-ledger {
  left: auto;
  right: 1rem;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.04);
}

.motion-ledger-ring {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 0 rgba(103, 199, 190, 0);
}

.upload-motion-scene[data-phase="idle"] .motion-receipt {
  animation: receiptDockedFloat 4.6s ease-in-out infinite;
}

.upload-motion-scene[data-phase="preparing"] .motion-cloud-glow,
.upload-motion-scene[data-phase="uploading"] .motion-cloud-glow,
.upload-motion-scene[data-phase="processing"] .motion-cloud-glow {
  animation: cloudPulse 2s ease-in-out infinite;
}

.upload-motion-scene[data-phase="uploading"] .motion-receipt,
.upload-motion-scene[data-phase="processing"] .motion-receipt {
  transform: translate(0.4rem, -7.7rem) scale(0.82);
  border-color: var(--motion-ring);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.16),
    0 0 0 1px var(--motion-ring);
}

.upload-motion-scene[data-phase="uploading"] .motion-receipt {
  animation: receiptToCloud 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.upload-motion-scene[data-phase="processing"] .motion-orbit span,
.upload-motion-scene[data-phase="uploading"] .motion-orbit span,
.upload-motion-scene[data-stage="stored"] .motion-orbit span {
  animation: orbitPacket 1.4s linear infinite;
}

.upload-motion-scene[data-phase="processing"] .motion-processing-beam,
.upload-motion-scene[data-stage="stored"] .motion-processing-beam {
  animation: extractBeam 1.1s linear infinite;
  opacity: 1;
}

.upload-motion-scene[data-phase="processing"] .motion-processing-dot,
.upload-motion-scene[data-stage="stored"] .motion-processing-dot {
  background: var(--motion-accent);
  box-shadow: 0 0 14px var(--motion-soft);
}

.upload-motion-scene[data-phase="success"] .motion-receipt {
  transform: translate(0.4rem, -7.7rem) scale(0.78);
  opacity: 0.38;
}

.upload-motion-scene[data-phase="success"] .motion-ledger,
.upload-motion-scene[data-stage="stored"] .motion-ledger {
  border-color: var(--motion-ring);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.16),
    0 0 0 1px var(--motion-ring);
}

.upload-motion-scene[data-phase="success"] .motion-ledger-ring {
  border-color: var(--motion-accent);
  box-shadow: 0 0 0 0 var(--motion-soft);
  animation: ledgerPulse 1.35s ease-out 1;
}

.expense-donut {
  --refresh-color: rgba(103, 199, 190, 0.94);
  --refresh-soft: rgba(103, 199, 190, 0.22);
}

.expense-donut::before {
  content: "";
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  background:
    conic-gradient(from -90deg, transparent 0deg, transparent 34deg, var(--refresh-color) 118deg, transparent 206deg, transparent 360deg);
  opacity: 0;
  transform: rotate(-28deg) scale(0.94);
  pointer-events: none;
  mask: radial-gradient(farthest-side, transparent calc(100% - 22%), #000 calc(100% - 20.5%));
}

.expense-donut.is-refreshing::before {
  animation: donutSweep 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.expense-donut.is-refreshing {
  animation: donutBloom 1.15s ease;
}

.legend-row.is-fresh,
.chart-row.is-fresh,
.spotlight-panel-fresh {
  animation: freshReceiptPulse 1.25s ease;
}

.legend-row.is-fresh,
.chart-row.is-fresh {
  border-color: var(--theme-ring, rgba(103, 199, 190, 0.28));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 28px rgba(0, 0, 0, 0.14),
    0 0 0 1px var(--theme-ring, rgba(103, 199, 190, 0.28));
}

.spotlight-panel-fresh {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 34px rgba(0, 0, 0, 0.18),
    0 0 0 1px var(--theme-ring, rgba(103, 199, 190, 0.24));
}

.cursor-orb::after {
  content: "";
  width: 5px;
  height: 7px;
  border-radius: 2px;
  border: 1.5px solid #102437;
  background: rgba(16, 36, 55, 0.06);
  transform: translate(-50%, -50%);
}

body.cursor-cta .cursor-orb::after {
  content: "";
  width: 7px;
  height: 8px;
  border-radius: 2px;
  border: 1.5px solid #0f2230;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0 78%, transparent 78% 100%),
    rgba(15, 34, 48, 0.06);
  box-shadow: inset -2px 2px 0 rgba(91, 155, 227, 0.18);
  transform: translate(-50%, -50%) rotate(-6deg);
}

@keyframes receiptDockedFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes receiptToCloud {
  0% {
    transform: translate(0, 0) scale(1);
  }
  68% {
    transform: translate(0.4rem, -7.2rem) scale(0.84);
  }
  100% {
    transform: translate(0.4rem, -7.7rem) scale(0.82);
  }
}

@keyframes cloudPulse {
  0%,
  100% {
    opacity: 0.42;
    transform: translate(-50%, -50%) scale(0.96);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes orbitPacket {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.8);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(11.2rem, 8rem) scale(0.35);
  }
}

@keyframes extractBeam {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(310%);
  }
}

@keyframes ledgerPulse {
  0% {
    box-shadow: 0 0 0 0 var(--motion-soft);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(103, 199, 190, 0);
    transform: scale(1.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(103, 199, 190, 0);
    transform: scale(1);
  }
}

@keyframes donutSweep {
  0% {
    opacity: 0;
    transform: rotate(-28deg) scale(0.94);
  }
  12% {
    opacity: 0.9;
  }
  82% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: rotate(342deg) scale(1);
  }
}

@keyframes donutBloom {
  0%,
  100% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.03);
  }
}

@keyframes freshReceiptPulse {
  0% {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(-3px) scale(1.012);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .upload-motion-scene {
    min-height: 260px;
    grid-template-columns: 1fr;
    padding: 0.95rem;
  }

  .upload-motion-scene::before {
    left: 1.45rem;
    top: 5.2rem;
    bottom: 5.35rem;
  }

  .motion-cloud {
    justify-content: flex-start;
  }

  .motion-cloud-core {
    width: 100%;
    justify-content: flex-start;
  }

  .motion-processing,
  .motion-ledger {
    width: calc(100% - 2rem);
  }

  .motion-processing {
    margin-left: 0;
    margin-top: auto;
  }

  .motion-receipt {
    min-width: calc(100% - 2rem);
  }

  .motion-ledger {
    right: 1rem;
    bottom: 0.95rem;
  }

  .upload-motion-scene[data-phase="uploading"] .motion-receipt,
  .upload-motion-scene[data-phase="processing"] .motion-receipt,
  .upload-motion-scene[data-phase="success"] .motion-receipt {
    transform: translate(0.08rem, -7.1rem) scale(0.84);
  }

  @keyframes orbitPacket {
    0% {
      opacity: 0;
      transform: translate(0, 0) scale(0.8);
    }
    15% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      transform: translate(8.8rem, 9.2rem) scale(0.35);
    }
  }
}

/* Dashboard range controls and droplet cursor */

.topbar-range {
  margin-top: 0.95rem;
}

.select-shell {
  display: grid;
  gap: 0.38rem;
}

.select-shell span {
  color: #aebbc7;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.period-select,
.chart-select-shell .month-select {
  min-width: 180px;
}

.chart-select-shell {
  justify-items: end;
}

.cursor-orb {
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 58% 42% 62% 38% / 38% 40% 60% 62%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.95) 0 16%, rgba(201, 239, 255, 0.88) 18%, rgba(103, 199, 255, 0.9) 56%, rgba(64, 118, 225, 0.84) 100%);
  box-shadow:
    0 0 18px rgba(103, 199, 255, 0.2),
    0 0 30px rgba(76, 130, 227, 0.14);
}

.cursor-orb::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 6px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(-18deg);
  filter: blur(0.2px);
}

.cursor-orb::after {
  content: "";
  position: absolute;
  left: 52%;
  top: 100%;
  width: 6px;
  height: 6px;
  border-radius: 60% 60% 70% 70%;
  background: linear-gradient(180deg, rgba(222, 246, 255, 0.9), rgba(96, 176, 244, 0.88));
  opacity: 0.38;
  transform: translateX(-50%) scale(0.65);
  animation: dropletDrip 1.9s ease-in-out infinite;
}

.cursor-ring {
  border-color: rgba(103, 199, 255, 0.22);
  box-shadow: 0 0 24px rgba(103, 199, 255, 0.08);
  animation: cursorRipple 2.5s ease-in-out infinite;
}

body.cursor-hover .cursor-orb {
  transform: rotate(-8deg) scale(1.1);
}

body.cursor-hover .cursor-ring {
  transform: scale(1.24);
  border-color: rgba(103, 199, 255, 0.34);
}

body.cursor-cta .cursor-orb {
  transform: rotate(10deg) scale(1.18);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.98) 0 16%, rgba(213, 244, 255, 0.92) 18%, rgba(116, 217, 226, 0.94) 52%, rgba(67, 129, 226, 0.88) 100%);
}

body.cursor-cta .cursor-orb::after {
  width: 7px;
  height: 7px;
  opacity: 0.62;
  animation-duration: 1.15s;
}

body.cursor-cta .cursor-ring {
  transform: scale(1.42);
  border-color: rgba(116, 217, 226, 0.4);
  box-shadow:
    0 0 28px rgba(116, 217, 226, 0.12),
    0 0 18px rgba(67, 129, 226, 0.08);
}

@keyframes dropletDrip {
  0%,
  100% {
    opacity: 0.2;
    transform: translateX(-50%) translateY(-1px) scale(0.56);
  }
  40% {
    opacity: 0.7;
    transform: translateX(-50%) translateY(6px) scale(0.96);
  }
  70% {
    opacity: 0;
    transform: translateX(-50%) translateY(14px) scale(0.4);
  }
}

@keyframes cursorRipple {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.08);
  }
}

@media (max-width: 760px) {
  .topbar-range,
  .select-shell,
  .chart-select-shell,
  .period-select,
  .chart-select-shell .month-select {
    width: 100%;
  }

  .chart-select-shell {
    justify-items: stretch;
  }
}

/* Compact topbar and clearer controls */

.topbar {
  position: relative;
  top: auto;
  z-index: 5;
  gap: 0.8rem 1.1rem;
  margin-bottom: 0.1rem;
  padding: 0.9rem clamp(1.25rem, 4vw, 3.2rem) 0.25rem;
  backdrop-filter: blur(12px);
}

.topbar-copy {
  gap: 0.4rem;
}

.topbar h1 {
  max-width: 11ch;
  font-size: clamp(1.55rem, 2.9vw, 2.45rem);
}

.topbar-text {
  max-width: 44ch;
  font-size: 0.94rem;
  line-height: 1.45;
}

.topbar-pills {
  gap: 0.45rem;
}

.topbar-pills span {
  padding: 0.38rem 0.72rem;
  font-size: 0.8rem;
}

.topbar-range {
  margin-top: 0.45rem;
  max-width: 340px;
}

.topbar-actions {
  align-self: center;
  gap: 0.6rem;
}

.status-pill,
.ghost-link {
  padding: 0.68rem 0.9rem;
}

.select-shell span {
  color: #dbe7f2;
  font-weight: 600;
}

.month-select,
.period-select {
  color: #eff6fb;
  background: linear-gradient(180deg, rgba(27, 35, 46, 0.98), rgba(21, 29, 38, 0.98));
  border: 1px solid rgba(126, 150, 177, 0.24);
}

.month-select option,
.period-select option {
  color: #eef6fb;
  background: #18212b;
}

.month-select:focus,
.period-select:focus {
  color: #ffffff;
}

/* Prevent upload motion copy overlap */

.upload-motion-scene {
  grid-template-areas:
    "cloud cloud"
    "receipt processing"
    "ledger ledger";
  min-height: 278px;
  gap: 0.9rem 0.95rem;
}

.upload-motion-scene::before {
  left: 24%;
  top: 4.7rem;
  bottom: 6.75rem;
}

.motion-cloud {
  grid-area: cloud;
}

.motion-processing {
  grid-area: processing;
  margin-left: 0;
  width: 100%;
  align-self: stretch;
}

.motion-receipt,
.motion-ledger {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  min-width: 0;
  max-width: none;
}

.motion-receipt {
  grid-area: receipt;
  align-self: end;
}

.motion-ledger {
  grid-area: ledger;
  justify-self: end;
  width: min(100%, 17rem);
}

.motion-receipt-copy strong,
.motion-ledger-copy strong,
.motion-processing-copy strong {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.motion-receipt-copy span,
.motion-ledger-copy span,
.motion-processing-copy span {
  line-height: 1.38;
}

.motion-processing-copy {
  gap: 0.24rem;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .upload-motion-scene {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cloud"
      "processing"
      "receipt"
      "ledger";
    min-height: auto;
  }

  .upload-motion-scene::before {
    display: none;
  }

  .motion-receipt,
  .motion-processing,
  .motion-ledger {
    width: 100%;
  }

  .motion-ledger {
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 0.85rem 1rem 0.15rem;
  }

  .topbar h1 {
    max-width: 9ch;
    font-size: clamp(1.45rem, 8vw, 2.1rem);
  }

  .topbar-text {
    font-size: 0.9rem;
  }

  .upload-motion-scene {
    padding: 0.9rem;
  }
}

/* Final sticky bar and realistic droplet cursor pass */

.topbar {
  position: sticky;
  top: 0.7rem;
  z-index: 8;
  grid-template-columns: minmax(0, 1.15fr) auto;
  align-items: start;
  gap: 0.7rem 1rem;
  margin: 0 auto 0.2rem;
  padding: 0.8rem clamp(1rem, 3vw, 2rem) 0.45rem;
  width: min(100% - 1.2rem, 1180px);
  border: 1px solid rgba(146, 174, 197, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(11, 18, 29, 0.86), rgba(9, 16, 26, 0.72)),
    radial-gradient(circle at 18% 0%, rgba(90, 210, 244, 0.1), transparent 44%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 18px 36px rgba(4, 9, 16, 0.24);
}

.topbar-copy {
  gap: 0.34rem;
}

.topbar h1 {
  max-width: 8.7ch;
  font-size: clamp(1.45rem, 2.55vw, 2.2rem);
  line-height: 0.98;
}

.topbar-text {
  max-width: 38ch;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.34;
  color: rgba(220, 232, 243, 0.82);
}

.topbar-pills {
  gap: 0.42rem;
  margin-top: 0.05rem;
}

.topbar-pills span {
  padding: 0.34rem 0.68rem;
  font-size: 0.76rem;
  border-radius: 999px;
}

.topbar-range {
  margin-top: 0.35rem;
  max-width: 292px;
}

.topbar-actions {
  align-self: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.status-note {
  max-width: 25ch;
  font-size: 0.86rem;
  line-height: 1.3;
  color: rgba(220, 232, 243, 0.76);
}

.status-pill,
.ghost-link {
  min-height: 44px;
  padding: 0.62rem 0.84rem;
  font-size: 0.96rem;
}

.select-shell span {
  color: #edf5fb;
}

.month-select,
.period-select,
.chart-select-shell .month-select {
  color: #f6fbff;
  background: linear-gradient(180deg, rgba(20, 29, 40, 0.98), rgba(14, 21, 31, 0.98));
  border: 1px solid rgba(136, 165, 189, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color-scheme: dark;
}

.month-select option,
.period-select option,
.chart-select-shell .month-select option {
  color: #f4fbff;
  background: #14202d;
}

.cursor-orb {
  width: 18px;
  height: 24px;
  border-radius: 58% 58% 72% 72% / 38% 38% 92% 92%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 26%),
    radial-gradient(circle at 60% 38%, rgba(176, 244, 255, 0.92), rgba(86, 200, 232, 0.88) 44%, rgba(28, 126, 176, 0.96) 76%, rgba(11, 55, 100, 0.98) 100%);
  border: 1px solid rgba(183, 246, 255, 0.68);
  box-shadow:
    0 0 0 1px rgba(142, 228, 255, 0.15),
    0 10px 22px rgba(42, 162, 224, 0.34),
    0 0 24px rgba(110, 226, 255, 0.24);
  transform-origin: 50% 18%;
  animation: cursorDropletFloat 2.05s ease-in-out infinite;
}

.cursor-orb::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 64% 54%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 38%);
  opacity: 0.9;
}

.cursor-orb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 9px;
  height: 11px;
  transform: translateX(-50%);
  border-radius: 60% 60% 42% 42% / 74% 74% 32% 32%;
  background: linear-gradient(180deg, rgba(213, 251, 255, 0.92), rgba(106, 211, 244, 0.42));
  filter: blur(0.25px);
  opacity: 0.86;
}

.cursor-ring {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(128, 224, 255, 0.28);
  background: radial-gradient(circle, rgba(102, 219, 255, 0.12), rgba(102, 219, 255, 0));
  box-shadow: 0 0 26px rgba(84, 208, 255, 0.15);
  animation: cursorRingPulse 2.2s ease-in-out infinite;
}

body.cursor-hover .cursor-orb,
body.cursor-cta .cursor-orb {
  width: 22px;
  height: 30px;
  box-shadow:
    0 0 0 1px rgba(176, 244, 255, 0.2),
    0 14px 28px rgba(42, 162, 224, 0.42),
    0 0 34px rgba(110, 226, 255, 0.28);
}

body.cursor-hover .cursor-ring,
body.cursor-cta .cursor-ring {
  width: 54px;
  height: 54px;
  border-color: rgba(152, 231, 255, 0.44);
  box-shadow: 0 0 32px rgba(88, 213, 255, 0.2);
}

@keyframes cursorDropletFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-4deg) scale(0.96, 1.02);
  }
  30% {
    transform: translate(-50%, -50%) rotate(2deg) scale(1.04, 0.97);
  }
  55% {
    transform: translate(-50%, -50%) rotate(4deg) scale(0.98, 1.06);
  }
  78% {
    transform: translate(-50%, -50%) rotate(-2deg) scale(1.02, 0.98);
  }
}

@keyframes cursorRingPulse {
  0%,
  100% {
    opacity: 0.68;
    transform: translate(-50%, -50%) scale(0.94);
  }
  50% {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

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

  .topbar-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .topbar {
    top: 0.45rem;
    width: calc(100% - 1rem);
    padding: 0.78rem 0.9rem 0.38rem;
    border-radius: 20px;
  }

  .topbar h1 {
    max-width: 8.2ch;
    font-size: clamp(1.38rem, 8vw, 1.95rem);
  }

  .topbar-text {
    max-width: 100%;
    font-size: 0.86rem;
  }

  .status-note {
    max-width: none;
    font-size: 0.84rem;
  }
}

/* Final two-row topbar and water droplet cursor pass */

.topbar {
  position: sticky;
  top: 0.55rem;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: clamp(10.5rem, 23vh, 14rem);
  width: calc(100vw - 0.8rem);
  margin-top: 0.35rem;
  margin-left: calc(50% - 50vw + 0.4rem);
  margin-right: 0;
  margin-bottom: 0.95rem;
  padding: 1rem clamp(1rem, 3vw, 2.25rem) 1rem;
  border: 1px solid rgba(144, 177, 203, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(10, 18, 29, 0.9), rgba(9, 17, 28, 0.76)),
    radial-gradient(circle at 14% 0%, rgba(89, 218, 255, 0.12), transparent 38%),
    radial-gradient(circle at 84% 18%, rgba(107, 183, 255, 0.08), transparent 28%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    0 20px 50px rgba(3, 10, 17, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: margin-bottom 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

body.topbar-condensed .topbar {
  margin-bottom: clamp(-4.6rem, -6vw, -3.1rem);
  box-shadow:
    0 22px 54px rgba(3, 10, 17, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  width: 100%;
}

.topbar-row-main {
  align-items: flex-start;
}

.topbar-row-range {
  margin-top: auto;
  justify-content: flex-start;
}

.range-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  flex: 1 1 34rem;
  min-width: 0;
}

.range-summary-card {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  padding: 0.82rem 0.95rem 0.9rem;
  border: 1px solid rgba(138, 171, 196, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(15, 25, 38, 0.94), rgba(10, 19, 30, 0.96)),
    radial-gradient(circle at 18% 18%, rgba(102, 227, 255, 0.1), transparent 42%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 26px rgba(4, 12, 21, 0.22);
}

.range-summary-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(104, 227, 255, 0.72), rgba(96, 161, 255, 0.22));
  opacity: 0.72;
}

.range-summary-card--primary {
  border-color: rgba(111, 221, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(14, 28, 43, 0.98), rgba(10, 20, 30, 0.98)),
    radial-gradient(circle at 14% 16%, rgba(117, 235, 255, 0.18), transparent 44%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 30px rgba(8, 23, 37, 0.28),
    0 0 24px rgba(81, 212, 255, 0.08);
}

.range-summary-kicker {
  display: block;
  margin-bottom: 0.38rem;
  color: rgba(130, 232, 255, 0.94);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.range-summary-card strong {
  display: block;
  color: #f5fbff;
  font-size: 1.04rem;
  line-height: 1.2;
}

.range-summary-card p {
  margin: 0.38rem 0 0;
  color: rgba(220, 233, 244, 0.74);
  font-size: 0.83rem;
  line-height: 1.38;
}

.topbar-copy {
  display: grid;
  gap: 0.48rem;
  max-width: min(54rem, 100%);
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(145, 224, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(17, 30, 44, 0.96), rgba(12, 22, 33, 0.9)),
    radial-gradient(circle at 24% 22%, rgba(133, 238, 255, 0.24), transparent 46%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(26, 104, 162, 0.22),
    0 0 24px rgba(93, 220, 255, 0.08);
  color: #f6fcff;
  font-size: clamp(0.96rem, 1.05vw, 1.14rem);
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(112, 227, 255, 0.18);
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: 0;
  max-width: min(72vw, 900px);
}

.status-pill,
.ghost-link {
  min-height: 42px;
  padding: 0.62rem 0.84rem;
  border-radius: 999px;
}

.status-note {
  max-width: 24ch;
  margin: 0 0.12rem 0 0.1rem;
  font-size: 0.9rem;
  line-height: 1.3;
  color: rgba(223, 235, 245, 0.8);
}

.topbar-text {
  max-width: 70ch;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: rgba(224, 236, 246, 0.84);
}

.topbar-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.topbar-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(147, 183, 206, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #edf7fd;
  font-size: 0.8rem;
}

.topbar-range {
  margin-top: 0;
  width: min(360px, 100%);
  max-width: none;
}

.topbar-range .select-shell {
  width: 100%;
}

.topbar-range .select-shell span {
  color: #f0f7fd;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar-range .month-select,
.topbar-range .period-select {
  min-height: 54px;
}

.month-select,
.period-select,
.chart-select-shell .month-select {
  color: #f8fcff;
  background: linear-gradient(180deg, rgba(18, 28, 41, 0.98), rgba(12, 20, 31, 0.98));
  border-color: rgba(142, 172, 196, 0.32);
  color-scheme: dark;
}

.month-select option,
.period-select option,
.chart-select-shell .month-select option {
  color: #f6fcff;
  background: #142131;
}

.cursor-orb,
.cursor-ring,
.cursor-drips {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 60;
}

body.cursor-active .cursor-orb,
body.cursor-active .cursor-ring,
body.cursor-active .cursor-drips {
  opacity: 1;
}

/* Tone down the interface so it reads like a portfolio project instead of a product landing page. */
.aurora,
.grid-sheen,
.success-burst,
.cursor-orb,
.cursor-ring,
.cursor-drips {
  display: none !important;
}

body.cursor-active,
body.cursor-active a,
body.cursor-active button {
  cursor: auto !important;
}

.hero::before,
.panel::after {
  display: none !important;
}

.panel,
.glass-card,
.vendor-row,
.queue-item,
.workflow-node,
.ops-card,
.spotlight-stat,
.timeline-step,
.metric-card {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.cursor-orb {
  width: 24px;
  height: 32px;
  margin: 0;
  transform: translate(-50%, -56%);
  border-radius: 56% 56% 74% 74% / 28% 28% 92% 92%;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 18%),
    radial-gradient(circle at 60% 30%, rgba(214, 249, 255, 0.86), rgba(129, 221, 255, 0.82) 32%, rgba(65, 170, 228, 0.92) 62%, rgba(21, 77, 136, 0.98) 100%);
  border: 1px solid rgba(192, 246, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(132, 220, 255, 0.14),
    0 14px 28px rgba(39, 143, 214, 0.36),
    0 0 26px rgba(120, 226, 255, 0.26);
  animation: dropletBobReal 2.15s ease-in-out infinite;
}

.cursor-orb::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 20%),
    radial-gradient(circle at 60% 52%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 40%);
}

.cursor-orb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 67%;
  width: 12px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 0 0 85% 85%;
  background: linear-gradient(180deg, rgba(189, 245, 255, 0.24), rgba(112, 214, 247, 0.62));
  filter: blur(0.4px);
  opacity: 0.78;
  animation: dropletMeltTail 1.65s ease-in-out infinite;
}

.cursor-drips {
  width: 34px;
  height: 52px;
  margin: 0;
  transform: translate(-50%, -6%);
}

.cursor-drips span {
  position: absolute;
  top: 8px;
  width: 7px;
  height: 9px;
  border-radius: 52% 52% 72% 72% / 34% 34% 88% 88%;
  background: radial-gradient(circle at 35% 18%, rgba(255, 255, 255, 0.9), rgba(202, 248, 255, 0.52) 34%, rgba(88, 189, 243, 0.88) 100%);
  box-shadow: 0 0 12px rgba(98, 209, 255, 0.24);
  opacity: 0;
}

.cursor-drips span:nth-child(1) {
  left: 11px;
  animation: cursorMeltDrop 1.55s ease-in-out infinite;
}

.cursor-drips span:nth-child(2) {
  left: 3px;
  width: 6px;
  height: 8px;
  animation: cursorMeltDrop 1.75s ease-in-out infinite 0.24s;
}

.cursor-drips span:nth-child(3) {
  left: 20px;
  width: 6px;
  height: 8px;
  animation: cursorMeltDrop 1.8s ease-in-out infinite 0.48s;
}

.cursor-drips span:nth-child(4) {
  left: 15px;
  width: 5px;
  height: 7px;
  animation: cursorMeltDrop 1.65s ease-in-out infinite 0.74s;
}

.cursor-ring {
  width: 44px;
  height: 44px;
  margin: 0;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(136, 227, 255, 0.26);
  background: radial-gradient(circle, rgba(103, 219, 255, 0.12), rgba(103, 219, 255, 0));
  box-shadow: 0 0 30px rgba(87, 202, 255, 0.14);
  animation: cursorRingPulseReal 2.25s ease-in-out infinite;
}

body.cursor-hover .cursor-orb {
  box-shadow:
    0 0 0 1px rgba(144, 229, 255, 0.2),
    0 16px 34px rgba(39, 143, 214, 0.44),
    0 0 34px rgba(120, 226, 255, 0.3);
}

body.cursor-hover .cursor-ring,
body.cursor-cta .cursor-ring {
  border-color: rgba(154, 232, 255, 0.42);
  box-shadow: 0 0 38px rgba(87, 202, 255, 0.2);
}

body.cursor-cta .cursor-orb {
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0) 18%),
    radial-gradient(circle at 60% 30%, rgba(226, 252, 255, 0.92), rgba(151, 230, 255, 0.86) 32%, rgba(86, 199, 238, 0.96) 62%, rgba(28, 97, 162, 0.98) 100%);
}

@keyframes dropletBobReal {
  0%,
  100% {
    transform: translate(-50%, -56%) rotate(-4deg) scale(0.98, 1.02);
  }
  40% {
    transform: translate(-50%, -56%) rotate(3deg) scale(1.03, 0.98);
  }
  72% {
    transform: translate(-50%, -56%) rotate(-1deg) scale(0.99, 1.04);
  }
}

@keyframes dropletMeltTail {
  0%,
  100% {
    opacity: 0.54;
    transform: translateX(-50%) scaleY(0.72);
  }
  45% {
    opacity: 0.9;
    transform: translateX(-50%) scaleY(1.16);
  }
  78% {
    opacity: 0.66;
    transform: translateX(-50%) scaleY(0.88);
  }
}

@keyframes cursorMeltDrop {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  16% {
    opacity: 0.88;
    transform: translateY(6px) scale(0.92);
  }
  55% {
    opacity: 0.66;
    transform: translateY(21px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(34px) scale(0.42);
  }
}

@keyframes cursorRingPulseReal {
  0%,
  100% {
    opacity: 0.64;
    transform: translate(-50%, -50%) scale(0.96);
  }
  50% {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@media (max-width: 1080px) {
  .topbar {
    min-height: auto;
    margin-bottom: 0.75rem;
  }

  body.topbar-condensed .topbar {
    margin-bottom: -2.8rem;
  }

  .topbar-row-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .topbar-row-range {
    flex-direction: column;
    align-items: stretch;
  }

  .range-summary {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .topbar {
    top: 0.4rem;
    width: calc(100vw - 0.5rem);
    margin-left: calc(50% - 50vw + 0.25rem);
    margin-bottom: 0.65rem;
    min-height: auto;
    padding: 0.9rem 0.85rem 0.85rem;
    border-radius: 24px;
  }

  body.topbar-condensed .topbar {
    margin-bottom: -1.2rem;
  }

  .brand-mark {
    padding: 0.62rem 0.82rem;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
  }

  .topbar-actions {
    gap: 0.5rem;
  }

  .status-note {
    max-width: none;
    font-size: 0.84rem;
  }

  .topbar-text {
    font-size: 0.88rem;
  }

  .topbar-pills span {
    min-height: 34px;
    font-size: 0.76rem;
  }

  .topbar-range {
    width: 100%;
  }

  .range-summary-card {
    min-height: auto;
  }
}

@media (pointer: coarse) {
  .cursor-drips {
    display: none;
  }
}

.confirm-scrim {
  position: fixed;
  inset: 0;
  z-index: 58;
  background: rgba(4, 10, 18, 0.52);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.confirm-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 59;
  width: min(92vw, 30rem);
  padding: 1.2rem 1.2rem 1.1rem;
  border: 1px solid rgba(147, 183, 206, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(12, 20, 31, 0.96), rgba(10, 16, 26, 0.95)),
    radial-gradient(circle at top left, rgba(110, 231, 247, 0.1), transparent 44%);
  box-shadow:
    0 28px 70px rgba(3, 10, 17, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease;
}

.confirm-scrim.is-open,
.confirm-modal.is-open {
  opacity: 1;
}

.confirm-modal.is-open {
  transform: translate(-50%, -50%) scale(1);
}

.confirm-modal h3 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.confirm-copy {
  margin: 0.7rem 0 0;
  color: rgba(222, 235, 245, 0.82);
  line-height: 1.55;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.confirm-danger {
  min-width: 11.5rem;
}

.rename-scrim {
  position: fixed;
  inset: 0;
  z-index: 64;
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.rename-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 65;
  width: min(92vw, 32rem);
  padding: 1.2rem;
  border-radius: 26px;
  border: 1px solid rgba(122, 164, 213, 0.2);
  background:
    radial-gradient(circle at 16% 14%, rgba(125, 231, 255, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(16, 24, 38, 0.98), rgba(10, 15, 28, 0.98));
  box-shadow:
    0 28px 72px rgba(2, 8, 16, 0.44),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 52px rgba(125, 231, 255, 0.08);
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease;
}

.rename-modal.is-open,
.rename-scrim.is-open {
  opacity: 1;
}

.rename-modal.is-open {
  transform: translate(-50%, -50%) scale(1);
}

.rename-field {
  margin-top: 1rem;
  gap: 0.45rem;
}

.rename-input {
  min-height: 56px;
}

.rename-note {
  margin: 0.8rem 0 0;
  color: rgba(222, 235, 245, 0.76);
  line-height: 1.55;
}

.rename-save-button {
  min-width: 11.5rem;
}

.duplicate-decision-scrim {
  position: fixed;
  inset: 0;
  z-index: 66;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 136, 102, 0.16), transparent 30%),
    rgba(4, 8, 16, 0.74);
  backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.duplicate-decision-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 67;
  width: min(92vw, 44rem);
  padding: 1.3rem 1.3rem 1.2rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 169, 126, 0.28);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 196, 132, 0.14), transparent 24%),
    radial-gradient(circle at 84% 20%, rgba(255, 124, 112, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(18, 16, 25, 0.98), rgba(10, 12, 20, 0.98));
  box-shadow:
    0 36px 90px rgba(2, 8, 16, 0.5),
    0 0 0 1px rgba(255, 222, 176, 0.06),
    0 0 80px rgba(255, 120, 96, 0.12);
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.94);
  transition: opacity 220ms ease, transform 220ms ease;
  overflow: hidden;
  isolation: isolate;
}

.duplicate-decision-modal.is-open,
.duplicate-decision-scrim.is-open {
  opacity: 1;
}

.duplicate-decision-modal.is-open {
  transform: translate(-50%, -50%) scale(1);
}

.duplicate-decision-modal[data-tone="keep"] {
  border-color: rgba(122, 218, 255, 0.32);
  background:
    radial-gradient(circle at 18% 16%, rgba(126, 222, 255, 0.14), transparent 24%),
    radial-gradient(circle at 84% 20%, rgba(109, 173, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(14, 18, 28, 0.98), rgba(8, 15, 26, 0.98));
  box-shadow:
    0 36px 90px rgba(2, 8, 16, 0.52),
    0 0 0 1px rgba(216, 245, 255, 0.08),
    0 0 88px rgba(84, 196, 255, 0.16);
}

.duplicate-decision-modal[data-tone="keep"] .duplicate-decision-aura--one {
  background: radial-gradient(circle, rgba(126, 222, 255, 0.24), transparent 68%);
}

.duplicate-decision-modal[data-tone="keep"] .duplicate-decision-aura--two {
  background: radial-gradient(circle, rgba(108, 168, 255, 0.22), transparent 70%);
}

.duplicate-decision-modal[data-tone="keep"] .duplicate-decision-shell {
  border-color: rgba(132, 212, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    linear-gradient(160deg, rgba(14, 28, 42, 0.84), rgba(8, 18, 32, 0.8));
}

.duplicate-decision-modal[data-tone="keep"] .duplicate-decision-head h3 {
  color: #ebfbff;
  text-shadow: 0 0 24px rgba(118, 224, 255, 0.16);
}

.duplicate-decision-modal[data-tone="keep"] .duplicate-decision-body {
  color: rgba(225, 241, 247, 0.86);
}

.duplicate-decision-modal[data-tone="keep"] .duplicate-signal-ring {
  border-color: rgba(136, 220, 255, 0.22);
  box-shadow: 0 0 36px rgba(92, 198, 255, 0.12);
}

.duplicate-decision-modal[data-tone="keep"] .duplicate-signal-ring--inner {
  border-color: rgba(132, 187, 255, 0.32);
}

.duplicate-decision-modal[data-tone="keep"] .duplicate-signal-core {
  border-color: rgba(196, 243, 255, 0.3);
  background:
    linear-gradient(160deg, rgba(122, 218, 255, 0.2), rgba(102, 152, 255, 0.22)),
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.18), transparent 40%);
  color: #f0fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 36px rgba(96, 202, 255, 0.24);
}

.duplicate-decision-modal[data-tone="keep"] .duplicate-decision-input {
  border-color: rgba(126, 208, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(18, 26, 40, 0.96), rgba(13, 22, 34, 0.96)),
    radial-gradient(circle at 16% 18%, rgba(126, 222, 255, 0.08), transparent 26%);
}

.duplicate-decision-modal[data-tone="reject"] {
  box-shadow:
    0 36px 90px rgba(2, 8, 16, 0.52),
    0 0 0 1px rgba(255, 222, 176, 0.06),
    0 0 88px rgba(255, 114, 90, 0.16);
}

.duplicate-decision-modal[data-mode="outcome"] .duplicate-decision-copy {
  align-content: center;
  min-height: 180px;
}

.duplicate-decision-modal[data-mode="outcome"] .duplicate-decision-note {
  font-size: 0.97rem;
  line-height: 1.6;
}

.duplicate-decision-aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.78;
  pointer-events: none;
  animation: duplicate-decision-aura-float 5.8s ease-in-out infinite;
}

.duplicate-decision-aura--one {
  width: 180px;
  height: 180px;
  top: -48px;
  left: -30px;
  background: radial-gradient(circle, rgba(255, 190, 120, 0.24), transparent 68%);
}

.duplicate-decision-aura--two {
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: -96px;
  background: radial-gradient(circle, rgba(255, 104, 118, 0.22), transparent 70%);
  animation-delay: 1.2s;
}

.duplicate-decision-head,
.duplicate-decision-shell {
  position: relative;
  z-index: 1;
}

.duplicate-decision-head {
  display: grid;
  gap: 0.52rem;
}

.duplicate-decision-head h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  color: #fff4e8;
  text-shadow: 0 0 22px rgba(255, 170, 118, 0.12);
}

.duplicate-decision-body {
  margin: 0;
  color: rgba(236, 227, 221, 0.84);
  line-height: 1.65;
}

.duplicate-decision-shell {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 1.1rem;
  margin-top: 1.15rem;
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 177, 130, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    linear-gradient(160deg, rgba(29, 18, 24, 0.82), rgba(14, 14, 23, 0.78));
}

.duplicate-decision-signal {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
}

.duplicate-signal-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 205, 150, 0.2);
  box-shadow: 0 0 36px rgba(255, 140, 104, 0.1);
}

.duplicate-signal-ring--outer {
  inset: 0;
  animation: duplicate-ring-outer 3.1s ease-out infinite;
}

.duplicate-signal-ring--inner {
  inset: 20px;
  border-color: rgba(255, 122, 120, 0.28);
  animation: duplicate-ring-inner 2.4s ease-out infinite;
}

.duplicate-signal-core {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  border: 1px solid rgba(255, 228, 166, 0.34);
  background:
    linear-gradient(160deg, rgba(255, 212, 132, 0.2), rgba(255, 104, 118, 0.2)),
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.16), transparent 40%);
  color: #fff3dd;
  font-size: 1.95rem;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 36px rgba(255, 128, 106, 0.22);
  animation: duplicate-core-float 2.8s ease-in-out infinite;
}

.duplicate-decision-copy {
  display: grid;
  gap: 1rem;
}

.duplicate-decision-field {
  gap: 0.5rem;
}

.duplicate-decision-input {
  min-height: 56px;
  border-color: rgba(255, 193, 142, 0.2);
  background:
    linear-gradient(180deg, rgba(19, 22, 34, 0.96), rgba(15, 17, 28, 0.96)),
    radial-gradient(circle at 16% 18%, rgba(255, 194, 126, 0.06), transparent 26%);
}

.duplicate-decision-input:focus {
  border-color: rgba(255, 203, 139, 0.52);
  box-shadow:
    0 0 0 4px rgba(255, 174, 112, 0.12),
    0 0 24px rgba(255, 120, 102, 0.08);
}

.duplicate-decision-note {
  margin: 0;
  color: rgba(229, 220, 214, 0.74);
  line-height: 1.55;
}

.duplicate-decision-note[data-tone="error"] {
  color: #ffcfab;
  text-shadow: 0 0 18px rgba(255, 153, 102, 0.12);
}

.duplicate-decision-note[data-tone="ready"] {
  color: #ffe9c6;
}

.duplicate-decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.2rem;
}

.duplicate-keep-button {
  min-width: 16.5rem;
}

.duplicate-reject-button {
  min-width: 10rem;
  justify-content: center;
}

.duplicate-keep-button:disabled,
.duplicate-reject-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

body.duplicate-decision-open {
  overflow: hidden;
}

body.rename-modal-open {
  overflow: hidden;
}

@keyframes duplicate-decision-aura-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.96);
  }
  50% {
    transform: translate3d(6px, -10px, 0) scale(1.06);
  }
}

@keyframes duplicate-ring-outer {
  0% {
    transform: scale(0.88);
    opacity: 0.16;
  }
  35% {
    opacity: 0.42;
  }
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

@keyframes duplicate-ring-inner {
  0% {
    transform: scale(0.9);
    opacity: 0.12;
  }
  38% {
    opacity: 0.52;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

@keyframes duplicate-core-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 760px) {
  .confirm-modal {
    width: min(94vw, 26rem);
    padding: 1rem;
    border-radius: 20px;
  }

  .rename-modal {
    width: min(94vw, 28rem);
    padding: 1rem;
    border-radius: 22px;
  }

  .confirm-actions {
    flex-direction: column-reverse;
  }

  .confirm-danger,
  .confirm-actions .ghost-link,
  .rename-save-button {
    width: 100%;
    justify-content: center;
  }

  .duplicate-decision-modal {
    width: min(94vw, 28rem);
    padding: 1rem;
    border-radius: 24px;
  }

  .duplicate-decision-shell {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 0.9rem;
  }

  .duplicate-decision-signal {
    min-height: 110px;
  }

  .duplicate-keep-button,
  .duplicate-reject-button {
    width: 100%;
    justify-content: center;
  }
}

/* Rounder droplet refinement */

.cursor-orb {
  width: 26px;
  height: 30px;
  transform: translate(-50%, -54%);
  border-radius: 52% 52% 68% 68% / 42% 42% 84% 84%;
  background:
    radial-gradient(circle at 32% 16%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 17%),
    radial-gradient(circle at 60% 28%, rgba(229, 252, 255, 0.92), rgba(156, 233, 255, 0.82) 34%, rgba(83, 192, 241, 0.94) 64%, rgba(25, 99, 165, 0.98) 100%);
  box-shadow:
    inset -2px -4px 8px rgba(16, 82, 140, 0.18),
    inset 2px 3px 6px rgba(255, 255, 255, 0.16),
    0 15px 30px rgba(39, 143, 214, 0.38),
    0 0 28px rgba(120, 226, 255, 0.24);
}

.cursor-orb::before {
  inset: 2px 2px 5px 2px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 16%),
    radial-gradient(circle at 58% 46%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.cursor-orb::after {
  top: 72%;
  width: 10px;
  height: 12px;
  border-radius: 0 0 76% 76%;
  background: linear-gradient(180deg, rgba(198, 247, 255, 0.22), rgba(110, 214, 247, 0.58));
  opacity: 0.72;
}

.cursor-drips {
  width: 38px;
  height: 60px;
  transform: translate(-50%, -2%);
}

.cursor-drips span {
  width: 7px;
  height: 8px;
  border-radius: 50% 50% 62% 62% / 44% 44% 80% 80%;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.92), rgba(207, 248, 255, 0.56) 30%, rgba(91, 194, 244, 0.9) 100%);
  box-shadow: 0 0 14px rgba(98, 209, 255, 0.22);
}

.cursor-drips span:nth-child(1) {
  left: 12px;
}

.cursor-drips span:nth-child(2) {
  left: 4px;
}

.cursor-drips span:nth-child(3) {
  left: 22px;
}

.cursor-drips span:nth-child(4) {
  left: 16px;
}

body.cursor-hover .cursor-orb,
body.cursor-cta .cursor-orb {
  box-shadow:
    inset -2px -4px 9px rgba(16, 82, 140, 0.22),
    inset 2px 3px 7px rgba(255, 255, 255, 0.18),
    0 18px 36px rgba(39, 143, 214, 0.42),
    0 0 34px rgba(120, 226, 255, 0.3);
}

.topbar-primary-button {
  min-width: 0;
  min-height: 42px;
  padding: 0.72rem 1rem;
}

.auth-summary-pill {
  max-width: min(22rem, 60vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-input[readonly] {
  color: rgba(235, 242, 255, 0.82);
  background: rgba(255, 255, 255, 0.03);
  cursor: default;
}

[hidden] {
  display: none !important;
}

/* Slimmer sticky topbar and dedicated auth pages */

.topbar {
  top: 0.45rem;
  gap: 0.68rem;
  min-height: clamp(8.9rem, 20vh, 12rem);
  margin-top: 0.25rem;
  margin-bottom: 0.78rem;
  padding: 0.84rem clamp(0.95rem, 2.7vw, 2rem) 0.86rem;
}

body.topbar-condensed .topbar {
  margin-bottom: clamp(-3.7rem, -5vw, -2.6rem);
}

.topbar-copy {
  gap: 0.36rem;
}

.brand-mark {
  padding: 0.62rem 0.92rem;
  font-size: clamp(0.92rem, 1vw, 1.08rem);
}

.brand-mark-link {
  text-decoration: none;
  color: inherit;
}

.status-pill,
.ghost-link {
  min-height: 38px;
  padding: 0.54rem 0.8rem;
}

.status-note {
  font-size: 0.86rem;
}

.topbar-text {
  font-size: 0.9rem;
  line-height: 1.4;
}

.topbar-pills span {
  min-height: 34px;
  padding: 0.28rem 0.66rem;
}

.topbar-range .month-select,
.topbar-range .period-select {
  min-height: 48px;
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(111, 229, 255, 0.12), transparent 26%),
    radial-gradient(circle at 82% 12%, rgba(90, 150, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #08111d 0%, #09131f 50%, #0c1724 100%);
}

.auth-page .auth-topbar {
  margin-bottom: 1rem;
}

.auth-topbar-actions {
  max-width: none;
}

.auth-shell {
  width: min(1180px, calc(100vw - 1rem));
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.92fr);
  gap: 1rem;
  align-items: stretch;
}

.auth-stage,
.auth-panel {
  min-height: 100%;
}

.auth-stage {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.auth-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(111, 229, 255, 0.08), transparent 42%),
    radial-gradient(circle at 88% 14%, rgba(106, 173, 255, 0.12), transparent 26%);
  pointer-events: none;
}

.auth-stage > * {
  position: relative;
  z-index: 1;
}

.auth-stage-copy {
  display: grid;
  gap: 0.8rem;
}

.auth-stage-copy h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  color: #f6fbff;
}

.auth-lead {
  margin: 0;
  max-width: 58ch;
  color: rgba(225, 236, 247, 0.82);
  font-size: 1rem;
  line-height: 1.6;
}

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

.auth-info-card {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid rgba(147, 183, 206, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(13, 22, 34, 0.92), rgba(10, 18, 29, 0.9)),
    radial-gradient(circle at top left, rgba(109, 231, 247, 0.08), transparent 38%);
}

.auth-info-card strong {
  color: #f5fbff;
  font-size: 1.02rem;
  line-height: 1.35;
}

.auth-info-card p {
  margin: 0;
  color: rgba(222, 234, 245, 0.76);
  font-size: 0.94rem;
  line-height: 1.5;
}

.auth-project-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.auth-project-strip article {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(147, 183, 206, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.auth-project-strip span {
  color: rgba(173, 198, 219, 0.8);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-project-strip strong {
  color: #f4fbff;
  font-size: 1rem;
}

.auth-panel {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: clamp(1.2rem, 2.6vw, 1.8rem);
}

.auth-panel-head {
  display: grid;
  gap: 0.42rem;
}

.auth-panel-head h2 {
  margin: 0;
  color: #f6fbff;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
}

.auth-panel-head p:last-child {
  margin: 0;
  color: rgba(221, 233, 244, 0.78);
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 0.92rem;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  min-height: 52px;
}

.auth-status {
  margin: 0;
  min-height: 1.5rem;
  color: rgba(224, 236, 246, 0.8);
  font-size: 0.94rem;
  line-height: 1.45;
}

.auth-status[data-state="working"] {
  color: #8fdcff;
}

.auth-status[data-state="success"] {
  color: #82f0b6;
}

.auth-status[data-state="error"] {
  color: #ffb3a5;
}

.auth-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: rgba(221, 233, 244, 0.76);
}

.auth-switch a {
  color: #8fdcff;
  font-weight: 700;
  text-decoration: none;
}

.auth-switch a:hover,
.auth-switch a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-stage-copy h1 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    top: 0.32rem;
    width: calc(100vw - 0.45rem);
    margin-left: calc(50% - 50vw + 0.225rem);
    margin-bottom: 0.55rem;
    padding: 0.74rem 0.78rem 0.76rem;
    border-radius: 22px;
  }

  body.topbar-condensed .topbar {
    margin-bottom: -0.9rem;
  }

  .brand-mark {
    padding: 0.56rem 0.76rem;
    font-size: 0.88rem;
    letter-spacing: 0.16em;
  }

  .auth-highlight-grid,
  .auth-project-strip {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    width: calc(100vw - 0.6rem);
    margin-bottom: 1.25rem;
    gap: 0.75rem;
  }
}

.auth-decoy-group {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

.auth-decoy {
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

body.workspace-signed-in .topbar {
  min-height: 0;
  gap: 0.34rem;
  margin-bottom: 0.32rem;
  padding-top: 0.46rem;
  padding-bottom: 0.46rem;
}

body.workspace-signed-in .topbar-copy {
  display: none;
}

body.workspace-signed-in .topbar-text {
  font-size: 0.81rem;
  line-height: 1.28;
}

body.workspace-signed-in .topbar-pills span {
  min-height: 28px;
  font-size: 0.72rem;
}

body.workspace-signed-in .topbar-range .month-select,
body.workspace-signed-in .topbar-range .period-select {
  min-height: 36px;
}

body.workspace-signed-in .topbar-row-range {
  margin-top: 0;
}

body.workspace-signed-in .range-summary-card {
  min-height: 78px;
  padding: 0.68rem 0.78rem 0.72rem;
}

body.workspace-signed-in .range-summary-kicker {
  margin-bottom: 0.28rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

body.workspace-signed-in .range-summary-card strong {
  font-size: 0.95rem;
}

body.workspace-signed-in .range-summary-card p {
  margin-top: 0.28rem;
  font-size: 0.77rem;
  line-height: 1.32;
}

body.workspace-signed-in.topbar-condensed .topbar {
  margin-bottom: clamp(-1.5rem, -2vw, -1rem);
}

@media (max-width: 760px) {
  body.workspace-signed-in .topbar {
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
    margin-bottom: 0.24rem;
  }

  body.workspace-signed-in.topbar-condensed .topbar {
    margin-bottom: -0.36rem;
  }
}

/* Final upload motion connector cleanup */

.upload-motion-scene {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "cloud cloud"
    "receipt processing"
    ". ledger";
  gap: 1rem;
  min-height: 292px;
  align-items: start;
}

.upload-motion-scene::before {
  display: none;
}

.upload-motion-scene::after {
  content: "";
  position: absolute;
  left: 29%;
  right: 23%;
  top: 56.5%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03),
    var(--motion-ring),
    rgba(255, 255, 255, 0.03)
  );
  opacity: 0.95;
  pointer-events: none;
}

.motion-cloud {
  grid-area: cloud;
  justify-self: center;
  min-height: auto;
  margin-bottom: 0.2rem;
}

.motion-cloud::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% - 0.1rem);
  width: 2px;
  height: 3.45rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    var(--motion-ring) 45%,
    rgba(255, 255, 255, 0.03)
  );
  opacity: 0.95;
}

.motion-receipt,
.motion-processing,
.motion-ledger {
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: none;
}

.motion-receipt {
  grid-area: receipt;
  align-self: center;
}

.motion-processing {
  grid-area: processing;
  align-self: center;
  margin-left: 0;
}

.motion-processing::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% - 0.1rem);
  width: 2px;
  height: 1.9rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--motion-ring),
    rgba(255, 255, 255, 0.03)
  );
  opacity: 0.95;
}

.motion-ledger {
  grid-area: ledger;
  justify-self: stretch;
  align-self: start;
}

.motion-ledger::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% - 0.1rem);
  width: 2px;
  height: 1.9rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    var(--motion-ring)
  );
  opacity: 0.95;
}

@media (max-width: 900px) {
  .upload-motion-scene {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cloud"
      "processing"
      "receipt"
      "ledger";
    min-height: auto;
  }

  .upload-motion-scene::after,
  .motion-cloud::after,
  .motion-processing::after,
  .motion-ledger::before {
    display: none;
  }
}

/* Final upload motion scene reset */

.upload-motion-scene {
  grid-template-columns: minmax(0, 1fr) 4.5rem minmax(0, 1fr);
  grid-template-areas:
    "cloud cloud cloud"
    "receipt . processing"
    ". . ledger";
  gap: 1rem 0.3rem;
  min-height: 18.25rem;
  align-items: start;
}

.upload-motion-scene::before,
.upload-motion-scene::after {
  display: none;
}

.motion-cloud,
.motion-receipt,
.motion-processing,
.motion-ledger {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  max-width: none;
}

.motion-cloud {
  grid-area: cloud;
  justify-self: center;
  margin-bottom: 0.15rem;
}

.motion-cloud::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% - 0.08rem);
  width: 2px;
  height: 3rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    var(--motion-ring) 45%,
    rgba(255, 255, 255, 0.03)
  );
  opacity: 0.95;
}

.motion-receipt {
  grid-area: receipt;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.82rem;
  align-self: start;
}

.motion-processing {
  grid-area: processing;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.82rem;
  align-self: center;
  margin-left: 0;
}

.motion-processing::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 4.5rem;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03),
    var(--motion-ring),
    rgba(255, 255, 255, 0.03)
  );
  opacity: 0.95;
}

.motion-processing::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% - 0.08rem);
  width: 2px;
  height: 1.9rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--motion-ring),
    rgba(255, 255, 255, 0.03)
  );
  opacity: 0.95;
}

.motion-ledger {
  grid-area: ledger;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.82rem;
  margin-top: 0.1rem;
}

.motion-orbit {
  display: none;
}

.upload-motion-scene[data-phase="uploading"] .motion-receipt,
.upload-motion-scene[data-phase="processing"] .motion-receipt {
  transform: none;
  opacity: 1;
}

.upload-motion-scene[data-phase="success"] .motion-receipt {
  transform: none;
  opacity: 1;
}

.motion-receipt-copy,
.motion-processing-copy,
.motion-ledger-copy {
  min-width: 0;
  width: 100%;
}

.motion-receipt-copy strong,
.motion-processing-copy strong,
.motion-ledger-copy strong,
.motion-receipt-copy span,
.motion-processing-copy span,
.motion-ledger-copy span {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.motion-receipt-mark,
.motion-processing-core,
.motion-ledger-ring {
  flex-shrink: 0;
}

.motion-receipt-copy strong,
.motion-processing-copy strong,
.motion-ledger-copy strong {
  display: block;
  line-height: 1.32;
}

.motion-receipt-copy span,
.motion-processing-copy span,
.motion-ledger-copy span {
  display: block;
  line-height: 1.52;
}

.table-wrap th:last-child,
.table-wrap td:last-child {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.receipt-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.receipt-rename-button {
  min-width: 6.8rem;
  justify-content: center;
  border-color: rgba(125, 231, 255, 0.22);
  color: #d7f6ff;
  background: rgba(255, 255, 255, 0.03);
}

.receipt-rename-button:hover {
  border-color: rgba(125, 231, 255, 0.44);
  box-shadow:
    0 14px 28px rgba(10, 1, 14, 0.18),
    0 0 24px rgba(125, 231, 255, 0.12);
}

.receipt-delete-button {
  min-width: 6.2rem;
  justify-content: center;
  border-color: rgba(255, 124, 112, 0.22);
  color: #ffd7cf;
  background: rgba(255, 255, 255, 0.03);
}

.receipt-delete-button:hover {
  border-color: rgba(255, 150, 132, 0.42);
  box-shadow:
    0 14px 28px rgba(10, 1, 14, 0.2),
    0 0 24px rgba(255, 124, 112, 0.14);
}

.spotlight-delete-button {
  min-width: 11.5rem;
  justify-content: center;
  border-color: rgba(255, 128, 116, 0.24);
  color: #ffdacf;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
}

.spotlight-rename-button {
  min-width: 10.6rem;
}

.spotlight-delete-button:hover {
  border-color: rgba(255, 154, 136, 0.44);
  box-shadow:
    0 16px 30px rgba(13, 4, 16, 0.22),
    0 0 28px rgba(255, 124, 112, 0.16);
}

@media (max-width: 900px) {
  .upload-motion-scene {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cloud"
      "receipt"
      "processing"
      "ledger";
    gap: 0.9rem;
    min-height: auto;
  }

  .motion-cloud,
  .motion-receipt,
  .motion-processing,
  .motion-ledger {
    justify-self: stretch;
  }

  .motion-cloud::after,
  .motion-processing::before,
  .motion-processing::after {
    display: none;
  }

  .upload-motion-scene[data-phase="uploading"] .motion-receipt,
  .upload-motion-scene[data-phase="processing"] .motion-receipt,
  .upload-motion-scene[data-phase="success"] .motion-receipt {
    transform: none;
    opacity: 1;
  }
}

/* Final auth/header polish */

body.workspace-signed-in .topbar {
  gap: 0.26rem;
  margin-bottom: 0.22rem;
  padding: 0.38rem clamp(0.8rem, 2.2vw, 1.35rem) 0.4rem;
  border-radius: 24px;
}

body.workspace-signed-in .topbar-row {
  gap: 0.4rem 0.7rem;
}

body.workspace-signed-in .topbar-row-main {
  align-items: center;
}

body.workspace-signed-in .brand-mark {
  padding: 0.54rem 0.82rem;
  font-size: clamp(0.82rem, 0.94vw, 0.98rem);
  letter-spacing: 0.2em;
}

body.workspace-signed-in .topbar-actions {
  gap: 0.42rem;
  max-width: none;
}

body.workspace-signed-in .status-pill,
body.workspace-signed-in .ghost-link,
body.workspace-signed-in .ghost-button,
body.workspace-signed-in .topbar-primary-button {
  min-height: 34px;
  padding: 0.42rem 0.72rem;
  font-size: 0.88rem;
}

body.workspace-signed-in .status-note {
  max-width: 16ch;
  font-size: 0.8rem;
  line-height: 1.18;
}

body.workspace-signed-in .auth-summary-pill {
  max-width: min(14rem, 36vw);
}

body.workspace-signed-in .topbar-range .select-shell span {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}

body.workspace-signed-in .topbar-range .month-select,
body.workspace-signed-in .topbar-range .period-select {
  min-height: 34px;
  padding-top: 1.2rem;
}

body.workspace-signed-in.topbar-condensed .topbar {
  margin-bottom: clamp(-1.05rem, -1.5vw, -0.72rem);
}

@media (max-width: 1040px) {
  body.workspace-signed-in .status-note {
    display: none;
  }
}

@media (max-width: 760px) {
  body.workspace-signed-in .topbar {
    padding: 0.34rem 0.62rem 0.36rem;
    margin-bottom: 0.18rem;
  }

  body.workspace-signed-in .brand-mark {
    padding: 0.48rem 0.68rem;
    font-size: 0.78rem;
  }

  body.workspace-signed-in .topbar-actions {
    gap: 0.32rem;
  }

  body.workspace-signed-in .status-pill,
  body.workspace-signed-in .ghost-link,
  body.workspace-signed-in .ghost-button,
  body.workspace-signed-in .topbar-primary-button {
    min-height: 32px;
    padding: 0.38rem 0.62rem;
    font-size: 0.82rem;
  }

  body.workspace-signed-in.topbar-condensed .topbar {
    margin-bottom: -0.2rem;
  }
}

.brand-logo {
  display: block;
  width: clamp(10.8rem, 13.8vw, 13.6rem);
  height: auto;
}

.theme-toggle {
  min-width: 6.9rem;
  justify-content: center;
}

body.workspace-signed-in .brand-mark {
  padding: 0.46rem 0.72rem;
}

body.workspace-signed-in .brand-logo {
  width: clamp(9.2rem, 11.4vw, 11.6rem);
}

html[data-ui-theme="light"] {
  color-scheme: light;
  --text: #0d2237;
  --muted: #5c7287;
  --panel-border: rgba(76, 117, 158, 0.18);
  --accent-soft: rgba(68, 187, 214, 0.12);
  --shadow: 0 24px 58px rgba(47, 87, 127, 0.14);
}

html[data-ui-theme="light"] body,
html[data-ui-theme="light"] body.auth-page {
  background:
    radial-gradient(circle at top left, rgba(106, 197, 255, 0.22), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(124, 228, 215, 0.18), transparent 24%),
    linear-gradient(180deg, #eef7ff 0%, #e4f1fb 42%, #dcebf7 100%);
  color: var(--text);
}

html[data-ui-theme="light"] .grid-sheen {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(67, 111, 153, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 111, 153, 0.1) 1px, transparent 1px);
}

html[data-ui-theme="light"] .panel,
html[data-ui-theme="light"] .glass-card,
html[data-ui-theme="light"] .chart-row,
html[data-ui-theme="light"] .vendor-row,
html[data-ui-theme="light"] .queue-item,
html[data-ui-theme="light"] .workflow-node,
html[data-ui-theme="light"] .timeline-step,
html[data-ui-theme="light"] .legend-row,
html[data-ui-theme="light"] .history-item,
html[data-ui-theme="light"] .history-drawer,
html[data-ui-theme="light"] .confirm-modal,
html[data-ui-theme="light"] .rename-modal,
html[data-ui-theme="light"] .duplicate-decision-modal,
html[data-ui-theme="light"] .upload-status-card,
html[data-ui-theme="light"] .spotlight-panel,
html[data-ui-theme="light"] .auth-info-card,
html[data-ui-theme="light"] .auth-panel,
html[data-ui-theme="light"] .auth-stage {
  border-color: rgba(90, 131, 171, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(235, 244, 252, 0.94)),
    radial-gradient(circle at 20% 10%, rgba(120, 220, 240, 0.1), transparent 38%);
  box-shadow: 0 20px 52px rgba(66, 97, 137, 0.12);
}

html[data-ui-theme="light"] .topbar {
  border-color: rgba(89, 130, 170, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(237, 245, 252, 0.9)),
    radial-gradient(circle at 12% 16%, rgba(133, 238, 255, 0.12), transparent 28%);
  box-shadow: 0 18px 42px rgba(62, 95, 138, 0.1);
}

html[data-ui-theme="light"] .status-pill,
html[data-ui-theme="light"] .ghost-link,
html[data-ui-theme="light"] .filter-chip,
html[data-ui-theme="light"] .status-tag {
  border-color: rgba(88, 131, 170, 0.16);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(76, 114, 154, 0.08);
}

html[data-ui-theme="light"] .status-note,
html[data-ui-theme="light"] .topbar-text,
html[data-ui-theme="light"] .auth-lead,
html[data-ui-theme="light"] .hero-text,
html[data-ui-theme="light"] .duplicate-decision-body,
html[data-ui-theme="light"] .duplicate-decision-note {
  color: var(--muted);
}

html[data-ui-theme="light"] .dropzone,
html[data-ui-theme="light"] .text-input,
html[data-ui-theme="light"] .month-select,
html[data-ui-theme="light"] .period-select,
html[data-ui-theme="light"] .chart-select-shell .month-select {
  border-color: rgba(91, 132, 171, 0.2);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

html[data-ui-theme="light"] .dropzone::before {
  opacity: 0.18;
}

html[data-ui-theme="light"] .text-input::placeholder {
  color: rgba(88, 112, 136, 0.76);
}

html[data-ui-theme="light"] .text-input:focus,
html[data-ui-theme="light"] .month-select:focus,
html[data-ui-theme="light"] .period-select:focus {
  border-color: rgba(35, 154, 188, 0.48);
  box-shadow:
    0 0 0 3px rgba(83, 209, 231, 0.16),
    0 14px 32px rgba(76, 114, 154, 0.1);
}

html[data-ui-theme="light"] .topbar-pills span,
html[data-ui-theme="light"] .receipt-mini-pill {
  border-color: rgba(88, 131, 170, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

html[data-ui-theme="light"] .range-summary-card,
html[data-ui-theme="light"] .select-shell {
  color: var(--text);
}

html[data-ui-theme="light"] .range-summary-card p,
html[data-ui-theme="light"] .range-summary-kicker {
  color: var(--muted);
}

html[data-ui-theme="light"] .table-panel table,
html[data-ui-theme="light"] .table-panel th,
html[data-ui-theme="light"] .table-panel td {
  color: var(--text);
}

html[data-ui-theme="light"] .confirm-modal p,
html[data-ui-theme="light"] .rename-note,
html[data-ui-theme="light"] .history-copy,
html[data-ui-theme="light"] .history-field span {
  color: var(--muted);
}

@media (max-width: 760px) {
  .brand-logo {
    width: clamp(8.9rem, 38vw, 11.2rem);
  }

  body.workspace-signed-in .brand-logo {
    width: clamp(8rem, 35vw, 10rem);
  }

  .theme-toggle {
    min-width: 6.2rem;
  }
}

/* Brand scale refresh and startup animation */

.brand-mark-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: clamp(12.4rem, 16.8vw, 16.6rem);
  height: auto;
}

body.workspace-signed-in .brand-mark {
  padding: 0.36rem 0.66rem;
}

body.workspace-signed-in .brand-logo {
  width: clamp(10.8rem, 13vw, 13.3rem);
}

.brand-launch {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(118, 239, 255, 0.18), transparent 34%),
    radial-gradient(circle at 82% 22%, rgba(99, 154, 255, 0.2), transparent 36%),
    linear-gradient(160deg, rgba(5, 16, 30, 0.94), rgba(3, 12, 24, 0.92));
  backdrop-filter: blur(6px);
}

.brand-launch-grid {
  position: absolute;
  inset: -10%;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(138, 223, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 223, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: perspective(620px) rotateX(58deg) translateY(34%);
  transform-origin: center top;
}

.brand-launch-card {
  position: relative;
  min-width: min(84vw, 34rem);
  padding: 1.4rem clamp(1.2rem, 2.6vw, 2.1rem) 1.18rem;
  border-radius: 24px;
  border: 1px solid rgba(131, 240, 255, 0.24);
  background:
    radial-gradient(circle at 12% 14%, rgba(129, 240, 255, 0.14), transparent 46%),
    linear-gradient(170deg, rgba(7, 22, 41, 0.94), rgba(4, 12, 24, 0.9));
  box-shadow:
    0 34px 62px rgba(1, 8, 19, 0.44),
    0 0 0 1px rgba(127, 237, 255, 0.05) inset,
    0 0 38px rgba(103, 205, 255, 0.14);
  display: grid;
  justify-items: center;
  gap: 0.66rem;
  transform: translateY(26px) scale(0.94);
  opacity: 0;
}

.brand-launch-mark-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.24rem;
  height: 3.24rem;
  border-radius: 1.02rem;
  border: 1px solid rgba(134, 241, 255, 0.32);
  background:
    radial-gradient(circle at 28% 26%, rgba(139, 245, 255, 0.24), transparent 62%),
    rgba(6, 18, 34, 0.66);
  box-shadow: 0 0 34px rgba(111, 218, 255, 0.2);
}

.brand-launch-mark {
  width: 2.16rem;
  height: 2.16rem;
}

.brand-launch-logo {
  width: clamp(15.3rem, 42vw, 20.4rem);
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(94, 192, 255, 0.18));
}

.brand-launch-copy {
  margin: 0;
  font-size: clamp(0.78rem, 1.7vw, 0.93rem);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(197, 229, 247, 0.9);
  text-align: center;
}

.brand-launch-progress {
  position: relative;
  display: block;
  width: min(22rem, 72vw);
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(122, 214, 255, 0.16);
}

.brand-launch-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(132, 255, 236, 0.75), rgba(112, 167, 255, 0.9));
  animation: brandLaunchSweep 1.35s cubic-bezier(0.33, 1, 0.68, 1) both;
}

.brand-launch--visible {
  opacity: 1;
  animation: brandLaunchFadeIn 260ms ease-out both;
}

.brand-launch--visible .brand-launch-card {
  animation: brandLaunchCardIn 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-launch--exit {
  animation: brandLaunchFadeOut 720ms ease-in forwards;
}

.brand-launch--exit .brand-launch-card {
  animation: brandLaunchCardOut 640ms cubic-bezier(0.34, 1, 0.64, 1) forwards;
}

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

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

@keyframes brandLaunchCardIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes brandLaunchCardOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-24px) scale(0.97);
  }
}

@keyframes brandLaunchSweep {
  from {
    transform: scaleX(0);
    opacity: 0.44;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

html[data-ui-theme="light"] .brand-launch {
  background:
    radial-gradient(circle at 18% 16%, rgba(64, 193, 229, 0.16), transparent 36%),
    radial-gradient(circle at 78% 20%, rgba(96, 154, 255, 0.14), transparent 34%),
    linear-gradient(160deg, rgba(233, 246, 255, 0.94), rgba(219, 237, 251, 0.92));
}

html[data-ui-theme="light"] .brand-launch-card {
  border-color: rgba(75, 166, 206, 0.28);
  background:
    radial-gradient(circle at 20% 18%, rgba(117, 224, 240, 0.18), transparent 44%),
    linear-gradient(170deg, rgba(251, 254, 255, 0.95), rgba(231, 243, 253, 0.92));
  box-shadow:
    0 34px 62px rgba(60, 96, 130, 0.18),
    0 0 0 1px rgba(106, 188, 223, 0.12) inset;
}

html[data-ui-theme="light"] .brand-launch-mark-shell {
  border-color: rgba(73, 166, 205, 0.32);
  background:
    radial-gradient(circle at 28% 26%, rgba(105, 222, 240, 0.24), transparent 62%),
    rgba(234, 246, 255, 0.86);
}

html[data-ui-theme="light"] .brand-launch-copy {
  color: rgba(23, 60, 88, 0.86);
}

html[data-ui-theme="light"] .brand-launch-progress {
  background: rgba(81, 163, 206, 0.18);
}

@media (max-width: 760px) {
  .brand-logo {
    width: clamp(10.5rem, 46vw, 13.4rem);
  }

  body.workspace-signed-in .brand-logo {
    width: clamp(9.3rem, 42vw, 11.2rem);
  }

  .brand-launch-card {
    min-width: min(90vw, 28rem);
    padding: 1.14rem 1rem 1.02rem;
    border-radius: 20px;
    gap: 0.58rem;
  }

  .brand-launch-logo {
    width: clamp(12.8rem, 62vw, 17rem);
  }

  .brand-launch-copy {
    letter-spacing: 0.11em;
    font-size: 0.74rem;
  }
}

/* Theme 2.0: strong dark look + fully bright light mode */

html[data-ui-theme="dark"] {
  color-scheme: dark;
  --text: #e6f4ff;
  --muted: #8dacbf;
  --panel-border: rgba(110, 226, 255, 0.22);
  --accent-soft: rgba(103, 217, 255, 0.14);
}

html[data-ui-theme="dark"] body,
html[data-ui-theme="dark"] body.auth-page {
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(93, 240, 220, 0.16), transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(83, 146, 255, 0.2), transparent 28%),
    radial-gradient(circle at 52% 112%, rgba(43, 96, 176, 0.3), transparent 38%),
    linear-gradient(165deg, #031021 0%, #061326 38%, #081933 100%);
}

html[data-ui-theme="dark"] .topbar {
  border-color: rgba(103, 210, 247, 0.28);
  background:
    radial-gradient(circle at 12% 16%, rgba(110, 246, 239, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(7, 26, 45, 0.94), rgba(4, 17, 32, 0.9));
  box-shadow:
    0 20px 48px rgba(2, 11, 23, 0.38),
    0 0 0 1px rgba(103, 210, 247, 0.08) inset;
}

html[data-ui-theme="dark"] .panel,
html[data-ui-theme="dark"] .glass-card,
html[data-ui-theme="dark"] .auth-stage,
html[data-ui-theme="dark"] .auth-panel,
html[data-ui-theme="dark"] .auth-info-card,
html[data-ui-theme="dark"] .upload-status-card,
html[data-ui-theme="dark"] .history-drawer,
html[data-ui-theme="dark"] .history-item,
html[data-ui-theme="dark"] .confirm-modal,
html[data-ui-theme="dark"] .rename-modal,
html[data-ui-theme="dark"] .duplicate-decision-modal,
html[data-ui-theme="dark"] .queue-item,
html[data-ui-theme="dark"] .vendor-row,
html[data-ui-theme="dark"] .workflow-node,
html[data-ui-theme="dark"] .timeline-step,
html[data-ui-theme="dark"] .table-panel,
html[data-ui-theme="dark"] .range-summary-card,
html[data-ui-theme="dark"] .chart-row {
  border-color: rgba(101, 217, 255, 0.22);
  background:
    radial-gradient(circle at 14% 0%, rgba(101, 217, 255, 0.08), transparent 34%),
    linear-gradient(185deg, rgba(9, 30, 50, 0.94), rgba(6, 20, 37, 0.9));
  box-shadow: 0 18px 44px rgba(2, 9, 18, 0.28);
}

html[data-ui-theme="dark"] .status-pill,
html[data-ui-theme="dark"] .ghost-link,
html[data-ui-theme="dark"] .ghost-button,
html[data-ui-theme="dark"] .filter-chip,
html[data-ui-theme="dark"] .status-tag,
html[data-ui-theme="dark"] .topbar-pills span {
  color: #e5f6ff;
  border-color: rgba(103, 210, 247, 0.24);
  background: linear-gradient(180deg, rgba(20, 49, 79, 0.9), rgba(12, 31, 53, 0.86));
}

html[data-ui-theme="dark"] .primary-button,
html[data-ui-theme="dark"] .topbar-primary-button {
  color: #031625;
  border-color: rgba(167, 247, 255, 0.52);
  background: linear-gradient(120deg, #73e7dc, #6ec0ff 56%, #8eb2ff);
  box-shadow:
    0 18px 32px rgba(32, 118, 171, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

html[data-ui-theme="dark"] .secondary-button {
  color: #d6f2ff;
  border-color: rgba(111, 217, 255, 0.32);
  background: linear-gradient(170deg, rgba(24, 58, 89, 0.88), rgba(16, 40, 64, 0.84));
}

html[data-ui-theme="dark"] .text-input,
html[data-ui-theme="dark"] .month-select,
html[data-ui-theme="dark"] .period-select,
html[data-ui-theme="dark"] .dropzone {
  color: #e2f1ff;
  border-color: rgba(98, 207, 248, 0.28);
  background:
    linear-gradient(180deg, rgba(12, 34, 56, 0.88), rgba(9, 27, 47, 0.9)),
    rgba(8, 22, 39, 0.88);
}

html[data-ui-theme="dark"] .text-input::placeholder {
  color: rgba(157, 193, 219, 0.72);
}

html[data-ui-theme="light"] {
  color-scheme: light;
  --text: #10263d;
  --muted: #5a748d;
  --panel-border: rgba(105, 147, 186, 0.2);
  --accent-soft: rgba(95, 182, 224, 0.14);
}

html[data-ui-theme="light"] body,
html[data-ui-theme="light"] body.auth-page {
  color: var(--text);
  background:
    radial-gradient(circle at 8% 10%, rgba(123, 224, 242, 0.22), transparent 30%),
    radial-gradient(circle at 88% 6%, rgba(130, 177, 255, 0.18), transparent 30%),
    radial-gradient(circle at 75% 84%, rgba(255, 218, 196, 0.22), transparent 28%),
    linear-gradient(180deg, #f7fcff 0%, #eff7ff 44%, #eaf3fd 100%);
}

html[data-ui-theme="light"] .topbar {
  border-color: rgba(98, 145, 184, 0.2);
  background:
    radial-gradient(circle at 14% 0%, rgba(110, 216, 235, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 250, 255, 0.94));
  box-shadow:
    0 20px 44px rgba(73, 111, 149, 0.14),
    0 0 0 1px rgba(123, 175, 211, 0.14) inset;
}

html[data-ui-theme="light"] .panel,
html[data-ui-theme="light"] .glass-card,
html[data-ui-theme="light"] .auth-stage,
html[data-ui-theme="light"] .auth-panel,
html[data-ui-theme="light"] .auth-info-card,
html[data-ui-theme="light"] .upload-status-card,
html[data-ui-theme="light"] .history-drawer,
html[data-ui-theme="light"] .history-item,
html[data-ui-theme="light"] .confirm-modal,
html[data-ui-theme="light"] .rename-modal,
html[data-ui-theme="light"] .duplicate-decision-modal,
html[data-ui-theme="light"] .queue-item,
html[data-ui-theme="light"] .vendor-row,
html[data-ui-theme="light"] .workflow-node,
html[data-ui-theme="light"] .timeline-step,
html[data-ui-theme="light"] .table-panel,
html[data-ui-theme="light"] .range-summary-card,
html[data-ui-theme="light"] .chart-row {
  color: #10263d;
  border-color: rgba(106, 151, 191, 0.22);
  background:
    radial-gradient(circle at 18% 0%, rgba(130, 228, 243, 0.16), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f5faff 100%) !important;
  box-shadow:
    0 16px 34px rgba(92, 128, 165, 0.14),
    0 0 0 1px rgba(150, 194, 224, 0.16) inset;
}

html[data-ui-theme="light"] .panel h1,
html[data-ui-theme="light"] .panel h2,
html[data-ui-theme="light"] .panel h3,
html[data-ui-theme="light"] .glass-card strong,
html[data-ui-theme="light"] .history-item strong,
html[data-ui-theme="light"] .queue-item strong,
html[data-ui-theme="light"] .table-panel th,
html[data-ui-theme="light"] .table-panel td {
  color: #10263d;
}

html[data-ui-theme="light"] .status-note,
html[data-ui-theme="light"] .topbar-text,
html[data-ui-theme="light"] .hero-text,
html[data-ui-theme="light"] .auth-lead,
html[data-ui-theme="light"] .history-copy,
html[data-ui-theme="light"] .rename-note,
html[data-ui-theme="light"] .duplicate-decision-note,
html[data-ui-theme="light"] .duplicate-decision-body,
html[data-ui-theme="light"] .preview-empty p {
  color: #5a748d;
}

html[data-ui-theme="light"] .status-pill,
html[data-ui-theme="light"] .ghost-link,
html[data-ui-theme="light"] .ghost-button,
html[data-ui-theme="light"] .filter-chip,
html[data-ui-theme="light"] .status-tag,
html[data-ui-theme="light"] .topbar-pills span,
html[data-ui-theme="light"] .receipt-mini-pill {
  color: #16344e;
  border-color: rgba(104, 152, 193, 0.24);
  background: linear-gradient(180deg, #ffffff, #f2f8ff);
  box-shadow: 0 9px 22px rgba(89, 127, 166, 0.12);
}

html[data-ui-theme="light"] .primary-button,
html[data-ui-theme="light"] .topbar-primary-button {
  color: #04233a;
  border-color: rgba(116, 189, 223, 0.44);
  background: linear-gradient(120deg, #7ce6dc, #85c8ff 56%, #91a9ff);
  box-shadow:
    0 16px 28px rgba(104, 165, 206, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

html[data-ui-theme="light"] .secondary-button {
  color: #14334c;
  border-color: rgba(114, 167, 203, 0.28);
  background: linear-gradient(180deg, #ffffff, #edf5ff);
}

html[data-ui-theme="light"] .text-input,
html[data-ui-theme="light"] .month-select,
html[data-ui-theme="light"] .period-select,
html[data-ui-theme="light"] .dropzone,
html[data-ui-theme="light"] .select-shell {
  color: #0f2a43;
  border-color: rgba(109, 158, 197, 0.24);
  background: linear-gradient(180deg, #ffffff, #f5faff) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 8px 18px rgba(105, 146, 184, 0.1);
}

html[data-ui-theme="light"] .text-input::placeholder {
  color: rgba(81, 112, 139, 0.72);
}

html[data-ui-theme="light"] .text-input:focus,
html[data-ui-theme="light"] .month-select:focus,
html[data-ui-theme="light"] .period-select:focus {
  border-color: rgba(62, 167, 208, 0.46);
  box-shadow:
    0 0 0 3px rgba(108, 211, 236, 0.18),
    0 14px 28px rgba(93, 132, 171, 0.16);
}

html[data-ui-theme="light"] .grid-sheen {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(89, 133, 173, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 133, 173, 0.09) 1px, transparent 1px);
}

html[data-ui-theme="light"] .table-panel tbody tr:nth-child(odd) {
  background: rgba(232, 244, 255, 0.5);
}

html[data-ui-theme="light"] .table-panel tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.78);
}

html[data-ui-theme="light"] .duplicate-decision-modal {
  border-color: rgba(98, 154, 198, 0.24);
  background:
    radial-gradient(circle at 18% 0%, rgba(140, 232, 246, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff, #f6fbff) !important;
}

html[data-ui-theme="light"] .duplicate-decision-aura {
  opacity: 0.34;
}

html[data-ui-theme="light"] .upload-motion-scene {
  border-color: rgba(108, 159, 198, 0.22);
  background:
    radial-gradient(circle at 80% 10%, rgba(136, 227, 240, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(251, 255, 255, 0.92), rgba(242, 249, 255, 0.95));
}

/* Demon Slayer cinematic takeover */

:root {
  --nichirin-ember: #ff7c4d;
  --nichirin-crimson: #f83f5a;
  --nichirin-mist: #6ce0ff;
  --nichirin-ink: #080a12;
  --nichirin-parchment: #fff6e8;
  --nichirin-sand: #ffe8cc;
}

@keyframes demonNightSky {
  0% {
    background-position:
      0% 0%,
      100% 0%,
      50% 100%,
      0% 0%;
  }
  100% {
    background-position:
      16% -10%,
      82% 6%,
      45% 84%,
      0% 0%;
  }
}

@keyframes demonDawnSky {
  0% {
    background-position:
      0% 0%,
      100% 0%,
      85% 90%,
      0% 0%;
  }
  100% {
    background-position:
      12% 8%,
      86% -6%,
      72% 78%,
      0% 0%;
  }
}

@keyframes hashiraGlow {
  0%,
  100% {
    box-shadow:
      0 16px 38px rgba(6, 10, 20, 0.38),
      0 0 0 1px rgba(255, 145, 112, 0.1) inset;
  }
  50% {
    box-shadow:
      0 20px 42px rgba(8, 15, 29, 0.44),
      0 0 0 1px rgba(108, 224, 255, 0.16) inset;
  }
}

@keyframes flameBlade {
  0% {
    background-position: 0% 50%;
    filter: saturate(1);
  }
  50% {
    background-position: 100% 50%;
    filter: saturate(1.16);
  }
  100% {
    background-position: 0% 50%;
    filter: saturate(1);
  }
}

@keyframes mistBreath {
  0%,
  100% {
    transform: translateX(0) scaleX(1);
    opacity: 0.26;
  }
  50% {
    transform: translateX(8px) scaleX(1.07);
    opacity: 0.42;
  }
}

@keyframes slashSweep {
  0% {
    transform: translateX(-120%) rotate(-6deg);
    opacity: 0;
  }
  26% {
    opacity: 0.85;
  }
  56% {
    opacity: 0.9;
  }
  100% {
    transform: translateX(126%) rotate(-6deg);
    opacity: 0;
  }
}

html[data-ui-theme="dark"] body,
html[data-ui-theme="dark"] body.auth-page {
  color: #f2f6ff;
  background:
    radial-gradient(circle at 11% 10%, rgba(255, 124, 77, 0.2), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(108, 224, 255, 0.2), transparent 30%),
    radial-gradient(circle at 58% 112%, rgba(77, 32, 52, 0.38), transparent 44%),
    linear-gradient(158deg, #05060d 0%, #0b0d18 44%, #110c17 100%);
  animation: demonNightSky 24s ease-in-out infinite alternate;
}

html[data-ui-theme="dark"] .topbar,
html[data-ui-theme="dark"] .panel,
html[data-ui-theme="dark"] .glass-card,
html[data-ui-theme="dark"] .auth-stage,
html[data-ui-theme="dark"] .auth-panel,
html[data-ui-theme="dark"] .auth-info-card,
html[data-ui-theme="dark"] .upload-status-card,
html[data-ui-theme="dark"] .history-drawer,
html[data-ui-theme="dark"] .history-item,
html[data-ui-theme="dark"] .confirm-modal,
html[data-ui-theme="dark"] .rename-modal,
html[data-ui-theme="dark"] .duplicate-decision-modal,
html[data-ui-theme="dark"] .workflow-node,
html[data-ui-theme="dark"] .timeline-step,
html[data-ui-theme="dark"] .chart-row,
html[data-ui-theme="dark"] .queue-item,
html[data-ui-theme="dark"] .table-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 120, 95, 0.28) !important;
  background:
    radial-gradient(circle at 88% 0%, rgba(108, 224, 255, 0.08), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(248, 63, 90, 0.11), transparent 36%),
    linear-gradient(170deg, rgba(16, 14, 23, 0.95), rgba(10, 11, 19, 0.92)) !important;
  box-shadow:
    0 18px 38px rgba(4, 8, 16, 0.4),
    0 0 0 1px rgba(255, 129, 101, 0.1) inset !important;
  animation: hashiraGlow 8.6s ease-in-out infinite;
}

html[data-ui-theme="dark"] .topbar::after,
html[data-ui-theme="dark"] .panel::after,
html[data-ui-theme="dark"] .glass-card::after,
html[data-ui-theme="dark"] .auth-stage::after,
html[data-ui-theme="dark"] .auth-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(108deg, transparent 0%, rgba(108, 224, 255, 0.06) 36%, transparent 64%),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 123, 87, 0.03) 0px,
      rgba(255, 123, 87, 0.03) 7px,
      transparent 7px,
      transparent 16px
    );
  mix-blend-mode: screen;
  opacity: 0.65;
  animation: mistBreath 10s ease-in-out infinite;
}

html[data-ui-theme="dark"] .status-pill,
html[data-ui-theme="dark"] .ghost-link,
html[data-ui-theme="dark"] .ghost-button,
html[data-ui-theme="dark"] .filter-chip,
html[data-ui-theme="dark"] .status-tag,
html[data-ui-theme="dark"] .topbar-pills span,
html[data-ui-theme="dark"] .receipt-mini-pill {
  color: #ffe9dd;
  border-color: rgba(255, 137, 105, 0.34);
  background:
    linear-gradient(130deg, rgba(68, 26, 33, 0.82), rgba(35, 28, 49, 0.8)) !important;
}

html[data-ui-theme="dark"] .primary-button,
html[data-ui-theme="dark"] .topbar-primary-button {
  color: #160706;
  border-color: rgba(255, 205, 163, 0.54);
  background: linear-gradient(118deg, #ffd49e, #ff8a61, #f43f67, #79d7ff);
  background-size: 200% 200%;
  box-shadow:
    0 16px 30px rgba(248, 63, 90, 0.34),
    0 0 0 1px rgba(255, 247, 224, 0.45) inset;
  animation: flameBlade 6s ease infinite;
}

html[data-ui-theme="dark"] .secondary-button {
  color: #ffe8d8;
  border-color: rgba(255, 141, 110, 0.4);
  background: linear-gradient(170deg, rgba(48, 24, 31, 0.88), rgba(31, 26, 42, 0.86));
}

html[data-ui-theme="dark"] .text-input,
html[data-ui-theme="dark"] .month-select,
html[data-ui-theme="dark"] .period-select,
html[data-ui-theme="dark"] .dropzone,
html[data-ui-theme="dark"] .select-shell {
  color: #f6ebdf;
  border-color: rgba(255, 136, 102, 0.3);
  background:
    linear-gradient(180deg, rgba(35, 25, 35, 0.86), rgba(25, 22, 36, 0.9)),
    rgba(20, 18, 30, 0.88) !important;
}

html[data-ui-theme="dark"] .text-input::placeholder {
  color: rgba(221, 184, 172, 0.72);
}

html[data-ui-theme="dark"] .topbar-text,
html[data-ui-theme="dark"] .status-note,
html[data-ui-theme="dark"] .hero-text,
html[data-ui-theme="dark"] .auth-lead,
html[data-ui-theme="dark"] .history-copy,
html[data-ui-theme="dark"] .duplicate-decision-body,
html[data-ui-theme="dark"] .duplicate-decision-note {
  color: #c9c4d4;
}

html[data-ui-theme="light"] body,
html[data-ui-theme="light"] body.auth-page {
  color: #2f1e1b;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 173, 133, 0.24), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(118, 224, 244, 0.2), transparent 28%),
    radial-gradient(circle at 78% 90%, rgba(255, 205, 170, 0.24), transparent 32%),
    linear-gradient(180deg, #fffdf7 0%, #fff5e8 44%, #ffeedb 100%);
  animation: demonDawnSky 22s ease-in-out infinite alternate;
}

html[data-ui-theme="light"] .topbar,
html[data-ui-theme="light"] .panel,
html[data-ui-theme="light"] .glass-card,
html[data-ui-theme="light"] .auth-stage,
html[data-ui-theme="light"] .auth-panel,
html[data-ui-theme="light"] .auth-info-card,
html[data-ui-theme="light"] .upload-status-card,
html[data-ui-theme="light"] .history-drawer,
html[data-ui-theme="light"] .history-item,
html[data-ui-theme="light"] .confirm-modal,
html[data-ui-theme="light"] .rename-modal,
html[data-ui-theme="light"] .duplicate-decision-modal,
html[data-ui-theme="light"] .workflow-node,
html[data-ui-theme="light"] .timeline-step,
html[data-ui-theme="light"] .chart-row,
html[data-ui-theme="light"] .queue-item,
html[data-ui-theme="light"] .table-panel {
  position: relative;
  overflow: hidden;
  color: #311f1a;
  border-color: rgba(218, 135, 94, 0.28) !important;
  background:
    radial-gradient(circle at 88% 0%, rgba(135, 230, 247, 0.17), transparent 32%),
    radial-gradient(circle at 10% 100%, rgba(255, 176, 135, 0.18), transparent 36%),
    linear-gradient(180deg, #fffdf8 0%, #fff6ea 100%) !important;
  box-shadow:
    0 14px 30px rgba(177, 124, 93, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.76) inset !important;
}

html[data-ui-theme="light"] .status-pill,
html[data-ui-theme="light"] .ghost-link,
html[data-ui-theme="light"] .ghost-button,
html[data-ui-theme="light"] .filter-chip,
html[data-ui-theme="light"] .status-tag,
html[data-ui-theme="light"] .topbar-pills span,
html[data-ui-theme="light"] .receipt-mini-pill {
  color: #5a271b;
  border-color: rgba(220, 142, 102, 0.3);
  background: linear-gradient(180deg, #fffdf6, #fff1df);
}

html[data-ui-theme="light"] .primary-button,
html[data-ui-theme="light"] .topbar-primary-button {
  color: #2e1510;
  border-color: rgba(255, 212, 170, 0.9);
  background: linear-gradient(118deg, #fff0d1, #ffc18b, #ff8765, #73d7f7);
  background-size: 200% 200%;
  box-shadow:
    0 13px 26px rgba(229, 139, 99, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  animation: flameBlade 6.8s ease infinite;
}

html[data-ui-theme="light"] .secondary-button {
  color: #213b4d;
  border-color: rgba(125, 186, 214, 0.4);
  background: linear-gradient(180deg, #f4fdff, #e9f6ff);
}

html[data-ui-theme="light"] .text-input,
html[data-ui-theme="light"] .month-select,
html[data-ui-theme="light"] .period-select,
html[data-ui-theme="light"] .dropzone,
html[data-ui-theme="light"] .select-shell {
  color: #3a221b;
  border-color: rgba(219, 152, 116, 0.32);
  background: linear-gradient(180deg, #fffef9, #fff6e8) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 18px rgba(187, 130, 95, 0.14);
}

html[data-ui-theme="light"] .text-input::placeholder {
  color: rgba(121, 77, 62, 0.6);
}

html[data-ui-theme="light"] .topbar-text,
html[data-ui-theme="light"] .status-note,
html[data-ui-theme="light"] .hero-text,
html[data-ui-theme="light"] .auth-lead,
html[data-ui-theme="light"] .history-copy,
html[data-ui-theme="light"] .duplicate-decision-body,
html[data-ui-theme="light"] .duplicate-decision-note {
  color: #805746;
}

html[data-ui-theme="light"] .grid-sheen {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(184, 135, 109, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(173, 137, 116, 0.1) 1px, transparent 1px);
}

.brand-launch {
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 129, 95, 0.24), transparent 30%),
    radial-gradient(circle at 84% 16%, rgba(105, 222, 255, 0.2), transparent 30%),
    linear-gradient(160deg, rgba(9, 10, 16, 0.96), rgba(17, 10, 18, 0.94));
}

.brand-launch-aura {
  position: absolute;
  inset: -12%;
  pointer-events: none;
  filter: blur(34px);
}

.brand-launch-aura--ember {
  background: radial-gradient(circle at 14% 36%, rgba(248, 63, 90, 0.34), transparent 42%);
  animation: mistBreath 7.5s ease-in-out infinite;
}

.brand-launch-aura--mist {
  background: radial-gradient(circle at 86% 20%, rgba(108, 224, 255, 0.32), transparent 42%);
  animation: mistBreath 8.2s ease-in-out infinite reverse;
}

.brand-launch-blade {
  position: absolute;
  top: 44%;
  left: -24%;
  width: 52%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 244, 214, 0.9), rgba(127, 228, 255, 0.9), transparent);
  box-shadow:
    0 0 18px rgba(255, 160, 126, 0.42),
    0 0 26px rgba(113, 218, 255, 0.34);
  transform: rotate(-6deg);
  animation: slashSweep 2.2s cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
}

.brand-launch-card {
  border-color: rgba(255, 134, 102, 0.34);
  background:
    radial-gradient(circle at 92% 0%, rgba(104, 224, 255, 0.16), transparent 34%),
    radial-gradient(circle at 4% 100%, rgba(248, 63, 90, 0.16), transparent 40%),
    linear-gradient(165deg, rgba(15, 12, 20, 0.95), rgba(10, 10, 17, 0.94));
}

.brand-launch-progress span {
  background: linear-gradient(90deg, rgba(255, 214, 171, 0.8), rgba(255, 129, 95, 0.92), rgba(108, 224, 255, 0.88));
}

html[data-ui-theme="light"] .brand-launch {
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 165, 126, 0.22), transparent 30%),
    radial-gradient(circle at 84% 16%, rgba(113, 226, 245, 0.18), transparent 30%),
    linear-gradient(160deg, rgba(255, 250, 241, 0.95), rgba(255, 242, 226, 0.93));
}

html[data-ui-theme="light"] .brand-launch-card {
  border-color: rgba(223, 140, 103, 0.36);
  background:
    radial-gradient(circle at 92% 0%, rgba(125, 228, 246, 0.2), transparent 34%),
    radial-gradient(circle at 4% 100%, rgba(255, 173, 133, 0.2), transparent 40%),
    linear-gradient(165deg, rgba(255, 255, 252, 0.96), rgba(255, 243, 228, 0.95));
}

html[data-ui-theme="light"] .brand-launch-copy {
  color: #764734;
}

/* Final structural anime-inspired overhaul */

body.slayer-ui {
  font-family: "Sora", "Segoe UI", Arial, sans-serif;
  position: relative;
  overflow-x: hidden;
}

body.slayer-ui h1,
body.slayer-ui h2,
body.slayer-ui h3,
body.slayer-ui .eyebrow,
body.slayer-ui .mini-label,
body.slayer-ui .brand-mark,
body.slayer-ui .status-pill {
  font-family: "Cormorant Garamond", Georgia, serif;
}

body.slayer-ui .eyebrow,
body.slayer-ui .mini-label {
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.slayer-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.slayer-stage-orb,
.slayer-stage-grid,
.slayer-stage-wave {
  position: absolute;
}

.slayer-stage-orb {
  filter: blur(48px);
  border-radius: 999px;
}

.slayer-stage-orb-ember {
  top: -6rem;
  left: -5rem;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(255, 123, 87, 0.28), transparent 64%);
  animation: mistBreath 12s ease-in-out infinite alternate;
}

.slayer-stage-orb-mist {
  top: 10%;
  right: -6rem;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(110, 229, 255, 0.22), transparent 66%);
  animation: mistBreath 13s ease-in-out infinite alternate-reverse;
}

.slayer-stage-grid {
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 86%);
}

.slayer-stage-wave {
  left: -8%;
  right: -8%;
  bottom: -8rem;
  height: 20rem;
  opacity: 0.28;
  background:
    radial-gradient(circle at 10% 48%, rgba(109, 226, 255, 0.22), transparent 18%),
    radial-gradient(circle at 30% 58%, rgba(109, 226, 255, 0.18), transparent 20%),
    radial-gradient(circle at 54% 44%, rgba(255, 123, 87, 0.18), transparent 18%),
    radial-gradient(circle at 74% 58%, rgba(109, 226, 255, 0.2), transparent 20%),
    radial-gradient(circle at 92% 42%, rgba(255, 123, 87, 0.16), transparent 17%);
  animation: mistBreath 14s ease-in-out infinite;
}

body.slayer-ui > *:not(.slayer-stage) {
  position: relative;
  z-index: 1;
}

body.slayer-ui .topbar {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  backdrop-filter: blur(16px);
}

body.slayer-ui .topbar::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 197, 144, 0.2), rgba(255, 123, 87, 0.88), rgba(109, 226, 255, 0.82), rgba(255, 197, 144, 0.2));
}

body.slayer-ui .topbar-row-main {
  align-items: center;
}

body.slayer-ui .brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

body.slayer-ui .brand-lockup::before {
  content: "";
  width: 2.8rem;
  height: 2.8rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 174, 144, 0.34);
  background:
    radial-gradient(circle at 34% 34%, rgba(255, 212, 166, 0.86), transparent 30%),
    conic-gradient(from 210deg, rgba(255, 123, 87, 0.9), rgba(109, 226, 255, 0.86), rgba(255, 123, 87, 0.9));
  box-shadow: 0 0 32px rgba(255, 123, 87, 0.2);
}

body.slayer-ui .brand-mark {
  position: relative;
  border-radius: 18px 36px 18px 36px;
  padding: 0.65rem 1.05rem;
  backdrop-filter: blur(10px);
}

body.slayer-ui .brand-logo {
  width: clamp(13.4rem, 18vw, 17.8rem);
}

body.slayer-ui.workspace-signed-in .brand-logo,
body.workspace-signed-in.slayer-ui .brand-logo {
  width: clamp(11.3rem, 14vw, 14rem);
}

body.slayer-ui .topbar-actions {
  gap: 0.52rem;
}

body.slayer-ui .ghost-link,
body.slayer-ui .ghost-button,
body.slayer-ui .status-pill,
body.slayer-ui .topbar-primary-button,
body.slayer-ui .primary-button,
body.slayer-ui .secondary-button {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0.01em;
}

body.slayer-ui .ghost-link::after,
body.slayer-ui .ghost-button::after,
body.slayer-ui .topbar-primary-button::after,
body.slayer-ui .primary-button::after,
body.slayer-ui .secondary-button::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -24%;
  width: 42%;
  height: 320%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: rotate(24deg);
  opacity: 0;
  transition: opacity 180ms ease;
}

body.slayer-ui .ghost-link:hover::after,
body.slayer-ui .ghost-button:hover::after,
body.slayer-ui .topbar-primary-button:hover::after,
body.slayer-ui .primary-button:hover::after,
body.slayer-ui .secondary-button:hover::after {
  opacity: 1;
  animation: slashSweep 800ms ease-out 1;
}

body.slayer-ui .auth-shell,
body.slayer-ui .control-grid,
body.slayer-ui .mission-grid {
  gap: clamp(1.2rem, 2vw, 1.8rem);
}

body.slayer-ui .auth-stage,
body.slayer-ui .auth-panel,
body.slayer-ui .hero,
body.slayer-ui .upload-lab,
body.slayer-ui .spotlight-panel,
body.slayer-ui .table-panel,
body.slayer-ui .history-drawer,
body.slayer-ui .confirm-modal,
body.slayer-ui .rename-modal,
body.slayer-ui .duplicate-decision-modal {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  backdrop-filter: blur(14px);
}

body.slayer-ui .auth-stage::before,
body.slayer-ui .auth-panel::before,
body.slayer-ui .hero::before,
body.slayer-ui .upload-lab::before,
body.slayer-ui .spotlight-panel::before,
body.slayer-ui .table-panel::before,
body.slayer-ui .history-drawer::before,
body.slayer-ui .confirm-modal::before,
body.slayer-ui .rename-modal::before,
body.slayer-ui .duplicate-decision-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 24%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.02) 0px,
      rgba(255, 255, 255, 0.02) 8px,
      transparent 8px,
      transparent 18px
    );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 92%);
}

body.slayer-ui .auth-stage {
  padding: clamp(1.8rem, 3vw, 2.4rem);
}

body.slayer-ui .auth-stage-copy h1,
body.slayer-ui .auth-panel-head h2,
body.slayer-ui .hero-copy h2,
body.slayer-ui .section-heading h3,
body.slayer-ui .spotlight-panel h3,
body.slayer-ui .confirm-modal h3,
body.slayer-ui .rename-modal h3,
body.slayer-ui .duplicate-decision-modal h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.96;
}

body.slayer-ui .auth-stage-copy h1 {
  font-size: clamp(3rem, 5.4vw, 5.6rem);
  max-width: 9.5ch;
}

body.slayer-ui .auth-panel-head h2,
body.slayer-ui .hero-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  max-width: 11ch;
}

body.slayer-ui .auth-lead,
body.slayer-ui .hero-text,
body.slayer-ui .topbar-text,
body.slayer-ui .history-copy {
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  line-height: 1.75;
}

body.slayer-ui .auth-highlight-grid,
body.slayer-ui .hero-grid,
body.slayer-ui .preview-meta {
  gap: 0.95rem;
}

body.slayer-ui .auth-info-card,
body.slayer-ui .glass-card,
body.slayer-ui .preview-stat {
  border-radius: 24px;
  padding: 1.05rem 1rem;
}

body.slayer-ui .auth-project-strip article,
body.slayer-ui .fun-tags span,
body.slayer-ui .topbar-pills span {
  border-radius: 999px;
  padding: 0.66rem 1rem;
}

body.slayer-ui .upload-form {
  gap: 1.15rem;
}

body.slayer-ui .dropzone {
  position: relative;
  border-width: 1px;
  border-style: solid;
  border-radius: 28px;
  padding: 1.45rem 1.35rem;
  overflow: hidden;
}

body.slayer-ui .dropzone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.08) 40%, transparent 72%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.03));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6));
}

body.slayer-ui .drop-kicker,
body.slayer-ui .drop-title {
  position: relative;
  z-index: 1;
}

body.slayer-ui .field-grid {
  gap: 0.95rem;
}

body.slayer-ui .field span {
  margin-bottom: 0.42rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.slayer-ui .text-input,
body.slayer-ui .month-select,
body.slayer-ui .period-select {
  min-height: 3.7rem;
  border-radius: 20px;
  padding-inline: 1rem;
}

body.slayer-ui .upload-status-card {
  padding: 1.1rem;
}

body.slayer-ui .upload-motion-scene {
  position: relative;
  border-radius: 28px;
  padding: 1.5rem;
  min-height: 28rem;
}

body.slayer-ui .upload-motion-scene::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

body.slayer-ui .motion-cloud,
body.slayer-ui .motion-receipt,
body.slayer-ui .motion-processing,
body.slayer-ui .motion-ledger {
  border-radius: 24px;
}

body.slayer-ui .history-drawer {
  border-radius: 30px 0 0 30px;
}

body.slayer-ui .history-item {
  border-radius: 26px;
}

body.slayer-ui .table-wrap {
  overflow: auto;
}

body.slayer-ui .table-panel table {
  border-collapse: separate;
  border-spacing: 0 0.72rem;
}

body.slayer-ui .table-panel tbody tr {
  backdrop-filter: blur(10px);
}

body.slayer-ui .table-panel td,
body.slayer-ui .table-panel th {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

body.slayer-ui .table-panel tbody td:first-child,
body.slayer-ui .table-panel thead th:first-child {
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

body.slayer-ui .table-panel tbody td:last-child,
body.slayer-ui .table-panel thead th:last-child {
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}

body.slayer-ui .confirm-actions,
body.slayer-ui .duplicate-decision-actions,
body.slayer-ui .hero-actions,
body.slayer-ui .history-toolbar {
  gap: 0.8rem;
  flex-wrap: wrap;
}

html[data-ui-theme="dark"] body.slayer-ui {
  color: #f7efe8;
}

html[data-ui-theme="dark"] body.slayer-ui .auth-stage,
html[data-ui-theme="dark"] body.slayer-ui .hero {
  box-shadow:
    0 28px 50px rgba(4, 5, 12, 0.48),
    0 0 0 1px rgba(255, 135, 102, 0.09) inset;
}

html[data-ui-theme="dark"] body.slayer-ui .topbar,
html[data-ui-theme="dark"] body.slayer-ui .auth-stage,
html[data-ui-theme="dark"] body.slayer-ui .auth-panel,
html[data-ui-theme="dark"] body.slayer-ui .hero,
html[data-ui-theme="dark"] body.slayer-ui .upload-lab,
html[data-ui-theme="dark"] body.slayer-ui .spotlight-panel,
html[data-ui-theme="dark"] body.slayer-ui .history-drawer,
html[data-ui-theme="dark"] body.slayer-ui .confirm-modal,
html[data-ui-theme="dark"] body.slayer-ui .rename-modal,
html[data-ui-theme="dark"] body.slayer-ui .duplicate-decision-modal,
html[data-ui-theme="dark"] body.slayer-ui .table-panel,
html[data-ui-theme="dark"] body.slayer-ui .glass-card,
html[data-ui-theme="dark"] body.slayer-ui .auth-info-card,
html[data-ui-theme="dark"] body.slayer-ui .history-item,
html[data-ui-theme="dark"] body.slayer-ui .preview-stat {
  background:
    radial-gradient(circle at 92% 0%, rgba(104, 224, 255, 0.12), transparent 30%),
    radial-gradient(circle at 8% 100%, rgba(248, 63, 90, 0.14), transparent 34%),
    linear-gradient(165deg, rgba(18, 13, 20, 0.95), rgba(10, 11, 17, 0.94)) !important;
}

html[data-ui-theme="dark"] body.slayer-ui .ghost-link,
html[data-ui-theme="dark"] body.slayer-ui .ghost-button,
html[data-ui-theme="dark"] body.slayer-ui .status-pill,
html[data-ui-theme="dark"] body.slayer-ui .fun-tags span,
html[data-ui-theme="dark"] body.slayer-ui .topbar-pills span,
html[data-ui-theme="dark"] body.slayer-ui .auth-project-strip article {
  background:
    linear-gradient(140deg, rgba(63, 24, 34, 0.84), rgba(25, 28, 43, 0.8)) !important;
  color: #ffeadd;
}

html[data-ui-theme="dark"] body.slayer-ui .text-input,
html[data-ui-theme="dark"] body.slayer-ui .month-select,
html[data-ui-theme="dark"] body.slayer-ui .period-select,
html[data-ui-theme="dark"] body.slayer-ui .dropzone {
  color: #ffefe4;
  background:
    linear-gradient(180deg, rgba(31, 20, 29, 0.92), rgba(20, 20, 31, 0.9)) !important;
}

html[data-ui-theme="light"] body.slayer-ui {
  color: #43241b;
}

html[data-ui-theme="light"] .slayer-stage-grid {
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(183, 138, 118, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 138, 118, 0.1) 1px, transparent 1px);
}

html[data-ui-theme="light"] body.slayer-ui .topbar,
html[data-ui-theme="light"] body.slayer-ui .auth-stage,
html[data-ui-theme="light"] body.slayer-ui .auth-panel,
html[data-ui-theme="light"] body.slayer-ui .hero,
html[data-ui-theme="light"] body.slayer-ui .upload-lab,
html[data-ui-theme="light"] body.slayer-ui .spotlight-panel,
html[data-ui-theme="light"] body.slayer-ui .history-drawer,
html[data-ui-theme="light"] body.slayer-ui .confirm-modal,
html[data-ui-theme="light"] body.slayer-ui .rename-modal,
html[data-ui-theme="light"] body.slayer-ui .duplicate-decision-modal,
html[data-ui-theme="light"] body.slayer-ui .table-panel,
html[data-ui-theme="light"] body.slayer-ui .glass-card,
html[data-ui-theme="light"] body.slayer-ui .auth-info-card,
html[data-ui-theme="light"] body.slayer-ui .history-item,
html[data-ui-theme="light"] body.slayer-ui .preview-stat {
  background:
    radial-gradient(circle at 92% 0%, rgba(112, 225, 245, 0.16), transparent 30%),
    radial-gradient(circle at 8% 100%, rgba(255, 185, 140, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(255, 242, 225, 0.96)) !important;
  color: #42251d;
}

html[data-ui-theme="light"] body.slayer-ui .ghost-link,
html[data-ui-theme="light"] body.slayer-ui .ghost-button,
html[data-ui-theme="light"] body.slayer-ui .status-pill,
html[data-ui-theme="light"] body.slayer-ui .fun-tags span,
html[data-ui-theme="light"] body.slayer-ui .topbar-pills span,
html[data-ui-theme="light"] body.slayer-ui .auth-project-strip article {
  background: linear-gradient(180deg, rgba(255, 249, 240, 0.98), rgba(255, 238, 214, 0.94)) !important;
  color: #6b3324;
}

html[data-ui-theme="light"] body.slayer-ui .text-input,
html[data-ui-theme="light"] body.slayer-ui .month-select,
html[data-ui-theme="light"] body.slayer-ui .period-select,
html[data-ui-theme="light"] body.slayer-ui .dropzone {
  color: #49281f;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(255, 243, 227, 0.96)) !important;
}

html[data-ui-theme="light"] body.slayer-ui .auth-stage-copy h1,
html[data-ui-theme="light"] body.slayer-ui .auth-panel-head h2,
html[data-ui-theme="light"] body.slayer-ui .hero-copy h2 {
  color: #592b22;
}

@media (max-width: 1040px) {
  body.slayer-ui .brand-lockup::before {
    width: 2.35rem;
    height: 2.35rem;
  }

  body.slayer-ui .brand-logo {
    width: clamp(11.8rem, 28vw, 15rem);
  }

  body.slayer-ui .auth-stage-copy h1 {
    max-width: 10.5ch;
    font-size: clamp(2.6rem, 7vw, 4.6rem);
  }
}

@media (max-width: 760px) {
  .slayer-stage-wave {
    bottom: -10rem;
    height: 16rem;
  }

  body.slayer-ui .topbar {
    border-radius: 24px;
  }

  body.slayer-ui .brand-lockup::before {
    display: none;
  }

  body.slayer-ui .brand-logo {
    width: clamp(10.6rem, 48vw, 13rem);
  }

  body.slayer-ui.workspace-signed-in .brand-logo,
  body.workspace-signed-in.slayer-ui .brand-logo {
    width: clamp(9.4rem, 44vw, 11.3rem);
  }

  body.slayer-ui .auth-stage,
  body.slayer-ui .auth-panel,
  body.slayer-ui .hero,
  body.slayer-ui .upload-lab,
  body.slayer-ui .spotlight-panel,
  body.slayer-ui .table-panel {
    border-radius: 24px;
  }

  body.slayer-ui .auth-stage-copy h1,
  body.slayer-ui .auth-panel-head h2,
  body.slayer-ui .hero-copy h2 {
    line-height: 1;
  }

  body.slayer-ui .upload-motion-scene {
    min-height: auto;
    padding: 1.1rem;
  }
}
