:root {
  color-scheme: dark;
  --bg: #090b12;
  --panel: rgba(16, 22, 34, 0.84);
  --panel-strong: rgba(22, 31, 47, 0.94);
  --line: rgba(139, 160, 202, 0.2);
  --line-strong: rgba(120, 222, 255, 0.38);
  --text: #f4f7fb;
  --muted: #9fabbd;
  --cyan: #39d9ff;
  --mint: #28f2a6;
  --pink: #ff4fd8;
  --amber: #ffc857;
  --danger: #ff5b79;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(57, 217, 255, 0.18), transparent 24rem),
    radial-gradient(circle at 85% 10%, rgba(255, 79, 216, 0.15), transparent 22rem),
    linear-gradient(135deg, #070810 0%, #0c1320 48%, #120f1f 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  pointer-events: none;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.topbar {
  margin-bottom: 24px;
  padding-top: 4px;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: auto;
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: none;
  height: clamp(280px, 27vw, 390px);
  margin: 0 auto;
  border: 1px solid rgba(57, 217, 255, 0.28);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(8, 14, 25, 0.68);
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.36),
    0 0 38px rgba(57, 217, 255, 0.12);
}

.hero-art::before {
  content: none;
}

.hero-art::after {
  content: none;
}

.hero-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  object-position: center;
}

.hero-art-data::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0%, rgba(73, 245, 255, 0.12) 16%, transparent 28%),
    linear-gradient(270deg, transparent 0%, rgba(184, 92, 255, 0.1) 18%, transparent 31%);
  mix-blend-mode: screen;
  opacity: 0.85;
  animation: heroEdgeSweep 8.8s ease-in-out infinite;
}

.hero-art-data::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 42%, rgba(80, 219, 255, 0.16), transparent 16%),
    radial-gradient(circle at 44% 38%, rgba(168, 102, 255, 0.14), transparent 14%),
    radial-gradient(circle at 63% 46%, rgba(49, 241, 196, 0.14), transparent 16%),
    radial-gradient(circle at 79% 30%, rgba(86, 198, 255, 0.14), transparent 15%);
  mix-blend-mode: screen;
  opacity: 0.5;
  animation: heroDataPulse 12s ease-in-out infinite alternate;
}

.hero-art-data .hero-title-glow {
  display: none;
}

.hero-art-data .title-reflection::before {
  display: none;
}

.hero-art-secondary::before {
  content: "";
  position: absolute;
  inset: -14%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 38%, rgba(64, 198, 255, 0.12), transparent 30%),
    radial-gradient(circle at 52% 56%, rgba(174, 87, 255, 0.1), transparent 28%),
    radial-gradient(circle at 83% 46%, rgba(48, 242, 198, 0.12), transparent 24%);
  mix-blend-mode: screen;
  opacity: 0.72;
  animation: heroAmbientShift 14s ease-in-out infinite alternate;
}

.hero-art-secondary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 28%,
    rgba(255, 255, 255, 0.08) 44%,
    rgba(73, 245, 255, 0.16) 48%,
    rgba(255, 255, 255, 0.1) 53%,
    transparent 69%
  );
  mix-blend-mode: screen;
  transform: translateX(-120%);
  animation: heroSweep 11s linear infinite;
}

.hero-art-secondary img {
  z-index: 1;
  transform-origin: center center;
  filter: saturate(1.06) contrast(1.04) brightness(0.98);
  animation: heroSceneDrift 16s ease-in-out infinite alternate;
  will-change: transform, filter;
}

.hero-art-secondary .hero-flow-canvas {
  z-index: 3;
  opacity: 0.9;
}

.hero-flow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  mix-blend-mode: color-dodge;
  opacity: 1;
  pointer-events: none;
}

.hero-art-data .hero-flow-canvas {
  z-index: 5;
  opacity: 1;
  mix-blend-mode: normal;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.16));
}

.hero-title-glow {
  position: absolute;
  left: 21.56%;
  right: 21.56%;
  top: 88.58%;
  height: 8.94%;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: normal;
  overflow: visible;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 42%, rgba(80, 219, 255, 0.18), transparent 18%),
    radial-gradient(circle at 44% 38%, rgba(168, 102, 255, 0.14), transparent 15%),
    radial-gradient(circle at 63% 46%, rgba(49, 241, 196, 0.16), transparent 18%),
    radial-gradient(circle at 79% 30%, rgba(86, 198, 255, 0.16), transparent 16%);
  mix-blend-mode: screen;
  opacity: 0.85;
  animation: heroDataPulse 10s ease-in-out infinite alternate;
}

.title-reflection {
  position: absolute;
  inset: 0;
  display: block;
  font-size: 0;
  overflow: hidden;
  filter:
    drop-shadow(0 0 9px rgba(120, 244, 255, 1))
    drop-shadow(0 0 22px rgba(50, 219, 255, 0.78))
    drop-shadow(0 0 32px rgba(255, 79, 216, 0.42));
  -webkit-mask-image: url("title-shine-mask.png");
  mask-image: url("title-shine-mask.png");
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.title-reflection::before {
  content: "";
  position: absolute;
  top: -26%;
  left: 10.5%;
  z-index: 1;
  width: 35%;
  height: 152%;
  opacity: 1;
  transform: translateX(-50%) skewX(-14deg) scaleX(0.78);
  mix-blend-mode: normal;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 82%, transparent 100%);
  filter:
    blur(0.15px)
    drop-shadow(0 0 11px rgba(145, 247, 255, 1))
    drop-shadow(0 0 20px rgba(255, 79, 216, 0.34));
  background:
    linear-gradient(
      104deg,
      transparent 0%,
      transparent 20%,
      rgba(68, 227, 255, 0.42) 31%,
      rgba(107, 244, 255, 1) 42%,
      rgba(255, 255, 255, 1) 48%,
      rgba(255, 255, 255, 1) 51%,
      rgba(88, 238, 255, 1) 57%,
      rgba(255, 79, 216, 0.68) 68%,
      transparent 80%,
      transparent 100%
    );
  will-change: left, opacity, transform, filter;
}

.title-reflection-left::before {
  left: 10.5%;
  animation: titleReflectLeft 4.8s ease-in-out infinite;
}

.title-reflection-right::before {
  left: 89.5%;
  transform: translateX(-50%) skewX(14deg) scaleX(0.78);
  animation: titleReflectRight 4.8s ease-in-out infinite;
}

