: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);
}

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

.history-drawer.is-open {
  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: "o";
  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: "R";
  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.18), transparent 28%),
    linear-gradient(180deg, rgba(4, 8, 16, 0.78), rgba(3, 6, 12, 0.9));
  backdrop-filter: blur(22px) saturate(0.8);
  opacity: 0;
  transition: opacity 220ms ease;
  overflow: hidden;
  isolation: isolate;
}

.duplicate-decision-scrim::before,
.duplicate-decision-scrim::after {
  content: "";
  position: absolute;
  inset: -12%;
  pointer-events: none;
  opacity: 0.72;
}

.duplicate-decision-scrim::before {
  background:
    radial-gradient(circle at 16% 24%, rgba(255, 164, 112, 0.18), transparent 24%),
    radial-gradient(circle at 78% 18%, rgba(255, 103, 103, 0.16), transparent 22%),
    radial-gradient(circle at 48% 74%, rgba(77, 103, 145, 0.18), transparent 28%);
  filter: blur(56px);
  animation: duplicate-smoke-drift 15s ease-in-out infinite;
}

.duplicate-decision-scrim::after {
  background:
    radial-gradient(circle at 22% 70%, rgba(255, 214, 170, 0.12), transparent 18%),
    radial-gradient(circle at 68% 54%, rgba(112, 138, 190, 0.16), transparent 20%),
    radial-gradient(circle at 84% 82%, rgba(255, 128, 118, 0.16), transparent 18%);
  filter: blur(72px);
  animation: duplicate-smoke-drift-alt 19s ease-in-out infinite;
}

.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;
}

html.duplicate-decision-open-root,
body.duplicate-decision-modal-active {
  overflow: hidden;
  overscroll-behavior: none;
}

.cinema-stage,
.topbar,
.workspace-guard,
.shell {
  transition: filter 220ms ease, opacity 220ms ease, transform 220ms ease;
}

body.duplicate-decision-modal-active .cinema-stage,
body.duplicate-decision-modal-active .topbar,
body.duplicate-decision-modal-active .workspace-guard,
body.duplicate-decision-modal-active .shell {
  filter: blur(18px) saturate(0.62) brightness(0.46);
  opacity: 0.14;
  transform: scale(0.992);
  pointer-events: none;
}

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-smoke-drift {
  0%,
  100% {
    transform: translate3d(-2%, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, -3%, 0) scale(1.06);
  }
}

@keyframes duplicate-smoke-drift-alt {
  0%,
  100% {
    transform: translate3d(2%, 0, 0) scale(1.02);
  }
  50% {
    transform: translate3d(-3%, 2%, 0) scale(0.98);
  }
}

@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(1420px, calc(100vw - clamp(1rem, 3vw, 2.4rem)));
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(440px, 0.88fr);
  gap: clamp(1rem, 1.5vw, 1.35rem);
  align-items: stretch;
}

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

.auth-stage {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: clamp(0.95rem, 1.2vw, 1.2rem);
  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: 18ch;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  color: #f6fbff;
}

.auth-lead {
  margin: 0;
  max-width: 72ch;
  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-live-form-slot {
  display: grid;
  gap: 0.92rem;
}

.auth-demo-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.auth-demo-points span {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(111, 226, 255, 0.22);
  border-radius: 16px;
  color: rgba(238, 248, 255, 0.9);
  background:
    linear-gradient(145deg, rgba(10, 33, 50, 0.78), rgba(14, 48, 59, 0.62)),
    radial-gradient(circle at 20% 20%, rgba(111, 226, 255, 0.16), transparent 38%);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.auth-page-signin .auth-form,
.auth-page-signup .auth-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.auth-page-signup .auth-form .field:nth-of-type(3),
.auth-form > .auth-submit {
  grid-column: 1 / -1;
}

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

.auth-form .text-input:disabled,
.auth-form .text-input[aria-disabled="true"] {
  opacity: 0.72;
  cursor: not-allowed;
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(10, 24, 39, 0.5);
}

.auth-field-hint {
  display: block;
  color: rgba(219, 232, 243, 0.72);
  font-size: 0.78rem;
  line-height: 1.4;
}

.auth-field-hint[data-state="warning"] {
  color: #f5b86f;
}

.auth-field-hint[data-state="success"] {
  color: #78e8ad;
}

.auth-password-strength {
  display: block;
  height: 0.42rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.auth-password-strength i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f27a68, #f5b86f);
  transition: width 180ms ease, background 180ms ease;
}

.auth-password-strength[data-strength="fair"] i {
  background: linear-gradient(90deg, #f5b86f, #8edbff);
}

.auth-password-strength[data-strength="strong"] i {
  background: linear-gradient(90deg, #78e8ad, #8eeeff);
}

.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-security-note {
  margin: -0.16rem 0 0;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(111, 226, 255, 0.18);
  border-radius: 18px;
  color: rgba(222, 235, 245, 0.78);
  background:
    linear-gradient(135deg, rgba(14, 38, 56, 0.68), rgba(8, 24, 38, 0.56)),
    radial-gradient(circle at 8% 18%, rgba(111, 226, 255, 0.13), transparent 34%);
  font-size: 0.85rem;
  line-height: 1.45;
}

.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;
}

.auth-link-button {
  justify-self: center;
  border: 0;
  padding: 0.2rem 0.35rem;
  color: #8eeeff;
  background: transparent;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.auth-link-button:hover,
.auth-link-button:focus-visible {
  color: #f7fbff;
  text-decoration: underline;
  text-underline-offset: 0.22rem;
}

.auth-recovery-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(111, 226, 255, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(8, 27, 43, 0.9), rgba(12, 42, 54, 0.76)),
    radial-gradient(circle at 10% 10%, rgba(111, 226, 255, 0.2), transparent 36%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 52px rgba(0, 0, 0, 0.2);
}

.auth-recovery-card[hidden],
.auth-recovery-confirm[hidden] {
  display: none !important;
}

.auth-recovery-head,
.auth-recovery-form,
.auth-recovery-confirm {
  display: grid;
}

.auth-recovery-head {
  gap: 0.35rem;
}

.auth-recovery-head strong {
  color: #f7fbff;
  font-size: 1.05rem;
}

.auth-recovery-head p {
  margin: 0;
  color: rgba(223, 235, 245, 0.78);
  line-height: 1.5;
}

.auth-recovery-form,
.auth-recovery-confirm {
  gap: 0.8rem;
}

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

.auth-recovery-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.auth-recovery-status {
  min-height: 0;
}

@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,
  .auth-demo-points {
    grid-template-columns: 1fr;
  }

  .auth-page-signin .auth-form,
  .auth-page-signup .auth-form,
  .auth-recovery-confirm,
  .auth-recovery-actions {
    grid-template-columns: 1fr;
  }

  .auth-page-signup .auth-form .field:nth-of-type(3),
  .auth-form > .auth-submit {
    grid-column: auto;
  }

  .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));
}

/* Professional cinematic theme */

body.cinema-ui {
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  position: relative;
  overflow-x: hidden;
}

body.cinema-ui h1,
body.cinema-ui h2,
body.cinema-ui h3,
body.cinema-ui .hero-copy h2,
body.cinema-ui .section-heading h3 {
  font-family: "Playfair Display", "Georgia", serif;
  letter-spacing: 0.01em;
}

body.cinema-ui .eyebrow,
body.cinema-ui .mini-label,
body.cinema-ui .field span {
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.cinema-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cinema-glow,
.cinema-grid,
.cinema-beam {
  position: absolute;
}

.cinema-glow {
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.6;
  animation: cinemaFloat 16s ease-in-out infinite alternate;
}

.cinema-glow-ember {
  top: -10rem;
  left: -6rem;
  background: radial-gradient(circle, rgba(255, 156, 112, 0.24), transparent 62%);
}

.cinema-glow-ice {
  bottom: -12rem;
  right: -6rem;
  background: radial-gradient(circle, rgba(94, 202, 255, 0.2), transparent 60%);
  animation-delay: 2.5s;
}

.cinema-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: 60px 60px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 86%);
}

.cinema-beam {
  top: -30%;
  left: -20%;
  width: 60%;
  height: 160%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.09) 45%, transparent 70%);
  transform: rotate(8deg);
  opacity: 0.4;
  animation: cinemaBeam 14s ease-in-out infinite;
}

body.cinema-ui > *:not(.cinema-stage) {
  position: relative;
  z-index: 1;
}

body.cinema-ui .topbar {
  border-radius: 26px;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

body.cinema-ui .topbar::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(110, 231, 247, 0.78), rgba(255, 196, 156, 0.6), rgba(255, 255, 255, 0.08));
}

body.cinema-ui .panel,
body.cinema-ui .glass-card,
body.cinema-ui .auth-stage,
body.cinema-ui .auth-panel,
body.cinema-ui .upload-status-card,
body.cinema-ui .history-drawer,
body.cinema-ui .confirm-modal,
body.cinema-ui .rename-modal,
body.cinema-ui .duplicate-decision-modal,
body.cinema-ui .spotlight-panel,
body.cinema-ui .table-panel {
  border-radius: 26px;
  backdrop-filter: blur(14px);
}

body.cinema-ui .ghost-link,
body.cinema-ui .ghost-button,
body.cinema-ui .status-pill,
body.cinema-ui .primary-button,
body.cinema-ui .secondary-button,
body.cinema-ui .topbar-primary-button {
  border-radius: 999px;
}

body.cinema-ui .primary-button,
body.cinema-ui .topbar-primary-button {
  text-transform: none;
  letter-spacing: 0.02em;
}

body.cinema-ui .dropzone {
  border-radius: 24px;
}

body.cinema-ui .text-input,
body.cinema-ui .month-select,
body.cinema-ui .period-select {
  border-radius: 18px;
  min-height: 3.6rem;
}

body.cinema-ui .upload-motion-scene {
  border-radius: 26px;
}

html[data-ui-theme="dark"] body.cinema-ui {
  color: #e8eff8;
  background:
    radial-gradient(circle at 14% 8%, rgba(70, 164, 255, 0.2), transparent 32%),
    radial-gradient(circle at 84% 14%, rgba(255, 171, 120, 0.16), transparent 30%),
    linear-gradient(160deg, #050b16 0%, #0a1426 42%, #07101e 100%);
}

html[data-ui-theme="dark"] body.cinema-ui .panel,
html[data-ui-theme="dark"] body.cinema-ui .glass-card,
html[data-ui-theme="dark"] body.cinema-ui .auth-stage,
html[data-ui-theme="dark"] body.cinema-ui .auth-panel,
html[data-ui-theme="dark"] body.cinema-ui .upload-status-card,
html[data-ui-theme="dark"] body.cinema-ui .history-drawer,
html[data-ui-theme="dark"] body.cinema-ui .confirm-modal,
html[data-ui-theme="dark"] body.cinema-ui .rename-modal,
html[data-ui-theme="dark"] body.cinema-ui .duplicate-decision-modal,
html[data-ui-theme="dark"] body.cinema-ui .spotlight-panel,
html[data-ui-theme="dark"] body.cinema-ui .table-panel {
  border-color: rgba(120, 170, 220, 0.22);
  background: linear-gradient(180deg, rgba(11, 26, 44, 0.92), rgba(7, 18, 32, 0.92));
  box-shadow: 0 22px 50px rgba(2, 8, 17, 0.32);
}

html[data-ui-theme="dark"] body.cinema-ui .ghost-link,
html[data-ui-theme="dark"] body.cinema-ui .ghost-button,
html[data-ui-theme="dark"] body.cinema-ui .status-pill,
html[data-ui-theme="dark"] body.cinema-ui .topbar-pills span,
html[data-ui-theme="dark"] body.cinema-ui .fun-tags span {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(120, 170, 220, 0.2);
  color: #dbe7f5;
}

html[data-ui-theme="dark"] body.cinema-ui .primary-button,
html[data-ui-theme="dark"] body.cinema-ui .topbar-primary-button {
  color: #04131c;
  background: linear-gradient(120deg, #b8f5ff, #5cd6ff, #ffcba0);
  box-shadow: 0 20px 30px rgba(92, 197, 255, 0.26);
}

html[data-ui-theme="dark"] body.cinema-ui .secondary-button {
  color: #dbe7f5;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(120, 170, 220, 0.2);
}

html[data-ui-theme="dark"] body.cinema-ui .text-input,
html[data-ui-theme="dark"] body.cinema-ui .month-select,
html[data-ui-theme="dark"] body.cinema-ui .period-select,
html[data-ui-theme="dark"] body.cinema-ui .dropzone {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(120, 170, 220, 0.26);
  color: #e8eff8;
}

html[data-ui-theme="light"] body.cinema-ui {
  color: #1f2a36;
  background:
    radial-gradient(circle at 14% 8%, rgba(116, 188, 255, 0.2), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(255, 197, 154, 0.2), transparent 30%),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f8 46%, #e6edf6 100%);
}

html[data-ui-theme="light"] body.cinema-ui .panel,
html[data-ui-theme="light"] body.cinema-ui .glass-card,
html[data-ui-theme="light"] body.cinema-ui .auth-stage,
html[data-ui-theme="light"] body.cinema-ui .auth-panel,
html[data-ui-theme="light"] body.cinema-ui .upload-status-card,
html[data-ui-theme="light"] body.cinema-ui .history-drawer,
html[data-ui-theme="light"] body.cinema-ui .confirm-modal,
html[data-ui-theme="light"] body.cinema-ui .rename-modal,
html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-modal,
html[data-ui-theme="light"] body.cinema-ui .spotlight-panel,
html[data-ui-theme="light"] body.cinema-ui .table-panel {
  border-color: rgba(148, 176, 210, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 253, 0.98));
  box-shadow: 0 20px 44px rgba(92, 110, 138, 0.12);
}

html[data-ui-theme="light"] body.cinema-ui .ghost-link,
html[data-ui-theme="light"] body.cinema-ui .ghost-button,
html[data-ui-theme="light"] body.cinema-ui .status-pill,
html[data-ui-theme="light"] body.cinema-ui .topbar-pills span,
html[data-ui-theme="light"] body.cinema-ui .fun-tags span {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(148, 176, 210, 0.3);
  color: #243445;
}

html[data-ui-theme="light"] body.cinema-ui .primary-button,
html[data-ui-theme="light"] body.cinema-ui .topbar-primary-button {
  color: #1a2b3d;
  background: linear-gradient(120deg, #b8f5ff, #86d3ff, #ffd7b2);
  box-shadow: 0 16px 28px rgba(112, 156, 201, 0.24);
}

html[data-ui-theme="light"] body.cinema-ui .secondary-button {
  color: #1f2a36;
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(148, 176, 210, 0.3);
}

html[data-ui-theme="light"] body.cinema-ui .text-input,
html[data-ui-theme="light"] body.cinema-ui .month-select,
html[data-ui-theme="light"] body.cinema-ui .period-select,
html[data-ui-theme="light"] body.cinema-ui .dropzone {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 176, 210, 0.3);
  color: #1f2a36;
}

.history-drawer[hidden] {
  display: none !important;
}

body:not(.history-open) .history-drawer {
  pointer-events: none;
}

.workspace-guard {
  margin: 0.9rem auto 0;
  padding: 1rem 1.05rem;
  border-radius: 20px;
}

.workspace-guard h3 {
  margin: 0.2rem 0 0.45rem;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}

.workspace-guard p {
  margin: 0;
  color: var(--muted);
}

.workspace-guard-actions {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

body.workspace-locked .shell {
  display: none;
}

body.workspace-locked .dashboard-main {
  align-content: start;
}

body.workspace-locked .workspace-guard {
  margin-top: 0;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 184, 122, 0.18) inset;
}

@keyframes cinemaFloat {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-1.2%, 0.6%, 0);
  }
  100% {
    transform: translate3d(1.2%, -0.6%, 0);
  }
}

@keyframes cinemaBeam {
  0% {
    transform: translateX(-12%) rotate(8deg);
    opacity: 0.2;
  }
  50% {
    transform: translateX(8%) rotate(8deg);
    opacity: 0.45;
  }
  100% {
    transform: translateX(20%) rotate(8deg);
    opacity: 0.2;
  }
}

.brand-launch {
  background:
    radial-gradient(circle at 20% 16%, rgba(110, 231, 247, 0.16), transparent 36%),
    radial-gradient(circle at 82% 26%, rgba(255, 195, 150, 0.18), transparent 34%),
    linear-gradient(160deg, rgba(8, 16, 28, 0.96), rgba(4, 10, 20, 0.94));
}

html[data-ui-theme="light"] .brand-launch {
  background:
    radial-gradient(circle at 20% 16%, rgba(110, 231, 247, 0.18), transparent 36%),
    radial-gradient(circle at 82% 26%, rgba(255, 195, 150, 0.2), transparent 34%),
    linear-gradient(160deg, rgba(240, 245, 252, 0.96), rgba(230, 238, 248, 0.94));
}

/* Final light-mode palette and modal tuning */

html[data-ui-theme="light"] {
  --text: #2b3342;
  --muted: #5e697c;
  --panel-border: rgba(184, 143, 104, 0.2);
  --accent-soft: rgba(255, 176, 124, 0.16);
  --shadow: 0 24px 54px rgba(176, 142, 111, 0.14);
}

html[data-ui-theme="light"] body.cinema-ui,
html[data-ui-theme="light"] body.auth-page.cinema-ui {
  color: var(--text);
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 196, 142, 0.28), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(148, 227, 213, 0.22), transparent 26%),
    radial-gradient(circle at 52% 100%, rgba(255, 224, 196, 0.2), transparent 32%),
    linear-gradient(180deg, #fffaf3 0%, #fff4ea 44%, #f7ecdf 100%);
}

html[data-ui-theme="light"] body.cinema-ui .cinema-glow-ember {
  background: radial-gradient(circle, rgba(255, 180, 126, 0.44), transparent 72%);
}

html[data-ui-theme="light"] body.cinema-ui .cinema-glow-ice {
  background: radial-gradient(circle, rgba(128, 220, 210, 0.36), transparent 72%);
}

html[data-ui-theme="light"] body.cinema-ui .cinema-grid {
  opacity: 0.2;
}

html[data-ui-theme="light"] body.cinema-ui .topbar {
  border-color: rgba(193, 150, 109, 0.24);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 203, 150, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(255, 246, 238, 0.95));
  box-shadow: 0 22px 46px rgba(190, 153, 118, 0.14);
}

html[data-ui-theme="light"] body.cinema-ui .topbar::before {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 171, 107, 0.72),
    rgba(140, 226, 205, 0.64),
    rgba(255, 255, 255, 0.08)
  );
}

html[data-ui-theme="light"] body.cinema-ui .panel,
html[data-ui-theme="light"] body.cinema-ui .glass-card,
html[data-ui-theme="light"] body.cinema-ui .auth-stage,
html[data-ui-theme="light"] body.cinema-ui .auth-panel,
html[data-ui-theme="light"] body.cinema-ui .upload-status-card,
html[data-ui-theme="light"] body.cinema-ui .history-drawer,
html[data-ui-theme="light"] body.cinema-ui .history-item,
html[data-ui-theme="light"] body.cinema-ui .confirm-modal,
html[data-ui-theme="light"] body.cinema-ui .rename-modal,
html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-modal,
html[data-ui-theme="light"] body.cinema-ui .spotlight-panel,
html[data-ui-theme="light"] body.cinema-ui .table-panel,
html[data-ui-theme="light"] body.cinema-ui .queue-item,
html[data-ui-theme="light"] body.cinema-ui .vendor-row,
html[data-ui-theme="light"] body.cinema-ui .workflow-node,
html[data-ui-theme="light"] body.cinema-ui .timeline-step,
html[data-ui-theme="light"] body.cinema-ui .chart-row,
html[data-ui-theme="light"] body.cinema-ui .range-summary-card {
  color: var(--text);
  border-color: rgba(192, 151, 112, 0.22);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 214, 179, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 249, 0.97), rgba(255, 246, 239, 0.96));
  box-shadow: 0 22px 50px rgba(176, 142, 111, 0.13);
}

html[data-ui-theme="light"] body.cinema-ui .upload-preview-frame,
html[data-ui-theme="light"] body.cinema-ui .dropzone,
html[data-ui-theme="light"] body.cinema-ui .preview-stat,
html[data-ui-theme="light"] body.cinema-ui .select-shell,
html[data-ui-theme="light"] body.cinema-ui .text-input,
html[data-ui-theme="light"] body.cinema-ui .month-select,
html[data-ui-theme="light"] body.cinema-ui .period-select {
  color: #2b3342;
  border-color: rgba(195, 154, 115, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 248, 242, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 16px 32px rgba(180, 145, 115, 0.08);
}

html[data-ui-theme="light"] body.cinema-ui .dropzone::before {
  background: linear-gradient(90deg, transparent, rgba(255, 182, 120, 0.2), transparent);
  opacity: 0.52;
}

html[data-ui-theme="light"] body.cinema-ui .preview-empty strong,
html[data-ui-theme="light"] body.cinema-ui .preview-pdf-card strong,
html[data-ui-theme="light"] body.cinema-ui .preview-stat strong,
html[data-ui-theme="light"] body.cinema-ui .panel h1,
html[data-ui-theme="light"] body.cinema-ui .panel h2,
html[data-ui-theme="light"] body.cinema-ui .panel h3,
html[data-ui-theme="light"] body.cinema-ui .glass-card strong,
html[data-ui-theme="light"] body.cinema-ui .history-item strong,
html[data-ui-theme="light"] body.cinema-ui .queue-item strong,
html[data-ui-theme="light"] body.cinema-ui .table-panel th,
html[data-ui-theme="light"] body.cinema-ui .table-panel td {
  color: #243043;
}

html[data-ui-theme="light"] body.cinema-ui .preview-empty p,
html[data-ui-theme="light"] body.cinema-ui .preview-pdf-card p,
html[data-ui-theme="light"] body.cinema-ui .preview-stat span,
html[data-ui-theme="light"] body.cinema-ui .status-note,
html[data-ui-theme="light"] body.cinema-ui .topbar-text,
html[data-ui-theme="light"] body.cinema-ui .hero-text,
html[data-ui-theme="light"] body.cinema-ui .auth-lead,
html[data-ui-theme="light"] body.cinema-ui .history-copy,
html[data-ui-theme="light"] body.cinema-ui .history-note,
html[data-ui-theme="light"] body.cinema-ui .rename-note,
html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-note,
html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-body,
html[data-ui-theme="light"] body.cinema-ui .workflow-node p,
html[data-ui-theme="light"] body.cinema-ui .timeline-step p,
html[data-ui-theme="light"] body.cinema-ui .muted {
  color: #5e697c;
}

html[data-ui-theme="light"] body.cinema-ui .mini-label,
html[data-ui-theme="light"] body.cinema-ui .eyebrow,
html[data-ui-theme="light"] body.cinema-ui .drop-kicker,
html[data-ui-theme="light"] body.cinema-ui .field span {
  color: #b56a35;
}

html[data-ui-theme="light"] body.cinema-ui .pipeline span {
  color: #8a4e24;
  border-color: rgba(194, 132, 83, 0.2);
  background: linear-gradient(180deg, rgba(255, 236, 220, 0.92), rgba(255, 248, 240, 0.94));
}

html[data-ui-theme="light"] body.cinema-ui .ghost-link,
html[data-ui-theme="light"] body.cinema-ui .ghost-button,
html[data-ui-theme="light"] body.cinema-ui .status-pill,
html[data-ui-theme="light"] body.cinema-ui .status-tag,
html[data-ui-theme="light"] body.cinema-ui .topbar-pills span,
html[data-ui-theme="light"] body.cinema-ui .fun-tags span,
html[data-ui-theme="light"] body.cinema-ui .receipt-mini-pill {
  color: #2d394a;
  border-color: rgba(190, 151, 113, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 246, 238, 0.94));
  box-shadow: 0 12px 24px rgba(176, 142, 111, 0.09);
}

html[data-ui-theme="light"] body.cinema-ui .primary-button,
html[data-ui-theme="light"] body.cinema-ui .topbar-primary-button {
  color: #402515;
  border-color: rgba(221, 158, 104, 0.4);
  background: linear-gradient(120deg, #ffd7a5, #ffb39b 52%, #b8ead9);
  box-shadow: 0 18px 34px rgba(208, 147, 94, 0.18);
}

html[data-ui-theme="light"] body.cinema-ui .secondary-button {
  color: #2b3342;
  border-color: rgba(192, 151, 112, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 238, 0.94));
}

html[data-ui-theme="light"] body.cinema-ui .text-input::placeholder {
  color: rgba(110, 116, 128, 0.84);
}

html[data-ui-theme="light"] body.cinema-ui .history-scrim,
html[data-ui-theme="light"] body.cinema-ui .confirm-scrim,
html[data-ui-theme="light"] body.cinema-ui .rename-scrim {
  background: rgba(119, 93, 66, 0.16);
  backdrop-filter: blur(8px);
}

.duplicate-decision-modal[data-tone="reject"] {
  border-color: rgba(255, 152, 116, 0.34);
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 212, 160, 0.18), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(255, 109, 96, 0.24), transparent 26%),
    linear-gradient(180deg, rgba(60, 23, 30, 0.98), rgba(31, 11, 18, 0.99));
  box-shadow:
    0 40px 96px rgba(25, 8, 12, 0.54),
    0 0 0 1px rgba(255, 225, 196, 0.08),
    0 0 100px rgba(255, 118, 92, 0.2);
}

.duplicate-decision-modal[data-tone="reject"] .duplicate-decision-shell {
  border-color: rgba(255, 173, 136, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    linear-gradient(160deg, rgba(73, 30, 36, 0.86), rgba(35, 12, 20, 0.84));
}

.duplicate-decision-modal[data-tone="reject"] .duplicate-decision-head h3 {
  color: #fff2ea;
  text-shadow: 0 0 26px rgba(255, 162, 124, 0.16);
}

.duplicate-decision-modal[data-tone="reject"] .duplicate-decision-body,
.duplicate-decision-modal[data-tone="reject"] .duplicate-decision-note {
  color: rgba(255, 221, 207, 0.9);
}

.duplicate-decision-modal[data-tone="reject"] .duplicate-decision-note[data-tone="error"] {
  color: #ffe7d3;
  text-shadow: 0 0 20px rgba(255, 162, 124, 0.18);
}

.duplicate-decision-modal[data-tone="reject"] .duplicate-signal-ring {
  border-color: rgba(255, 191, 156, 0.24);
  box-shadow: 0 0 40px rgba(255, 122, 98, 0.16);
}

.duplicate-decision-modal[data-tone="reject"] .duplicate-signal-ring--inner {
  border-color: rgba(255, 139, 126, 0.34);
}

.duplicate-decision-modal[data-tone="reject"] .duplicate-signal-core {
  border-color: rgba(255, 229, 186, 0.32);
  background:
    linear-gradient(160deg, rgba(255, 210, 136, 0.26), rgba(255, 112, 112, 0.24)),
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.18), transparent 40%);
  color: #fff4e8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 42px rgba(255, 124, 94, 0.24);
}

html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-modal[data-tone="reject"] {
  border-color: rgba(221, 123, 94, 0.34);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 231, 204, 0.2), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(255, 150, 130, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(96, 39, 44, 0.98), rgba(57, 20, 26, 0.98)) !important;
}

@media (max-width: 760px) {
  body.cinema-ui .topbar {
    border-radius: 22px;
  }

  .cinema-beam {
    display: none;
  }
}

/* Dribbble-inspired analytics shell */

body.dribbble-dashboard {
  background:
    radial-gradient(circle at 16% 0%, rgba(12, 186, 198, 0.08), transparent 24%),
    linear-gradient(180deg, #0a0a0b 0%, #111112 100%);
}

body.dribbble-dashboard .cinema-stage {
  opacity: 0.55;
}

body.dribbble-dashboard .dashboard-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 1rem;
  min-height: 100vh;
  padding: 1rem;
}

body.dribbble-dashboard .dashboard-sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 1.1rem;
  min-height: calc(100vh - 2rem);
  padding: 1.1rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(12, 12, 13, 0.98), rgba(9, 9, 10, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 22px 54px rgba(0, 0, 0, 0.32);
  backdrop-filter: none;
}

body.dribbble-dashboard .dashboard-sidebar::before {
  display: none;
}

body.dribbble-dashboard .brand-lockup-sidebar {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.dribbble-dashboard .brand-mark {
  width: 100%;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.dribbble-dashboard .brand-logo {
  width: clamp(10.2rem, 11vw, 11.8rem);
}

body.dribbble-dashboard .dashboard-nav {
  display: grid;
  gap: 0.45rem;
}

body.dribbble-dashboard .dashboard-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.82rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  color: #8c8f98;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.02);
  transition: all 180ms ease;
}

body.dribbble-dashboard .dashboard-nav-link:hover,
body.dribbble-dashboard .dashboard-nav-link.is-active {
  color: #f3f6fb;
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.dribbble-dashboard .dashboard-sidebar-card {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(19, 19, 20, 0.96), rgba(13, 13, 14, 0.98));
}

body.dribbble-dashboard .dashboard-sidebar-card h3 {
  margin: 0;
  color: #f5f7fa;
  font-size: 1.04rem;
}

body.dribbble-dashboard .dashboard-sidebar-card p {
  margin: 0;
  color: #90939c;
  line-height: 1.62;
}

body.dribbble-dashboard .dashboard-tech-pills {
  display: grid;
  gap: 0.45rem;
}

body.dribbble-dashboard .dashboard-tech-pills span {
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  color: #d5d7dc;
}

body.dribbble-dashboard .dashboard-sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.dribbble-dashboard .dashboard-sidebar-pill {
  width: fit-content;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dribbble-dashboard .dashboard-main {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

body.dribbble-dashboard .dashboard-command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border-color: rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(13, 13, 14, 0.98), rgba(10, 10, 11, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 22px 54px rgba(0, 0, 0, 0.28);
}

body.dribbble-dashboard .dashboard-command-bar::before,
body.dribbble-dashboard .dashboard-command-bar::after {
  display: none;
}

body.dribbble-dashboard .dashboard-command-copy h1 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #f5f7fa;
}

body.dribbble-dashboard .dashboard-command-copy .topbar-text {
  margin-top: 0.35rem;
  max-width: 56ch;
  color: #898d97;
}

body.dribbble-dashboard .dashboard-command-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

body.dribbble-dashboard .dashboard-range-shell,
body.dribbble-dashboard .dashboard-search-shell {
  min-height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

body.dribbble-dashboard .dashboard-range-shell {
  min-width: 13.4rem;
}

body.dribbble-dashboard .dashboard-search-shell {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.95rem;
}

body.dribbble-dashboard .dashboard-search-input {
  min-width: 11rem;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: #dfe5ef;
}

body.dribbble-dashboard .dashboard-search-input:focus {
  box-shadow: none;
}

body.dribbble-dashboard .dashboard-search-icon {
  color: #7d828c;
  font-size: 0.92rem;
}

body.dribbble-dashboard .dashboard-command-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.1rem;
  flex-wrap: wrap;
}

body.dribbble-dashboard .dashboard-command-pills {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

body.dribbble-dashboard .dashboard-command-actions {
  justify-content: flex-end;
}

body.dribbble-dashboard .shell {
  gap: 1rem;
  padding: 0;
}

body.dribbble-dashboard .workspace-guard {
  margin: 0;
  border-radius: 24px;
}

body.dribbble-dashboard .panel,
body.dribbble-dashboard .glass-card,
body.dribbble-dashboard .upload-status-card,
body.dribbble-dashboard .history-drawer,
body.dribbble-dashboard .confirm-modal,
body.dribbble-dashboard .rename-modal,
body.dribbble-dashboard .duplicate-decision-modal,
body.dribbble-dashboard .chart-row,
body.dribbble-dashboard .vendor-row,
body.dribbble-dashboard .queue-item,
body.dribbble-dashboard .workflow-node,
body.dribbble-dashboard .timeline-step,
body.dribbble-dashboard .metric-card,
body.dribbble-dashboard .table-panel {
  border-color: rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(18, 18, 19, 0.98), rgba(12, 12, 13, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 20px 48px rgba(0, 0, 0, 0.26);
}

body.dribbble-dashboard .panel::after,
body.dribbble-dashboard .glass-card::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 38%);
}

body.dribbble-dashboard .control-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  gap: 1rem;
}

body.dribbble-dashboard .hero {
  min-height: 100%;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  background:
    radial-gradient(circle at 62% 58%, rgba(0, 214, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(18, 18, 19, 0.98), rgba(12, 12, 13, 0.98));
}

body.dribbble-dashboard .hero-copy h2,
body.dribbble-dashboard .section-heading h3,
body.dribbble-dashboard .section-heading-tight h3 {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

body.dribbble-dashboard .hero-copy h2 {
  max-width: 10ch;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 0.96;
  color: #f8fafc;
}

body.dribbble-dashboard .hero::before {
  opacity: 0.16;
  background: linear-gradient(180deg, rgba(0, 214, 255, 0), rgba(0, 214, 255, 0.22), rgba(0, 214, 255, 0));
}

body.dribbble-dashboard .topbar-text,
body.dribbble-dashboard .hero-text,
body.dribbble-dashboard .spotlight-narrative,
body.dribbble-dashboard .history-copy,
body.dribbble-dashboard .history-note,
body.dribbble-dashboard .upload-helper,
body.dribbble-dashboard .workflow-node p,
body.dribbble-dashboard .timeline-step p,
body.dribbble-dashboard .muted {
  color: #8d9199;
}

body.dribbble-dashboard .topbar-pills span,
body.dribbble-dashboard .status-pill,
body.dribbble-dashboard .ghost-link,
body.dribbble-dashboard .ghost-button,
body.dribbble-dashboard .receipt-mini-pill,
body.dribbble-dashboard .filter-chip,
body.dribbble-dashboard .status-tag {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  color: #d9dee6;
  box-shadow: none;
}

body.dribbble-dashboard .primary-button,
body.dribbble-dashboard .topbar-primary-button {
  color: #071015;
  border-color: rgba(53, 223, 255, 0.42);
  background: linear-gradient(135deg, #1ff1ff, #03d6ff 68%, #62fbff);
  box-shadow: 0 14px 28px rgba(3, 214, 255, 0.22);
}

body.dribbble-dashboard .secondary-button {
  color: #eef3fa;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

body.dribbble-dashboard .mini-label,
body.dribbble-dashboard .eyebrow,
body.dribbble-dashboard .drop-kicker,
body.dribbble-dashboard .field span {
  color: #7f8590;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

body.dribbble-dashboard .fun-tags span,
body.dribbble-dashboard .pipeline span {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  color: #d4d9e0;
}

body.dribbble-dashboard .upload-preview-frame,
body.dribbble-dashboard .dropzone,
body.dribbble-dashboard .preview-stat,
body.dribbble-dashboard .text-input,
body.dribbble-dashboard .month-select,
body.dribbble-dashboard .period-select,
body.dribbble-dashboard .select-shell {
  color: #edf3fb;
  border-color: rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(15, 15, 16, 0.98), rgba(12, 12, 13, 0.98)) !important;
  box-shadow: none;
}

body.dribbble-dashboard .text-input::placeholder,
body.dribbble-dashboard .dashboard-search-input::placeholder {
  color: #666c77;
}

body.dribbble-dashboard .preview-empty strong,
body.dribbble-dashboard .preview-pdf-card strong,
body.dribbble-dashboard .preview-stat strong,
body.dribbble-dashboard .metric-card strong,
body.dribbble-dashboard .vendor-row strong,
body.dribbble-dashboard .queue-item strong,
body.dribbble-dashboard .spotlight-title,
body.dribbble-dashboard .chart-meta strong,
body.dribbble-dashboard .section-heading h3,
body.dribbble-dashboard .section-heading-tight h3 {
  color: #f5f7fa;
}

body.dribbble-dashboard .preview-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.dribbble-dashboard .metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

body.dribbble-dashboard .metric-card {
  padding: 1.1rem 1.15rem;
}

body.dribbble-dashboard .metric-card strong {
  margin-top: 0.6rem;
  font-size: clamp(1.7rem, 2.1vw, 2.4rem);
}

body.dribbble-dashboard .metric-card span {
  color: #7f8590;
}

body.dribbble-dashboard .ops-strip,
body.dribbble-dashboard .mission-grid {
  gap: 1rem;
}

body.dribbble-dashboard .insight-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 1rem;
}

body.dribbble-dashboard .trend-shell {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 0.8rem;
}

body.dribbble-dashboard .bar-track,
body.dribbble-dashboard .trend-track {
  background: rgba(255, 255, 255, 0.06);
}

body.dribbble-dashboard .bar-fill,
body.dribbble-dashboard .trend-fill {
  background: linear-gradient(90deg, #00b8ff 0%, #00f0ff 58%, #25ffff 100%) !important;
  box-shadow:
    0 0 16px rgba(0, 214, 255, 0.3),
    0 0 34px rgba(0, 214, 255, 0.16);
}

body.dribbble-dashboard .chart-row,
body.dribbble-dashboard .vendor-row,
body.dribbble-dashboard .queue-item,
body.dribbble-dashboard .trend-bar-active {
  border-color: rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(17, 17, 18, 0.98), rgba(13, 13, 14, 0.98));
}

body.dribbble-dashboard .trend-bar-active {
  box-shadow: inset 0 0 0 1px rgba(0, 214, 255, 0.14);
}

body.dribbble-dashboard .expense-donut {
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.02),
    0 0 36px rgba(0, 214, 255, 0.12);
}

body.dribbble-dashboard .expense-donut::after {
  background: linear-gradient(180deg, rgba(13, 13, 14, 0.98), rgba(10, 10, 11, 0.99));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.dribbble-dashboard .expense-donut-center span,
body.dribbble-dashboard .expense-donut-center small {
  color: #8d9199;
}

body.dribbble-dashboard .expense-donut-center strong {
  color: #f7fbff;
}

body.dribbble-dashboard .legend-row {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

body.dribbble-dashboard .legend-swatch {
  box-shadow: 0 0 12px rgba(0, 214, 255, 0.2);
}

body.dribbble-dashboard .table-panel table {
  color: #f1f5fb;
}

body.dribbble-dashboard .table-panel th {
  color: #8b909a;
  font-weight: 600;
  letter-spacing: 0.08em;
}

body.dribbble-dashboard .table-panel tbody tr:nth-child(odd),
body.dribbble-dashboard .table-panel tbody tr:nth-child(even) {
  background: transparent;
}

body.dribbble-dashboard .table-panel tbody tr {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.dribbble-dashboard .history-scrim,
body.dribbble-dashboard .confirm-scrim,
body.dribbble-dashboard .rename-scrim {
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(10px);
}

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

  body.dribbble-dashboard .dashboard-sidebar {
    position: relative;
    top: auto;
    min-height: auto;
  }

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

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

@media (max-width: 920px) {
  body.dribbble-dashboard .dashboard-command-bar,
  body.dribbble-dashboard .control-grid,
  body.dribbble-dashboard .insight-layout,
  body.dribbble-dashboard .trend-shell,
  body.dribbble-dashboard .hero {
    grid-template-columns: 1fr;
  }

  body.dribbble-dashboard .dashboard-command-tools,
  body.dribbble-dashboard .dashboard-command-actions {
    justify-content: flex-start;
  }

  body.dribbble-dashboard .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.dribbble-dashboard .dashboard-shell {
    padding: 0.8rem;
  }

  body.dribbble-dashboard .dashboard-nav {
    grid-template-columns: 1fr;
  }

  body.dribbble-dashboard .metrics-grid,
  body.dribbble-dashboard .preview-meta {
    grid-template-columns: 1fr;
  }
}

/* Dribbble dashboard refinement */

body.dribbble-dashboard .shell {
  display: grid;
  gap: 1rem;
}

body.dribbble-dashboard #metricsGrid {
  order: 1;
}

body.dribbble-dashboard #analyticsBoard {
  order: 2;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  align-items: stretch;
}

body.dribbble-dashboard #analyticsBoard #analyticsSection {
  order: 1;
}

body.dribbble-dashboard #analyticsBoard #reviewQueue {
  order: 2;
}

body.dribbble-dashboard #overviewSection {
  order: 3;
}

body.dribbble-dashboard #summaryBoard {
  order: 4;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
}

body.dribbble-dashboard #receiptsTable {
  order: 5;
}

body.dribbble-dashboard #opsStrip {
  order: 6;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.dribbble-dashboard #activityBoard {
  order: 7;
}

body.dribbble-dashboard #workflowBoard {
  order: 8;
}

body.dribbble-dashboard .dashboard-nav-link::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 0.18rem;
  background: rgba(123, 129, 140, 0.75);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.dribbble-dashboard .dashboard-nav-link:hover::before,
body.dribbble-dashboard .dashboard-nav-link.is-active::before {
  background: linear-gradient(135deg, #15f0ff, #00b6ff);
  box-shadow:
    0 0 14px rgba(0, 214, 255, 0.36),
    0 0 0 1px rgba(132, 248, 255, 0.16);
}

body.dribbble-dashboard .dashboard-command-copy .eyebrow,
body.dribbble-dashboard .section-heading .eyebrow,
body.dribbble-dashboard .section-heading-tight .eyebrow {
  color: #8cc8d1;
}

body.dribbble-dashboard .metric-card {
  min-height: 152px;
  border-radius: 22px;
}

body.dribbble-dashboard .metric-card .eyebrow {
  color: #707682;
  letter-spacing: 0.16em;
}

body.dribbble-dashboard .metric-card strong {
  font-size: clamp(1.95rem, 2.3vw, 2.7rem);
  letter-spacing: -0.05em;
}

body.dribbble-dashboard .metric-card span {
  max-width: 24ch;
  line-height: 1.5;
}

body.dribbble-dashboard .hero,
body.dribbble-dashboard .upload-lab,
body.dribbble-dashboard #analyticsSection,
body.dribbble-dashboard #reviewQueue,
body.dribbble-dashboard #receiptsTable,
body.dribbble-dashboard #summaryBoard > .panel {
  border-radius: 24px;
}

body.dribbble-dashboard .hero {
  min-height: 100%;
  padding: 1.35rem;
}

body.dribbble-dashboard .hero-grid {
  align-content: start;
}

body.dribbble-dashboard .glass-card {
  min-height: 122px;
  border-radius: 20px;
}

body.dribbble-dashboard .upload-lab {
  padding: 1.25rem;
}

body.dribbble-dashboard .dropzone {
  min-height: 164px;
  border-style: solid;
}

body.dribbble-dashboard .preview-stat,
body.dribbble-dashboard .upload-preview-frame {
  border-radius: 18px;
}

body.dribbble-dashboard .ops-card {
  min-height: 138px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 17, 18, 0.98), rgba(13, 13, 14, 0.98));
  border-color: rgba(255, 255, 255, 0.06);
}

body.dribbble-dashboard .spotlight-shell {
  gap: 1rem;
}

body.dribbble-dashboard .spotlight-stat {
  border-radius: 18px;
}

body.dribbble-dashboard .flip-card {
  border-radius: 20px;
}

body.dribbble-dashboard .chart-row,
body.dribbble-dashboard .vendor-row,
body.dribbble-dashboard .queue-item,
body.dribbble-dashboard .workflow-node,
body.dribbble-dashboard .legend-row {
  border-radius: 18px;
}

body.dribbble-dashboard .chart-row,
body.dribbble-dashboard .vendor-row {
  padding: 1rem 1.1rem;
}

body.dribbble-dashboard .receipt-icon-badge {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #ecfaff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dribbble-dashboard .receipt-mini-pill {
  gap: 0.5rem;
}

body.dribbble-dashboard .trend-shell {
  align-items: stretch;
}

body.dribbble-dashboard #trendBars {
  min-width: 0;
}

body.dribbble-dashboard .line-chart-shell {
  display: grid;
  gap: 1rem;
  min-height: 100%;
  padding: 0.25rem 0.15rem 0.15rem;
}

body.dribbble-dashboard .line-chart-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

body.dribbble-dashboard .line-chart-copy,
body.dribbble-dashboard .line-chart-focus {
  display: grid;
  gap: 0.18rem;
}