@keyframes titleReflectLeft {
  0%,
  100% {
    left: 10.5%;
    opacity: 0.96;
    transform: translateX(-50%) skewX(-14deg) scaleX(0.82);
    filter:
      blur(0.15px)
      drop-shadow(0 0 11px rgba(142, 242, 255, 0.95))
      drop-shadow(0 0 20px rgba(255, 79, 216, 0.3));
  }

  48%,
  56% {
    left: 50%;
    opacity: 1;
    transform: translateX(-50%) skewX(-14deg) scaleX(1.08);
    filter:
      blur(0.25px)
      drop-shadow(0 0 16px rgba(142, 242, 255, 1))
      drop-shadow(0 0 28px rgba(255, 79, 216, 0.44));
  }
}

@keyframes titleReflectRight {
  0%,
  100% {
    left: 89.5%;
    opacity: 0.96;
    transform: translateX(-50%) skewX(14deg) scaleX(0.82);
    filter:
      blur(0.15px)
      drop-shadow(0 0 11px rgba(142, 242, 255, 0.95))
      drop-shadow(0 0 20px rgba(255, 79, 216, 0.3));
  }

  48%,
  56% {
    left: 50%;
    opacity: 1;
    transform: translateX(-50%) skewX(14deg) scaleX(1.08);
    filter:
      blur(0.25px)
      drop-shadow(0 0 16px rgba(142, 242, 255, 1))
      drop-shadow(0 0 28px rgba(255, 79, 216, 0.44));
  }
}

@keyframes heroSceneDrift {
  0% {
    transform: scale(1.01) translate3d(0, 0, 0);
    filter: saturate(1.03) contrast(1.02) brightness(0.98);
  }

  100% {
    transform: scale(1.045) translate3d(0, -1.4%, 0);
    filter: saturate(1.1) contrast(1.08) brightness(1.02);
  }
}

@keyframes heroAmbientShift {
  0% {
    transform: translate3d(-1.2%, 0.5%, 0) scale(1);
    opacity: 0.58;
  }

  100% {
    transform: translate3d(1.2%, -0.6%, 0) scale(1.03);
    opacity: 0.8;
  }
}

@keyframes heroSweep {
  0% {
    transform: translateX(-125%) skewX(-12deg);
    opacity: 0;
  }

  12% {
    opacity: 0.9;
  }

  38% {
    opacity: 0.25;
  }

  100% {
    transform: translateX(125%) skewX(-12deg);
    opacity: 0;
  }
}

@keyframes heroDataPulse {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 0.58;
  }

  100% {
    transform: scale(1.025) translate3d(0.5%, -0.5%, 0);
    opacity: 0.95;
  }
}

@keyframes heroEdgeSweep {
  0% {
    transform: translateX(-4%);
    opacity: 0.3;
  }

  50% {
    transform: translateX(0);
    opacity: 0.9;
  }

  100% {
    transform: translateX(4%);
    opacity: 0.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .title-reflection::before {
    animation: none;
    opacity: 0.45;
  }

  .hero-art-secondary::before,
  .hero-art-secondary::after,
  .hero-art-secondary img {
    animation: none;
  }

  .page-switcher::after {
    animation: none;
    opacity: 0;
  }

  .relenishments-upload-button::after,
  .relenishments-reset-button::after,
  .relenishments-approve-button::after,
  .relenishments-reject-button::after,
  .relenishments-report-button::after,
  .relenishments-calculate-button::after,
  .relenishments-submit-button::after {
    animation: none;
    opacity: 0;
  }

  .credit-logo svg {
    animation: none;
    transform: none;
  }

  .replenishment-title-icon,
  .replenishment-title-icon svg {
    animation: none;
    transform: none;
  }

  .page-switcher {
    animation: none;
  }

  .page-switcher:hover {
    transform: translateY(-1px);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero-title-card {
  position: absolute;
  left: clamp(28px, 5vw, 72px);
  top: auto;
  bottom: clamp(22px, 2.6vw, 34px);
  transform: none;
  z-index: 2;
  display: grid;
  gap: 8px;
  max-width: min(46%, 540px);
  margin: 0;
  padding: 0;
}

.hero-title-card::after {
  content: "";
  width: min(220px, 62%);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(57, 217, 255, 0.95), rgba(176, 107, 255, 0.72), rgba(40, 242, 166, 0.94));
  box-shadow:
    0 0 14px rgba(57, 217, 255, 0.46),
    0 0 18px rgba(40, 242, 166, 0.22);
}

.section-kicker {
  margin: 0 0 6px;
  color: var(--mint);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-family:
    "Segoe UI Variable Display", "Segoe UI", Inter, ui-sans-serif, system-ui,
    sans-serif;
  font-size: clamp(1.2rem, 2.15vw, 2.1rem);
  line-height: 1;
  font-weight: 780;
  text-transform: none;
  white-space: nowrap;
  color: transparent;
  letter-spacing: 0;
  background: linear-gradient(94deg, #f4feff 0%, #80efff 38%, #d8c2ff 62%, #38f1ad 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0;
  filter:
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.7))
    drop-shadow(0 0 12px rgba(57, 217, 255, 0.2));
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 18px rgba(57, 217, 255, 0.26);
}

h2 {
  font-size: 1.08rem;
}

.privacy-pill,
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid rgba(40, 242, 166, 0.28);
  border-radius: 999px;
  background: rgba(40, 242, 166, 0.1);
  color: #c9ffe9;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.privacy-pill {
  flex: 0 0 auto;
  width: fit-content;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.privacy-pill svg,
.page-switcher svg,
button svg,
.download-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.page-switcher {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid rgba(57, 217, 255, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(118deg, transparent 0%, transparent 72%, rgba(255, 255, 255, 0.13) 73%, rgba(255, 255, 255, 0.02) 100%),
    linear-gradient(135deg, rgba(57, 217, 255, 0.2), rgba(40, 242, 166, 0.1) 54%, rgba(255, 79, 216, 0.12)),
    rgba(16, 25, 39, 0.78);
  color: #ebfbff;
  padding: 10px 18px 10px 14px;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.26),
    7px 7px 0 rgba(57, 217, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  transform-origin: 100% 0;
  animation: pageSwitchTilt 5.2s ease-in-out infinite;
  will-change: transform;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 180ms ease;
}

.page-switcher::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 34px;
  height: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(57, 217, 255, 0.08) 48%, rgba(0, 0, 0, 0.18) 52%, transparent 100%);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: 0.62;
  transform-origin: 100% 0;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.page-switcher::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -46%;
  z-index: 1;
  width: 24%;
  background:
    linear-gradient(108deg, transparent 0%, rgba(255, 255, 255, 0.06) 35%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0.08) 63%, transparent 100%);
  transform: skewX(-18deg);
  animation: pageSwitchSweep 3.8s ease-in-out infinite;
  pointer-events: none;
}

.page-switcher svg {
  width: 26px;
  height: 26px;
  position: relative;
  z-index: 2;
}

.page-switcher span {
  position: relative;
  z-index: 2;
}

.page-switcher:hover {
  animation: none;
  border-color: rgba(40, 242, 166, 0.56);
  background:
    linear-gradient(135deg, rgba(40, 242, 166, 0.2), rgba(57, 217, 255, 0.12) 58%, rgba(255, 79, 216, 0.12)),
    rgba(18, 30, 45, 0.82);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.3),
    10px 10px 0 rgba(57, 217, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(-2px) perspective(600px) rotateY(-8deg) rotateX(3deg);
}

.page-switcher:hover::before {
  opacity: 0.9;
  transform: scale(1.18);
}

@keyframes pageSwitchTilt {
  0%,
  100% {
    transform: perspective(700px) rotateY(0deg) rotateX(0deg) translateY(0);
  }

  18% {
    transform: perspective(700px) rotateY(-5deg) rotateX(2deg) translateY(-1px);
  }

  36% {
    transform: perspective(700px) rotateY(3deg) rotateX(-1deg) translateY(0);
  }

  54%,
  82% {
    transform: perspective(700px) rotateY(0deg) rotateX(0deg) translateY(0);
  }
}

@keyframes pageSwitchSweep {
  0%,
  46% {
    left: -46%;
  }

  78%,
  100% {
    left: 122%;
  }
}

.cash-stack-icon,
.data-funnel-icon {
  width: 58px;
  height: 42px;
}

.cash-top {
  fill: rgba(221, 255, 223, 0.92);
  stroke: rgba(193, 255, 234, 0.9);
  stroke-width: 2.1;
  stroke-linejoin: round;
}

.cash-top-low {
  fill: rgba(198, 246, 203, 0.72);
}

.cash-top-front {
  fill: rgba(218, 255, 221, 0.88);
}

.cash-top-high {
  fill: rgba(232, 255, 226, 0.96);
}