body.dribbble-dashboard .line-chart-kicker {
  color: #7d8590;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.dribbble-dashboard .line-chart-copy strong,
body.dribbble-dashboard .line-chart-focus strong {
  color: #f8fbff;
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

body.dribbble-dashboard .line-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

body.dribbble-dashboard .line-chart-grid-line {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

body.dribbble-dashboard .line-chart-area {
  fill: url(#trendAreaGradient);
}

body.dribbble-dashboard .line-chart-path-glow {
  fill: none;
  stroke: rgba(0, 240, 255, 0.36);
  stroke-width: 7.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.dribbble-dashboard .line-chart-path {
  fill: none;
  stroke: #13f0ff;
  stroke-width: 3.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.dribbble-dashboard .line-chart-point {
  fill: #0f1012;
  stroke: #87f6ff;
  stroke-width: 2;
}

body.dribbble-dashboard .line-chart-point.is-active {
  fill: #13f0ff;
  stroke: #f8feff;
  stroke-width: 2.2;
}

body.dribbble-dashboard .line-chart-axis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

body.dribbble-dashboard .line-chart-axis-label {
  color: #6d727d;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.dribbble-dashboard .line-chart-axis-label.is-active {
  color: #dffcff;
}

body.dribbble-dashboard .expense-donut-shell {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 0.2rem 0 0;
}

body.dribbble-dashboard .expense-donut {
  width: clamp(188px, 20vw, 230px);
  height: clamp(188px, 20vw, 230px);
  margin-inline: auto;
}

body.dribbble-dashboard .expense-legend {
  display: grid;
  gap: 0.7rem;
}

body.dribbble-dashboard .table-panel .table-wrap {
  overflow: auto;
  max-height: 468px;
  padding-right: 0.15rem;
}

body.dribbble-dashboard .table-panel table {
  min-width: 920px;
}

body.dribbble-dashboard .table-panel tbody tr {
  transition: background 160ms ease;
}

body.dribbble-dashboard .table-panel tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

body.dribbble-dashboard .table-panel td,
body.dribbble-dashboard .table-panel th {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

body.dribbble-dashboard .status-auto-approved {
  background: rgba(84, 231, 207, 0.14);
  color: #bcfff2;
}

body.dribbble-dashboard .status-needs-review {
  background: rgba(255, 185, 94, 0.14);
  color: #ffe1b3;
}

body.dribbble-dashboard .status-duplicate {
  background: rgba(255, 118, 107, 0.14);
  color: #ffd1c7;
}

body.dribbble-dashboard .duplicate-decision-modal[data-tone="reject"] {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 196, 120, 0.26), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(255, 120, 91, 0.28), transparent 28%),
    linear-gradient(145deg, rgba(74, 28, 20, 0.98), rgba(32, 10, 12, 0.98));
  border-color: rgba(255, 170, 135, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 34px 80px rgba(19, 4, 5, 0.48);
}

body.dribbble-dashboard .duplicate-decision-modal[data-tone="reject"] .duplicate-decision-head h3,
body.dribbble-dashboard .duplicate-decision-modal[data-tone="reject"] .duplicate-decision-body,
body.dribbble-dashboard .duplicate-decision-modal[data-tone="reject"] .duplicate-decision-note,
body.dribbble-dashboard .duplicate-decision-modal[data-tone="reject"] .duplicate-decision-head .eyebrow {
  color: #fff0ea;
}

body.dribbble-dashboard .duplicate-decision-modal[data-tone="reject"] .duplicate-decision-shell {
  border-color: rgba(255, 186, 145, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

html[data-ui-theme="light"] body.dribbble-dashboard {
  color-scheme: light;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 205, 156, 0.3), transparent 24%),
    radial-gradient(circle at 84% 12%, rgba(160, 244, 255, 0.34), transparent 26%),
    linear-gradient(180deg, #f6efe6 0%, #eef6fb 58%, #f4f8fb 100%);
}

html[data-ui-theme="light"] body.dribbble-dashboard .cinema-stage {
  opacity: 0.46;
}

html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-sidebar,
html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-command-bar,
html[data-ui-theme="light"] body.dribbble-dashboard .panel,
html[data-ui-theme="light"] body.dribbble-dashboard .glass-card,
html[data-ui-theme="light"] body.dribbble-dashboard .upload-status-card,
html[data-ui-theme="light"] body.dribbble-dashboard .history-drawer,
html[data-ui-theme="light"] body.dribbble-dashboard .confirm-modal,
html[data-ui-theme="light"] body.dribbble-dashboard .rename-modal,
html[data-ui-theme="light"] body.dribbble-dashboard .duplicate-decision-modal,
html[data-ui-theme="light"] body.dribbble-dashboard .chart-row,
html[data-ui-theme="light"] body.dribbble-dashboard .vendor-row,
html[data-ui-theme="light"] body.dribbble-dashboard .queue-item,
html[data-ui-theme="light"] body.dribbble-dashboard .workflow-node,
html[data-ui-theme="light"] body.dribbble-dashboard .timeline-step,
html[data-ui-theme="light"] body.dribbble-dashboard .metric-card,
html[data-ui-theme="light"] body.dribbble-dashboard .table-panel,
html[data-ui-theme="light"] body.dribbble-dashboard .ops-card,
html[data-ui-theme="light"] body.dribbble-dashboard .legend-row {
  border-color: rgba(109, 128, 148, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 253, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 18px 40px rgba(83, 98, 115, 0.1);
}

html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-sidebar-card,
html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-range-shell,
html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-search-shell,
html[data-ui-theme="light"] body.dribbble-dashboard .dropzone,
html[data-ui-theme="light"] body.dribbble-dashboard .upload-preview-frame,
html[data-ui-theme="light"] body.dribbble-dashboard .preview-stat,
html[data-ui-theme="light"] body.dribbble-dashboard .text-input,
html[data-ui-theme="light"] body.dribbble-dashboard .month-select,
html[data-ui-theme="light"] body.dribbble-dashboard .period-select,
html[data-ui-theme="light"] body.dribbble-dashboard .select-shell {
  border-color: rgba(112, 133, 153, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.98)) !important;
}

html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-nav-link,
html[data-ui-theme="light"] body.dribbble-dashboard .ghost-link,
html[data-ui-theme="light"] body.dribbble-dashboard .ghost-button,
html[data-ui-theme="light"] body.dribbble-dashboard .status-pill,
html[data-ui-theme="light"] body.dribbble-dashboard .receipt-mini-pill,
html[data-ui-theme="light"] body.dribbble-dashboard .filter-chip,
html[data-ui-theme="light"] body.dribbble-dashboard .status-tag,
html[data-ui-theme="light"] body.dribbble-dashboard .topbar-pills span,
html[data-ui-theme="light"] body.dribbble-dashboard .fun-tags span,
html[data-ui-theme="light"] body.dribbble-dashboard .pipeline span {
  background: rgba(239, 244, 249, 0.92);
  border-color: rgba(110, 130, 150, 0.12);
  color: #334559;
}

html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-command-copy h1,
html[data-ui-theme="light"] body.dribbble-dashboard .hero-copy h2,
html[data-ui-theme="light"] body.dribbble-dashboard .section-heading h3,
html[data-ui-theme="light"] body.dribbble-dashboard .section-heading-tight h3,
html[data-ui-theme="light"] body.dribbble-dashboard .metric-card strong,
html[data-ui-theme="light"] body.dribbble-dashboard .spotlight-title,
html[data-ui-theme="light"] body.dribbble-dashboard .chart-meta strong,
html[data-ui-theme="light"] body.dribbble-dashboard .vendor-row strong,
html[data-ui-theme="light"] body.dribbble-dashboard .queue-item strong,
html[data-ui-theme="light"] body.dribbble-dashboard .preview-empty strong,
html[data-ui-theme="light"] body.dribbble-dashboard .preview-pdf-card strong,
html[data-ui-theme="light"] body.dribbble-dashboard .preview-stat strong,
html[data-ui-theme="light"] body.dribbble-dashboard .line-chart-copy strong,
html[data-ui-theme="light"] body.dribbble-dashboard .line-chart-focus strong,
html[data-ui-theme="light"] body.dribbble-dashboard .table-panel th,
html[data-ui-theme="light"] body.dribbble-dashboard .table-panel td {
  color: #172635;
}

html[data-ui-theme="light"] body.dribbble-dashboard .topbar-text,
html[data-ui-theme="light"] body.dribbble-dashboard .hero-text,
html[data-ui-theme="light"] body.dribbble-dashboard .spotlight-narrative,
html[data-ui-theme="light"] body.dribbble-dashboard .history-copy,
html[data-ui-theme="light"] body.dribbble-dashboard .history-note,
html[data-ui-theme="light"] body.dribbble-dashboard .upload-helper,
html[data-ui-theme="light"] body.dribbble-dashboard .workflow-node p,
html[data-ui-theme="light"] body.dribbble-dashboard .timeline-step p,
html[data-ui-theme="light"] body.dribbble-dashboard .muted,
html[data-ui-theme="light"] body.dribbble-dashboard .line-chart-kicker,
html[data-ui-theme="light"] body.dribbble-dashboard .line-chart-axis-label,
html[data-ui-theme="light"] body.dribbble-dashboard .metric-card span {
  color: #607388;
}

html[data-ui-theme="light"] body.dribbble-dashboard .hero {
  background:
    radial-gradient(circle at 62% 58%, rgba(0, 214, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 253, 0.98));
}

html[data-ui-theme="light"] body.dribbble-dashboard .bar-track,
html[data-ui-theme="light"] body.dribbble-dashboard .trend-track {
  background: rgba(115, 136, 158, 0.14);
}

html[data-ui-theme="light"] body.dribbble-dashboard .line-chart-grid-line {
  stroke: rgba(100, 120, 140, 0.12);
}

html[data-ui-theme="light"] body.dribbble-dashboard .line-chart-path-glow {
  stroke: rgba(0, 182, 255, 0.18);
}

html[data-ui-theme="light"] body.dribbble-dashboard .line-chart-path {
  stroke: #02c7df;
}

html[data-ui-theme="light"] body.dribbble-dashboard .line-chart-point {
  fill: #ffffff;
  stroke: #02c7df;
}

html[data-ui-theme="light"] body.dribbble-dashboard .line-chart-point.is-active {
  fill: #02c7df;
  stroke: #ffffff;
}

html[data-ui-theme="light"] body.dribbble-dashboard .line-chart-axis-label.is-active,
html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-nav-link.is-active,
html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-nav-link:hover {
  color: #132434;
}

html[data-ui-theme="light"] body.dribbble-dashboard .table-panel tbody tr:hover {
  background: rgba(17, 115, 140, 0.05);
}

html[data-ui-theme="light"] body.dribbble-dashboard .history-scrim,
html[data-ui-theme="light"] body.dribbble-dashboard .confirm-scrim,
html[data-ui-theme="light"] body.dribbble-dashboard .rename-scrim {
  background: rgba(121, 132, 142, 0.18);
  backdrop-filter: blur(12px);
}

@media (max-width: 1180px) {
  body.dribbble-dashboard #analyticsBoard,
  body.dribbble-dashboard #summaryBoard,
  body.dribbble-dashboard #opsStrip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  body.dribbble-dashboard .line-chart-summary {
    flex-direction: column;
  }
}

/* Final stability pass: light-mode contrast + duplicate modal layering */

.duplicate-decision-scrim {
  z-index: 2400;
}

.duplicate-decision-modal {
  z-index: 2401;
}

html[data-ui-theme="light"] body.dribbble-dashboard {
  color: #1e2f40;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 195, 146, 0.26), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(142, 227, 222, 0.26), transparent 30%),
    linear-gradient(180deg, #fff6ed 0%, #f9f4ec 52%, #f4efe8 100%);
}

html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-sidebar,
html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-command-bar,
html[data-ui-theme="light"] body.dribbble-dashboard .panel,
html[data-ui-theme="light"] body.dribbble-dashboard .glass-card,
html[data-ui-theme="light"] body.dribbble-dashboard .upload-status-card,
html[data-ui-theme="light"] body.dribbble-dashboard .history-drawer,
html[data-ui-theme="light"] body.dribbble-dashboard .confirm-modal,
html[data-ui-theme="light"] body.dribbble-dashboard .rename-modal,
html[data-ui-theme="light"] body.dribbble-dashboard .duplicate-decision-modal,
html[data-ui-theme="light"] body.dribbble-dashboard .chart-row,
html[data-ui-theme="light"] body.dribbble-dashboard .vendor-row,
html[data-ui-theme="light"] body.dribbble-dashboard .queue-item,
html[data-ui-theme="light"] body.dribbble-dashboard .workflow-node,
html[data-ui-theme="light"] body.dribbble-dashboard .timeline-step,
html[data-ui-theme="light"] body.dribbble-dashboard .metric-card,
html[data-ui-theme="light"] body.dribbble-dashboard .table-panel,
html[data-ui-theme="light"] body.dribbble-dashboard .ops-card,
html[data-ui-theme="light"] body.dribbble-dashboard .legend-row,
html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-sidebar-card {
  color: #1e2f40;
  border-color: rgba(167, 134, 103, 0.2);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 221, 194, 0.22), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fffaf5 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 18px 38px rgba(147, 119, 88, 0.12);
}

html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-nav-link,
html[data-ui-theme="light"] body.dribbble-dashboard .ghost-link,
html[data-ui-theme="light"] body.dribbble-dashboard .ghost-button,
html[data-ui-theme="light"] body.dribbble-dashboard .status-pill,
html[data-ui-theme="light"] body.dribbble-dashboard .receipt-mini-pill,
html[data-ui-theme="light"] body.dribbble-dashboard .filter-chip,
html[data-ui-theme="light"] body.dribbble-dashboard .status-tag,
html[data-ui-theme="light"] body.dribbble-dashboard .topbar-pills span,
html[data-ui-theme="light"] body.dribbble-dashboard .fun-tags span,
html[data-ui-theme="light"] body.dribbble-dashboard .pipeline span {
  color: #2b4257;
  border-color: rgba(167, 134, 103, 0.2);
  background: linear-gradient(180deg, #ffffff, #fdf8f2);
}

html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-nav-link:hover,
html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-nav-link.is-active {
  color: #173147;
  border-color: rgba(88, 161, 199, 0.34);
  background: linear-gradient(180deg, #f4fbff, #edf7ff);
  box-shadow:
    inset 0 0 0 1px rgba(106, 186, 219, 0.26),
    0 10px 22px rgba(93, 143, 180, 0.14);
}

html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-search-input,
html[data-ui-theme="light"] body.dribbble-dashboard .month-select,
html[data-ui-theme="light"] body.dribbble-dashboard .period-select,
html[data-ui-theme="light"] body.dribbble-dashboard .text-input {
  color: #1f3347;
}

html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-search-input::placeholder,
html[data-ui-theme="light"] body.dribbble-dashboard .text-input::placeholder {
  color: #6c7d8f;
}

html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-search-icon {
  color: #5d7389;
}

html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-sidebar-card h3,
html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-command-copy h1,
html[data-ui-theme="light"] body.dribbble-dashboard .hero-copy h2,
html[data-ui-theme="light"] body.dribbble-dashboard .section-heading h3,
html[data-ui-theme="light"] body.dribbble-dashboard .section-heading-tight h3,
html[data-ui-theme="light"] body.dribbble-dashboard .metric-card strong,
html[data-ui-theme="light"] body.dribbble-dashboard .spotlight-title,
html[data-ui-theme="light"] body.dribbble-dashboard .chart-meta strong,
html[data-ui-theme="light"] body.dribbble-dashboard .vendor-row strong,
html[data-ui-theme="light"] body.dribbble-dashboard .queue-item strong,
html[data-ui-theme="light"] body.dribbble-dashboard .preview-empty strong,
html[data-ui-theme="light"] body.dribbble-dashboard .preview-pdf-card strong,
html[data-ui-theme="light"] body.dribbble-dashboard .preview-stat strong,
html[data-ui-theme="light"] body.dribbble-dashboard .line-chart-copy strong,
html[data-ui-theme="light"] body.dribbble-dashboard .line-chart-focus strong,
html[data-ui-theme="light"] body.dribbble-dashboard .table-panel th,
html[data-ui-theme="light"] body.dribbble-dashboard .table-panel td {
  color: #1a2f43;
}

html[data-ui-theme="light"] body.dribbble-dashboard .topbar-text,
html[data-ui-theme="light"] body.dribbble-dashboard .hero-text,
html[data-ui-theme="light"] body.dribbble-dashboard .spotlight-narrative,
html[data-ui-theme="light"] body.dribbble-dashboard .history-copy,
html[data-ui-theme="light"] body.dribbble-dashboard .history-note,
html[data-ui-theme="light"] body.dribbble-dashboard .upload-helper,
html[data-ui-theme="light"] body.dribbble-dashboard .workflow-node p,
html[data-ui-theme="light"] body.dribbble-dashboard .timeline-step p,
html[data-ui-theme="light"] body.dribbble-dashboard .muted,
html[data-ui-theme="light"] body.dribbble-dashboard .line-chart-kicker,
html[data-ui-theme="light"] body.dribbble-dashboard .line-chart-axis-label,
html[data-ui-theme="light"] body.dribbble-dashboard .metric-card span,
html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-sidebar-card p {
  color: #4f6478;
}

html[data-ui-theme="light"] body.dribbble-dashboard .history-scrim,
html[data-ui-theme="light"] body.dribbble-dashboard .confirm-scrim,
html[data-ui-theme="light"] body.dribbble-dashboard .rename-scrim {
  background: rgba(77, 98, 118, 0.24);
  backdrop-filter: blur(12px);
}

html[data-ui-theme="light"] body.dribbble-dashboard .duplicate-decision-modal[data-tone="reject"] {
  border-color: rgba(200, 96, 72, 0.42);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 232, 206, 0.22), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(255, 126, 96, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(118, 38, 38, 0.98), rgba(66, 20, 22, 0.98)) !important;
  box-shadow:
    0 42px 96px rgba(40, 10, 10, 0.56),
    0 0 0 1px rgba(255, 235, 215, 0.1),
    0 0 98px rgba(240, 110, 80, 0.24);
}

html[data-ui-theme="light"] body.dribbble-dashboard .duplicate-decision-modal[data-tone="reject"] .duplicate-decision-head h3,
html[data-ui-theme="light"] body.dribbble-dashboard .duplicate-decision-modal[data-tone="reject"] .duplicate-decision-body,
html[data-ui-theme="light"] body.dribbble-dashboard .duplicate-decision-modal[data-tone="reject"] .duplicate-decision-note,
html[data-ui-theme="light"] body.dribbble-dashboard .duplicate-decision-modal[data-tone="reject"] .duplicate-decision-head .eyebrow {
  color: #fff3e9;
}

/* Critical readability overrides (light mode) */

body.dribbble-dashboard .dashboard-command-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.28rem;
}

body.dribbble-dashboard .dashboard-command-logo {
  width: clamp(8.6rem, 11.5vw, 10.4rem);
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.24));
}

html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-stage-copy h1,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-panel-head h2,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-info-card strong,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-project-strip strong,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-switch a {
  color: #1f3043 !important;
}

html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-lead,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-info-card p,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-panel-head p:last-child,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-status,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-switch,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-project-strip span {
  color: #4f657a !important;
  opacity: 1 !important;
}

html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-panel,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-stage,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-info-card {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 225, 198, 0.22), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fffaf4 100%) !important;
}

html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-command-copy h1,
html[data-ui-theme="light"] body.dribbble-dashboard .hero-copy h2,
html[data-ui-theme="light"] body.dribbble-dashboard .section-heading h3,
html[data-ui-theme="light"] body.dribbble-dashboard .section-heading-tight h3,
html[data-ui-theme="light"] body.dribbble-dashboard .glass-card strong,
html[data-ui-theme="light"] body.dribbble-dashboard .preview-empty strong,
html[data-ui-theme="light"] body.dribbble-dashboard .preview-pdf-card strong,
html[data-ui-theme="light"] body.dribbble-dashboard .preview-stat strong,
html[data-ui-theme="light"] body.dribbble-dashboard .table-panel th,
html[data-ui-theme="light"] body.dribbble-dashboard .table-panel td,
html[data-ui-theme="light"] body.dribbble-dashboard .line-chart-copy strong,
html[data-ui-theme="light"] body.dribbble-dashboard .line-chart-focus strong {
  color: #1a2f43 !important;
  opacity: 1 !important;
}

html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-command-copy .topbar-text,
html[data-ui-theme="light"] body.dribbble-dashboard .hero-text,
html[data-ui-theme="light"] body.dribbble-dashboard .glass-card p,
html[data-ui-theme="light"] body.dribbble-dashboard .preview-empty p,
html[data-ui-theme="light"] body.dribbble-dashboard .preview-pdf-card p,
html[data-ui-theme="light"] body.dribbble-dashboard .preview-stat span,
html[data-ui-theme="light"] body.dribbble-dashboard .upload-helper,
html[data-ui-theme="light"] body.dribbble-dashboard .workflow-node p,
html[data-ui-theme="light"] body.dribbble-dashboard .timeline-step p,
html[data-ui-theme="light"] body.dribbble-dashboard .status-note,
html[data-ui-theme="light"] body.dribbble-dashboard .line-chart-kicker,
html[data-ui-theme="light"] body.dribbble-dashboard .line-chart-axis-label,
html[data-ui-theme="light"] body.dribbble-dashboard .metric-card span,
html[data-ui-theme="light"] body.dribbble-dashboard .field span,
html[data-ui-theme="light"] body.dribbble-dashboard .drop-copy {
  color: #4f6478 !important;
  opacity: 1 !important;
}

html[data-ui-theme="light"] body.dribbble-dashboard .mini-label,
html[data-ui-theme="light"] body.dribbble-dashboard .eyebrow,
html[data-ui-theme="light"] body.dribbble-dashboard .drop-kicker {
  color: #9f5f33 !important;
  opacity: 1 !important;
}

html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-command-bar,
html[data-ui-theme="light"] body.dribbble-dashboard .hero,
html[data-ui-theme="light"] body.dribbble-dashboard .upload-lab,
html[data-ui-theme="light"] body.dribbble-dashboard .ops-card,
html[data-ui-theme="light"] body.dribbble-dashboard .metric-card,
html[data-ui-theme="light"] body.dribbble-dashboard .table-panel,
html[data-ui-theme="light"] body.dribbble-dashboard .glass-card,
html[data-ui-theme="light"] body.dribbble-dashboard .panel {
  backdrop-filter: none !important;
}

html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-command-logo {
  opacity: 0.96;
  filter: drop-shadow(0 7px 14px rgba(130, 98, 72, 0.18));
}

/* Final layout/readability stability patch (April 2026) */

body.dribbble-dashboard .dashboard-shell {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.dribbble-dashboard .dashboard-sidebar {
  display: none !important;
}

body.dribbble-dashboard .dashboard-main {
  width: min(100%, 1380px);
  margin-inline: auto;
}

body.dribbble-dashboard .dashboard-command-bar {
  grid-template-columns: minmax(0, 1fr) auto;
}

body.dribbble-dashboard .dashboard-command-tools,
body.dribbble-dashboard .dashboard-command-actions {
  flex-wrap: wrap;
}

body.dribbble-dashboard .history-drawer {
  left: auto !important;
  right: 0 !important;
  width: min(420px, 92vw) !important;
  max-width: 92vw;
  transform: translateX(106%) !important;
  visibility: hidden;
}

body.history-open.dribbble-dashboard .history-drawer,
body.dribbble-dashboard .history-drawer.is-open {
  transform: translateX(0) !important;
  visibility: visible;
}

body.dribbble-dashboard .history-drawer[hidden] {
  display: none !important;
  visibility: hidden !important;
  transform: translateX(106%) !important;
}

html[data-ui-theme="light"] body.dribbble-dashboard .flip-card-face {
  border-color: rgba(120, 146, 171, 0.2) !important;
  background:
    radial-gradient(circle at 14% 0%, rgba(192, 231, 255, 0.26), transparent 32%),
    linear-gradient(180deg, #f9fcff 0%, #f0f6fb 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 14px 32px rgba(95, 121, 146, 0.12);
}

html[data-ui-theme="light"] body.dribbble-dashboard .flip-card strong,
html[data-ui-theme="light"] body.dribbble-dashboard .flip-card p {
  color: #20364a !important;
}

html[data-ui-theme="light"] body.dribbble-dashboard .flip-cta {
  color: #2d7f8d !important;
}

html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-range-shell > span,
html[data-ui-theme="light"] body.dribbble-dashboard .chart-select-shell > span,
html[data-ui-theme="light"] body.dribbble-dashboard .field > span,
html[data-ui-theme="light"] body.dribbble-dashboard .mini-label,
html[data-ui-theme="light"] body.dribbble-dashboard .eyebrow,
html[data-ui-theme="light"] body.dribbble-dashboard .drop-kicker {
  color: #995f37 !important;
}

html[data-ui-theme="light"] body.dribbble-dashboard .month-select,
html[data-ui-theme="light"] body.dribbble-dashboard .period-select,
html[data-ui-theme="light"] body.dribbble-dashboard .text-input,
html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-search-input {
  color: #1d3347 !important;
}

@media (max-width: 1024px) {
  body.dribbble-dashboard .dashboard-command-bar {
    grid-template-columns: 1fr;
  }

  body.dribbble-dashboard .dashboard-command-tools,
  body.dribbble-dashboard .dashboard-command-actions {
    justify-content: flex-start;
  }
}

body.dribbble-dashboard .history-scrim {
  z-index: 2490 !important;
}

body.dribbble-dashboard .history-drawer {
  z-index: 2491 !important;
  opacity: 0;
  pointer-events: none;
}

body.history-open.dribbble-dashboard .history-drawer,
body.dribbble-dashboard .history-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  display: block !important;
}

html[data-ui-theme="dark"] body.dribbble-dashboard .dashboard-range-shell,
html[data-ui-theme="dark"] body.dribbble-dashboard .dashboard-search-shell {
  border-color: rgba(120, 151, 182, 0.24) !important;
  background: linear-gradient(180deg, rgba(14, 20, 29, 0.94), rgba(10, 15, 24, 0.96)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(3, 7, 14, 0.32);
}

html[data-ui-theme="dark"] body.dribbble-dashboard .dashboard-range-shell > span,
html[data-ui-theme="dark"] body.dribbble-dashboard .chart-select-shell > span {
  color: #7ea2c5 !important;
}

html[data-ui-theme="dark"] body.dribbble-dashboard .dashboard-search-icon {
  color: #90abc6 !important;
}

html[data-ui-theme="dark"] body.dribbble-dashboard .dashboard-search-input,
html[data-ui-theme="dark"] body.dribbble-dashboard .month-select,
html[data-ui-theme="dark"] body.dribbble-dashboard .period-select {
  color: #e5f0fb !important;
}

html[data-ui-theme="dark"] body.dribbble-dashboard .dashboard-search-input::placeholder {
  color: #7f97af !important;
}

html[data-ui-theme="dark"] body.dribbble-dashboard .month-select option,
html[data-ui-theme="dark"] body.dribbble-dashboard .period-select option {
  color: #e5f0fb;
  background: #0d1622;
}

/* Final stability pass: keep history drawer off-canvas and force readable light theme contrast */
body.dribbble-dashboard .history-scrim {
  position: fixed !important;
  inset: 0 !important;
  display: none;
  opacity: 0;
  pointer-events: none;
}

body.history-open.dribbble-dashboard .history-scrim,
body.dribbble-dashboard .history-scrim.is-open {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.dribbble-dashboard .history-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  width: min(420px, 92vw) !important;
  max-width: 92vw !important;
  height: 100vh !important;
  display: none;
  transform: translateX(106%) !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.history-open.dribbble-dashboard .history-drawer,
body.dribbble-dashboard .history-drawer.is-open {
  display: block !important;
  transform: translateX(0) !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.dribbble-dashboard .history-drawer[hidden] {
  display: none !important;
  visibility: hidden !important;
  transform: translateX(106%) !important;
  pointer-events: none !important;
}

html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-sidebar,
html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-command-bar,
html[data-ui-theme="light"] body.dribbble-dashboard .panel,
html[data-ui-theme="light"] body.dribbble-dashboard .glass-card,
html[data-ui-theme="light"] body.dribbble-dashboard .upload-status-card,
html[data-ui-theme="light"] body.dribbble-dashboard .chart-row,
html[data-ui-theme="light"] body.dribbble-dashboard .vendor-row,
html[data-ui-theme="light"] body.dribbble-dashboard .queue-item,
html[data-ui-theme="light"] body.dribbble-dashboard .workflow-node,
html[data-ui-theme="light"] body.dribbble-dashboard .timeline-step,
html[data-ui-theme="light"] body.dribbble-dashboard .metric-card,
html[data-ui-theme="light"] body.dribbble-dashboard .table-panel,
html[data-ui-theme="light"] body.dribbble-dashboard .ops-card,
html[data-ui-theme="light"] body.dribbble-dashboard .legend-row,
html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-sidebar-card {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 222, 196, 0.22), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fff9f2 100%) !important;
  border-color: rgba(165, 132, 102, 0.2) !important;
}

html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-command-copy h1,
html[data-ui-theme="light"] body.dribbble-dashboard .hero-copy h2,
html[data-ui-theme="light"] body.dribbble-dashboard .section-heading h3,
html[data-ui-theme="light"] body.dribbble-dashboard .section-heading-tight h3,
html[data-ui-theme="light"] body.dribbble-dashboard .metric-card strong,
html[data-ui-theme="light"] body.dribbble-dashboard .spotlight-title,
html[data-ui-theme="light"] body.dribbble-dashboard .chart-meta strong,
html[data-ui-theme="light"] body.dribbble-dashboard .vendor-row strong,
html[data-ui-theme="light"] body.dribbble-dashboard .queue-item strong,
html[data-ui-theme="light"] body.dribbble-dashboard .workflow-node strong,
html[data-ui-theme="light"] body.dribbble-dashboard .timeline-step strong,
html[data-ui-theme="light"] body.dribbble-dashboard .preview-empty strong,
html[data-ui-theme="light"] body.dribbble-dashboard .preview-pdf-card strong,
html[data-ui-theme="light"] body.dribbble-dashboard .preview-stat strong,
html[data-ui-theme="light"] body.dribbble-dashboard .table-panel th,
html[data-ui-theme="light"] body.dribbble-dashboard .table-panel td {
  color: #1a2f43 !important;
}

html[data-ui-theme="light"] body.dribbble-dashboard .topbar-text,
html[data-ui-theme="light"] body.dribbble-dashboard .hero-text,
html[data-ui-theme="light"] body.dribbble-dashboard .spotlight-narrative,
html[data-ui-theme="light"] body.dribbble-dashboard .history-copy,
html[data-ui-theme="light"] body.dribbble-dashboard .history-note,
html[data-ui-theme="light"] body.dribbble-dashboard .upload-helper,
html[data-ui-theme="light"] body.dribbble-dashboard .workflow-node p,
html[data-ui-theme="light"] body.dribbble-dashboard .timeline-step p,
html[data-ui-theme="light"] body.dribbble-dashboard .muted,
html[data-ui-theme="light"] body.dribbble-dashboard .line-chart-kicker,
html[data-ui-theme="light"] body.dribbble-dashboard .line-chart-axis-label,
html[data-ui-theme="light"] body.dribbble-dashboard .metric-card span,
html[data-ui-theme="light"] body.dribbble-dashboard .dashboard-sidebar-card p {
  color: #4f6478 !important;
}

/* NeuroBank-inspired skin for the dashboard layout */
body.neuro-skin {
  background:
    radial-gradient(circle at 14% 16%, rgba(81, 106, 255, 0.24), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(86, 168, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #0b0f1c 0%, #0a0f1b 40%, #0b1328 100%);
  color: #e6edf7;
}

body.neuro-skin .cinema-stage {
  opacity: 0.18;
}

body.neuro-skin .dashboard-shell {
  gap: 1.1rem;
  padding: 1.35rem;
}

body.neuro-skin .dashboard-sidebar {
  background: linear-gradient(180deg, rgba(12, 16, 29, 0.96), rgba(10, 14, 24, 0.98));
  border: 1px solid rgba(101, 126, 186, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 60px rgba(6, 12, 28, 0.5);
}

body.neuro-skin .dashboard-profile-card {
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 26, 44, 0.98), rgba(14, 19, 33, 0.98));
  border: 1px solid rgba(121, 146, 206, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin: 0.3rem 0 0.8rem;
}

body.neuro-skin .dashboard-profile-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
}

body.neuro-skin .dashboard-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(125, 154, 227, 0.5);
  box-shadow: 0 12px 26px rgba(41, 68, 160, 0.32);
  background: rgba(30, 50, 110, 0.5);
}

body.neuro-skin .dashboard-profile-date {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.62rem;
  color: rgba(154, 177, 235, 0.7);
  margin-bottom: 0.2rem;
}

body.neuro-skin .dashboard-profile-copy h3 {
  font-size: 1.05rem;
  margin: 0;
  color: #f4f7ff;
}

body.neuro-skin .dashboard-nav {
  gap: 0.55rem;
}

body.neuro-skin .dashboard-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  background: rgba(22, 28, 46, 0.9);
  border: 1px solid rgba(93, 118, 178, 0.18);
  color: rgba(214, 225, 255, 0.78);
}

body.neuro-skin .dashboard-nav-icon {
  display: inline-grid;
  place-items: center;
  width: 1rem;
  color: rgba(149, 171, 235, 0.9);
  font-size: 0.76rem;
  line-height: 1;
}

body.neuro-skin .dashboard-nav-link.is-active,
body.neuro-skin .dashboard-nav-link:hover {
  color: #f5f7ff;
  border-color: rgba(90, 135, 255, 0.5);
  background: linear-gradient(120deg, rgba(34, 51, 92, 0.96), rgba(17, 24, 45, 0.98));
  box-shadow: 0 12px 24px rgba(20, 40, 88, 0.5);
}

body.neuro-skin .dashboard-command-bar {
  background:
    radial-gradient(circle at 18% 24%, rgba(80, 118, 255, 0.22), transparent 40%),
    linear-gradient(180deg, rgba(16, 21, 34, 0.96), rgba(12, 16, 27, 0.98));
  border: 1px solid rgba(105, 130, 200, 0.18);
  box-shadow: 0 26px 50px rgba(7, 12, 24, 0.55);
}

body.neuro-skin .dashboard-command-logo {
  filter: drop-shadow(0 8px 18px rgba(48, 82, 190, 0.45));
}

body.neuro-skin .dashboard-command-copy h1 {
  color: #f1f4ff;
}

body.neuro-skin .topbar-text,
body.neuro-skin .dashboard-command-copy .topbar-text,
body.neuro-skin .dashboard-sidebar-card p,
body.neuro-skin .history-copy,
body.neuro-skin .history-note,
body.neuro-skin .upload-helper,
body.neuro-skin .muted {
  color: rgba(197, 209, 238, 0.75);
}

body.neuro-skin .select-shell,
body.neuro-skin .dashboard-search-shell,
body.neuro-skin .text-input,
body.neuro-skin .month-select,
body.neuro-skin .period-select {
  background: rgba(15, 20, 34, 0.94);
  border: 1px solid rgba(104, 128, 188, 0.2);
  color: #e8efff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.neuro-skin .dashboard-search-input::placeholder,
body.neuro-skin .text-input::placeholder {
  color: rgba(154, 170, 210, 0.7);
}

body.neuro-skin .panel,
body.neuro-skin .glass-card,
body.neuro-skin .upload-status-card,
body.neuro-skin .chart-row,
body.neuro-skin .vendor-row,
body.neuro-skin .queue-item,
body.neuro-skin .workflow-node,
body.neuro-skin .timeline-step,
body.neuro-skin .metric-card,
body.neuro-skin .ops-card,
body.neuro-skin .table-panel,
body.neuro-skin .history-drawer,
body.neuro-skin .confirm-modal,
body.neuro-skin .rename-modal,
body.neuro-skin .duplicate-decision-modal {
  background: linear-gradient(180deg, rgba(16, 20, 33, 0.98), rgba(12, 16, 28, 0.98));
  border: 1px solid rgba(98, 120, 180, 0.2);
  box-shadow: 0 22px 50px rgba(7, 12, 24, 0.52);
}

body.neuro-skin .metric-card strong,
body.neuro-skin .chart-meta strong,
body.neuro-skin .queue-item strong,
body.neuro-skin .vendor-row strong,
body.neuro-skin .line-chart-copy strong,
body.neuro-skin .line-chart-focus strong,
body.neuro-skin .table-panel th,
body.neuro-skin .table-panel td {
  color: #f3f6ff;
}

body.neuro-skin .bar-track,
body.neuro-skin .trend-track {
  background: rgba(88, 108, 170, 0.2);
}

body.neuro-skin .bar-fill {
  background: linear-gradient(90deg, #4b74ff, #6aa1ff);
}

body.neuro-skin .line-chart-grid-line {
  stroke: rgba(108, 128, 184, 0.2);
}

body.neuro-skin .line-chart-path-glow {
  stroke: rgba(86, 132, 255, 0.3);
}

body.neuro-skin .line-chart-path {
  stroke: #4b74ff;
}

body.neuro-skin .expense-donut {
  background: conic-gradient(#4b74ff 0 64%, rgba(62, 78, 120, 0.6) 64% 100%);
}

body.neuro-skin .topbar-actions .primary-button,
body.neuro-skin .primary-button {
  background: linear-gradient(120deg, #4b74ff, #3a5bff);
  border-color: rgba(96, 142, 255, 0.6);
  color: #f5f7ff;
}

body.neuro-skin .ghost-link,
body.neuro-skin .ghost-button {
  background: rgba(18, 24, 42, 0.9);
  border-color: rgba(97, 123, 188, 0.22);
  color: rgba(220, 230, 255, 0.86);
}

body.neuro-skin .status-pill,
body.neuro-skin .receipt-mini-pill,
body.neuro-skin .status-tag,
body.neuro-skin .filter-chip {
  background: rgba(20, 28, 50, 0.9);
  border-color: rgba(97, 124, 188, 0.3);
  color: rgba(225, 234, 255, 0.88);
}

body.neuro-skin .history-scrim,
body.neuro-skin .confirm-scrim,
body.neuro-skin .rename-scrim,
body.neuro-skin .duplicate-decision-scrim {
  background: rgba(7, 10, 18, 0.75);
  backdrop-filter: blur(10px);
}

body.neuro-skin .dashboard-shell {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: stretch;
}

body.neuro-skin .dashboard-sidebar {
  gap: 0.9rem;
}

body.neuro-skin .dashboard-command-bar {
  border-radius: 22px;
  padding: 1.2rem 1.4rem;
}

body.neuro-skin .dashboard-command-copy h1 {
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
}

body.neuro-skin .dashboard-command-actions {
  gap: 0.6rem;
  flex-wrap: wrap;
}

body.neuro-skin .dashboard-command-actions .ghost-link,
body.neuro-skin .dashboard-command-actions .primary-button {
  min-height: 40px;
}

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

body.neuro-skin .mission-grid,
body.neuro-skin .insight-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

body.neuro-skin .hero {
  background:
    radial-gradient(circle at 28% 22%, rgba(80, 118, 255, 0.3), transparent 46%),
    linear-gradient(180deg, rgba(15, 20, 35, 0.98), rgba(10, 14, 26, 0.98));
  border-radius: 24px;
}

body.neuro-skin .hero-copy h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.05;
  color: #f4f7ff;
}

body.neuro-skin .hero-grid {
  gap: 0.85rem;
}

body.neuro-skin .glass-card {
  background: rgba(12, 16, 30, 0.92);
  border: 1px solid rgba(98, 120, 180, 0.18);
  box-shadow: 0 18px 40px rgba(8, 12, 24, 0.45);
}

body.neuro-skin .chart-row,
body.neuro-skin .vendor-row,
body.neuro-skin .queue-item {
  border-radius: 16px;
}

body.neuro-skin .table-panel table {
  border-spacing: 0 0.6rem;
}

body.neuro-skin .table-panel tbody tr {
  background: rgba(14, 18, 32, 0.85);
  border-radius: 14px;
}

body.neuro-skin .table-panel tbody tr td:first-child {
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

body.neuro-skin .table-panel tbody tr td:last-child {
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

body.neuro-skin .upload-status-card {
  background: linear-gradient(180deg, rgba(13, 18, 31, 0.98), rgba(10, 14, 26, 0.98));
}

body.neuro-skin .timeline-step {
  background: rgba(14, 20, 36, 0.92);
}

body.neuro-skin .dashboard-sidebar-card {
  background: linear-gradient(180deg, rgba(13, 18, 31, 0.98), rgba(9, 13, 24, 0.98));
}

@media (max-width: 1180px) {
  body.neuro-skin .dashboard-shell {
    grid-template-columns: 1fr;
  }
  body.neuro-skin .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.neuro-skin .mission-grid,
  body.neuro-skin .insight-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body.neuro-skin .metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* Multipage layout blocks for profile/reports pages */
body.neuro-page .dashboard-main {
  gap: 1rem;
}

.neuro-main {
  display: grid;
  gap: 1rem;
}

.neuro-widget-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.neuro-widget-grid--reports {
  grid-template-columns: 1.2fr 1fr 0.8fr;
}

.neuro-widget {
  border-radius: 20px;
  padding: 1rem;
}

.neuro-widget-profile {
  min-height: 220px;
}

.neuro-widget-hero {
  min-height: 220px;
  background:
    radial-gradient(circle at 30% 34%, rgba(78, 113, 255, 0.28), transparent 54%),
    linear-gradient(180deg, rgba(14, 20, 36, 0.98), rgba(11, 16, 30, 0.98));
}

.neuro-widget-title {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.55rem;
  color: #f4f7ff;
}

.neuro-profile-meta {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.neuro-mini-bars {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 0.6rem;
  min-height: 84px;
}

.neuro-mini-bars--wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.neuro-mini-bars span {
  height: var(--bar, 45%);
  min-height: 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(97, 132, 255, 0.95), rgba(48, 72, 170, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.neuro-line-chart {
  width: 100%;
  height: 86px;
  margin-top: 0.5rem;
  display: block;
}

.neuro-line-chart path {
  fill: none;
  stroke: #5f85ff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(95, 133, 255, 0.55));
}

.neuro-gauge {
  margin-top: 0.8rem;
  width: min(220px, 100%);
  aspect-ratio: 2 / 1;
  border-radius: 999px 999px 0 0;
  border: 1px solid rgba(105, 128, 191, 0.25);
  border-bottom: 0;
  background:
    conic-gradient(from 180deg, #4c76ff 0deg 104deg, rgba(88, 104, 150, 0.38) 104deg 180deg);
  mask: radial-gradient(circle at 50% 100%, transparent 40%, #000 41%);
}

.neuro-gauge span {
  display: block;
  width: 100%;
  height: 100%;
}

.neuro-widget-transactions {
  grid-column: span 2;
}

.neuro-transaction-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.neuro-transaction-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(95, 118, 181, 0.22);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  background: rgba(14, 19, 35, 0.85);
}

.neuro-transaction-list strong {
  color: #f0f5ff;
}

@media (max-width: 1180px) {
  .neuro-widget-grid,
  .neuro-widget-grid--reports {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .neuro-widget-transactions {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  .neuro-widget-grid,
  .neuro-widget-grid--reports {
    grid-template-columns: 1fr;
  }
  .neuro-widget-transactions {
    grid-column: span 1;
  }
}

/* Final polish pass: cool light theme + stable modal positioning (all themes) */

html[data-ui-theme="light"] body.neuro-skin {
  color: #162b44 !important;
  background:
    radial-gradient(circle at 10% 12%, rgba(122, 213, 255, 0.26), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(159, 178, 255, 0.2), transparent 28%),
    radial-gradient(circle at 72% 84%, rgba(197, 227, 255, 0.24), transparent 30%),
    linear-gradient(180deg, #f3f8ff 0%, #edf4ff 54%, #e7effc 100%) !important;
}

html[data-ui-theme="light"] body.neuro-skin .dashboard-sidebar,
html[data-ui-theme="light"] body.neuro-skin .dashboard-command-bar,
html[data-ui-theme="light"] body.neuro-skin .panel,
html[data-ui-theme="light"] body.neuro-skin .glass-card,
html[data-ui-theme="light"] body.neuro-skin .upload-status-card,
html[data-ui-theme="light"] body.neuro-skin .history-drawer,
html[data-ui-theme="light"] body.neuro-skin .confirm-modal,
html[data-ui-theme="light"] body.neuro-skin .rename-modal,
html[data-ui-theme="light"] body.neuro-skin .duplicate-decision-modal,
html[data-ui-theme="light"] body.neuro-skin .chart-row,
html[data-ui-theme="light"] body.neuro-skin .vendor-row,
html[data-ui-theme="light"] body.neuro-skin .queue-item,
html[data-ui-theme="light"] body.neuro-skin .workflow-node,
html[data-ui-theme="light"] body.neuro-skin .timeline-step,
html[data-ui-theme="light"] body.neuro-skin .metric-card,
html[data-ui-theme="light"] body.neuro-skin .table-panel,
html[data-ui-theme="light"] body.neuro-skin .ops-card,
html[data-ui-theme="light"] body.neuro-skin .legend-row,
html[data-ui-theme="light"] body.neuro-skin .dashboard-sidebar-card {
  color: #1b324d !important;
  border-color: rgba(114, 149, 196, 0.22) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(166, 224, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 16px 34px rgba(76, 112, 156, 0.14) !important;
}

html[data-ui-theme="light"] body.neuro-skin .dashboard-command-copy h1,
html[data-ui-theme="light"] body.neuro-skin .hero-copy h2,
html[data-ui-theme="light"] body.neuro-skin .section-heading h3,
html[data-ui-theme="light"] body.neuro-skin .section-heading-tight h3,
html[data-ui-theme="light"] body.neuro-skin .metric-card strong,
html[data-ui-theme="light"] body.neuro-skin .spotlight-title,
html[data-ui-theme="light"] body.neuro-skin .chart-meta strong,
html[data-ui-theme="light"] body.neuro-skin .vendor-row strong,
html[data-ui-theme="light"] body.neuro-skin .queue-item strong,
html[data-ui-theme="light"] body.neuro-skin .preview-empty strong,
html[data-ui-theme="light"] body.neuro-skin .preview-pdf-card strong,
html[data-ui-theme="light"] body.neuro-skin .preview-stat strong,
html[data-ui-theme="light"] body.neuro-skin .line-chart-copy strong,
html[data-ui-theme="light"] body.neuro-skin .line-chart-focus strong,
html[data-ui-theme="light"] body.neuro-skin .table-panel th,
html[data-ui-theme="light"] body.neuro-skin .table-panel td {
  color: #17314d !important;
}

html[data-ui-theme="light"] body.neuro-skin .topbar-text,
html[data-ui-theme="light"] body.neuro-skin .hero-text,
html[data-ui-theme="light"] body.neuro-skin .spotlight-narrative,
html[data-ui-theme="light"] body.neuro-skin .history-copy,
html[data-ui-theme="light"] body.neuro-skin .history-note,
html[data-ui-theme="light"] body.neuro-skin .upload-helper,
html[data-ui-theme="light"] body.neuro-skin .workflow-node p,
html[data-ui-theme="light"] body.neuro-skin .timeline-step p,
html[data-ui-theme="light"] body.neuro-skin .muted,
html[data-ui-theme="light"] body.neuro-skin .line-chart-kicker,
html[data-ui-theme="light"] body.neuro-skin .line-chart-axis-label,
html[data-ui-theme="light"] body.neuro-skin .metric-card span,
html[data-ui-theme="light"] body.neuro-skin .dashboard-sidebar-card p {
  color: #506983 !important;
}

html[data-ui-theme="light"] body.neuro-skin .dashboard-nav-link,
html[data-ui-theme="light"] body.neuro-skin .ghost-link,
html[data-ui-theme="light"] body.neuro-skin .ghost-button,
html[data-ui-theme="light"] body.neuro-skin .status-pill,
html[data-ui-theme="light"] body.neuro-skin .receipt-mini-pill,
html[data-ui-theme="light"] body.neuro-skin .filter-chip,
html[data-ui-theme="light"] body.neuro-skin .status-tag,
html[data-ui-theme="light"] body.neuro-skin .topbar-pills span,
html[data-ui-theme="light"] body.neuro-skin .fun-tags span,
html[data-ui-theme="light"] body.neuro-skin .pipeline span {
  color: #22415f !important;
  border-color: rgba(109, 148, 196, 0.24) !important;
  background: linear-gradient(180deg, #ffffff, #f2f8ff) !important;
}

html[data-ui-theme="light"] body.neuro-skin .dashboard-nav-link:hover,
html[data-ui-theme="light"] body.neuro-skin .dashboard-nav-link.is-active {
  color: #173753 !important;
  border-color: rgba(95, 160, 220, 0.36) !important;
  background: linear-gradient(180deg, #f2f9ff, #e8f2ff) !important;
  box-shadow:
    inset 0 0 0 1px rgba(105, 179, 227, 0.24),
    0 10px 22px rgba(90, 137, 186, 0.16) !important;
}

html[data-ui-theme="light"] body.neuro-skin .dashboard-search-input,
html[data-ui-theme="light"] body.neuro-skin .month-select,
html[data-ui-theme="light"] body.neuro-skin .period-select,
html[data-ui-theme="light"] body.neuro-skin .text-input {
  color: #1d3752 !important;
}

html[data-ui-theme="light"] body.neuro-skin .dashboard-search-input::placeholder,
html[data-ui-theme="light"] body.neuro-skin .text-input::placeholder {
  color: #627f9a !important;
}

body.neuro-skin .confirm-scrim,
body.neuro-skin .rename-scrim,
body.neuro-skin .duplicate-decision-scrim {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2500 !important;
}

body.neuro-skin .confirm-modal,
body.neuro-skin .rename-modal,
body.neuro-skin .duplicate-decision-modal {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  margin: 0 !important;
  width: min(92vw, 44rem) !important;
  max-height: min(88vh, 52rem) !important;
  overflow: auto !important;
  z-index: 2501 !important;
  transform: translate(-50%, -48%) scale(0.96) !important;
  transform-origin: center center !important;
}

body.neuro-skin .confirm-modal.is-open,
body.neuro-skin .rename-modal.is-open,
body.neuro-skin .duplicate-decision-modal.is-open {
  transform: translate(-50%, -50%) scale(1) !important;
}

body.neuro-skin .duplicate-decision-modal[data-tone="reject"] {
  border-color: rgba(219, 112, 88, 0.42) !important;
}

body.neuro-skin .duplicate-decision-modal[data-tone="keep"] {
  border-color: rgba(112, 206, 255, 0.38) !important;
}

@media (max-width: 760px) {
  body.neuro-skin .confirm-modal,
  body.neuro-skin .rename-modal,
  body.neuro-skin .duplicate-decision-modal {
    width: min(94vw, 36rem) !important;
    max-height: 86vh !important;
    padding: 1rem !important;
  }
}

/* Final guardrail pass: drawer/modal positioning + readable contrast in both modes */
body.cinema-ui.dribbble-dashboard .history-scrim {
  position: fixed !important;
  inset: 0 !important;
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 2490 !important;
}

body.history-open.cinema-ui.dribbble-dashboard .history-scrim,
body.cinema-ui.dribbble-dashboard .history-scrim.is-open {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.cinema-ui.dribbble-dashboard .history-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  width: min(420px, 92vw) !important;
  max-width: 92vw !important;
  height: 100vh !important;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transform: translate3d(106%, 0, 0) !important;
  pointer-events: none !important;
  z-index: 2491 !important;
}

body.history-open.cinema-ui.dribbble-dashboard .history-drawer,
body.cinema-ui.dribbble-dashboard .history-drawer.is-open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
  pointer-events: auto !important;
}

body.cinema-ui.dribbble-dashboard .history-drawer[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transform: translate3d(106%, 0, 0) !important;
  pointer-events: none !important;
}

body.cinema-ui .confirm-scrim,
body.cinema-ui .rename-scrim,
body.cinema-ui .duplicate-decision-scrim {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.cinema-ui .confirm-scrim.is-open,
body.cinema-ui .rename-scrim.is-open,
body.cinema-ui .duplicate-decision-scrim.is-open {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.cinema-ui .confirm-modal,
body.cinema-ui .rename-modal,
body.cinema-ui .duplicate-decision-modal {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  margin: 0 !important;
  width: min(92vw, 44rem) !important;
  max-height: min(88vh, 52rem) !important;
  overflow: auto !important;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-50%, -46%) scale(0.96) !important;
  transform-origin: center center !important;
  z-index: 2501 !important;
}

body.cinema-ui .confirm-modal.is-open,
body.cinema-ui .rename-modal.is-open,
body.cinema-ui .duplicate-decision-modal.is-open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

body.cinema-ui .confirm-modal[hidden],
body.cinema-ui .rename-modal[hidden],
body.cinema-ui .duplicate-decision-modal[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard .workflow-node strong,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard .timeline-step strong,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard .metric-card strong,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard .table-panel th,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard .table-panel td,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard .field strong {
  color: #e9f3ff !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard .workflow-node p,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard .timeline-step p,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard .metric-card span,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard .upload-helper,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard .field span,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard .status-note {
  color: #9db4ce !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .workflow-node strong,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .timeline-step strong,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .metric-card strong,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .table-panel th,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .table-panel td,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .field strong {
  color: #17304a !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .workflow-node p,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .timeline-step p,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .metric-card span,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .upload-helper,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .field span,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .status-note {
  color: #4f6882 !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .dashboard-range-shell > span,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .chart-select-shell > span,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .eyebrow,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .mini-label,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .drop-kicker {
  color: #915834 !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .dashboard-search-input,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .month-select,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .period-select,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .text-input {
  color: #1b3653 !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .duplicate-decision-modal[data-tone="reject"] {
  border-color: rgba(210, 97, 80, 0.5) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 224, 0.28),
    0 22px 52px rgba(164, 70, 54, 0.25) !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .duplicate-decision-modal[data-tone="keep"] {
  border-color: rgba(63, 162, 220, 0.5) !important;
  box-shadow:
    inset 0 1px 0 rgba(216, 245, 255, 0.36),
    0 22px 52px rgba(63, 130, 176, 0.2) !important;
}

@media (max-width: 760px) {
  body.cinema-ui .confirm-modal,
  body.cinema-ui .rename-modal,
  body.cinema-ui .duplicate-decision-modal {
    width: min(94vw, 36rem) !important;
    max-height: 86vh !important;
    padding: 1rem !important;
  }
}

/* Premium finish pass: subtle depth + cleaner interactions */
body.cinema-ui.dribbble-dashboard .dashboard-command-bar,
body.cinema-ui.dribbble-dashboard .panel,
body.cinema-ui.dribbble-dashboard .glass-card,
body.cinema-ui.dribbble-dashboard .metric-card,
body.cinema-ui.dribbble-dashboard .history-item,
body.cinema-ui.dribbble-dashboard .upload-status-card {
  transition:
    transform 220ms ease,
    box-shadow 240ms ease,
    border-color 220ms ease,
    background 240ms ease;
}

body.cinema-ui.dribbble-dashboard .dashboard-command-bar {
  position: relative;
  overflow: hidden;
}

body.cinema-ui.dribbble-dashboard .dashboard-command-bar::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(102, 171, 255, 0.08), rgba(121, 238, 255, 0.02) 44%, rgba(255, 190, 145, 0.08) 100%);
  opacity: 0.9;
}

@media (hover: hover) {
  body.cinema-ui.dribbble-dashboard .panel:hover,
  body.cinema-ui.dribbble-dashboard .glass-card:hover,
  body.cinema-ui.dribbble-dashboard .metric-card:hover,
  body.cinema-ui.dribbble-dashboard .history-item:hover,
  body.cinema-ui.dribbble-dashboard .upload-status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 54px rgba(6, 12, 24, 0.42);
    border-color: rgba(129, 176, 232, 0.32) !important;
  }
}

body.cinema-ui.dribbble-dashboard .primary-button,
body.cinema-ui.dribbble-dashboard .topbar-primary-button {
  background-size: 180% 180% !important;
  animation: premium-button-flow 9.5s ease-in-out infinite;
}

body.cinema-ui.dribbble-dashboard .ghost-link,
body.cinema-ui.dribbble-dashboard .ghost-button {
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background 220ms ease,
    color 200ms ease;
}

@media (hover: hover) {
  body.cinema-ui.dribbble-dashboard .ghost-link:hover,
  body.cinema-ui.dribbble-dashboard .ghost-button:hover {
    transform: translateY(-1px);
  }
}

body.cinema-ui.dribbble-dashboard .duplicate-decision-modal,
body.cinema-ui.dribbble-dashboard .confirm-modal,
body.cinema-ui.dribbble-dashboard .rename-modal {
  box-shadow:
    0 26px 72px rgba(4, 9, 18, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .duplicate-decision-modal,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .confirm-modal,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .rename-modal {
  box-shadow:
    0 20px 48px rgba(78, 111, 145, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .dashboard-search-shell,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .dashboard-range-shell,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .month-select,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .period-select,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .dashboard-search-input,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .text-input {
  border-color: rgba(109, 148, 196, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 8px 18px rgba(106, 143, 181, 0.14);
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .dashboard-search-input::placeholder,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard .text-input::placeholder {
  color: #607f9d !important;
}

@keyframes premium-button-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cinema-ui.dribbble-dashboard .dashboard-command-bar,
  body.cinema-ui.dribbble-dashboard .panel,
  body.cinema-ui.dribbble-dashboard .glass-card,
  body.cinema-ui.dribbble-dashboard .metric-card,
  body.cinema-ui.dribbble-dashboard .history-item,
  body.cinema-ui.dribbble-dashboard .upload-status-card,
  body.cinema-ui.dribbble-dashboard .ghost-link,
  body.cinema-ui.dribbble-dashboard .ghost-button {
    transition: none !important;
  }

  body.cinema-ui.dribbble-dashboard .primary-button,
  body.cinema-ui.dribbble-dashboard .topbar-primary-button {
    animation: none !important;
  }
}

/* Light Mode Rebuild: premium bright surface system */
html[data-ui-theme="light"] body.cinema-ui {
  color-scheme: light !important;
  color: #142a42 !important;
  background:
    radial-gradient(circle at 8% 10%, rgba(128, 214, 255, 0.34), transparent 29%),
    radial-gradient(circle at 92% 14%, rgba(151, 172, 255, 0.25), transparent 32%),
    radial-gradient(circle at 78% 88%, rgba(172, 239, 224, 0.23), transparent 34%),
    linear-gradient(180deg, #f4fbff 0%, #ecf5ff 46%, #e8f1ff 100%) !important;
}

html[data-ui-theme="light"] body.cinema-ui .cinema-stage {
  opacity: 0.26 !important;
}

html[data-ui-theme="light"] body.cinema-ui .cinema-grid {
  opacity: 0.28 !important;
  background-image:
    linear-gradient(rgba(82, 126, 171, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 126, 171, 0.12) 1px, transparent 1px) !important;
}

html[data-ui-theme="light"] body.cinema-ui .topbar {
  border-color: rgba(123, 162, 206, 0.34) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(143, 218, 255, 0.27), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 251, 255, 0.96)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 36px rgba(72, 106, 149, 0.14) !important;
}

html[data-ui-theme="light"] body.cinema-ui .dashboard-sidebar,
html[data-ui-theme="light"] body.cinema-ui .dashboard-command-bar,
html[data-ui-theme="light"] body.cinema-ui .panel,
html[data-ui-theme="light"] body.cinema-ui .glass-card,
html[data-ui-theme="light"] body.cinema-ui .upload-status-card,
html[data-ui-theme="light"] body.cinema-ui .upload-lab,
html[data-ui-theme="light"] body.cinema-ui .history-drawer,
html[data-ui-theme="light"] body.cinema-ui .history-item,
html[data-ui-theme="light"] body.cinema-ui .queue-item,
html[data-ui-theme="light"] body.cinema-ui .vendor-row,
html[data-ui-theme="light"] body.cinema-ui .workflow-node,
html[data-ui-theme="light"] body.cinema-ui .timeline-step,
html[data-ui-theme="light"] body.cinema-ui .metric-card,
html[data-ui-theme="light"] body.cinema-ui .table-panel,
html[data-ui-theme="light"] body.cinema-ui .ops-card,
html[data-ui-theme="light"] body.cinema-ui .legend-row,
html[data-ui-theme="light"] body.cinema-ui .range-summary-card,
html[data-ui-theme="light"] body.cinema-ui .auth-stage,
html[data-ui-theme="light"] body.cinema-ui .auth-panel,
html[data-ui-theme="light"] body.cinema-ui .auth-info-card,
html[data-ui-theme="light"] body.cinema-ui .spotlight-panel,
html[data-ui-theme="light"] body.cinema-ui .confirm-modal,
html[data-ui-theme="light"] body.cinema-ui .rename-modal,
html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-modal,
html[data-ui-theme="light"] body.cinema-ui .preview-pdf-card,
html[data-ui-theme="light"] body.cinema-ui .preview-stat,
html[data-ui-theme="light"] body.cinema-ui .upload-preview-frame,
html[data-ui-theme="light"] body.cinema-ui .dropzone,
html[data-ui-theme="light"] body.cinema-ui .select-shell,
html[data-ui-theme="light"] body.cinema-ui .chart-row,
html[data-ui-theme="light"] body.cinema-ui .neuro-widget,
html[data-ui-theme="light"] body.cinema-ui .dashboard-sidebar-card {
  color: #1a3551 !important;
  border-color: rgba(122, 164, 210, 0.3) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(171, 229, 255, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 255, 0.99)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 38px rgba(76, 110, 151, 0.14) !important;
}

html[data-ui-theme="light"] body.cinema-ui .panel::after,
html[data-ui-theme="light"] body.cinema-ui .glass-card::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 50%) !important;
}

html[data-ui-theme="light"] body.cinema-ui .dashboard-command-copy h1,
html[data-ui-theme="light"] body.cinema-ui .hero-copy h2,
html[data-ui-theme="light"] body.cinema-ui .section-heading h3,
html[data-ui-theme="light"] body.cinema-ui .section-heading-tight h3,
html[data-ui-theme="light"] body.cinema-ui .auth-stage-copy h1,
html[data-ui-theme="light"] body.cinema-ui .auth-panel-head h2,
html[data-ui-theme="light"] body.cinema-ui .metric-card strong,
html[data-ui-theme="light"] body.cinema-ui .spotlight-title,
html[data-ui-theme="light"] body.cinema-ui .chart-meta strong,
html[data-ui-theme="light"] body.cinema-ui .vendor-row strong,
html[data-ui-theme="light"] body.cinema-ui .queue-item strong,
html[data-ui-theme="light"] body.cinema-ui .workflow-node strong,
html[data-ui-theme="light"] body.cinema-ui .timeline-step strong,
html[data-ui-theme="light"] body.cinema-ui .table-panel th,
html[data-ui-theme="light"] body.cinema-ui .table-panel td,
html[data-ui-theme="light"] body.cinema-ui .preview-empty strong,
html[data-ui-theme="light"] body.cinema-ui .preview-pdf-card strong,
html[data-ui-theme="light"] body.cinema-ui .preview-stat strong,
html[data-ui-theme="light"] body.cinema-ui .line-chart-copy strong,
html[data-ui-theme="light"] body.cinema-ui .line-chart-focus strong {
  color: #102943 !important;
}

html[data-ui-theme="light"] body.cinema-ui .topbar-text,
html[data-ui-theme="light"] body.cinema-ui .hero-text,
html[data-ui-theme="light"] body.cinema-ui .auth-lead,
html[data-ui-theme="light"] body.cinema-ui .auth-panel-head p:last-child,
html[data-ui-theme="light"] body.cinema-ui .status-note,
html[data-ui-theme="light"] body.cinema-ui .history-copy,
html[data-ui-theme="light"] body.cinema-ui .history-note,
html[data-ui-theme="light"] body.cinema-ui .upload-helper,
html[data-ui-theme="light"] body.cinema-ui .workflow-node p,
html[data-ui-theme="light"] body.cinema-ui .timeline-step p,
html[data-ui-theme="light"] body.cinema-ui .line-chart-kicker,
html[data-ui-theme="light"] body.cinema-ui .line-chart-axis-label,
html[data-ui-theme="light"] body.cinema-ui .metric-card span,
html[data-ui-theme="light"] body.cinema-ui .dashboard-sidebar-card p,
html[data-ui-theme="light"] body.cinema-ui .muted,
html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-body,
html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-note {
  color: #4c6885 !important;
}

html[data-ui-theme="light"] body.cinema-ui .dashboard-range-shell > span,
html[data-ui-theme="light"] body.cinema-ui .chart-select-shell > span,
html[data-ui-theme="light"] body.cinema-ui .eyebrow,
html[data-ui-theme="light"] body.cinema-ui .mini-label,
html[data-ui-theme="light"] body.cinema-ui .drop-kicker {
  color: #9a5f39 !important;
}

html[data-ui-theme="light"] body.cinema-ui .dashboard-search-shell,
html[data-ui-theme="light"] body.cinema-ui .dashboard-range-shell,
html[data-ui-theme="light"] body.cinema-ui .text-input,
html[data-ui-theme="light"] body.cinema-ui .month-select,
html[data-ui-theme="light"] body.cinema-ui .period-select,
html[data-ui-theme="light"] body.cinema-ui .dashboard-search-input {
  color: #173553 !important;
  border-color: rgba(120, 165, 213, 0.38) !important;
  background: linear-gradient(180deg, #ffffff, #f3f9ff) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 20px rgba(103, 140, 183, 0.14) !important;
}

html[data-ui-theme="light"] body.cinema-ui .dashboard-search-input::placeholder,
html[data-ui-theme="light"] body.cinema-ui .text-input::placeholder {
  color: #5f7f9d !important;
}

html[data-ui-theme="light"] body.cinema-ui .text-input:focus,
html[data-ui-theme="light"] body.cinema-ui .month-select:focus,
html[data-ui-theme="light"] body.cinema-ui .period-select:focus,
html[data-ui-theme="light"] body.cinema-ui .dashboard-search-input:focus {
  border-color: rgba(89, 170, 228, 0.62) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 3px rgba(113, 201, 244, 0.18),
    0 12px 24px rgba(79, 130, 182, 0.2) !important;
}

html[data-ui-theme="light"] body.cinema-ui .primary-button,
html[data-ui-theme="light"] body.cinema-ui .topbar-primary-button {
  color: #0f2a42 !important;
  border-color: rgba(88, 170, 220, 0.5) !important;
  background: linear-gradient(120deg, #8ce0ee 0%, #78b9ef 52%, #f6cda6 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 12px 26px rgba(93, 151, 201, 0.28) !important;
}

html[data-ui-theme="light"] body.cinema-ui .secondary-button,
html[data-ui-theme="light"] body.cinema-ui .ghost-link,
html[data-ui-theme="light"] body.cinema-ui .ghost-button,
html[data-ui-theme="light"] body.cinema-ui .status-pill,
html[data-ui-theme="light"] body.cinema-ui .status-tag,
html[data-ui-theme="light"] body.cinema-ui .filter-chip,
html[data-ui-theme="light"] body.cinema-ui .receipt-mini-pill,
html[data-ui-theme="light"] body.cinema-ui .topbar-pills span,
html[data-ui-theme="light"] body.cinema-ui .fun-tags span,
html[data-ui-theme="light"] body.cinema-ui .pipeline span {
  color: #1f3c5a !important;
  border-color: rgba(122, 164, 210, 0.34) !important;
  background: linear-gradient(180deg, #ffffff, #eef6ff) !important;
}

html[data-ui-theme="light"] body.cinema-ui .dashboard-nav-link,
html[data-ui-theme="light"] body.cinema-ui .dashboard-nav-link span {
  color: #234a71 !important;
}

html[data-ui-theme="light"] body.cinema-ui .dashboard-nav-link:hover,
html[data-ui-theme="light"] body.cinema-ui .dashboard-nav-link.is-active {
  border-color: rgba(92, 166, 221, 0.4) !important;
  background: linear-gradient(180deg, #f0f8ff, #e8f2ff) !important;
  box-shadow:
    inset 0 0 0 1px rgba(109, 184, 234, 0.26),
    0 10px 20px rgba(95, 141, 190, 0.16) !important;
}

html[data-ui-theme="light"] body.cinema-ui .table-panel tbody tr,
html[data-ui-theme="light"] body.cinema-ui .table-panel tbody tr:nth-child(odd),
html[data-ui-theme="light"] body.cinema-ui .table-panel tbody tr:nth-child(even) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 255, 0.96)) !important;
  border-color: rgba(127, 167, 210, 0.24) !important;
}

html[data-ui-theme="light"] body.cinema-ui .table-panel tbody tr:hover {
  background: linear-gradient(180deg, rgba(242, 251, 255, 0.98), rgba(233, 246, 255, 0.98)) !important;
  border-color: rgba(101, 170, 224, 0.36) !important;
}

html[data-ui-theme="light"] body.cinema-ui .bar-track,
html[data-ui-theme="light"] body.cinema-ui .trend-track {
  background: rgba(130, 170, 212, 0.2) !important;
}

html[data-ui-theme="light"] body.cinema-ui .bar-fill {
  background: linear-gradient(90deg, #5ba9eb, #77cbdf) !important;
}

html[data-ui-theme="light"] body.cinema-ui .line-chart-grid-line {
  stroke: rgba(100, 142, 186, 0.24) !important;
}

html[data-ui-theme="light"] body.cinema-ui .line-chart-path {
  stroke: #4b97e6 !important;
}

html[data-ui-theme="light"] body.cinema-ui .line-chart-path-glow {
  stroke: rgba(75, 151, 230, 0.28) !important;
}

html[data-ui-theme="light"] body.cinema-ui .expense-donut {
  background: conic-gradient(#60b7e9 0 62%, rgba(142, 169, 202, 0.36) 62% 100%) !important;
}

html[data-ui-theme="light"] body.cinema-ui .confirm-scrim,
html[data-ui-theme="light"] body.cinema-ui .rename-scrim,
html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-scrim,
html[data-ui-theme="light"] body.cinema-ui .history-scrim {
  background: rgba(32, 63, 97, 0.28) !important;
  backdrop-filter: blur(9px) saturate(118%) !important;
}

html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-modal[data-tone="reject"] {
  border-color: rgba(219, 111, 88, 0.52) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 202, 189, 0.3), transparent 34%),
    linear-gradient(180deg, rgba(255, 246, 242, 0.98), rgba(255, 237, 231, 0.98)) !important;
}

html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-modal[data-tone="keep"] {
  border-color: rgba(90, 182, 225, 0.52) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(198, 240, 255, 0.3), transparent 34%),
    linear-gradient(180deg, rgba(246, 253, 255, 0.98), rgba(232, 248, 255, 0.98)) !important;
}

html[data-ui-theme="light"] body.cinema-ui .upload-warning-banner {
  border-color: rgba(212, 122, 96, 0.44) !important;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 199, 175, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(255, 247, 241, 0.98), rgba(255, 236, 227, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 38px rgba(174, 102, 84, 0.22) !important;
}

html[data-ui-theme="light"] body.auth-page.cinema-ui {
  background:
    radial-gradient(circle at 7% 10%, rgba(129, 215, 255, 0.3), transparent 31%),
    radial-gradient(circle at 94% 8%, rgba(153, 180, 255, 0.24), transparent 33%),
    linear-gradient(180deg, #f4fbff 0%, #ecf5ff 100%) !important;
}

html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-stage,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-panel,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-info-card {
  border-color: rgba(124, 165, 208, 0.3) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(166, 229, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 255, 0.99)) !important;
}

html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-status {
  color: #244768 !important;
}

@media (max-width: 900px) {
  html[data-ui-theme="light"] body.cinema-ui .dashboard-sidebar,
  html[data-ui-theme="light"] body.cinema-ui .dashboard-main,
  html[data-ui-theme="light"] body.cinema-ui .dashboard-command-bar {
    border-radius: 18px !important;
  }
}

/* Light mode precision fixes: logo harmony, range labels, vendor icons */
html[data-ui-theme="light"] body.cinema-ui .brand-mark,
html[data-ui-theme="light"] body.cinema-ui .dashboard-command-brand {
  background: transparent !important;
}

html[data-ui-theme="light"] body.cinema-ui .dashboard-range-shell,
html[data-ui-theme="light"] body.cinema-ui .chart-select-shell {
  display: grid !important;
  gap: 0.3rem !important;
  align-content: center !important;
  justify-items: stretch !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  min-height: 3.45rem !important;
  padding: 0.48rem 0.88rem 0.56rem !important;
}

html[data-ui-theme="light"] body.cinema-ui .chart-select-shell {
  min-width: 12.4rem !important;
  width: min(100%, 16rem) !important;
}

html[data-ui-theme="light"] body.cinema-ui .dashboard-range-shell > span,
html[data-ui-theme="light"] body.cinema-ui .chart-select-shell > span,
html[data-ui-theme="light"] body.cinema-ui .select-shell > span {
  display: block !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 0.04rem !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.05 !important;
}

html[data-ui-theme="light"] body.cinema-ui .dashboard-range-shell .period-select,
html[data-ui-theme="light"] body.cinema-ui .dashboard-range-shell .month-select,
html[data-ui-theme="light"] body.cinema-ui .chart-select-shell .month-select {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  line-height: 1.2 !important;
  padding-top: 0.02rem !important;
}

html[data-ui-theme="light"] body.cinema-ui .dashboard-search-shell {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.56rem !important;
  padding: 0 0.92rem !important;
  overflow: hidden !important;
}

html[data-ui-theme="light"] body.cinema-ui .dashboard-search-input {
  min-width: 0 !important;
  width: 100% !important;
  border: 0 !important;
  outline: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 1.2 !important;
}

html[data-ui-theme="light"] body.cinema-ui .dashboard-search-input:focus {
  box-shadow: none !important;
}

html[data-ui-theme="light"] body.cinema-ui .chart-meta strong,
html[data-ui-theme="light"] body.cinema-ui .vendor-meta strong {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.58rem !important;
  max-width: 100% !important;
  line-height: 1.24 !important;
}

html[data-ui-theme="light"] body.cinema-ui .receipt-icon-badge,
html[data-ui-theme="light"] body.cinema-ui .chart-meta .receipt-icon-badge,
html[data-ui-theme="light"] body.cinema-ui .vendor-meta .receipt-icon-badge {
  width: 2rem !important;
  height: 2rem !important;
  min-width: 2rem !important;
  border-radius: 999px !important;
  font-size: 0.98rem !important;
  color: #25659d !important;
  background: linear-gradient(180deg, #f9fdff, #e8f3ff) !important;
  border: 1px solid rgba(98, 160, 214, 0.52) !important;
  box-shadow:
    0 6px 14px rgba(97, 149, 197, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

/* Stability polish 2026-04-18: deterministic drawer, range labels, and icon visibility */
body.cinema-ui .history-scrim {
  position: fixed !important;
  inset: 0 !important;
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 2490 !important;
  background: rgba(8, 18, 32, 0.56) !important;
  backdrop-filter: blur(8px) saturate(112%) !important;
}

body.history-open.cinema-ui .history-scrim,
body.cinema-ui .history-scrim.is-open {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.cinema-ui .history-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  width: min(420px, 92vw) !important;
  max-width: 92vw !important;
  height: 100vh !important;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transform: translate3d(106%, 0, 0) !important;
  pointer-events: none !important;
  z-index: 2491 !important;
}

body.history-open.cinema-ui .history-drawer,
body.cinema-ui .history-drawer.is-open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
  pointer-events: auto !important;
}

body.cinema-ui .history-drawer[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transform: translate3d(106%, 0, 0) !important;
  pointer-events: none !important;
}

body.cinema-ui .dashboard-range-shell,
body.cinema-ui .chart-select-shell {
  box-sizing: border-box !important;
  overflow: hidden !important;
  justify-items: stretch !important;
}

body.cinema-ui .dashboard-range-shell > span,
body.cinema-ui .chart-select-shell > span,
body.cinema-ui .select-shell > span {
  position: static !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.cinema-ui .dashboard-range-shell .period-select,
body.cinema-ui .dashboard-range-shell .month-select,
body.cinema-ui .chart-select-shell .month-select {
  width: 100% !important;
  min-width: 0 !important;
}

body.cinema-ui .chart-meta strong,
body.cinema-ui .vendor-meta strong,
body.cinema-ui .receipt-mainline {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.56rem !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
}

body.cinema-ui .receipt-icon-badge {
  flex: 0 0 auto !important;
}

html[data-ui-theme="dark"] body.cinema-ui .dashboard-search-input {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-ui-theme="light"] body.cinema-ui .history-scrim {
  background: rgba(32, 63, 97, 0.3) !important;
}

html[data-ui-theme="light"] body.cinema-ui .brand-logo {
  filter: none !important;
}

html[data-ui-theme="light"] body.cinema-ui .chart-meta strong,
html[data-ui-theme="light"] body.cinema-ui .vendor-meta strong,
html[data-ui-theme="light"] body.cinema-ui .receipt-mainline {
  color: #1e3550 !important;
}

html[data-ui-theme="light"] body.cinema-ui .receipt-icon-badge,
html[data-ui-theme="light"] body.cinema-ui .chart-meta .receipt-icon-badge,
html[data-ui-theme="light"] body.cinema-ui .vendor-meta .receipt-icon-badge {
  color: #235783 !important;
  background: linear-gradient(180deg, #f8fcff, #e6f2ff) !important;
  border-color: rgba(98, 158, 210, 0.56) !important;
  box-shadow:
    0 6px 14px rgba(97, 149, 197, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

/* Final UI hotfix 2026-04-19: history drawer readability + warning contrast */
html[data-ui-theme="light"] body.cinema-ui .history-drawer {
  background: linear-gradient(180deg, #f8fcff 0%, #f1f8ff 54%, #ebf4ff 100%) !important;
  border-left-color: rgba(118, 161, 208, 0.42) !important;
  box-shadow:
    -24px 0 46px rgba(73, 105, 142, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

html[data-ui-theme="light"] body.cinema-ui .history-head {
  padding-bottom: 0.58rem !important;
  margin-bottom: 0.5rem !important;
  border-bottom: 1px solid rgba(126, 170, 215, 0.3) !important;
}

html[data-ui-theme="light"] body.cinema-ui .history-head .eyebrow {
  color: #9a5a3a !important;
}

html[data-ui-theme="light"] body.cinema-ui .history-head h3,
html[data-ui-theme="light"] body.cinema-ui .history-copy,
html[data-ui-theme="light"] body.cinema-ui .history-note {
  color: #1f3d5a !important;
}

html[data-ui-theme="light"] body.cinema-ui .history-item .receipt-icon-badge,
html[data-ui-theme="light"] body.cinema-ui .history-name .receipt-icon-badge {
  width: 2rem !important;
  height: 2rem !important;
  min-width: 2rem !important;
  font-size: 1.02rem !important;
  color: #0f4c81 !important;
  background: linear-gradient(180deg, #ffffff, #dfeeff) !important;
  border: 1px solid rgba(82, 142, 198, 0.62) !important;
  box-shadow:
    0 7px 16px rgba(84, 132, 181, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.94) !important;
}

html[data-ui-theme="light"] body.cinema-ui .history-name {
  color: #153a5e !important;
}

html[data-ui-theme="light"] body.cinema-ui .upload-warning-banner {
  border-color: rgba(208, 119, 94, 0.48) !important;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 206, 185, 0.26), transparent 36%),
    linear-gradient(180deg, rgba(255, 248, 244, 0.99), rgba(255, 238, 230, 0.99)) !important;
}

html[data-ui-theme="light"] body.cinema-ui .upload-warning-banner::before {
  opacity: 0.2 !important;
  mix-blend-mode: normal !important;
}

html[data-ui-theme="light"] body.cinema-ui .upload-warning-kicker {
  color: #ab4a2a !important;
}

html[data-ui-theme="light"] body.cinema-ui .upload-warning-copy strong {
  color: #8c3018 !important;
  text-shadow: none !important;
}

html[data-ui-theme="light"] body.cinema-ui .upload-warning-copy p:last-child {
  color: #27435f !important;
}

html[data-ui-theme="light"] body.cinema-ui .upload-warning-icon {
  color: #9f3a1e !important;
  border-color: rgba(211, 127, 98, 0.44) !important;
  background:
    linear-gradient(160deg, rgba(255, 215, 170, 0.55), rgba(255, 164, 145, 0.34)),
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.2), transparent 42%) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 20px rgba(219, 122, 93, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}

html[data-ui-theme="light"] body.cinema-ui .upload-warning-pill {
  color: #8f3a20 !important;
  border-color: rgba(214, 128, 96, 0.4) !important;
  background: rgba(255, 255, 255, 0.8) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

html[data-ui-theme="light"] body.cinema-ui .history-head {
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(241, 248, 255, 0.94), rgba(241, 248, 255, 0)) !important;
}

html[data-ui-theme="light"] body.cinema-ui .history-item .history-thumb-placeholder {
  color: #6db7d8 !important;
  border-color: rgba(105, 207, 216, 0.5) !important;
  background: linear-gradient(180deg, rgba(228, 252, 251, 0.98), rgba(205, 242, 244, 0.96)) !important;
}

html[data-ui-theme="light"] body.cinema-ui .history-item .receipt-icon-badge {
  color: #123f70 !important;
  text-shadow: none !important;
}

html[data-ui-theme="light"] body.cinema-ui .upload-warning-copy,
html[data-ui-theme="light"] body.cinema-ui .upload-warning-copy p,
html[data-ui-theme="light"] body.cinema-ui .upload-warning-copy strong {
  text-shadow: none !important;
}

/* Dark dashboard rebuild 2026-04-19: reference-inspired structure + 3D hero */
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin {
  color-scheme: dark;
  background:
    radial-gradient(circle at 12% 18%, rgba(54, 86, 255, 0.16), transparent 22%),
    radial-gradient(circle at 86% 10%, rgba(130, 89, 255, 0.12), transparent 18%),
    linear-gradient(180deg, #060712 0%, #090b19 54%, #070811 100%) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .cinema-stage {
  opacity: 0.24 !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-shell {
  grid-template-columns: 88px minmax(0, 1fr) !important;
  gap: 1.2rem !important;
  padding: 1.1rem !important;
  max-width: 1540px;
  margin: 0 auto;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar {
  position: sticky !important;
  top: 1.1rem !important;
  min-height: calc(100vh - 2.2rem) !important;
  padding: 0.9rem 0.75rem !important;
  gap: 0.95rem !important;
  border-radius: 8px !important;
  border: 1px solid rgba(129, 141, 255, 0.14) !important;
  background:
    linear-gradient(180deg, rgba(11, 13, 30, 0.98), rgba(8, 10, 24, 0.99)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 54px rgba(0, 0, 0, 0.42) !important;
  overflow: hidden;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(91, 119, 255, 0.08), transparent 24%, transparent 72%, rgba(121, 227, 255, 0.05));
  pointer-events: none;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .brand-lockup-sidebar {
  display: grid;
  place-items: center;
  padding-bottom: 0.8rem !important;
  border-bottom: 1px solid rgba(163, 174, 255, 0.1) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .brand-mark {
  justify-content: center !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .brand-logo {
  width: 2.6rem !important;
  height: auto;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-profile-card,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar-card,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar-footer {
  border-radius: 8px !important;
  border: 1px solid rgba(130, 142, 255, 0.12) !important;
  background: linear-gradient(180deg, rgba(17, 20, 43, 0.92), rgba(11, 13, 29, 0.96)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-profile-card {
  padding: 0.85rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-profile-head {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-profile-avatar {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50%;
  border: 1px solid rgba(141, 226, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(86, 105, 255, 0.14);
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-profile-date,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-profile-copy h3,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar-card,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar-footer,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar-pill,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .status-note {
  font-size: 0 !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-nav {
  justify-items: center;
  gap: 0.6rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-nav-link {
  width: 48px;
  min-height: 48px !important;
  padding: 0 !important;
  justify-content: center !important;
  border-radius: 8px !important;
  font-size: 0 !important;
  border: 1px solid rgba(132, 143, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-nav-link::before {
  display: none !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-nav-icon {
  font-size: 0.92rem !important;
  color: #9ea7cf !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-nav-link.is-active,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-nav-link:hover {
  background: linear-gradient(180deg, rgba(88, 105, 255, 0.34), rgba(44, 58, 182, 0.28)) !important;
  border-color: rgba(135, 164, 255, 0.36) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(53, 70, 210, 0.3) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-nav-link.is-active .dashboard-nav-icon,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-nav-link:hover .dashboard-nav-icon {
  color: #eff3ff !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-main {
  gap: 1.2rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-bar,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .panel,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .glass-card,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .upload-status-card,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .metric-card,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .chart-row,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .vendor-row,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .queue-item,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .workflow-node,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .legend-row,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .history-drawer,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .confirm-modal,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .rename-modal,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .duplicate-decision-modal,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .table-panel {
  border-radius: 8px !important;
  border: 1px solid rgba(126, 137, 250, 0.12) !important;
  background:
    linear-gradient(180deg, rgba(16, 19, 43, 0.97), rgba(9, 11, 27, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 22px 48px rgba(0, 0, 0, 0.34) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-bar {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 1rem 1.2rem !important;
  padding: 1rem 1.1rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-copy .eyebrow,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .section-heading .eyebrow,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .section-heading-tight .eyebrow,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .field span,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .drop-kicker,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .mini-label {
  color: #8f97c8 !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-copy h1,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .hero-copy h2,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .section-heading h3,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .section-heading-tight h3,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .spotlight-title,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .chart-meta strong,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .vendor-meta strong,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .metric-card strong {
  color: #f7f9ff !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .topbar-text,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .hero-text,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .muted,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .upload-helper,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .history-copy,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .history-note,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .spotlight-narrative,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .workflow-node p,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .timeline-step p {
  color: #9299bf !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-tools {
  justify-content: flex-end !important;
  gap: 0.75rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-range-shell,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-search-shell,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .text-input,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .month-select,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .period-select,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .select-shell,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dropzone,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .upload-preview-frame,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .preview-stat {
  border-radius: 8px !important;
  border: 1px solid rgba(123, 136, 255, 0.14) !important;
  background: linear-gradient(180deg, rgba(12, 15, 34, 0.98), rgba(8, 10, 24, 0.98)) !important;
  color: #eef3ff !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-search-shell {
  min-width: 15rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-search-input {
  color: #d8def7 !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .primary-button,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .topbar-primary-button {
  border-radius: 8px !important;
  border-color: rgba(126, 213, 255, 0.44) !important;
  background: linear-gradient(135deg, #6a62ff 0%, #4f8fff 52%, #79e8ff 100%) !important;
  color: #f8fbff !important;
  box-shadow:
    0 16px 34px rgba(73, 104, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .ghost-link,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .ghost-button,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .status-pill,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .status-tag,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .receipt-mini-pill,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .filter-chip {
  border-radius: 8px !important;
  border-color: rgba(124, 135, 249, 0.14) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: #dbe2ff !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .shell {
  gap: 1.2rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin #analyticsBoard {
  grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1.3fr) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin #reviewQueue {
  order: 2 !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin #analyticsSection {
  order: 1 !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin #overviewSection {
  grid-template-columns: minmax(0, 1.26fr) minmax(320px, 0.74fr) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .hero {
  position: relative;
  min-height: 520px;
  padding: 1.1rem !important;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.54fr) !important;
  gap: 1rem !important;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 18, 46, 0.98), rgba(10, 12, 28, 0.99)) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(82, 111, 255, 0.16), transparent 32%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .hero-copy {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: grid;
  align-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.2rem;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .hero-copy h2 {
  max-width: 11ch !important;
  font-size: clamp(2.5rem, 4vw, 4.2rem) !important;
  line-height: 0.96 !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(140px, 1.45fr) repeat(2, minmax(108px, 0.74fr));
  gap: 0.85rem !important;
  align-content: stretch !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .hero-grid .glass-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px !important;
  border: 1px solid rgba(127, 139, 255, 0.14) !important;
  background: linear-gradient(180deg, rgba(18, 22, 54, 0.98), rgba(10, 12, 28, 0.98)) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .hero-grid .glass-card.spotlight {
  grid-column: 1 / -1;
  min-height: 280px;
  padding: 1rem 1rem 1.1rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .hero-grid .glass-card.spotlight::before {
  content: "";
  position: absolute;
  inset: 18px 18px 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(27, 182, 255, 0.46) 0%, rgba(89, 115, 255, 0.3) 32%, rgba(10, 14, 38, 0.02) 68%, transparent 72%),
    repeating-radial-gradient(circle at 50% 50%, rgba(150, 227, 255, 0.2) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(135deg, rgba(143, 213, 255, 0.12) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(45deg, rgba(112, 120, 255, 0.12) 0 1px, transparent 1px 9px);
  filter: saturate(120%);
  box-shadow:
    inset 0 0 40px rgba(91, 162, 255, 0.18),
    0 0 40px rgba(78, 104, 255, 0.2);
  animation: neoMeshPulse 7s ease-in-out infinite;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .hero-grid .glass-card.spotlight::after {
  content: "";
  position: absolute;
  inset: 36px 72px 88px;
  border-radius: 50% 44% 56% 48% / 44% 56% 42% 58%;
  border: 1px solid rgba(160, 226, 255, 0.34);
  box-shadow:
    0 0 28px rgba(111, 153, 255, 0.3),
    inset 0 0 24px rgba(124, 210, 255, 0.14);
  animation: neoMeshFloat 8.4s ease-in-out infinite;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .hero-grid .glass-card.spotlight .mini-label,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .hero-grid .glass-card.spotlight strong,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .hero-grid .glass-card.spotlight p {
  position: relative;
  z-index: 1;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .hero-actions,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .fun-tags {
  gap: 0.65rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .fun-tags span,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .pipeline span {
  border-radius: 8px !important;
  border-color: rgba(127, 139, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .upload-lab {
  padding: 1rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .upload-status-card {
  margin-top: 1rem;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .metric-card {
  min-height: 196px;
  padding: 1rem 1.05rem !important;
  position: relative;
  overflow: hidden;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .metric-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 14px 14px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(81, 112, 255, 0.94), rgba(120, 230, 255, 0.9));
  box-shadow: 0 0 18px rgba(105, 160, 255, 0.34);
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .insight-layout,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .mission-grid {
  gap: 1rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin #summaryBoard {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .chart-row,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .vendor-row {
  padding: 0.95rem 1rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .bar-track,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .trend-track {
  background: rgba(255, 255, 255, 0.06) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .bar-fill,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .trend-fill {
  background: linear-gradient(90deg, #6670ff 0%, #4ba0ff 48%, #87f1ff 100%) !important;
  box-shadow:
    0 0 18px rgba(81, 125, 255, 0.34),
    0 0 28px rgba(87, 218, 255, 0.16) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .expense-donut {
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.02),
    0 0 42px rgba(90, 121, 255, 0.22) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .expense-donut::after {
  background: linear-gradient(180deg, rgba(12, 15, 34, 0.98), rgba(9, 11, 25, 0.99)) !important;
  box-shadow: inset 0 0 0 1px rgba(122, 134, 251, 0.12) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .receipt-icon-badge {
  width: 1.9rem !important;
  height: 1.9rem !important;
  min-width: 1.9rem !important;
  color: #eef6ff !important;
  background: linear-gradient(180deg, rgba(95, 124, 255, 0.42), rgba(67, 144, 255, 0.2)) !important;
  border: 1px solid rgba(131, 184, 255, 0.28) !important;
  box-shadow:
    0 0 16px rgba(88, 118, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .table-panel .table-wrap {
  max-height: 480px !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .table-panel table {
  color: #eef3ff !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .table-panel th {
  color: #8f97c8 !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .history-scrim,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .confirm-scrim,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .rename-scrim,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .duplicate-decision-scrim {
  background: rgba(5, 7, 18, 0.72) !important;
  backdrop-filter: blur(12px) !important;
}

@keyframes neoMeshPulse {
  0%,
  100% {
    transform: scale(0.98) rotate(0deg);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.02) rotate(6deg);
    opacity: 1;
  }
}

@keyframes neoMeshFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(6px, -8px, 0) rotate(9deg);
  }
}

@media (max-width: 1180px) {
  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-shell {
    grid-template-columns: 1fr !important;
  }

  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar {
    position: relative !important;
    top: auto !important;
    min-height: auto !important;
    grid-template-columns: auto 1fr auto auto !important;
    align-items: center;
  }

  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-profile-card,
  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar-card,
  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar-footer {
    display: none !important;
  }

  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-nav {
    grid-template-columns: repeat(5, 48px);
  }
}

@media (max-width: 920px) {
  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin #overviewSection,
  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin #analyticsBoard,
  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin #summaryBoard,
  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .hero,
  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-bar {
    grid-template-columns: 1fr !important;
  }

  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .hero-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .metrics-grid {
    grid-template-columns: 1fr !important;
  }

  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
  }

  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-nav-link {
    width: 100%;
  }
}

/* Final reference dashboard pass 2026-04-20 */
.neo-dashboard-board {
  display: grid;
  gap: 1rem;
}

.neo-card,
.neo-side-stack {
  min-width: 0;
}

.neo-card {
  overflow: hidden;
}

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

.neo-card-head h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.12;
}

.neo-card-meta {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.neo-card-copy {
  margin: 0;
  line-height: 1.7;
}

.neo-profile-summary {
  display: grid;
  gap: 0.42rem;
  min-height: 156px;
  align-content: start;
}

.neo-profile-summary strong {
  font-size: 1.02rem;
  line-height: 1.35;
  word-break: break-word;
}

.neo-profile-summary span {
  font-size: 0.88rem;
  line-height: 1.65;
}

.neo-card-action {
  min-height: 2rem;
  padding: 0.38rem 0.8rem;
  font-size: 0.76rem;
}

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

.neo-mini-bars .neo-empty-note {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: start;
  max-width: 20rem;
  line-height: 1.45;
}

.neo-figure-stage {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.neo-figure-halo {
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.neo-figure-halo--one {
  width: 72%;
  aspect-ratio: 1;
}

.neo-figure-halo--two {
  width: 54%;
  aspect-ratio: 1;
}

.neo-figure-canvas {
  position: relative;
  z-index: 1;
  width: min(100%, 356px);
  height: 300px;
  display: block;
  cursor: grab;
  touch-action: none;
  outline: none;
}

.neo-figure-canvas:focus-visible {
  outline: 2px solid rgba(132, 195, 244, 0.9);
  outline-offset: 3px;
}

.neo-figure-canvas.is-dragging {
  cursor: grabbing;
}

.neo-figure-hint {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  margin: 0;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.28rem 0.66rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 173, 220, 0.34);
  background: rgba(255, 255, 255, 0.72);
  color: #234362;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0.92;
  backdrop-filter: blur(10px);
}

@media (max-width: 760px) {
  .neo-figure-hint {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    padding: 0.24rem 0.52rem;
    bottom: 0.52rem;
  }
}

.neo-mini-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 0.55rem;
  min-height: 156px;
}

.neo-mini-bar {
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.neo-mini-bar-fill {
  width: 100%;
  min-height: 26px;
  height: var(--bar-height, 44%);
  border-radius: 8px 8px 4px 4px;
  display: block;
}

.neo-mini-bar small {
  font-size: 0.72rem;
  white-space: nowrap;
}

.neo-side-stack {
  display: grid;
  gap: 1rem;
}

.neo-share-ring {
  width: min(100%, 148px);
  aspect-ratio: 1;
  margin: 0.2rem auto 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}

.neo-share-ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
}

.neo-share-ring span {
  position: relative;
  z-index: 1;
  max-width: 72px;
  text-align: center;
  font-size: 0.76rem;
  line-height: 1.35;
}

.neo-gauge-track {
  position: relative;
  height: 94px;
  margin-top: 0.4rem;
  overflow: hidden;
}

.neo-gauge-arc {
  position: absolute;
  inset: 0;
  border-radius: 999px 999px 0 0;
  clip-path: inset(0 0 49% 0);
}

.neo-gauge-arc::after {
  content: "";
  position: absolute;
  inset: 14px 14px 0;
  border-radius: inherit;
  clip-path: inset(0 0 48% 0);
}

.neo-trend-board,
.neo-transaction-list,
.neo-spend-list {
  min-height: 0;
}

.neo-transaction-list,
.neo-spend-list {
  display: grid;
  gap: 0.72rem;
}

.neo-transaction-row,
.neo-spend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-width: 0;
  padding: 0.88rem 0.95rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.neo-transaction-copy,
.neo-transaction-meta,
.neo-spend-copy {
  display: grid;
  gap: 0.26rem;
  min-width: 0;
}

.neo-transaction-copy strong,
.neo-spend-copy strong {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.neo-transaction-copy span,
.neo-transaction-meta span,
.neo-spend-copy span {
  font-size: 0.83rem;
}

.neo-transaction-meta {
  text-align: right;
  justify-items: end;
  flex: 0 0 auto;
}

.neo-spend-row {
  display: grid;
}

.neo-spend-track {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
}

.neo-spend-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.neo-dashboard-board .line-chart-shell {
  gap: 0.8rem;
}

.neo-dashboard-board .line-chart-copy strong,
.neo-dashboard-board .line-chart-focus strong {
  font-size: 1.02rem;
}

.neo-dashboard-board .line-chart-axis-label {
  font-size: 0.68rem;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-shell {
  grid-template-columns: 248px minmax(0, 1fr) !important;
  gap: 1.15rem !important;
  padding: 1rem !important;
  max-width: 1520px;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar {
  padding: 1rem 0.95rem !important;
  min-height: calc(100vh - 2rem) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(10, 12, 32, 0.98), rgba(8, 10, 24, 0.99)) !important;
  border-color: rgba(100, 114, 255, 0.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 22px 52px rgba(0, 0, 0, 0.42) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar::after {
  background:
    linear-gradient(180deg, rgba(82, 101, 255, 0.08), transparent 22%, transparent 78%, rgba(94, 224, 255, 0.06)) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .brand-lockup-sidebar {
  place-items: start !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .brand-mark {
  justify-content: flex-start !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .brand-logo {
  width: clamp(9.8rem, 12vw, 11.2rem) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-profile-card,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar-card,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar-footer {
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(16, 19, 45, 0.98), rgba(11, 13, 30, 0.98)) !important;
  border-color: rgba(112, 126, 255, 0.16) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-profile-card {
  padding: 0.95rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-profile-head {
  flex-direction: row !important;
  text-align: left !important;
  align-items: center !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-profile-avatar {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-profile-date,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-profile-copy h3,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar-card h3,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar-card p,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar-pill,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .status-note {
  font-size: revert !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-profile-date {
  color: #8f97c8 !important;
  letter-spacing: 0.16em !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-profile-copy h3,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar-card h3 {
  color: #f7f9ff !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar-card p,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .status-note {
  color: #97a0c8 !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-nav {
  gap: 0.55rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-nav-link {
  width: 100% !important;
  min-height: 3rem !important;
  padding: 0.82rem 0.95rem !important;
  justify-content: flex-start !important;
  gap: 0.58rem !important;
  font-size: 0.94rem !important;
  border-radius: 8px !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-nav-icon {
  font-size: 0.82rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-main {
  gap: 1rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-bar {
  border-radius: 8px !important;
  padding: 0.95rem 1.1rem !important;
  background:
    radial-gradient(circle at 18% 22%, rgba(78, 92, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(14, 16, 37, 0.98), rgba(10, 12, 28, 0.98)) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-tools {
  justify-content: flex-end !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .topbar-actions.dashboard-command-actions {
  gap: 0.55rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-actions .ghost-link,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-actions .ghost-button {
  min-height: 2.2rem;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .shell {
  gap: 1rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-dashboard-board {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr) 220px;
  align-items: stretch;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-side-stack > .neo-card {
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, rgba(17, 20, 46, 0.98), rgba(10, 12, 30, 0.99)) !important;
  border: 1px solid rgba(109, 123, 255, 0.16) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.3) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--assistant {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: 620px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--total {
  grid-column: 2;
  grid-row: 1;
  padding: 1rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-side-stack {
  grid-column: 3;
  grid-row: 1 / span 2;
  grid-template-rows: 1fr 1fr;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--share,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--gauge {
  padding: 1rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--trend {
  grid-column: 2;
  grid-row: 2;
  padding: 1rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--transactions {
  grid-column: 1 / span 2;
  grid-row: 3;
  padding: 1rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--spending {
  grid-column: 3;
  grid-row: 3;
  padding: 1rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card-head h3,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-transaction-copy strong,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-spend-copy strong {
  color: #f8faff !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card-meta,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card-copy,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-transaction-copy span,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-transaction-meta span,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-spend-copy span,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-mini-bar small {
  color: #939cc6 !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card-meta {
  border: 1px solid rgba(110, 123, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card-action {
  border-color: rgba(117, 132, 255, 0.18) !important;
  background: linear-gradient(135deg, rgba(106, 99, 255, 0.26), rgba(93, 228, 255, 0.16)) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-figure-stage {
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(84, 106, 255, 0.16), transparent 32%),
    radial-gradient(circle at 48% 68%, rgba(114, 227, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(12, 15, 36, 0.96), rgba(8, 11, 27, 0.96));
  box-shadow: inset 0 0 0 1px rgba(121, 142, 255, 0.1);
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-figure-halo--one {
  background: radial-gradient(circle, rgba(70, 98, 255, 0.12), rgba(70, 98, 255, 0));
  filter: blur(10px);
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-figure-halo--two {
  width: 42%;
  background: radial-gradient(circle, rgba(207, 111, 255, 0.14), rgba(207, 111, 255, 0));
  filter: blur(8px);
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-figure-canvas {
  filter: drop-shadow(0 18px 34px rgba(12, 18, 38, 0.42));
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-mini-bar-fill {
  background: linear-gradient(180deg, rgba(98, 120, 255, 0.54), rgba(105, 228, 255, 0.96)) !important;
  box-shadow:
    0 0 0 1px rgba(124, 168, 255, 0.12),
    0 10px 22px rgba(69, 103, 255, 0.24);
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-mini-bar.is-active .neo-mini-bar-fill {
  background: linear-gradient(180deg, rgba(132, 95, 255, 0.76), rgba(110, 228, 255, 1)) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-share-ring {
  box-shadow: 0 0 30px rgba(105, 128, 255, 0.2);
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-share-ring::after {
  background: linear-gradient(180deg, rgba(14, 16, 36, 1), rgba(9, 11, 26, 1));
  box-shadow: inset 0 0 0 1px rgba(112, 123, 255, 0.14);
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-share-ring span {
  color: #edf2ff;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-gauge-track {
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(25, 29, 58, 0.96), rgba(11, 13, 30, 0.02));
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-gauge-arc::after {
  background: linear-gradient(180deg, rgba(15, 18, 40, 1), rgba(9, 11, 26, 1));
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-transaction-row,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-spend-row {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(113, 125, 255, 0.12);
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-spend-track {
  background: rgba(255, 255, 255, 0.08);
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin #overviewSection {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .hero,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .upload-lab,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .ops-card,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .metric-card,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .spotlight-panel,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin #analyticsSection,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin #reviewQueue,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin #summaryBoard > .panel,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin #workflowBoard,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin #receiptsTable {
  border-radius: 8px !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-dashboard-board {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr) 220px;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-side-stack > .neo-card {
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98)) !important;
  border: 1px solid rgba(154, 176, 220, 0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 34px rgba(89, 108, 140, 0.12) !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--assistant,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--total,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--trend,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--transactions,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--spending,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--share,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--gauge {
  padding: 1rem !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--assistant {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: 620px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--total {
  grid-column: 2;
  grid-row: 1;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-side-stack {
  grid-column: 3;
  grid-row: 1 / span 2;
  grid-template-rows: 1fr 1fr;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--trend {
  grid-column: 2;
  grid-row: 2;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--transactions {
  grid-column: 1 / span 2;
  grid-row: 3;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--spending {
  grid-column: 3;
  grid-row: 3;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card-head h3,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-transaction-copy strong,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-spend-copy strong {
  color: #20344c !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card-meta,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card-copy,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-transaction-copy span,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-transaction-meta span,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-spend-copy span,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-mini-bar small {
  color: #5c7290 !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card-meta {
  border: 1px solid rgba(161, 180, 222, 0.32);
  background: rgba(240, 246, 255, 0.9);
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card-action {
  background: linear-gradient(135deg, rgba(102, 112, 255, 0.12), rgba(95, 225, 255, 0.12)) !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-figure-stage {
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 66, 128, 0.16), transparent 32%),
    radial-gradient(circle at 48% 68%, rgba(9, 99, 124, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(222, 235, 246, 0.98), rgba(204, 222, 238, 0.95));
  box-shadow:
    inset 0 0 0 1px rgba(42, 84, 122, 0.2),
    inset 0 -34px 54px rgba(28, 55, 88, 0.11);
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-figure-halo--one {
  background: radial-gradient(circle, rgba(27, 61, 136, 0.16), rgba(27, 61, 136, 0));
  filter: blur(10px);
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-figure-halo--two {
  width: 42%;
  background: radial-gradient(circle, rgba(95, 42, 142, 0.16), rgba(95, 42, 142, 0));
  filter: blur(8px);
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-figure-canvas {
  filter: drop-shadow(0 18px 28px rgba(34, 51, 79, 0.22));
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-mini-bar-fill {
  background: linear-gradient(180deg, rgba(98, 120, 255, 0.48), rgba(105, 228, 255, 0.9)) !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-share-ring::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(246, 250, 255, 1));
  box-shadow: inset 0 0 0 1px rgba(154, 176, 220, 0.22);
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-share-ring span {
  color: #284362;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-gauge-track {
  background: linear-gradient(180deg, rgba(224, 233, 255, 0.82), rgba(255, 255, 255, 0.08));
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-gauge-arc::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(246, 250, 255, 1));
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-transaction-row,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-spend-row {
  background: rgba(244, 248, 255, 0.92);
  border-color: rgba(161, 180, 222, 0.24);
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-spend-track {
  background: rgba(184, 202, 230, 0.28);
}

@media (max-width: 1180px) {
  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-shell,
  html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-shell {
    grid-template-columns: 1fr !important;
  }

  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar,
  html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar {
    position: relative !important;
    top: auto !important;
    min-height: auto !important;
  }

  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-dashboard-board,
  html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-dashboard-board {
    grid-template-columns: 1fr 1fr !important;
  }

  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--assistant,
  html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--assistant {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 520px;
  }

  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--total,
  html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--total,
  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--trend,
  html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--trend,
  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--transactions,
  html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--transactions,
  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--spending,
  html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-card--spending,
  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-side-stack,
  html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-side-stack {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 820px) {
  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-dashboard-board,
  html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-dashboard-board {
    grid-template-columns: 1fr !important;
  }

  .neo-side-stack {
    grid-template-columns: 1fr;
  }

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

/* Dark mode parity pass 2026-04-20: match light-theme layout geometry */
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-shell {
  grid-template-columns: 232px minmax(0, 1fr) !important;
  gap: 1rem !important;
  padding: 1rem !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-main {
  width: 100% !important;
  margin-inline: 0 !important;
  gap: 1rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar {
  position: sticky !important;
  top: 1rem !important;
  align-self: start !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-content: start !important;
  gap: 1.1rem !important;
  min-height: calc(100vh - 2rem) !important;
  padding: 1.1rem 0.95rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .brand-lockup-sidebar {
  display: grid !important;
  place-items: start !important;
  padding-bottom: 0.9rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .brand-mark {
  width: 100% !important;
  justify-content: flex-start !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .brand-logo {
  width: clamp(10.2rem, 11vw, 11.8rem) !important;
  height: auto !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-profile-date {
  font-size: 0.78rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-profile-copy h3,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar-card h3 {
  font-size: 1.02rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar-card p,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .status-note {
  font-size: 0.94rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-nav {
  display: grid !important;
  gap: 0.45rem !important;
  justify-items: stretch !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-nav-link {
  width: 100% !important;
  min-height: 3rem !important;
  padding: 0.82rem 0.95rem !important;
  justify-content: flex-start !important;
  gap: 0.58rem !important;
  font-size: 0.94rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-nav-icon {
  font-size: 0.82rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-bar {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 1rem 1.25rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-copy,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-tools {
  min-width: 0 !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-range-shell,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .chart-select-shell {
  display: grid !important;
  gap: 0.3rem !important;
  align-content: center !important;
  justify-items: stretch !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  min-height: 3.45rem !important;
  padding: 0.48rem 0.88rem 0.56rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .chart-select-shell {
  min-width: 12.4rem !important;
  width: min(100%, 16rem) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-range-shell > span,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .chart-select-shell > span,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .select-shell > span {
  display: block !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 0.04rem !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.05 !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-range-shell .period-select,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-range-shell .month-select,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .chart-select-shell .month-select {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  line-height: 1.2 !important;
  padding-top: 0.02rem !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-search-shell {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.56rem !important;
  padding: 0 0.92rem !important;
  overflow: hidden !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-search-input {
  min-width: 0 !important;
  width: 100% !important;
  border: 0 !important;
  outline: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 1.2 !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-search-input:focus {
  box-shadow: none !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-dashboard-board {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr) 220px !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .trend-bar-active {
  border-color: rgba(113, 179, 220, 0.44) !important;
  background: linear-gradient(150deg, rgba(238, 249, 255, 0.97), rgba(219, 241, 253, 0.94)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(127, 194, 233, 0.38),
    0 12px 24px rgba(115, 147, 181, 0.16) !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .trend-bar-active .trend-meta strong,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .trend-bar-active .trend-meta span {
  color: #163247 !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .trend-bar-active .trend-track {
  background: rgba(120, 154, 186, 0.24) !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .trend-bar-active .trend-fill {
  box-shadow:
    0 0 0 1px rgba(76, 163, 220, 0.28),
    0 0 18px rgba(84, 180, 236, 0.34) !important;
}

/* Safety fallback: if duplicate class is stale while the modal is closed, keep the page fully visible. */
body.duplicate-decision-modal-active:not(:has(#duplicateDecisionModal.is-open)) .cinema-stage,
body.duplicate-decision-modal-active:not(:has(#duplicateDecisionModal.is-open)) .topbar,
body.duplicate-decision-modal-active:not(:has(#duplicateDecisionModal.is-open)) .workspace-guard,
body.duplicate-decision-modal-active:not(:has(#duplicateDecisionModal.is-open)) .shell {
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* Legacy-class neutralizer: prevent old cached class names from dimming the app. */
body.duplicate-decision-open .cinema-stage,
body.duplicate-decision-open .topbar,
body.duplicate-decision-open .workspace-guard,
body.duplicate-decision-open .shell,
body.duplicate-decision-dim .cinema-stage,
body.duplicate-decision-dim .topbar,
body.duplicate-decision-dim .workspace-guard,
body.duplicate-decision-dim .shell {
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* Final stability/contrast patch (2026-04-25) */
/* Never dim/blur the dashboard columns from stale duplicate classes. */
body.duplicate-decision-modal-active .cinema-stage,
body.duplicate-decision-modal-active .topbar,
body.duplicate-decision-modal-active .workspace-guard,
body.duplicate-decision-modal-active .shell {
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* Keep light-mode result cards readable (no dark cards + dark text collisions). */
html[data-ui-theme="light"] body.cinema-ui .spotlight-stat,
html[data-ui-theme="light"] body.cinema-ui .field,
html[data-ui-theme="light"] body.cinema-ui .preview-stat {
  border-color: rgba(128, 165, 198, 0.32) !important;
  background:
    radial-gradient(circle at 14% -6%, rgba(173, 232, 255, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(250, 254, 255, 0.98), rgba(235, 245, 253, 0.96)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 30px rgba(94, 124, 156, 0.14) !important;
}

html[data-ui-theme="light"] body.cinema-ui .spotlight-stat strong,
html[data-ui-theme="light"] body.cinema-ui .field strong,
html[data-ui-theme="light"] body.cinema-ui .preview-stat strong {
  color: #173650 !important;
}

html[data-ui-theme="light"] body.cinema-ui .spotlight-stat span,
html[data-ui-theme="light"] body.cinema-ui .field span,
html[data-ui-theme="light"] body.cinema-ui .preview-stat span {
  color: #5b7691 !important;
}

/* Duplicate modal readability in light mode. */
html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-modal .duplicate-decision-head .eyebrow {
  color: #9e6039 !important;
}

html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-modal .duplicate-decision-head h3 {
  color: #1f3f5c !important;
  text-shadow: none !important;
}

html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-modal .duplicate-decision-body,
html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-modal .duplicate-decision-note {
  color: #345775 !important;
}

html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-modal[data-tone="reject"] .duplicate-decision-head h3 {
  color: #7f2f2f !important;
}

html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-modal[data-tone="reject"] .duplicate-decision-body,
html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-modal[data-tone="reject"] .duplicate-decision-note,
html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-modal[data-tone="reject"] .duplicate-decision-note[data-tone="error"] {
  color: #7d2f2f !important;
}

/* Overlay guard: only show scrims when their panel/modal is actually open in DOM state. */
body.cinema-ui .history-scrim,
body.cinema-ui .confirm-scrim,
body.cinema-ui .rename-scrim,
body.cinema-ui .duplicate-decision-scrim {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.cinema-ui:has(#historyDrawer.is-open:not([hidden])) .history-scrim {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.cinema-ui:has(#confirmModal.is-open:not([hidden])) .confirm-scrim {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.cinema-ui:has(#renameModal.is-open:not([hidden])) .rename-scrim {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.cinema-ui:has(#duplicateDecisionModal.is-open:not([hidden])) .duplicate-decision-scrim {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Dark-mode recovery baseline: keep dashboard fully visible and stable. */
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-main,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-bar,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .workspace-guard,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .shell,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .panel,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .glass-card,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .metric-card,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .upload-status-card,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .chart-row,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .vendor-row,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .workflow-node,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .timeline-step,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .queue-item,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .table-panel {
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Dark mode reimagined: graphite + emerald + champagne */
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin {
  --dark-bg-0: #0d0d10;
  --dark-bg-1: #15161b;
  --dark-bg-2: #1d1f25;
  --dark-card: linear-gradient(180deg, rgba(28, 29, 35, 0.96), rgba(19, 20, 25, 0.98));
  --dark-card-soft: linear-gradient(180deg, rgba(35, 37, 44, 0.94), rgba(20, 22, 28, 0.96));
  --dark-border: rgba(194, 176, 144, 0.14);
  --dark-border-strong: rgba(99, 208, 176, 0.22);
  --dark-text: #f6f2ea;
  --dark-muted: #b6b0a5;
  --dark-kicker: #d6a86c;
  --dark-accent: #6ed8b1;
  --dark-accent-2: #f1c27d;
  background:
    radial-gradient(circle at 14% 16%, rgba(110, 216, 177, 0.11), transparent 24%),
    radial-gradient(circle at 84% 14%, rgba(241, 194, 125, 0.1), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.04), transparent 28%),
    linear-gradient(180deg, var(--dark-bg-0) 0%, var(--dark-bg-1) 48%, #111216 100%) !important;
  color: var(--dark-text) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .cinema-stage {
  opacity: 0.18 !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-shell {
  grid-template-columns: 248px minmax(0, 1fr) !important;
  gap: 1.2rem !important;
  padding: 1rem !important;
  max-width: 1520px !important;
  margin: 0 auto !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar {
  position: sticky !important;
  top: 1rem !important;
  min-height: calc(100vh - 2rem) !important;
  border-radius: 22px !important;
  border: 1px solid var(--dark-border) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(110, 216, 177, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(24, 25, 31, 0.98), rgba(16, 17, 21, 0.99)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 56px rgba(0, 0, 0, 0.32) !important;
  overflow: hidden !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%, transparent 82%, rgba(110, 216, 177, 0.05)) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-bar,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .panel,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .glass-card,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .metric-card,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .upload-status-card,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .chart-row,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .vendor-row,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .workflow-node,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .timeline-step,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .queue-item,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .table-panel,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .history-drawer,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .confirm-modal,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .rename-modal,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .duplicate-decision-modal,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .workspace-guard {
  border-radius: 22px !important;
  border: 1px solid var(--dark-border) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(110, 216, 177, 0.04), transparent 30%),
    linear-gradient(180deg, rgba(31, 33, 40, 0.97), rgba(21, 22, 27, 0.99)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.24) !important;
  color: var(--dark-text) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-bar {
  background:
    radial-gradient(circle at 16% 18%, rgba(110, 216, 177, 0.08), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(241, 194, 125, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(30, 31, 38, 0.98), rgba(19, 20, 25, 0.99)) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-range-shell,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-search-shell,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .select-shell {
  border: 1px solid rgba(214, 168, 108, 0.14) !important;
  background: linear-gradient(180deg, rgba(22, 23, 29, 0.94), rgba(16, 17, 22, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 18px rgba(0, 0, 0, 0.18) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-range-shell > span,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .chart-select-shell > span,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .eyebrow,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .mini-label,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .field span,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .drop-kicker {
  color: var(--dark-kicker) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin h1,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin h2,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin h3,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin strong,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .chart-meta strong,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .vendor-meta strong,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .receipt-mainline {
  color: var(--dark-text) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin p,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin span,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin small,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .status-note,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .hero-text,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .upload-helper,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .workflow-node p,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .timeline-step p,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .metric-card span,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .line-chart-axis-label,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .line-chart-kicker,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .drop-copy {
  color: var(--dark-muted) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .ghost-link,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .ghost-button {
  color: #f1ece2 !important;
  border-color: rgba(214, 168, 108, 0.14) !important;
  background: linear-gradient(180deg, rgba(36, 37, 42, 0.82), rgba(24, 25, 30, 0.88)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .primary-button,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .topbar-primary-button {
  color: #112019 !important;
  border-color: rgba(110, 216, 177, 0.32) !important;
  background: linear-gradient(135deg, #a7ebd0, #6ed8b1 54%, #f1c27d) !important;
  box-shadow: 0 14px 28px rgba(110, 216, 177, 0.18) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-search-input,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .month-select,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .period-select,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .text-input {
  color: #f6f2ea !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-search-input::placeholder,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .text-input::placeholder {
  color: #918a7f !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-mini-bar-fill {
  background: linear-gradient(180deg, rgba(110, 216, 177, 0.74), rgba(241, 194, 125, 0.96)) !important;
  box-shadow:
    0 0 0 1px rgba(110, 216, 177, 0.18),
    0 10px 22px rgba(110, 216, 177, 0.16) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .neo-mini-bar.is-active .neo-mini-bar-fill {
  background: linear-gradient(180deg, rgba(255, 216, 158, 0.9), rgba(110, 216, 177, 1)) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .expense-donut {
  background: conic-gradient(#f1c27d 0 68%, rgba(78, 81, 90, 0.42) 68% 100%) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .expense-donut::after {
  background: linear-gradient(180deg, rgba(23, 24, 30, 1), rgba(18, 19, 24, 1)) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .line-chart-grid-line {
  stroke: rgba(182, 176, 165, 0.14) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .line-chart-path {
  stroke: #6ed8b1 !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .line-chart-path-glow {
  stroke: rgba(110, 216, 177, 0.26) !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .table-panel th,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .table-panel td {
  color: #ece5d7 !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .table-panel th {
  color: #b7a487 !important;
}

html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .history-scrim,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .confirm-scrim,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .rename-scrim,
html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .duplicate-decision-scrim {
  background: rgba(8, 9, 12, 0.76) !important;
  backdrop-filter: blur(10px) saturate(108%) !important;
}

@media (max-width: 1180px) {
  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-shell {
    grid-template-columns: 1fr !important;
  }

  html[data-ui-theme="dark"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-sidebar {
    position: relative !important;
    top: auto !important;
    min-height: auto !important;
  }
}

/* Dark mode removed: keep the app on the stable premium light surface. */
html {
  color-scheme: light !important;
}

[data-theme-toggle] {
  display: none !important;
}

/* Premium 3D auth showcase */
body.auth-page.cinema-ui .auth-3d-showcase {
  display: grid;
  gap: 0.72rem;
}

body.auth-page.cinema-ui .auth-3d-head {
  display: grid;
  gap: 0.34rem;
}

body.auth-page.cinema-ui .auth-3d-copy {
  margin: 0;
  color: rgba(74, 103, 136, 0.9);
  line-height: 1.55;
  max-width: 64ch;
}

body.auth-page.cinema-ui .auth-3d-scene {
  position: relative;
  height: clamp(16.2rem, 34vw, 22rem);
  border-radius: 24px;
  border: 1px solid rgba(68, 122, 166, 0.38);
  overflow: hidden;
  perspective: 1300px;
  isolation: isolate;
  touch-action: none;
  user-select: none;
  cursor: grab;
  background:
    radial-gradient(circle at 14% 12%, rgba(42, 129, 164, 0.22), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(183, 101, 42, 0.18), transparent 34%),
    linear-gradient(165deg, rgba(226, 239, 249, 0.98), rgba(205, 222, 238, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -38px 58px rgba(32, 62, 96, 0.13),
    0 26px 50px rgba(72, 106, 144, 0.22);
}

body.auth-page.cinema-ui .auth-3d-scene:focus-visible {
  outline: 2px solid rgba(76, 158, 214, 0.9);
  outline-offset: 3px;
}

body.auth-page.cinema-ui .auth-3d-scene.is-dragging {
  cursor: grabbing;
}

body.auth-page.cinema-ui .auth-3d-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(36, 78, 118, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 78, 118, 0.16) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 92%);
  opacity: 0.54;
  pointer-events: none;
}

body.auth-page.cinema-ui .auth-3d-scene::after {
  content: "";
  position: absolute;
  inset: 16% -30% auto;
  height: 170px;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: rotate(-5deg);
  animation: auth3dSweep 9s linear infinite;
  pointer-events: none;
  opacity: 0.42;
}

body.auth-page.cinema-ui .auth-3d-aura {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
  opacity: 0.32;
  animation: auth3dAuraDrift 8.5s ease-in-out infinite alternate;
}

body.auth-page.cinema-ui .auth-3d-aura--one {
  left: -72px;
  top: -86px;
  background: radial-gradient(circle, rgba(38, 143, 180, 0.58), transparent 68%);
}

body.auth-page.cinema-ui .auth-3d-aura--two {
  right: -64px;
  bottom: -92px;
  background: radial-gradient(circle, rgba(184, 99, 42, 0.48), transparent 68%);
  animation-delay: -3.2s;
}

body.auth-page.cinema-ui .auth-3d-world {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(100%, 36rem);
  height: 17rem;
  transform-style: preserve-3d;
  transform:
    translate3d(-50%, -54%, 0)
    rotateX(var(--auth-3d-rot-x, -15deg))
    rotateY(var(--auth-3d-rot-y, 18deg));
}

body.auth-page.cinema-ui .auth-3d-figure {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  transform-style: preserve-3d;
  text-align: center;
  animation: auth3dFloat 6.6s ease-in-out infinite;
}

body.auth-page.cinema-ui .auth-3d-figure p {
  margin: 0;
  padding: 0.35rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(111, 163, 210, 0.34);
  background: rgba(255, 255, 255, 0.72);
  color: #234162;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 8px 16px rgba(110, 141, 172, 0.16);
}

body.auth-page.cinema-ui .auth-3d-figure--upload {
  left: 17%;
  top: 56%;
  transform: translate3d(-50%, -50%, 36px);
}

body.auth-page.cinema-ui .auth-3d-figure--extract {
  left: 50%;
  top: 30%;
  transform: translate3d(-50%, -50%, 128px);
  animation-delay: -1.7s;
}

body.auth-page.cinema-ui .auth-3d-figure--archive {
  left: 82%;
  top: 56%;
  transform: translate3d(-50%, -50%, 20px);
  animation-delay: -3.2s;
}

body.auth-page.cinema-ui .auth-3d-cube {
  position: relative;
  width: 5.1rem;
  height: 5.1rem;
  transform-style: preserve-3d;
  transform: rotateX(-18deg) rotateY(36deg);
  filter: drop-shadow(0 18px 24px rgba(20, 46, 72, 0.34));
}

body.auth-page.cinema-ui .auth-3d-cube-face {
  position: absolute;
  inset: 0;
  border-radius: 0.92rem;
  border: 1px solid rgba(34, 85, 128, 0.52);
  background:
    linear-gradient(160deg, rgba(247, 253, 255, 0.9), rgba(82, 157, 196, 0.62));
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.22),
    inset 0 -16px 22px rgba(30, 76, 122, 0.24),
    0 0 0 1px rgba(16, 52, 82, 0.08);
  backface-visibility: hidden;
}

body.auth-page.cinema-ui .auth-3d-cube .face-front {
  transform: translateZ(2.55rem);
}

body.auth-page.cinema-ui .auth-3d-cube .face-back {
  transform: rotateY(180deg) translateZ(2.55rem);
}

body.auth-page.cinema-ui .auth-3d-cube .face-right {
  transform: rotateY(90deg) translateZ(2.55rem);
}

body.auth-page.cinema-ui .auth-3d-cube .face-left {
  transform: rotateY(-90deg) translateZ(2.55rem);
}

body.auth-page.cinema-ui .auth-3d-cube .face-top {
  transform: rotateX(90deg) translateZ(2.55rem);
}

body.auth-page.cinema-ui .auth-3d-cube .face-bottom {
  transform: rotateX(-90deg) translateZ(2.55rem);
}

body.auth-page.cinema-ui .auth-3d-ring {
  position: relative;
  width: 6.5rem;
  height: 6.5rem;
  transform-style: preserve-3d;
  transform: rotateX(74deg) rotateY(14deg);
  filter: drop-shadow(0 18px 24px rgba(20, 46, 72, 0.32));
}

body.auth-page.cinema-ui .auth-3d-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 16deg, #075f7a, #bd5d2c, #273f9f, #075f7a);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
  box-shadow:
    0 0 22px rgba(22, 100, 148, 0.28),
    0 0 14px rgba(169, 79, 38, 0.24);
}

body.auth-page.cinema-ui .auth-3d-ring::after {
  content: "";
  position: absolute;
  inset: 1.3rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 253, 255, 0.72), rgba(69, 127, 176, 0.34));
  transform: translateZ(20px);
  box-shadow:
    inset 0 0 0 1px rgba(43, 91, 138, 0.3),
    0 0 18px rgba(46, 111, 166, 0.24);
}

body.auth-page.cinema-ui .auth-3d-ring-orbit {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: auth3dOrbit 5.6s linear infinite;
}

body.auth-page.cinema-ui .auth-3d-ring-orbit::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.32rem;
  width: 0.74rem;
  height: 0.74rem;
  margin-left: -0.37rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff3dc, #b9572b);
  box-shadow: 0 0 14px rgba(166, 74, 35, 0.42);
}

body.auth-page.cinema-ui .auth-3d-crystal {
  position: relative;
  width: 4.5rem;
  height: 7.3rem;
  transform-style: preserve-3d;
  transform: rotateX(-8deg) rotateY(24deg);
  filter: drop-shadow(0 18px 24px rgba(20, 46, 72, 0.34));
}

body.auth-page.cinema-ui .auth-3d-crystal-face {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 95% 44%, 50% 100%, 5% 44%);
  border: 1px solid rgba(34, 85, 128, 0.52);
  background: linear-gradient(180deg, rgba(247, 253, 255, 0.9), rgba(69, 158, 204, 0.5));
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.18),
    inset 0 -20px 24px rgba(30, 76, 122, 0.24),
    0 0 14px rgba(35, 112, 166, 0.2);
  backface-visibility: hidden;
}

body.auth-page.cinema-ui .auth-3d-crystal .face-a {
  transform: rotateY(0deg) translateZ(1.22rem);
}

body.auth-page.cinema-ui .auth-3d-crystal .face-b {
  transform: rotateY(90deg) translateZ(1.22rem);
}

body.auth-page.cinema-ui .auth-3d-crystal .face-c {
  transform: rotateY(180deg) translateZ(1.22rem);
}

body.auth-page.cinema-ui .auth-3d-crystal .face-d {
  transform: rotateY(-90deg) translateZ(1.22rem);
}

body.auth-page.cinema-ui .auth-3d-hint {
  position: absolute;
  left: 50%;
  bottom: 0.8rem;
  margin: 0;
  transform: translateX(-50%);
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 169, 213, 0.34);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(36, 64, 93, 0.92);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes auth3dAuraDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(22px, -16px, 0) scale(1.13);
  }
}

@keyframes auth3dSweep {
  0% {
    transform: translateX(-25%) rotate(-5deg);
    opacity: 0.2;
  }
  45% {
    opacity: 0.75;
  }
  100% {
    transform: translateX(175%) rotate(-5deg);
    opacity: 0.2;
  }
}

@keyframes auth3dFloat {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: -9px;
  }
}

@keyframes auth3dOrbit {
  0% {
    transform: rotateZ(0deg) translateZ(0);
  }
  100% {
    transform: rotateZ(360deg) translateZ(0);
  }
}

@media (max-width: 980px) {
  body.auth-page.cinema-ui .auth-3d-figure--upload {
    left: 22%;
    top: 58%;
  }

  body.auth-page.cinema-ui .auth-3d-figure--archive {
    left: 78%;
    top: 58%;
  }
}

@media (max-width: 760px) {
  body.auth-page.cinema-ui .auth-3d-copy {
    font-size: 0.92rem;
  }

  body.auth-page.cinema-ui .auth-3d-scene {
    height: 16.4rem;
  }

  body.auth-page.cinema-ui .auth-3d-world {
    width: min(100%, 20.5rem);
    height: 13.6rem;
    transform: translate3d(-50%, -52%, 0) rotateX(var(--auth-3d-rot-x, -15deg)) rotateY(var(--auth-3d-rot-y, 18deg));
  }

  body.auth-page.cinema-ui .auth-3d-figure {
    gap: 0.48rem;
  }

  body.auth-page.cinema-ui .auth-3d-figure--extract {
    top: 34%;
  }

  body.auth-page.cinema-ui .auth-3d-cube {
    width: 4.2rem;
    height: 4.2rem;
  }

  body.auth-page.cinema-ui .auth-3d-cube .face-front {
    transform: translateZ(2.1rem);
  }

  body.auth-page.cinema-ui .auth-3d-cube .face-back {
    transform: rotateY(180deg) translateZ(2.1rem);
  }

  body.auth-page.cinema-ui .auth-3d-cube .face-right {
    transform: rotateY(90deg) translateZ(2.1rem);
  }

  body.auth-page.cinema-ui .auth-3d-cube .face-left {
    transform: rotateY(-90deg) translateZ(2.1rem);
  }

  body.auth-page.cinema-ui .auth-3d-cube .face-top {
    transform: rotateX(90deg) translateZ(2.1rem);
  }

  body.auth-page.cinema-ui .auth-3d-cube .face-bottom {
    transform: rotateX(-90deg) translateZ(2.1rem);
  }

  body.auth-page.cinema-ui .auth-3d-ring {
    width: 5.4rem;
    height: 5.4rem;
  }

  body.auth-page.cinema-ui .auth-3d-crystal {
    width: 3.8rem;
    height: 6.1rem;
  }

  body.auth-page.cinema-ui .auth-3d-hint {
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    bottom: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.auth-page.cinema-ui .auth-3d-scene::after,
  body.auth-page.cinema-ui .auth-3d-aura,
  body.auth-page.cinema-ui .auth-3d-figure,
  body.auth-page.cinema-ui .auth-3d-ring-orbit {
    animation: none !important;
  }
}

body.auth-page.cinema-ui .brand-launch-mark-shell {
  position: relative;
  transform-style: preserve-3d;
  animation: brandLaunch3DSpin 2.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.auth-page.cinema-ui .brand-launch-mark-shell::before,
body.auth-page.cinema-ui .brand-launch-mark-shell::after {
  content: "";
  position: absolute;
  inset: 0.32rem;
  border-radius: inherit;
  border: 1px solid rgba(138, 221, 255, 0.28);
  pointer-events: none;
}

body.auth-page.cinema-ui .brand-launch-mark-shell::before {
  transform: translateZ(-12px);
  opacity: 0.28;
}

body.auth-page.cinema-ui .brand-launch-mark-shell::after {
  transform: translateZ(12px);
  opacity: 0.46;
}

@keyframes brandLaunch3DSpin {
  0% {
    transform: rotateX(58deg) rotateY(-42deg) scale(0.86);
  }
  65% {
    transform: rotateX(-16deg) rotateY(22deg) scale(1.04);
  }
  100% {
    transform: rotateX(0deg) rotateY(0deg) scale(1);
  }
}

/* Dynamic root entry launch */
body.entry-launch-running {
  overflow: hidden;
}

.entry-launch {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2600 !important;
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #0b2536;
  background: #d8e9f3;
  opacity: 0;
  pointer-events: auto;
  isolation: isolate;
}

body.auth-page.cinema-ui > .entry-launch {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2600 !important;
}

.entry-launch--visible {
  opacity: 1;
  animation: entryLaunchReveal 420ms ease-out both;
}

.entry-launch--dissolve {
  pointer-events: none;
  animation: entryLaunchDissolve 1050ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.entry-launch-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  display: block;
}

.entry-launch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 42, 64, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(11, 42, 64, 0.075) 1px, transparent 1px),
    linear-gradient(125deg, rgba(250, 254, 255, 0.94), rgba(199, 222, 236, 0.92) 58%, rgba(222, 236, 245, 0.96));
  background-size: 74px 74px, 74px 74px, auto;
}

.entry-launch-surface {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.48), transparent 20%, transparent 70%, rgba(7, 27, 43, 0.14)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 54%, rgba(13, 46, 69, 0.18));
}

.entry-launch-scan {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image: linear-gradient(rgba(13, 51, 76, 0.06) 1px, transparent 1px);
  background-size: 100% 5px;
  mix-blend-mode: multiply;
}

.entry-launch-horizon {
  position: absolute;
  left: 0;
  right: 0;
  top: 63%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 87, 111, 0.42), transparent);
  box-shadow: 0 0 34px rgba(12, 99, 126, 0.22);
}

.entry-launch-content {
  position: relative;
  z-index: 3;
  width: min(100% - 2rem, 58rem);
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  padding: 4rem 0;
  text-align: center;
  transform: translateY(18px) scale(0.97);
  opacity: 0;
}

.entry-launch--visible .entry-launch-content {
  animation: entryLaunchContentIn 900ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.entry-launch--dissolve .entry-launch-content {
  animation: entryLaunchContentOut 780ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.entry-launch-logo {
  width: clamp(13rem, 24vw, 18.5rem);
  height: auto;
  filter: drop-shadow(0 18px 32px rgba(19, 49, 74, 0.22));
}

.entry-launch-kicker {
  margin: 0.4rem 0 0;
  color: #075f72;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.entry-launch h2 {
  margin: 0;
  color: #0b2536;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(4.2rem, 10vw, 9rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-shadow: 0 18px 34px rgba(21, 49, 74, 0.2);
}

.entry-launch-copy {
  max-width: 40rem;
  margin: 0;
  color: rgba(13, 43, 65, 0.9);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.55;
}

.entry-launch-progress {
  width: min(100%, 34rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem 1rem;
  padding-top: 0.9rem;
  color: rgba(13, 43, 65, 0.9);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.entry-launch-progress strong {
  color: #a84022;
  font-size: 0.95rem;
}

.entry-launch-progress i {
  grid-column: 1 / -1;
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 62, 84, 0.2);
}

.entry-launch-progress i span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #a84022, #075f72, #102f49);
  transition: transform 180ms linear;
}

.entry-launch-skip {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 4;
  min-height: 2.5rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(19, 68, 96, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: #0b2a3e;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(43, 72, 98, 0.08);
  backdrop-filter: blur(14px);
}

.entry-launch-skip:focus-visible {
  outline: 2px solid rgba(20, 123, 145, 0.75);
  outline-offset: 3px;
}

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

@keyframes entryLaunchDissolve {
  0% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    filter: blur(0);
  }
  58% {
    opacity: 0.7;
    filter: blur(4px);
  }
  100% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    filter: blur(12px);
  }
}

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

@keyframes entryLaunchContentOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-22px) scale(0.985);
  }
}

@media (max-width: 760px) {
  .entry-launch-content {
    width: min(100% - 1.4rem, 34rem);
    align-content: center;
    min-height: 100vh;
    padding: 2rem 0 5rem;
  }

  .entry-launch-logo {
    width: clamp(11.5rem, 58vw, 15.5rem);
  }

  .entry-launch h2 {
    font-size: clamp(3.3rem, 18vw, 5.7rem);
  }

  .entry-launch-copy {
    max-width: 21rem;
    font-size: 0.98rem;
  }

  .entry-launch-progress {
    width: min(100%, 21rem);
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry-launch--visible,
  .entry-launch--visible .entry-launch-content,
  .entry-launch--dissolve,
  .entry-launch--dissolve .entry-launch-content {
    animation-duration: 1ms !important;
  }

  .entry-launch-progress i span {
    transition: none;
  }
}

/* Light-theme contrast refinement for production readability */
html[data-ui-theme="light"] body.cinema-ui {
  color: #10283a;
}

html[data-ui-theme="light"] body.cinema-ui .panel,
html[data-ui-theme="light"] body.cinema-ui .glass-card,
html[data-ui-theme="light"] body.cinema-ui .neo-card,
html[data-ui-theme="light"] body.cinema-ui .dashboard-command-bar,
html[data-ui-theme="light"] body.cinema-ui .workspace-guard {
  border-color: rgba(63, 101, 140, 0.24) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 36px rgba(48, 76, 104, 0.12) !important;
}

html[data-ui-theme="light"] body.cinema-ui h1,
html[data-ui-theme="light"] body.cinema-ui h2,
html[data-ui-theme="light"] body.cinema-ui h3,
html[data-ui-theme="light"] body.cinema-ui strong,
html[data-ui-theme="light"] body.cinema-ui .dashboard-command-copy h1,
html[data-ui-theme="light"] body.cinema-ui .neo-card-head h3,
html[data-ui-theme="light"] body.cinema-ui .range-summary strong,
html[data-ui-theme="light"] body.cinema-ui .chart-meta strong,
html[data-ui-theme="light"] body.cinema-ui .vendor-meta strong {
  color: #10283a !important;
}

html[data-ui-theme="light"] body.cinema-ui p,
html[data-ui-theme="light"] body.cinema-ui .topbar-text,
html[data-ui-theme="light"] body.cinema-ui .muted,
html[data-ui-theme="light"] body.cinema-ui .neo-card-copy,
html[data-ui-theme="light"] body.cinema-ui .neo-card-meta,
html[data-ui-theme="light"] body.cinema-ui .range-summary span,
html[data-ui-theme="light"] body.cinema-ui .chart-meta span,
html[data-ui-theme="light"] body.cinema-ui .vendor-meta span,
html[data-ui-theme="light"] body.cinema-ui .status-note {
  color: #405a72 !important;
}

html[data-ui-theme="light"] body.cinema-ui .eyebrow,
html[data-ui-theme="light"] body.cinema-ui .mini-label,
html[data-ui-theme="light"] body.cinema-ui label > span {
  color: #9a5c37 !important;
}

html[data-ui-theme="light"] body.cinema-ui .ghost-link,
html[data-ui-theme="light"] body.cinema-ui .ghost-button,
html[data-ui-theme="light"] body.cinema-ui .status-pill,
html[data-ui-theme="light"] body.cinema-ui .month-select,
html[data-ui-theme="light"] body.cinema-ui .text-input {
  border-color: rgba(63, 115, 160, 0.26) !important;
  color: #183d5a !important;
}

html[data-ui-theme="light"] body.cinema-ui .primary-button,
html[data-ui-theme="light"] body.cinema-ui .topbar-primary-button,
html[data-ui-theme="light"] body.cinema-ui .auth-submit {
  color: #0c283a !important;
  border-color: rgba(29, 111, 145, 0.42) !important;
  background: linear-gradient(135deg, #72cfe4, #dfbf99) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 14px 24px rgba(48, 87, 112, 0.14) !important;
}
/* --- Advanced UI Effects --- */

/* Glassmorphism Panel */
.panel {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
}

/* Neon Glow Effect */
.neo-card {
  position: relative;
  border: 1px solid rgba(110, 231, 247, 0.2);
}

.neo-card:hover {
  box-shadow: 0 0 20px rgba(110, 231, 247, 0.2);
}

/* Gradient Text for Titles */
.dashboard-command-copy h1 {
  background: linear-gradient(90deg, #fff, #6ee7f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Pulse Animation for Status Badges */
.status-tag {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(110, 231, 247, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(110, 231, 247, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 247, 0); }
}

/* AWS-safe demo and recruiter showcase polish */
.demo-access-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(111, 226, 255, 0.34);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(9, 36, 54, 0.92), rgba(22, 59, 74, 0.82)),
    radial-gradient(circle at 12% 20%, rgba(111, 226, 255, 0.24), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 20px 60px rgba(0, 0, 0, 0.28),
    0 0 36px rgba(111, 226, 255, 0.14);
  overflow: hidden;
}

.demo-access-card::before {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background:
    linear-gradient(110deg, transparent 0 36%, rgba(255, 255, 255, 0.18) 44%, transparent 54%),
    repeating-linear-gradient(90deg, rgba(111, 226, 255, 0.09) 0 1px, transparent 1px 18px);
  opacity: 0.58;
  transform: translateX(-42%);
  animation: demoAccessSweep 6.5s ease-in-out infinite;
  pointer-events: none;
}

.demo-access-card > * {
  position: relative;
  z-index: 1;
}

.demo-access-card strong {
  display: block;
  margin: 0.26rem 0;
  color: #f7fbff;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
}

.demo-access-card p {
  margin: 0;
  color: rgba(224, 236, 246, 0.78);
  line-height: 1.5;
}

.demo-access-button,
.demo-access-inline {
  white-space: nowrap;
}

body.auth-public-demo .auth-form,
body.auth-public-demo .auth-recovery-card,
body.auth-public-demo .auth-link-button {
  display: none !important;
}

body.auth-public-demo .auth-panel {
  gap: 1.05rem;
}

body.auth-public-demo .demo-access-card {
  order: -1;
  border-color: rgba(8, 127, 144, 0.42);
  background:
    linear-gradient(135deg, rgba(244, 253, 255, 0.98), rgba(231, 249, 255, 0.96)),
    radial-gradient(circle at 12% 20%, rgba(11, 145, 166, 0.2), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 22px 52px rgba(49, 97, 137, 0.16),
    0 0 42px rgba(10, 139, 166, 0.14);
}

body.auth-public-demo .demo-access-card strong {
  color: #0c2f4a;
}

body.auth-public-demo .demo-access-card p {
  color: #284760;
  font-weight: 650;
}

body.auth-public-demo .demo-access-button-primary {
  min-height: 54px;
  color: #062f3d !important;
  border: 1px solid rgba(6, 112, 138, 0.2) !important;
  background:
    linear-gradient(135deg, #74e8ff, #f6d08c) !important;
  box-shadow:
    0 14px 28px rgba(22, 111, 137, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

body.auth-public-demo .auth-status {
  color: #173a59 !important;
  font-weight: 800;
}

body.auth-public-demo .auth-demo-points span {
  color: #0f3a54;
  border-color: rgba(8, 127, 144, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 251, 255, 0.95)),
    radial-gradient(circle at 20% 20%, rgba(12, 149, 171, 0.14), transparent 38%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 24px rgba(49, 97, 137, 0.08);
}

body.workspace-demo-mode .dashboard-sidebar-pill,
body.workspace-demo-mode .auth-summary-pill,
body.workspace-demo-mode .upload-ready-pill {
  color: #062a36 !important;
  border-color: rgba(63, 211, 232, 0.72) !important;
  background: linear-gradient(135deg, #77e8ff, #f5cf93) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 0 26px rgba(83, 216, 239, 0.38) !important;
}

body.workspace-live-mode .dashboard-sidebar-pill,
body.workspace-live-mode .auth-summary-pill,
body.workspace-live-mode .upload-ready-pill {
  color: #062b1e !important;
  border-color: rgba(103, 237, 170, 0.74) !important;
  background: linear-gradient(135deg, #7cf0b1, #d7f7a5) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.52) inset,
    0 0 26px rgba(88, 231, 163, 0.32) !important;
}

.recruiter-proof-card {
  border-color: rgba(255, 199, 118, 0.34) !important;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 199, 118, 0.22), transparent 38%),
    linear-gradient(145deg, rgba(10, 34, 52, 0.88), rgba(20, 48, 60, 0.76)) !important;
}

.recruiter-proof-card strong {
  display: block;
  margin: 0.32rem 0;
}

.cloud-proof-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  overflow: hidden;
}

.cloud-proof-strip::before {
  content: "";
  position: absolute;
  inset: 1.2rem;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(102, 232, 255, 0), rgba(102, 232, 255, 0.34), rgba(247, 190, 105, 0.38), rgba(102, 232, 255, 0));
  filter: blur(18px);
  opacity: 0.72;
  transform: translateY(8px);
  pointer-events: none;
}

.proof-node {
  position: relative;
  z-index: 1;
  min-height: 11rem;
  padding: 1.08rem;
  border: 1px solid rgba(208, 231, 255, 0.16);
  border-radius: 1.45rem;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(11, 30, 46, 0.9), rgba(13, 48, 57, 0.74));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 44px rgba(0, 0, 0, 0.22);
}

.proof-node::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 32% 68% 55% 45%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent),
    var(--proof-glow, rgba(103, 226, 255, 0.18));
  box-shadow: 0 0 30px var(--proof-shadow, rgba(103, 226, 255, 0.22));
  transform: rotate(-12deg);
  opacity: 0.74;
}

.proof-node strong {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 14rem;
  margin: 0.4rem 0 0.56rem;
  color: #f8fbff;
  font-size: clamp(1.02rem, 1.25vw, 1.25rem);
  line-height: 1.12;
}

.proof-node p {
  position: relative;
  z-index: 1;
  max-width: 16rem;
  margin: 0;
  color: rgba(223, 235, 245, 0.74);
  line-height: 1.5;
}

.proof-node-live {
  --proof-glow: rgba(119, 232, 255, 0.2);
  --proof-shadow: rgba(104, 224, 255, 0.28);
}

.proof-node-demo {
  --proof-glow: rgba(248, 207, 147, 0.24);
  --proof-shadow: rgba(248, 207, 147, 0.28);
}

.proof-node-redeploy {
  --proof-glow: rgba(125, 240, 177, 0.22);
  --proof-shadow: rgba(125, 240, 177, 0.26);
}

.dashboard-command-tools::after {
  content: "Cloud pipeline: S3 -> Lambda -> Textract -> DynamoDB -> API Gateway";
  grid-column: 1 / -1;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(111, 226, 255, 0.24);
  border-radius: 999px;
  color: rgba(224, 236, 246, 0.78);
  background: rgba(8, 28, 43, 0.58);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.workspace-demo-mode .dashboard-command-tools::after {
  content: "Cloud Demo active: browser-local data, AWS architecture preserved";
  color: #123442;
  border-color: rgba(63, 151, 176, 0.28);
  background: linear-gradient(135deg, rgba(130, 232, 255, 0.72), rgba(249, 216, 158, 0.76));
}

body.workspace-live-mode .dashboard-command-tools::after {
  content: "AWS Live connected: Cognito + API Gateway + Lambda pipeline";
  color: #123824;
  border-color: rgba(70, 184, 124, 0.28);
  background: linear-gradient(135deg, rgba(125, 240, 177, 0.75), rgba(215, 247, 165, 0.78));
}

html[data-ui-theme="light"] .demo-access-card {
  border-color: rgba(36, 116, 152, 0.28);
  background:
    radial-gradient(circle at 12% 20%, rgba(33, 154, 190, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(236, 249, 255, 0.96), rgba(255, 244, 225, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 22px 52px rgba(48, 82, 110, 0.16);
}

html[data-ui-theme="light"] .demo-access-card strong,
html[data-ui-theme="light"] .recruiter-proof-card strong {
  color: #10283a !important;
}

html[data-ui-theme="light"] .demo-access-card p {
  color: #405a72 !important;
}

html[data-ui-theme="light"] .recruiter-proof-card {
  background:
    radial-gradient(circle at 12% 10%, rgba(215, 145, 48, 0.2), transparent 38%),
    linear-gradient(145deg, rgba(255, 250, 242, 0.96), rgba(235, 250, 255, 0.9)) !important;
}

html[data-ui-theme="light"] .cloud-proof-strip {
  border-color: rgba(44, 122, 153, 0.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(42, 157, 196, 0.15), transparent 48%),
    rgba(248, 252, 255, 0.82);
}

html[data-ui-theme="light"] .proof-node {
  border-color: rgba(36, 104, 134, 0.14);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.78), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(231, 246, 252, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 42px rgba(36, 73, 99, 0.13);
}

html[data-ui-theme="light"] .proof-node strong {
  color: #10283a;
}

html[data-ui-theme="light"] .proof-node p {
  color: #425c70;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-copy h1,
html[data-ui-theme="light"] .dashboard-command-copy h1 {
  background: linear-gradient(90deg, #10283a 0%, #137b9c 52%, #0e526f 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: none !important;
  text-shadow: 0 12px 34px rgba(36, 86, 118, 0.14) !important;
}

@keyframes demoAccessSweep {
  0%,
  100% {
    transform: translateX(-48%) rotate(0deg);
  }
  50% {
    transform: translateX(28%) rotate(2deg);
  }
}

@media (max-width: 720px) {
  .demo-access-card {
    grid-template-columns: 1fr;
  }

  .demo-access-button,
  .demo-access-inline {
    width: 100%;
  }

  body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-shell {
    padding: 0.75rem !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-bar,
  body.cinema-ui.dribbble-dashboard.neuro-skin .workspace-guard,
  body.cinema-ui.dribbble-dashboard.neuro-skin .upload-lab {
    box-sizing: border-box;
    max-width: 100% !important;
    overflow: hidden;
  }

  body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-bar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-copy {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-copy p,
  body.cinema-ui.dribbble-dashboard.neuro-skin .topbar-text {
    max-width: min(100%, 19rem) !important;
    overflow-wrap: anywhere;
  }

  body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-tools,
  body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-meta,
  body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-actions,
  body.cinema-ui.dribbble-dashboard.neuro-skin .hero-actions,
  body.cinema-ui.dribbble-dashboard.neuro-skin .workspace-guard-actions,
  body.cinema-ui.dribbble-dashboard.neuro-skin .upload-actions-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.65rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-tools {
    display: grid !important;
    grid-template-columns: 1fr !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-tools::after,
  body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-range-shell,
  body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-search-shell {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-tools::after {
    display: block !important;
    border-radius: 1rem;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.workspace-demo-mode .dashboard-command-tools::after {
    content: "Cloud Demo: browser-local AWS showcase";
  }

  body.workspace-live-mode .dashboard-command-tools::after {
    content: "AWS Live: Cognito and API pipeline";
  }

  body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-actions > *,
  body.cinema-ui.dribbble-dashboard.neuro-skin .hero-actions > *,
  body.cinema-ui.dribbble-dashboard.neuro-skin .workspace-guard-actions > *,
  body.cinema-ui.dribbble-dashboard.neuro-skin .upload-actions-row > button {
    flex: 1 1 10rem !important;
    min-width: min(100%, 10rem) !important;
  }

  body.cinema-ui.dribbble-dashboard.neuro-skin .dashboard-command-copy h1 {
    font-size: clamp(1.65rem, 13vw, 2.7rem) !important;
    line-height: 0.95 !important;
    overflow-wrap: anywhere;
  }

  body.cinema-ui.dribbble-dashboard.neuro-skin .topbar-text {
    max-width: 100% !important;
  }

  .cloud-proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-node {
    min-height: 9.5rem;
  }
}

/* Quick Intake horizontal pass: keep the upload cockpit full-width on desktop. */
body.cinema-ui.dribbble-dashboard.neuro-skin .control-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.cinema-ui.dribbble-dashboard.neuro-skin .hero,
body.cinema-ui.dribbble-dashboard.neuro-skin .cloud-proof-strip,
body.cinema-ui.dribbble-dashboard.neuro-skin .upload-lab {
  grid-column: 1 / -1;
  width: 100%;
}

body.cinema-ui.dribbble-dashboard.neuro-skin .upload-lab {
  overflow: hidden;
}

body.cinema-ui.dribbble-dashboard.neuro-skin .upload-form {
  display: grid !important;
  grid-template-columns: minmax(17rem, 0.82fr) minmax(29rem, 1.28fr);
  grid-template-areas:
    "drop preview"
    "fields actions";
  align-items: stretch;
  gap: clamp(0.85rem, 1.5vw, 1.15rem);
  padding-inline: clamp(1rem, 2vw, 1.45rem) !important;
}

body.cinema-ui.dribbble-dashboard.neuro-skin .dropzone {
  grid-area: drop;
  min-height: 100% !important;
  align-content: center;
}

body.cinema-ui.dribbble-dashboard.neuro-skin .upload-preview-shell {
  grid-area: preview;
  display: grid !important;
  grid-template-columns: minmax(18rem, 1fr) minmax(13rem, 0.62fr);
  align-items: stretch;
  gap: 0.85rem;
  min-width: 0;
}

body.cinema-ui.dribbble-dashboard.neuro-skin .upload-preview-frame {
  min-height: 100%;
}

body.cinema-ui.dribbble-dashboard.neuro-skin .preview-meta {
  grid-template-columns: 1fr !important;
  align-content: stretch;
}

body.cinema-ui.dribbble-dashboard.neuro-skin .preview-stat {
  display: grid;
  align-content: center;
  min-height: 0;
}

body.cinema-ui.dribbble-dashboard.neuro-skin .field-grid {
  grid-area: fields;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-self: end;
}

body.cinema-ui.dribbble-dashboard.neuro-skin .upload-actions-row {
  grid-area: actions;
  display: grid !important;
  grid-template-columns: minmax(12rem, max-content) minmax(0, 1fr);
  align-items: center !important;
  gap: 0.75rem !important;
  align-self: end;
}

body.cinema-ui.dribbble-dashboard.neuro-skin .upload-submit {
  grid-column: 1;
}

body.cinema-ui.dribbble-dashboard.neuro-skin .sample-demo-upload {
  grid-column: 2;
}

body.cinema-ui.dribbble-dashboard.neuro-skin .upload-helper {
  grid-column: 1 / -1;
  max-width: 68rem;
}

body.cinema-ui.dribbble-dashboard.neuro-skin .sample-demo-upload[hidden] ~ .upload-helper {
  grid-column: 2;
}

body.cinema-ui.dribbble-dashboard.neuro-skin .sample-demo-upload:not([hidden]) ~ .upload-helper {
  grid-column: 1 / -1;
}

@media (min-width: 1181px) {
  body.cinema-ui.dribbble-dashboard.neuro-skin .upload-actions-row {
    grid-template-columns: minmax(12rem, 0.32fr) minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  body.cinema-ui.dribbble-dashboard.neuro-skin .upload-form {
    grid-template-columns: 1fr;
    grid-template-areas:
      "drop"
      "preview"
      "fields"
      "actions";
  }

  body.cinema-ui.dribbble-dashboard.neuro-skin .upload-preview-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  body.cinema-ui.dribbble-dashboard.neuro-skin .preview-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  body.cinema-ui.dribbble-dashboard.neuro-skin .upload-form {
    padding-inline: 0.9rem !important;
  }

  body.cinema-ui.dribbble-dashboard.neuro-skin .field-grid,
  body.cinema-ui.dribbble-dashboard.neuro-skin .preview-meta,
  body.cinema-ui.dribbble-dashboard.neuro-skin .upload-actions-row {
    grid-template-columns: 1fr !important;
  }

  body.cinema-ui.dribbble-dashboard.neuro-skin .upload-submit,
  body.cinema-ui.dribbble-dashboard.neuro-skin .sample-demo-upload,
  body.cinema-ui.dribbble-dashboard.neuro-skin .upload-helper {
    grid-column: 1 / -1;
  }
}

/* Visibility pass 2026-06-14: remove faded chart/auth copy and calm reject states. */
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .upload-status-card {
  background:
    radial-gradient(circle at 14% 4%, rgba(51, 147, 186, 0.18), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(47, 198, 166, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(243, 250, 255, 0.99)) !important;
  border-color: rgba(69, 127, 174, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 22px 48px rgba(58, 103, 144, 0.16) !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin #uploadMessage,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .upload-status-head .muted {
  color: #173a59 !important;
  font-weight: 800;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .upload-motion-scene {
  --motion-accent: #087f90;
  --motion-soft: rgba(8, 127, 144, 0.2);
  --motion-ring: rgba(8, 127, 144, 0.48);
  color: #102d46 !important;
  border-color: rgba(38, 112, 158, 0.36) !important;
  background:
    radial-gradient(circle at 18% 16%, rgba(13, 137, 168, 0.18), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(42, 188, 151, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(251, 254, 255, 0.99), rgba(232, 245, 253, 0.99)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 42px rgba(45, 93, 136, 0.15) !important;
  opacity: 1 !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .motion-cloud-core,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .motion-receipt,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .motion-processing,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .motion-ledger {
  color: #102d46 !important;
  border-color: rgba(34, 110, 154, 0.34) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(237, 248, 255, 0.95)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 28px rgba(51, 98, 138, 0.14) !important;
  opacity: 1 !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .motion-cloud-copy strong,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .motion-receipt-copy strong,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .motion-processing-copy strong,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .motion-ledger-copy strong {
  color: #102943 !important;
  font-weight: 900;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .motion-cloud-copy span,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .motion-receipt-copy span,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .motion-processing-copy span,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .motion-ledger-copy span,
html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .timeline-step p {
  color: #315471 !important;
  font-weight: 650;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .timeline-step {
  color: #102d46 !important;
  border-color: rgba(44, 115, 160, 0.3) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 255, 0.96)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(56, 103, 145, 0.12) !important;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .timeline-step strong {
  color: #102943 !important;
  font-weight: 900;
}

html[data-ui-theme="light"] body.cinema-ui.dribbble-dashboard.neuro-skin .timeline-dot {
  color: #06384a !important;
  border-color: rgba(6, 124, 147, 0.42) !important;
  background: linear-gradient(180deg, #dffbff, #b8edf5) !important;
  box-shadow: 0 0 0 4px rgba(9, 136, 160, 0.08) !important;
}

html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-lead,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-3d-copy,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-info-card p,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-panel-head p:last-child,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-field-hint,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-security-note,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-switch,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-status,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-recovery-head p {
  color: #284760 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-info-card .mini-label,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-project-strip span,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-panel-head .eyebrow,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-recovery-head .mini-label {
  color: #1d6d86 !important;
  opacity: 1 !important;
  font-weight: 900;
}

html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-info-card strong,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-project-strip strong,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-recovery-head strong {
  color: #102943 !important;
  font-weight: 900;
}

html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-security-note {
  border-color: rgba(32, 126, 160, 0.28) !important;
  background:
    radial-gradient(circle at 10% 20%, rgba(52, 176, 209, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(243, 252, 255, 0.98), rgba(236, 248, 255, 0.96)) !important;
}

html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-link-button {
  color: #06758a !important;
  font-weight: 900;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-link-button:hover,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-link-button:focus-visible {
  color: #064b63 !important;
  text-decoration: underline;
}

html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-form .text-input {
  color: #14324d !important;
  font-weight: 700;
}

html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-form .text-input::placeholder {
  color: #557089 !important;
  opacity: 1 !important;
}

html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-form .text-input:disabled,
html[data-ui-theme="light"] body.auth-page.cinema-ui .auth-form .text-input[aria-disabled="true"] {
  color: #355875 !important;
  opacity: 1 !important;
  border-color: rgba(56, 127, 168, 0.28) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 249, 255, 0.95)) !important;
}

html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-modal[data-tone="reject"],
body.dribbble-dashboard .duplicate-decision-modal[data-tone="reject"] {
  border-color: rgba(42, 134, 164, 0.26) !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(67, 184, 213, 0.2), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(100, 214, 174, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(244, 253, 255, 0.98), rgba(229, 246, 252, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 34px 80px rgba(48, 96, 132, 0.2) !important;
}

html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-modal[data-tone="reject"] .duplicate-decision-head h3,
html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-modal[data-tone="reject"] .duplicate-decision-body,
html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-modal[data-tone="reject"] .duplicate-decision-note,
html[data-ui-theme="light"] body.cinema-ui .duplicate-decision-modal[data-tone="reject"] .duplicate-decision-note[data-tone="neutral"],
body.dribbble-dashboard .duplicate-decision-modal[data-tone="reject"] .duplicate-decision-head h3,
body.dribbble-dashboard .duplicate-decision-modal[data-tone="reject"] .duplicate-decision-body,
body.dribbble-dashboard .duplicate-decision-modal[data-tone="reject"] .duplicate-decision-note,
body.dribbble-dashboard .duplicate-decision-modal[data-tone="reject"] .duplicate-decision-note[data-tone="neutral"] {
  color: #173a59 !important;
  text-shadow: none !important;
}

.duplicate-decision-note[data-tone="neutral"] {
  color: #2c5d73 !important;
  text-shadow: none !important;
}

/* Public launch page final pass: normal reading order plus stronger contrast. */
body.auth-public-demo .auth-panel {
  gap: 1.12rem !important;
}

body.auth-public-demo .auth-panel-head {
  padding: 0.1rem 0.1rem 0.2rem;
}

body.auth-public-demo .demo-access-card {
  order: initial !important;
  grid-template-columns: 1fr !important;
  align-items: start;
  padding: clamp(1.05rem, 2vw, 1.3rem) !important;
  border-color: rgba(91, 226, 244, 0.46) !important;
  background:
    radial-gradient(circle at 12% 12%, rgba(107, 235, 255, 0.32), transparent 34%),
    radial-gradient(circle at 90% 6%, rgba(255, 196, 115, 0.2), transparent 30%),
    linear-gradient(135deg, #08283e 0%, #0b4156 54%, #15334a 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 24px 58px rgba(20, 62, 90, 0.26),
    0 0 34px rgba(70, 214, 239, 0.18) !important;
}

body.auth-public-demo .demo-access-card .mini-label,
html[data-ui-theme="light"] body.auth-public-demo .demo-access-card .mini-label {
  color: #8af1ff !important;
}

body.auth-public-demo .demo-access-card strong,
html[data-ui-theme="light"] body.auth-public-demo .demo-access-card strong {
  color: #f7fcff !important;
  text-shadow: 0 1px 18px rgba(105, 222, 246, 0.18);
}

body.auth-public-demo .demo-access-card p,
html[data-ui-theme="light"] body.auth-public-demo .demo-access-card p {
  color: rgba(226, 243, 252, 0.88) !important;
  font-weight: 650;
}

body.auth-public-demo .demo-access-button-primary {
  justify-self: start;
  min-width: min(100%, 15rem);
  color: #062f3d !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  background: linear-gradient(135deg, #7eeaff, #ffd08a) !important;
}

body.auth-public-demo .auth-security-note {
  color: #173b59 !important;
  border-color: rgba(30, 128, 159, 0.32) !important;
  background:
    radial-gradient(circle at 9% 18%, rgba(35, 172, 205, 0.17), transparent 32%),
    linear-gradient(135deg, rgba(250, 254, 255, 0.99), rgba(232, 248, 255, 0.98)) !important;
}

body.auth-public-demo .auth-status,
body.auth-public-demo .auth-switch {
  color: #173b59 !important;
}

@media (max-width: 760px) {
  body.auth-page.cinema-ui {
    overflow-x: clip;
  }

  body.auth-page.cinema-ui .auth-shell {
    width: min(100%, calc(100% - 0.85rem)) !important;
  }

  body.auth-page.cinema-ui .auth-topbar {
    width: min(100%, calc(100% - 0.85rem)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.auth-public-demo .demo-access-button-primary {
    width: 100%;
  }
}

/* Premium LinkedIn-cover inspired app graphics pass (June 2026). */
body.post-cover-ui {
  --cover-ink: #10283d;
  --cover-muted: #42657e;
  --cover-cyan: #1fb6d5;
  --cover-cyan-strong: #057a94;
  --cover-amber: #c87942;
  --cover-surface: rgba(255, 255, 255, 0.82);
  --cover-border: rgba(80, 141, 168, 0.18);
  --cover-shadow: 0 28px 70px rgba(54, 100, 137, 0.16);
}

html[data-ui-theme="light"] body.post-cover-ui.dribbble-dashboard {
  color: var(--cover-ink);
  background:
    radial-gradient(circle at 9% 8%, rgba(255, 198, 145, 0.22), transparent 24%),
    radial-gradient(circle at 82% 5%, rgba(92, 203, 224, 0.26), transparent 28%),
    radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(180deg, #edf8ff 0%, #eaf5fb 44%, #f7fbff 100%) !important;
}

body.post-cover-ui .dashboard-main::before,
body.post-cover-ui .dashboard-main::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body.post-cover-ui .dashboard-main::before {
  background-image:
    linear-gradient(rgba(42, 116, 145, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 116, 145, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.68), transparent 76%);
  transform-origin: top center;
  transform: perspective(820px) rotateX(64deg) translateY(15vh) scale(1.34);
}

body.post-cover-ui .dashboard-main::after {
  background:
    radial-gradient(circle at 72% 18%, rgba(5, 122, 148, 0.16), transparent 17%),
    radial-gradient(circle at 18% 42%, rgba(200, 121, 66, 0.12), transparent 15%),
    linear-gradient(120deg, transparent 20%, rgba(5, 122, 148, 0.1) 20.25%, transparent 21%),
    linear-gradient(28deg, transparent 58%, rgba(200, 121, 66, 0.12) 58.2%, transparent 59%);
  opacity: 0.9;
}

body.post-cover-ui.dribbble-dashboard .dashboard-main {
  width: min(100%, 1460px);
}

body.post-cover-ui.dribbble-dashboard .dashboard-command-bar {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
  align-items: stretch;
  gap: clamp(1rem, 2.2vw, 1.8rem);
  padding: clamp(1.15rem, 2.2vw, 1.55rem);
  border: 1px solid rgba(73, 145, 172, 0.22) !important;
  background:
    radial-gradient(circle at 12% 4%, rgba(126, 226, 247, 0.2), transparent 32%),
    radial-gradient(circle at 94% 10%, rgba(255, 205, 155, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 247, 254, 0.94)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 30px 74px rgba(50, 101, 139, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.42) !important;
}

body.post-cover-ui .dashboard-command-copy h1 {
  font-family: "Playfair Display", "Manrope", serif !important;
  font-size: clamp(2.3rem, 4.8vw, 4.65rem) !important;
  line-height: 0.94;
  letter-spacing: -0.06em !important;
  max-width: 10ch;
  color: #11293f !important;
}

body.post-cover-ui .dashboard-command-copy .topbar-text {
  max-width: 58ch;
  color: #31566f !important;
  font-size: 1.02rem;
  font-weight: 650;
}

body.post-cover-ui .dashboard-command-tools {
  grid-column: 1 / 2;
  justify-content: flex-start !important;
  align-self: end;
}

body.post-cover-ui .dashboard-command-meta {
  position: relative;
  z-index: 2;
}

body.post-cover-ui .dashboard-command-visual {
  position: relative;
  grid-column: 2 / 3;
  grid-row: 1 / span 2;
  min-height: clamp(250px, 27vw, 350px);
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(40, 126, 160, 0.22);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.82), transparent 24%),
    radial-gradient(circle at 24% 28%, rgba(109, 211, 234, 0.28), transparent 28%),
    linear-gradient(145deg, rgba(230, 247, 255, 0.88), rgba(202, 229, 241, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 24px 58px rgba(53, 111, 145, 0.16);
  perspective: 900px;
}

body.post-cover-ui .command-grid-plane,
body.post-cover-ui .command-orbit,
body.post-cover-ui .command-particle,
body.post-cover-ui .command-receipt-glass,
body.post-cover-ui .command-arch-node,
body.post-cover-ui .command-visual-copy {
  position: absolute;
  z-index: 1;
}

body.post-cover-ui .command-grid-plane {
  inset: 45% -18% -20%;
  background-image:
    linear-gradient(rgba(25, 116, 145, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 116, 145, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  transform: rotateX(68deg) translateZ(-18px);
  transform-origin: top center;
  opacity: 0.88;
}

body.post-cover-ui .command-orbit {
  left: 50%;
  top: 48%;
  width: 72%;
  height: 54%;
  border: 2px solid rgba(3, 120, 146, 0.34);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-17deg);
  filter: drop-shadow(0 0 14px rgba(32, 174, 204, 0.18));
}

body.post-cover-ui .command-orbit-two {
  width: 58%;
  height: 70%;
  border-color: rgba(194, 111, 62, 0.34);
  transform: translate(-50%, -50%) rotate(55deg);
}

body.post-cover-ui .command-receipt-glass {
  left: 42%;
  top: 16%;
  width: clamp(86px, 9.5vw, 132px);
  aspect-ratio: 0.68;
  border: 1px solid rgba(14, 66, 93, 0.34);
  border-radius: 12px 24px 16px 16px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.9), rgba(198, 229, 240, 0.32) 52%, rgba(255, 255, 255, 0.18)),
    linear-gradient(180deg, rgba(249, 254, 255, 0.86), rgba(187, 221, 235, 0.36));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 26px 42px rgba(30, 88, 122, 0.18),
    0 0 38px rgba(47, 178, 204, 0.16);
  transform: rotateY(-24deg) rotateZ(-7deg) translateZ(32px);
  animation: commandReceiptFloat 6s ease-in-out infinite;
}

body.post-cover-ui .command-receipt-fold {
  position: absolute;
  right: -1px;
  top: -1px;
  width: 36%;
  aspect-ratio: 1;
  border-left: 1px solid rgba(14, 66, 93, 0.24);
  border-bottom: 1px solid rgba(14, 66, 93, 0.2);
  border-radius: 0 20px 0 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(125, 203, 222, 0.22));
}

body.post-cover-ui .command-receipt-line {
  position: absolute;
  left: 18%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(8, 94, 124, 0.68), rgba(103, 208, 229, 0.2));
}

body.post-cover-ui .command-receipt-line-one { top: 38%; width: 54%; }
body.post-cover-ui .command-receipt-line-two { top: 50%; width: 44%; }
body.post-cover-ui .command-receipt-line-three { top: 62%; width: 62%; }

body.post-cover-ui .command-arch-node {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  border: 1px solid rgba(10, 105, 136, 0.22);
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.88), transparent 32%),
    linear-gradient(145deg, rgba(237, 252, 255, 0.88), rgba(147, 211, 226, 0.58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 18px 34px rgba(45, 108, 138, 0.16);
  transform: translateZ(38px);
}

body.post-cover-ui .command-arch-node span {
  color: #8f5e3e;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

body.post-cover-ui .command-arch-node strong {
  color: #0b5f77;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

body.post-cover-ui .command-arch-node-upload { left: 13%; top: 52%; }
body.post-cover-ui .command-arch-node-ocr { right: 14%; top: 28%; }
body.post-cover-ui .command-arch-node-archive { right: 24%; bottom: 12%; }

body.post-cover-ui .command-particle {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(12, 122, 149, 0.5);
  box-shadow: 0 0 18px rgba(12, 122, 149, 0.2);
  animation: commandParticleDrift 7s ease-in-out infinite;
}

body.post-cover-ui .command-particle-one { left: 18%; top: 23%; }
body.post-cover-ui .command-particle-two { left: 72%; top: 16%; width: 9px; height: 9px; animation-delay: 1s; }
body.post-cover-ui .command-particle-three { left: 58%; bottom: 22%; width: 16px; height: 16px; background: rgba(201, 120, 68, 0.46); animation-delay: 1.8s; }

body.post-cover-ui .command-visual-copy {
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0.85rem;
  border-radius: 18px;
  border: 1px solid rgba(14, 104, 135, 0.16);
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(14px);
}

body.post-cover-ui .command-visual-copy strong {
  color: #102f46;
  font-size: 0.92rem;
}

body.post-cover-ui .command-visual-copy span {
  color: #43677f;
  font-size: 0.78rem;
  font-weight: 800;
}

body.post-cover-ui.dribbble-dashboard .neo-dashboard-board {
  position: relative;
  gap: 1rem;
}

body.post-cover-ui.dribbble-dashboard .neo-card,
body.post-cover-ui.dribbble-dashboard .metric-card,
body.post-cover-ui.dribbble-dashboard .chart-row,
body.post-cover-ui.dribbble-dashboard .vendor-row,
body.post-cover-ui.dribbble-dashboard .queue-item,
body.post-cover-ui.dribbble-dashboard .workflow-node,
body.post-cover-ui.dribbble-dashboard .timeline-step {
  border-color: rgba(56, 132, 164, 0.18) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(110, 221, 244, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(238, 249, 254, 0.92)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 22px 54px rgba(57, 103, 136, 0.13) !important;
}

body.post-cover-ui.dribbble-dashboard .neo-card--assistant {
  min-height: 100%;
  background:
    radial-gradient(circle at 48% 38%, rgba(112, 222, 244, 0.24), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(255, 196, 134, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(247, 253, 255, 0.98), rgba(221, 241, 249, 0.94)) !important;
}

body.post-cover-ui .neo-figure-stage {
  min-height: 330px;
  border-radius: 28px;
  border-color: rgba(41, 124, 154, 0.18) !important;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.78), transparent 24%),
    radial-gradient(circle at 28% 70%, rgba(75, 177, 204, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(230, 246, 253, 0.96), rgba(201, 225, 238, 0.82)) !important;
  box-shadow: inset 0 -20px 48px rgba(60, 115, 145, 0.1);
}

body.post-cover-ui .neo-figure-stage::before {
  content: "";
  position: absolute;
  inset: 56% -14% -18%;
  background-image:
    linear-gradient(rgba(37, 120, 150, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 120, 150, 0.12) 1px, transparent 1px);
  background-size: 30px 30px;
  transform: perspective(620px) rotateX(66deg);
  transform-origin: top center;
  pointer-events: none;
}

body.post-cover-ui .neo-figure-canvas {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 26px 38px rgba(38, 95, 130, 0.18));
}

body.post-cover-ui .neo-orbit-label {
  position: absolute;
  z-index: 2;
  padding: 0.4rem 0.62rem;
  border-radius: 999px;
  color: #31566e;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(34, 122, 154, 0.16);
  box-shadow: 0 12px 24px rgba(50, 105, 137, 0.1);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.post-cover-ui .neo-orbit-label-upload { left: 8%; bottom: 18%; }
body.post-cover-ui .neo-orbit-label-ocr { right: 12%; top: 18%; }
body.post-cover-ui .neo-orbit-label-archive { right: 10%; bottom: 22%; }

body.post-cover-ui .neo-card h3,
body.post-cover-ui .metric-card strong,
body.post-cover-ui .line-chart-copy strong,
body.post-cover-ui .line-chart-focus strong {
  color: #102940 !important;
}

body.post-cover-ui .neo-card-copy,
body.post-cover-ui .neo-card-meta,
body.post-cover-ui .neo-empty-note,
body.post-cover-ui .line-chart-kicker,
body.post-cover-ui .line-chart-axis-label {
  color: #486982 !important;
}

body.post-cover-ui .neo-mini-bar,
body.post-cover-ui .neo-transaction-row,
body.post-cover-ui .neo-spend-row {
  border-color: rgba(56, 132, 164, 0.15) !important;
  background: rgba(255, 255, 255, 0.62) !important;
  box-shadow: 0 14px 30px rgba(61, 108, 139, 0.09);
}

body.post-cover-ui .neo-mini-bar-fill,
body.post-cover-ui .neo-spend-fill,
body.post-cover-ui .bar-fill,
body.post-cover-ui .trend-fill {
  background: linear-gradient(180deg, #69e7f7 0%, #17aeca 58%, #087a96 100%) !important;
  box-shadow:
    0 0 18px rgba(23, 174, 202, 0.26),
    0 0 36px rgba(23, 174, 202, 0.14) !important;
}

body.post-cover-ui .line-chart-path {
  stroke: #087f99 !important;
  stroke-width: 3.8 !important;
}

body.post-cover-ui .line-chart-path-glow {
  stroke: rgba(45, 190, 220, 0.28) !important;
  stroke-width: 10 !important;
}

body.post-cover-ui .line-chart-area {
  opacity: 0.92;
}

body.post-cover-ui .line-chart-point {
  fill: #ffffff !important;
  stroke: #0985a0 !important;
  stroke-width: 2.6 !important;
}

body.post-cover-ui .line-chart-point.is-active {
  fill: #ffbf7a !important;
  stroke: #ffffff !important;
  filter: drop-shadow(0 0 12px rgba(255, 180, 110, 0.34));
}

body.post-cover-ui .receipt-icon-badge,
body.post-cover-ui .dashboard-nav-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 14px;
  color: #075f76 !important;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.84), transparent 30%),
    linear-gradient(145deg, rgba(219, 247, 254, 0.98), rgba(142, 221, 238, 0.7));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 22px rgba(49, 120, 151, 0.14);
  font-weight: 900;
}

body.post-cover-ui .cloud-proof-strip,
body.post-cover-ui .upload-lab,
body.post-cover-ui #analyticsSection,
body.post-cover-ui #workflowBoard,
body.post-cover-ui .table-panel {
  border-color: rgba(56, 132, 164, 0.17) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(110, 221, 244, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(239, 249, 254, 0.94)) !important;
}

body.post-cover-ui .primary-button,
body.post-cover-ui .topbar-primary-button {
  color: #062b3c !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: linear-gradient(135deg, #7cecff 0%, #aaf3ff 48%, #ffd19a 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 16px 34px rgba(36, 137, 168, 0.18) !important;
}

body.post-cover-ui .secondary-button,
body.post-cover-ui .ghost-link,
body.post-cover-ui .ghost-button,
body.post-cover-ui .status-pill {
  border-color: rgba(56, 132, 164, 0.18) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: #183a54 !important;
}

body.post-cover-ui .panel:hover,
body.post-cover-ui .glass-card:hover,
body.post-cover-ui .neo-card:hover,
body.post-cover-ui .metric-card:hover,
body.post-cover-ui .chart-row:hover,
body.post-cover-ui .vendor-row:hover,
body.post-cover-ui .queue-item:hover {
  transform: translateY(-3px);
  border-color: rgba(12, 133, 164, 0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 28px 68px rgba(49, 104, 139, 0.18) !important;
}

@keyframes commandReceiptFloat {
  0%, 100% { transform: rotateY(-24deg) rotateZ(-7deg) translate3d(0, 0, 32px); }
  50% { transform: rotateY(-18deg) rotateZ(-3deg) translate3d(6px, -12px, 42px); }
}

@keyframes commandParticleDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.62; }
  50% { transform: translate3d(10px, -14px, 0) scale(1.18); opacity: 0.92; }
}

@media (max-width: 1080px) {
  body.post-cover-ui.dribbble-dashboard .dashboard-command-bar {
    grid-template-columns: 1fr;
  }

  body.post-cover-ui .dashboard-command-tools,
  body.post-cover-ui .dashboard-command-visual,
  body.post-cover-ui .dashboard-command-meta {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  body.post-cover-ui.dribbble-dashboard .dashboard-command-bar {
    padding: 1rem;
    border-radius: 24px;
  }

  body.post-cover-ui .dashboard-command-copy h1 {
    font-size: clamp(2.2rem, 13vw, 3.45rem) !important;
  }

  body.post-cover-ui .dashboard-command-visual {
    min-height: 240px;
  }

  body.post-cover-ui .command-visual-copy {
    display: grid;
  }

  body.post-cover-ui .command-arch-node {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.post-cover-ui .command-receipt-glass,
  body.post-cover-ui .command-particle {
    animation: none !important;
  }
}

/* Premium command visual interaction pass */
body.post-cover-ui .dashboard-command-visual {
  --visual-tilt-x: 0deg;
  --visual-tilt-y: 0deg;
  --visual-glow-x: 50%;
  --visual-glow-y: 50%;
  cursor: pointer;
  transform:
    perspective(940px)
    rotateX(var(--visual-tilt-x))
    rotateY(var(--visual-tilt-y));
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
  will-change: transform;
}

body.post-cover-ui .dashboard-command-visual::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--visual-glow-x) var(--visual-glow-y), rgba(255, 255, 255, 0.78), transparent 0 22%),
    radial-gradient(circle at var(--visual-glow-x) var(--visual-glow-y), rgba(15, 142, 171, 0.24), transparent 0 42%);
  mix-blend-mode: screen;
  opacity: 0.72;
  transition: opacity 180ms ease;
}

body.post-cover-ui .dashboard-command-visual:hover {
  border-color: rgba(10, 115, 148, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 22px 52px rgba(31, 91, 124, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.42),
    0 0 44px rgba(17, 138, 167, 0.14);
}

body.post-cover-ui .dashboard-command-visual > * {
  z-index: 2;
}

body.post-cover-ui .command-grid-plane,
body.post-cover-ui .command-orbit {
  z-index: 0;
}

body.post-cover-ui .command-arch-node {
  transform: translateZ(38px) scale(1);
  transition:
    transform 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

body.post-cover-ui .command-arch-node::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 28px;
  border: 1px solid rgba(12, 122, 149, 0.18);
  background: radial-gradient(circle, rgba(56, 202, 224, 0.18), transparent 64%);
  opacity: 0;
  transform: scale(0.86);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

body.post-cover-ui .command-arch-node.is-active {
  z-index: 5;
  border-color: rgba(10, 110, 143, 0.44);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.96), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(117, 206, 226, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 22px 42px rgba(45, 108, 138, 0.24),
    0 0 38px rgba(35, 179, 205, 0.24);
  filter: saturate(1.12) contrast(1.04);
  transform: translateZ(62px) scale(1.08);
}

body.post-cover-ui .command-arch-node.is-active::after {
  opacity: 1;
  transform: scale(1);
  animation: commandNodePulse 1.9s ease-in-out infinite;
}

body.post-cover-ui .command-arch-node.is-active strong {
  color: #073f56;
}

body.post-cover-ui .command-arch-node.is-active span {
  color: #8a461f;
}

body.post-cover-ui .dashboard-command-visual[data-active-stage="upload"] .command-receipt-glass {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 28px 48px rgba(30, 88, 122, 0.2),
    0 0 46px rgba(47, 178, 204, 0.22);
}

body.post-cover-ui .dashboard-command-visual[data-active-stage="ocr"] .command-orbit-one {
  border-color: rgba(12, 122, 149, 0.38);
  box-shadow: 0 0 28px rgba(12, 122, 149, 0.14);
}

body.post-cover-ui .dashboard-command-visual[data-active-stage="archive"] .command-orbit-two {
  border-color: rgba(194, 111, 62, 0.42);
  box-shadow: 0 0 30px rgba(194, 111, 62, 0.14);
}

body.post-cover-ui .command-visual-copy {
  z-index: 6;
  border-color: rgba(9, 86, 119, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(235, 249, 252, 0.74));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 16px 28px rgba(31, 91, 124, 0.14);
}

body.post-cover-ui .command-visual-copy span {
  color: #234f66;
  text-align: right;
  transition: color 180ms ease;
}

@keyframes commandNodePulse {
  0%, 100% {
    opacity: 0.62;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.post-cover-ui .dashboard-command-visual {
    transform: none !important;
    transition: none;
  }

  body.post-cover-ui .command-arch-node.is-active::after {
    animation: none;
  }
}