.cash-side {
  fill: rgba(36, 143, 63, 0.82);
  stroke: rgba(172, 255, 214, 0.7);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.cash-side-right,
.cash-side-low-right,
.cash-side-front-right,
.cash-side-high-right {
  fill: rgba(23, 107, 52, 0.86);
}

.cash-side-front,
.cash-side-high {
  fill: rgba(45, 156, 72, 0.88);
}

.cash-strap {
  fill: rgba(255, 231, 123, 0.78);
  stroke: rgba(255, 253, 207, 0.82);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.cash-mark {
  fill: none;
  stroke: rgba(34, 111, 48, 0.9);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cash-mark-front {
  stroke: rgba(27, 95, 44, 0.86);
}

.data-arrow,
.data-funnel {
  fill: none;
  stroke: #ecf7ff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.data-arrow-mid {
  stroke: var(--pink);
}

.data-funnel {
  fill: rgba(57, 217, 255, 0.16);
  stroke: rgba(236, 247, 255, 0.9);
}

.data-dot {
  fill: rgba(236, 247, 255, 0.9);
}

.data-dot-one {
  fill: var(--pink);
}

.status-chip {
  border-color: rgba(57, 217, 255, 0.28);
  background: rgba(57, 217, 255, 0.09);
  color: #c6f4ff;
}

.status-chip.muted {
  border-color: rgba(159, 171, 189, 0.18);
  background: rgba(159, 171, 189, 0.08);
  color: var(--muted);
}

.status-chip.warning {
  border-color: rgba(255, 200, 87, 0.38);
  background: rgba(255, 200, 87, 0.12);
  color: #ffe1a1;
}

.status-chip.error {
  border-color: rgba(255, 91, 121, 0.42);
  background: rgba(255, 91, 121, 0.12);
  color: #ffc7d1;
}

.workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.secondary-workspace {
  min-height: clamp(360px, calc(100vh - 136px), 720px);
  display: grid;
  align-items: start;
  overflow: visible;
}

.placeholder-panel {
  min-height: 260px;
  overflow: visible;
}

.placeholder-panel h1 {
  max-width: none;
  color: var(--text);
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  filter: none;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.1;
  text-shadow: none;
  text-transform: none;
}

.relenishments-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}

.relenishments-form .field:first-child {
  grid-column: 1 / -1;
}

.bank-field {
  grid-column: 1 / -1;
}

.bank-field-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.bank-field-row select {
  flex: 1 1 auto;
  min-width: 0;
}

.bank-field-actions {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
}

.bank-field-actions .relenishments-approve-button,
.bank-field-actions .relenishments-reject-button {
  min-width: 144px;
}

.correspondent-bank-field {
  grid-column: 1 / -1;
}

.replenishment-result-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(57, 217, 255, 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(57, 217, 255, 0.08), rgba(255, 79, 216, 0.045)),
    rgba(7, 13, 23, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 14px 38px rgba(0, 0, 0, 0.18);
  padding: 16px;
}

.result-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(139, 160, 202, 0.14);
  padding-bottom: 12px;
}

.result-section-header h2 {
  margin: 0;
  color: #eaf8ff;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.result-section-kicker {
  color: var(--mint);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-section-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.result-section-grid .field:first-child {
  grid-column: 1 / -1;
}

.coverage-field input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.coverage-field.coverage-pass input {
  border-color: rgba(40, 242, 166, 0.45);
  background:
    linear-gradient(120deg, rgba(40, 242, 166, 0.18) 0%, rgba(40, 242, 166, 0.08) 30%, rgba(7, 13, 23, 0.95) 58%, rgba(40, 242, 166, 0.12) 82%, rgba(7, 13, 23, 0.95) 100%),
    rgba(5, 12, 22, 0.9);
  color: #cffff2;
  text-shadow: 0 0 12px rgba(40, 242, 166, 0.18);
  background-size: 260% 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(40, 242, 166, 0.12),
    0 0 18px rgba(40, 242, 166, 0.08);
  animation: coverageFieldGlow 4.8s linear infinite;
}

.coverage-field.coverage-fail input {
  border-color: rgba(255, 98, 118, 0.45);
  background:
    linear-gradient(120deg, rgba(255, 98, 118, 0.18) 0%, rgba(255, 98, 118, 0.08) 30%, rgba(7, 13, 23, 0.95) 58%, rgba(255, 98, 118, 0.12) 82%, rgba(7, 13, 23, 0.95) 100%),
    rgba(5, 12, 22, 0.9);
  color: #ffd5db;
  text-shadow: 0 0 12px rgba(255, 98, 118, 0.14);
  background-size: 260% 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 98, 118, 0.12),
    0 0 18px rgba(255, 98, 118, 0.08);
  animation: coverageFieldGlow 4.8s linear infinite;
}

.coverage-field.coverage-neutral input {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(5, 12, 22, 0.86);
  background-size: 100% 100%;
  color: #dce8f5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.coverage-field input:disabled {
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}

.result-progress:disabled {
  opacity: 1;
  -webkit-text-fill-color: currentColor;
  color: #9ef9d4;
  text-shadow: 0 0 10px rgba(40, 242, 166, 0.2);
  animation: resultProgressPulse 1.2s ease-in-out infinite;
}

@keyframes resultProgressPulse {
  0%,
  100% {
    color: #97f5cf;
    text-shadow: 0 0 8px rgba(40, 242, 166, 0.16);
  }
  50% {
    color: #cbffe9;
    text-shadow: 0 0 14px rgba(40, 242, 166, 0.28);
  }
}

@keyframes coverageFieldGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.relenishments-form input,
.relenishments-form select {
  min-height: 50px;
  border-color: rgba(57, 217, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(5, 12, 22, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

.relenishments-form input::placeholder {
  color: rgba(159, 171, 189, 0.72);
}

.date-picker {
  position: relative;
  z-index: 20;
}

.date-trigger {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(57, 217, 255, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(5, 12, 22, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  justify-content: flex-start;
}

.date-trigger:hover {
  border-color: rgba(40, 242, 166, 0.48);
  box-shadow:
    0 10px 26px rgba(40, 242, 166, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.date-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 40;
  width: min(330px, calc(100vw - 36px));
  border: 1px solid rgba(57, 217, 255, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(57, 217, 255, 0.12), rgba(255, 79, 216, 0.08)),
    rgba(7, 13, 23, 0.96);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 14px;
  backdrop-filter: blur(20px);
}

.date-popover[hidden] {
  display: none;
}

.date-popover-header {
  display: grid;
  grid-template-columns: 36px 36px 1fr 36px 36px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.date-popover-header strong {
  color: #eaf8ff;
  font-size: 0.95rem;
  text-align: center;
}

.date-nav-button {
  width: 36px;
  min-height: 36px;
  border: 1px solid rgba(139, 160, 202, 0.2);
  background: rgba(255, 255, 255, 0.055);
  padding: 0;
}

.date-nav-button:hover {
  border-color: rgba(57, 217, 255, 0.42);
}

.date-weekdays,
.date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.date-weekdays {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.date-day-button,
.date-grid-spacer {
  min-height: 36px;
}

.date-day-button {
  border: 1px solid rgba(139, 160, 202, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: #dce8f5;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.date-day-button:hover {
  border-color: rgba(57, 217, 255, 0.48);
  background: rgba(57, 217, 255, 0.14);
}

.date-day-button.today {
  border-color: rgba(255, 200, 87, 0.42);
  color: #ffe2a0;
}

.date-day-button.selected {
  border-color: rgba(40, 242, 166, 0.58);
  background: linear-gradient(135deg, rgba(57, 217, 255, 0.5), rgba(40, 242, 166, 0.38));
  color: #06131a;
}

.submit-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  padding-top: 6px;
}

.submit-row > .relenishments-reset-button,
.submit-row > .relenishments-report-button,
.submit-row > .relenishments-upload-button,
.submit-row > .relenishments-calculate-button,
.submit-row > .relenishments-submit-button {
  width: 100%;
  min-width: 0;
}

.relenishments-upload-button,
.relenishments-reset-button,
.relenishments-approve-button,
.relenishments-reject-button,
.relenishments-report-button,
.relenishments-calculate-button,
.relenishments-submit-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.relenishments-upload-button,
.relenishments-report-button,
.relenishments-calculate-button,
.relenishments-submit-button {
  min-width: 180px;
}

.relenishments-reset-button,
.relenishments-approve-button,
.relenishments-reject-button {
  min-width: 132px;
  padding-inline: 16px;
}

.relenishments-report-button {
  border: 1px solid rgba(255, 177, 87, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 177, 87, 0.94), rgba(255, 111, 97, 0.86)),
    rgba(255, 177, 87, 0.8);
  color: #071018;
  box-shadow:
    0 16px 36px rgba(255, 156, 74, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.relenishments-report-button i {
  color: #fff1be;
}

.relenishments-report-button:hover {
  box-shadow:
    0 20px 44px rgba(255, 177, 87, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  filter: saturate(1.08) brightness(1.04);
}

.relenishments-reset-button {
  border: 1px solid rgba(255, 111, 111, 0.56);
  background:
    linear-gradient(135deg, rgba(255, 101, 101, 0.96), rgba(255, 154, 90, 0.82)),
    rgba(255, 111, 111, 0.78);
  color: #fff7f7;
  box-shadow:
    0 16px 36px rgba(255, 111, 111, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.relenishments-reset-button i {
  color: #ffe8e8;
}

.relenishments-reset-button:hover {
  box-shadow:
    0 20px 44px rgba(255, 111, 111, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  filter: saturate(1.08) brightness(1.04);
}

.relenishments-approve-button {
  border: 1px solid rgba(46, 222, 155, 0.56);
  background:
    linear-gradient(135deg, rgba(46, 222, 155, 0.96), rgba(79, 215, 255, 0.82)),
    rgba(46, 222, 155, 0.78);
  color: #06161a;
  box-shadow:
    0 16px 36px rgba(46, 222, 155, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.relenishments-approve-button i {
  color: #effff7;
}

.relenishments-approve-button:hover {
  box-shadow:
    0 20px 44px rgba(46, 222, 155, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  filter: saturate(1.08) brightness(1.04);
}

.relenishments-reject-button {
  border: 1px solid rgba(255, 111, 111, 0.56);
  background:
    linear-gradient(135deg, rgba(255, 111, 111, 0.96), rgba(255, 129, 97, 0.82)),
    rgba(255, 111, 111, 0.78);
  color: #fff7f7;
  box-shadow:
    0 16px 36px rgba(255, 111, 111, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.relenishments-reject-button i {
  color: #ffe8e8;
}

.relenishments-reject-button:hover {
  box-shadow:
    0 20px 44px rgba(255, 111, 111, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  filter: saturate(1.08) brightness(1.04);
}

.relenishments-upload-button {
  border: 1px solid rgba(94, 176, 255, 0.58);
  background:
    linear-gradient(135deg, rgba(94, 176, 255, 0.96), rgba(128, 116, 255, 0.86)),
    rgba(94, 176, 255, 0.8);
  color: #f7fbff;
  box-shadow:
    0 16px 36px rgba(94, 176, 255, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.relenishments-upload-button:hover {
  box-shadow:
    0 20px 44px rgba(94, 176, 255, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  filter: saturate(1.08) brightness(1.04);
}

.relenishments-calculate-button {
  border: 1px solid rgba(255, 200, 87, 0.62);
  background:
    linear-gradient(135deg, rgba(255, 214, 102, 0.96), rgba(255, 118, 94, 0.86)),
    rgba(255, 200, 87, 0.8);
  color: #071018;
  box-shadow:
    0 16px 36px rgba(255, 164, 74, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.relenishments-calculate-button:hover {
  box-shadow:
    0 20px 44px rgba(255, 200, 87, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  filter: saturate(1.08) brightness(1.04);
}

.relenishments-submit-button {
  border: 1px solid rgba(40, 242, 166, 0.55);
  background:
    linear-gradient(135deg, rgba(40, 242, 166, 0.96), rgba(57, 217, 255, 0.88) 52%, rgba(255, 200, 87, 0.88)),
    var(--mint);
  color: #061016;
  box-shadow:
    0 16px 40px rgba(40, 242, 166, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.relenishments-upload-button::after,
.relenishments-reset-button::after,
.relenishments-approve-button::after,
.relenishments-reject-button::after,
.relenishments-report-button::after,
.relenishments-calculate-button::after,
.relenishments-submit-button::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -45%;
  z-index: -1;
  width: 26%;
  background:
    linear-gradient(108deg, transparent 0%, rgba(255, 255, 255, 0.16) 35%, rgba(255, 255, 255, 0.74) 50%, rgba(255, 255, 255, 0.16) 64%, transparent 100%);
  transform: skewX(-18deg);
  animation: submitShine 3s ease-in-out infinite;
}

.relenishments-submit-button:hover {
  box-shadow:
    0 20px 48px rgba(40, 242, 166, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  filter: saturate(1.12) brightness(1.03);
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 5, 10, 0.68);
  backdrop-filter: blur(12px);
}

.confirm-overlay[hidden] {
  display: none;
}

.confirm-dialog {
  width: min(440px, 100%);
  border: 1px solid rgba(57, 217, 255, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(57, 217, 255, 0.13), rgba(255, 79, 216, 0.09)),
    rgba(10, 17, 29, 0.96);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 24px;
  text-align: center;
}

.confirm-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border: 1px solid rgba(255, 200, 87, 0.38);
  border-radius: 50%;
  background: rgba(255, 200, 87, 0.12);
  color: var(--amber);
}

.confirm-icon svg {
  width: 28px;
  height: 28px;
}

.confirm-dialog h2 {
  margin: 0;
  font-size: 1.35rem;
}

.confirm-dialog p {
  margin: 10px 0 20px;
  color: var(--muted);
  line-height: 1.55;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.confirm-button {
  min-height: 48px;
}

.confirm-yes {
  background: linear-gradient(135deg, rgba(40, 242, 166, 0.96), rgba(57, 217, 255, 0.82));
  color: #05120e;
}

.confirm-no {
  background: linear-gradient(135deg, rgba(255, 91, 121, 0.96), rgba(255, 79, 216, 0.8));
  color: #fff6f8;
}

.action-confirm-dialog {
  border-color: rgba(57, 217, 255, 0.32);
}

.action-confirm-dialog[data-action-kind="approve"] {
  border-color: rgba(46, 222, 155, 0.4);
  background:
    linear-gradient(135deg, rgba(46, 222, 155, 0.14), rgba(57, 217, 255, 0.1)),
    rgba(10, 17, 29, 0.96);
}

.action-confirm-dialog[data-action-kind="reject"] {
  border-color: rgba(255, 111, 111, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 111, 111, 0.15), rgba(255, 79, 216, 0.1)),
    rgba(10, 17, 29, 0.96);
}

.action-confirm-dialog[data-action-kind="reset"] {
  border-color: rgba(255, 177, 87, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 177, 87, 0.14), rgba(255, 91, 121, 0.08)),
    rgba(10, 17, 29, 0.96);
}

.action-confirm-notes {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  text-align: right;
}

.action-confirm-notes[hidden] {
  display: none !important;
}

.action-confirm-notes span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-strong);
}

.action-confirm-notes textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(5, 12, 22, 0.72);
  color: var(--text-strong);
  font: inherit;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.action-confirm-notes textarea::placeholder {
  color: rgba(215, 224, 244, 0.48);
}

.action-confirm-notes textarea:focus {
  outline: none;
  border-color: rgba(57, 217, 255, 0.42);
  box-shadow:
    0 0 0 3px rgba(57, 217, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.action-confirm-icon[data-action-kind="approve"] {
  border-color: rgba(46, 222, 155, 0.38);
  background: rgba(46, 222, 155, 0.12);
  color: var(--mint);
}

.action-confirm-icon[data-action-kind="reject"] {
  border-color: rgba(255, 111, 111, 0.38);
  background: rgba(255, 111, 111, 0.12);
  color: #ff9b9b;
}

.action-confirm-icon[data-action-kind="reset"] {
  border-color: rgba(255, 177, 87, 0.38);
  background: rgba(255, 177, 87, 0.12);
  color: var(--amber);
}

.duplicate-dialog {
  border-color: rgba(255, 91, 121, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 91, 121, 0.15), rgba(255, 200, 87, 0.1)),
    rgba(10, 17, 29, 0.97);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 42px rgba(255, 91, 121, 0.18);
}

.success-dialog {
  border-color: rgba(40, 242, 166, 0.38);
  background:
    linear-gradient(135deg, rgba(40, 242, 166, 0.16), rgba(57, 217, 255, 0.09)),
    rgba(10, 17, 29, 0.97);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 42px rgba(40, 242, 166, 0.18);
}

.warning-dialog {
  border-color: rgba(255, 177, 87, 0.5);
  background:
    linear-gradient(135deg, rgba(255, 177, 87, 0.2), rgba(255, 91, 121, 0.08)),
    rgba(16, 14, 22, 0.97);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 42px rgba(255, 177, 87, 0.18);
}

.duplicate-dialog .section-kicker {
  justify-content: center;
  margin-bottom: 8px;
  color: var(--amber);
}

.success-dialog .section-kicker {
  justify-content: center;
  margin-bottom: 8px;
  color: var(--mint);
}

.warning-dialog .section-kicker {
  justify-content: center;
  margin-bottom: 8px;
  color: var(--amber);
}

.duplicate-icon {
  border-color: rgba(255, 91, 121, 0.5);
  background:
    linear-gradient(135deg, rgba(255, 91, 121, 0.22), rgba(255, 200, 87, 0.14)),
    rgba(255, 91, 121, 0.08);
  color: #ff6d8b;
}

.success-icon {
  border-color: rgba(40, 242, 166, 0.5);
  background:
    linear-gradient(135deg, rgba(40, 242, 166, 0.22), rgba(57, 217, 255, 0.14)),
    rgba(40, 242, 166, 0.08);
  color: var(--mint);
}

.warning-icon {
  border-color: rgba(255, 177, 87, 0.54);
  background:
    linear-gradient(135deg, rgba(255, 177, 87, 0.24), rgba(255, 91, 121, 0.12)),
    rgba(255, 177, 87, 0.08);
  color: var(--amber);
}

.duplicate-reference-meta {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(5, 12, 22, 0.62);
  text-align: left;
}

.duplicate-reference-meta:empty {
  display: none;
}

.duplicate-reference-row {
  display: grid;
  grid-template-columns: minmax(86px, auto) 1fr;
  gap: 10px;
  align-items: baseline;
  min-width: 0;
}

.duplicate-reference-row span:first-child {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.duplicate-reference-row span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 800;
}

.duplicate-actions {
  grid-template-columns: 1fr;
}

.duplicate-close {
  background: linear-gradient(135deg, rgba(255, 200, 87, 0.96), rgba(255, 91, 121, 0.86));
  color: #12070a;
}

.success-close {
  background: linear-gradient(135deg, rgba(40, 242, 166, 0.96), rgba(57, 217, 255, 0.82));
  color: #05120e;
}

.warning-close {
  background: linear-gradient(135deg, rgba(255, 200, 87, 0.96), rgba(255, 157, 87, 0.92));
  color: #12070a;
}

@keyframes submitShine {
  0%,
  42% {
    left: -45%;
  }

  74%,
  100% {
    left: 120%;
  }
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(139, 160, 202, 0.14);
}

.panel-header-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.replenishment-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.replenishment-title-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform-origin: center;
  animation: replenishmentIconPulse 2.8s ease-in-out infinite;
}

.replenishment-title-icon svg {
  width: 40px;
  height: 40px;
  display: block;
  filter:
    drop-shadow(0 0 7px rgba(57, 217, 255, 0.55))
    drop-shadow(0 0 16px rgba(57, 217, 255, 0.22));
  animation: replenishmentIconPulse 2.8s ease-in-out infinite;
  transform-origin: center;
}

.replenishment-coin-rim {
  fill: rgba(11, 26, 34, 0.34);
  stroke: rgba(57, 217, 255, 0.88);
  stroke-width: 2.2;
}

.replenishment-coin-face {
  fill: rgba(6, 16, 25, 0.5);
  stroke: rgba(57, 217, 255, 0.66);
  stroke-width: 1.2;
}

.replenishment-coin-inner {
  fill: rgba(8, 22, 32, 0.88);
  stroke: rgba(57, 217, 255, 0.44);
  stroke-width: 1;
}

.replenishment-coin-dollar {
  fill: #8ef7ff;
  font-size: 24px;
  font-weight: 900;
  font-family: "Segoe UI", Inter, sans-serif;
  stroke: #0a2834;
  stroke-width: 0.9px;
  paint-order: stroke fill;
  letter-spacing: 0;
  opacity: 0.98;
}

@keyframes replenishmentIconPulse {
  0% {
    transform: scale(0.9);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(0.9);
  }
}

.replenishment-coin-sheen {
  fill: none;
  stroke: rgba(180, 248, 255, 0.9);
  stroke-width: 1.7;
  stroke-linecap: round;
  opacity: 0.7;
}

.panel-header-meta {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: min(560px, 100%);
}

.panel-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.operation-tracker {
  position: relative;
  width: min(560px, 100%);
  margin-left: auto;
  overflow: hidden;
  border: 1px solid rgba(57, 217, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(57, 217, 255, 0.08) 42%, rgba(255, 79, 216, 0.05)),
    rgba(7, 13, 23, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 26px rgba(0, 0, 0, 0.14);
  padding: 10px 12px 11px;
  backdrop-filter: blur(18px);
}

.operation-tracker::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.14) 44%, transparent 58%);
  transform: translateX(-140%);
  opacity: 0;
  pointer-events: none;
}

.operation-tracker.running {
  border-color: rgba(57, 217, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(57, 217, 255, 0.06) inset,
    0 14px 30px rgba(57, 217, 255, 0.06),
    0 12px 26px rgba(0, 0, 0, 0.14);
}

.operation-tracker.running::before {
  animation: trackerShine 2.8s linear infinite;
}

@keyframes replenishmentIconFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-3px) scale(1.03);
  }
}

@keyframes replenishmentIconSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(10deg) scale(1.06);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

.operation-tracker.success {
  border-color: rgba(40, 242, 166, 0.36);
}

.operation-tracker.error {
  border-color: rgba(255, 98, 118, 0.34);
}

.operation-tracker-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operation-tracker-label {
  color: #effbff;
}

.operation-tracker-percent {
  color: rgba(214, 230, 245, 0.88);
}

.operation-tracker-steps {
  margin-bottom: 8px;
  color: rgba(181, 195, 214, 0.9);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.operation-tracker-track {
  position: relative;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(139, 160, 202, 0.12);
}

.operation-tracker-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(57, 217, 255, 0.95), rgba(40, 242, 166, 0.96) 50%, rgba(255, 200, 87, 0.92));
  box-shadow: 0 0 18px rgba(57, 217, 255, 0.18);
  transition: width 180ms ease;
}

.operation-tracker.success .operation-tracker-fill {
  background:
    linear-gradient(90deg, rgba(40, 242, 166, 0.95), rgba(57, 217, 255, 0.94) 58%, rgba(255, 200, 87, 0.88));
  box-shadow: 0 0 18px rgba(40, 242, 166, 0.2);
}

.operation-tracker.error .operation-tracker-fill {
  background:
    linear-gradient(90deg, rgba(255, 98, 118, 0.95), rgba(255, 162, 87, 0.9) 56%, rgba(255, 200, 87, 0.82));
  box-shadow: 0 0 18px rgba(255, 98, 118, 0.2);
}

@keyframes trackerShine {
  0% {
    transform: translateX(-130%);
    opacity: 0;
  }
  18% {
    opacity: 0.82;
  }
  100% {
    transform: translateX(130%);
    opacity: 0;
  }
}

.upload-panel,
.preview-panel {
  grid-column: span 1;
}

.config-panel,
.progress-panel {
  grid-column: span 1;
}

.progress-panel {
  grid-column: 1 / -1;
}

.upload-panel,
.config-panel {
  min-height: 100%;
}

.config-panel {
  display: flex;
  flex-direction: column;
}

.config-panel .action-row {
  margin-top: auto;
}

.drop-zone {
  display: grid;
  place-items: center;
  min-height: 278px;
  margin: 20px;
  padding: 28px;
  border: 1px dashed rgba(57, 217, 255, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(57, 217, 255, 0.12), rgba(255, 79, 216, 0.08)),
    rgba(5, 11, 20, 0.68);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.drop-zone:hover,
.drop-zone.dragging {
  border-color: rgba(40, 242, 166, 0.72);
  transform: translateY(-1px);
  background:
    linear-gradient(135deg, rgba(40, 242, 166, 0.13), rgba(255, 79, 216, 0.1)),
    rgba(6, 14, 24, 0.78);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 18px;
  border: 1px solid rgba(57, 217, 255, 0.32);
  border-radius: 50%;
  background: rgba(57, 217, 255, 0.12);
  color: var(--cyan);
}

.drop-icon svg {
  width: 38px;
  height: 38px;
}

.drop-title {
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.drop-subtitle {
  display: block;
  width: 100%;
  max-width: min(560px, 100%);
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: break-word;
}

.file-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 20px 20px;
}

.file-summary > div,
.stat {
  border: 1px solid rgba(139, 160, 202, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.summary-label,
.stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.file-summary strong,
.stat strong {
  display: block;
  overflow-wrap: anywhere;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.control-label {
  color: #d8e3f0;
  font-size: 0.86rem;
  font-weight: 750;
}

select,
input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(139, 160, 202, 0.22);
  border-radius: var(--radius);
  background: rgba(5, 10, 18, 0.82);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

select:focus,
input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(57, 217, 255, 0.12);
}

select:disabled,
input:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 20px 20px;
}

.control-label {
  margin-right: 6px;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(139, 160, 202, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  padding: 0 14px;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.segmented input:checked + span {
  border-color: rgba(255, 79, 216, 0.42);
  background: rgba(255, 79, 216, 0.16);
  color: #ffd7f6;
}

.action-row {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
}

button,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 16px;
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease,
    border-color 160ms ease;
}

button:not(:disabled):hover,
.download-button:not(.disabled):hover {
  transform: translateY(-1px);
}

.primary-button {
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: #07101b;
  flex: 1;
}

.primary-button:not(:disabled):hover {
  box-shadow:
    0 12px 34px rgba(255, 79, 216, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  filter: saturate(1.08) brightness(1.04);
}

.secondary-button {
  border: 1px solid rgba(139, 160, 202, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.secondary-button:not(:disabled):hover {
  border-color: rgba(57, 217, 255, 0.42);
  box-shadow: 0 10px 28px rgba(57, 217, 255, 0.12);
}

.progress-wrap {
  padding: 20px;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(139, 160, 202, 0.16);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--cyan), var(--pink));
  transition: width 180ms ease;
}

#progressText {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 20px 20px;
}

.stat strong {
  color: var(--cyan);
  font-size: 1.25rem;
}

.download-button {
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  background: linear-gradient(135deg, var(--mint), var(--amber));
  color: #07101b;
}

.download-button.disabled {
  pointer-events: none;
  opacity: 0.45;
  filter: saturate(0.5);
  cursor: not-allowed;
}

.preview-panel {
  grid-column: 1 / -1;
}

.table-wrap {
  overflow: auto;
  max-height: 420px;
  border-top: 1px solid rgba(139, 160, 202, 0.24);
  background:
    linear-gradient(180deg, rgba(22, 31, 47, 0.28), rgba(10, 15, 25, 0.18)),
    rgba(9, 14, 24, 0.42);
  scrollbar-color: rgba(159, 171, 189, 0.58) rgba(15, 21, 33, 0.86);
  scrollbar-width: thin;
}

.table-wrap::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.table-wrap::-webkit-scrollbar-track {
  background: rgba(15, 21, 33, 0.86);
}

.table-wrap::-webkit-scrollbar-thumb {
  border: 3px solid rgba(15, 21, 33, 0.86);
  border-radius: 999px;
  background: rgba(159, 171, 189, 0.62);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
  table-layout: fixed;
}

th,
td {
  border-right: 1px solid rgba(139, 160, 202, 0.14);
  border-bottom: 1px solid rgba(139, 160, 202, 0.2);
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
}

th:last-child,
td:last-child {
  border-right: 0;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(31, 43, 65, 0.98), rgba(22, 31, 47, 0.98));
  box-shadow:
    inset 0 -1px 0 rgba(57, 217, 255, 0.2),
    0 10px 24px rgba(0, 0, 0, 0.18);
  color: #e7f1ff;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

th:nth-child(1) {
  width: 30%;
}

th:nth-child(2) {
  width: 7.5rem;
}

th:nth-child(3) {
  width: auto;
}

td {
  color: #eaf1f9;
  background: rgba(12, 18, 30, 0.54);
}

tbody tr:nth-child(even) td {
  background: rgba(16, 23, 37, 0.64);
}

tbody tr:hover td {
  background: rgba(25, 38, 58, 0.86);
}

td:nth-child(1) strong {
  display: block;
  max-width: 100%;
  color: #f3f8ff;
  line-height: 1.4;
}

td:nth-child(2) {
  color: #dff8ff;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.variant-list span {
  border: 1px solid rgba(139, 160, 202, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(24, 33, 49, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #d4dfed;
  padding: 5px 9px;
  font-size: 0.78rem;
  line-height: 1.25;
}

.empty-row {
  color: var(--muted);
  text-align: center;
}

.credit-line {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 10px;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(57, 217, 255, 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(57, 217, 255, 0.12), rgba(255, 79, 216, 0.07) 54%, rgba(40, 242, 166, 0.08)),
    rgba(12, 20, 33, 0.68);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #eef8ff;
  padding: 7px 11px 7px 9px;
  backdrop-filter: blur(18px);
}

.credit-line::after {
  content: "";
  position: absolute;
  top: -18%;
  bottom: -18%;
  left: -52%;
  z-index: 2;
  width: 38%;
  background:
    linear-gradient(
      108deg,
      transparent 0%,
      rgba(255, 255, 255, 0.03) 28%,
      rgba(255, 255, 255, 0.72) 48%,
      rgba(255, 255, 255, 0.12) 60%,
      transparent 100%
    );
  transform: skewX(-18deg);
  animation: creditShine 3.2s ease-in-out infinite;
  pointer-events: none;
}

.credit-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.credit-logo svg {
  width: 100%;
  height: 100%;
  color: #ffd96a;
  transform-origin: center;
  filter:
    drop-shadow(0 0 12px rgba(255, 217, 106, 0.42))
    drop-shadow(0 0 22px rgba(255, 200, 87, 0.2));
  animation: creditGlowBreath 3.2s ease-in-out infinite;
  will-change: filter, transform;
}

.bolt-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.96;
}

.bolt-mark {
  fill: currentColor;
  stroke: rgba(255, 217, 106, 0.28);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.credit-logo .bolt-ring {
  color: #ffe08f;
}

.credit-logo .bolt-mark {
  color: #ffd14a;
}

.credit-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.credit-word,
.credit-name {
  display: block;
  color: #effbff;
  font-family:
    "Arial Black", Impact, "Segoe UI", sans-serif;
  font-style: italic;
  letter-spacing: 0;
}

.credit-word {
  font-size: 0.72rem;
  transform: skewX(-8deg);
}

.credit-name {
  font-size: 0.82rem;
  transform: skewX(-8deg);
}

@keyframes creditShine {
  0%,
  44% {
    left: -52%;
  }

  78%,
  100% {
    left: 118%;
  }
}

@keyframes creditGlowBreath {
  0%,
  100% {
    transform: scale(1);
    filter:
      drop-shadow(0 0 12px rgba(255, 217, 106, 0.42))
      drop-shadow(0 0 24px rgba(255, 200, 87, 0.18))
      drop-shadow(0 0 38px rgba(255, 173, 61, 0.08));
  }

  50% {
    transform: scale(1.07);
    filter:
      drop-shadow(0 0 20px rgba(255, 217, 106, 0.62))
      drop-shadow(0 0 38px rgba(255, 200, 87, 0.34))
      drop-shadow(0 0 54px rgba(255, 173, 61, 0.16));
  }
}

@media (max-width: 1020px) {
  .workspace,
  .form-grid,
  .relenishments-form,
  .file-summary {
    grid-template-columns: 1fr;
  }

  .relenishments-form .field:first-child {
    grid-column: auto;
  }

  .bank-field {
    grid-column: auto;
  }

  .bank-field-row {
    flex-direction: column;
  }

  .bank-field-actions {
    width: 100%;
  }

  .bank-field-actions .relenishments-approve-button,
  .bank-field-actions .relenishments-reject-button {
    min-width: 0;
    width: 100%;
  }

  .correspondent-bank-field {
    grid-column: auto;
  }

  .replenishment-result-section {
    grid-column: auto;
  }

  .result-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-art {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .header-tools {
    align-items: center;
    justify-content: space-between;
  }

  .replenishment-title-icon {
    width: 48px;
    height: 48px;
  }

  .replenishment-title-icon svg {
    width: 36px;
    height: 36px;
  }

  .hero-title-card {
    max-width: calc(100% - 32px);
  }

  .operation-tracker {
    min-width: 100%;
    max-width: none;
  }
}

@media (max-width: 620px) {
  .page-switcher {
    top: 10px;
    right: 10px;
    min-height: 44px;
    padding: 8px 12px 8px 10px;
    font-size: 0.82rem;
  }

  .page-switcher svg {
    width: 24px;
    height: 24px;
  }

  .app-shell {
    width: min(100% - 20px, 1380px);
    padding-top: 70px;
  }

  .hero-art {
    height: 220px;
  }

  h1 {
    font-size: clamp(1.18rem, 6vw, 1.68rem);
    white-space: nowrap;
  }

  .panel-header,
  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-title-row {
    align-items: stretch;
  }

  .replenishment-title-row {
    gap: 10px;
  }

  .replenishment-title-icon {
    width: 44px;
    height: 44px;
  }

  .replenishment-title-icon svg {
    width: 32px;
    height: 32px;
  }

  .privacy-pill,
  .status-chip {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
  }

  .hero-title-card {
    left: 18px;
    right: auto;
    top: auto;
    bottom: 14px;
    transform: none;
    max-width: calc(100% - 36px);
  }

  .drop-zone {
    margin: 14px;
    min-height: 236px;
    padding: 20px;
  }

  .drop-title {
    font-size: 1.12rem;
  }

  .drop-subtitle {
    max-width: 290px;
    font-size: 0.94rem;
  }

  .form-grid,
  .relenishments-form,
  .progress-wrap,
  .stats-grid,
  .control-row,
  .action-row {
    padding-left: 14px;
    padding-right: 14px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .download-button {
    width: calc(100% - 28px);
    margin-left: 14px;
    margin-right: 14px;
  }

  .operation-tracker {
    width: 100%;
    min-width: 0;
  }

  .credit-line {
    font-size: 0.78rem;
  }

  .result-section-grid {
    grid-template-columns: 1fr;
  }

  .submit-row {
    grid-template-columns: 1fr;
  }

  .submit-row > .relenishments-reset-button,
  .submit-row > .relenishments-report-button,
  .submit-row > .relenishments-upload-button,
  .submit-row > .relenishments-calculate-button,
  .submit-row > .relenishments-submit-button {
    width: 100%;
  }
}
