/* Shoalin — Zebrafish coordinate analysis dashboard */

:root {
  --bg: #030711;
  --bg-elevated: #0d1528;
  --card: rgba(13, 21, 40, 0.74);
  --card-solid: #10182c;
  --card-border: rgba(125, 211, 252, 0.18);
  --card-hover-border: rgba(45, 212, 191, 0.42);
  --card-glow: rgba(34, 211, 238, 0.12);
  --text: #f8fafc;
  --muted: #9aa9c2;
  --cyan: #22d3ee;
  --teal: #2dd4bf;
  --blue: #3b82f6;
  --purple: #a78bfa;
  --green: #34d399;
  --pink: #f472b6;
  --amber: #fbbf24;
  --gradient: linear-gradient(135deg, #67e8f9 0%, #22d3ee 28%, #3b82f6 72%, #a78bfa 100%);
  --gradient-hot: linear-gradient(135deg, #2dd4bf 0%, #22d3ee 38%, #a78bfa 100%);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 24px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display-font: "Space Grotesk", var(--font);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --ring-circ: 326.73;
  --page-max: 1200px;
  --page-pad: clamp(1rem, 3vw, 1.75rem);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(45, 212, 191, 0.16), transparent 25rem),
    radial-gradient(circle at 82% 10%, rgba(167, 139, 250, 0.18), transparent 29rem),
    radial-gradient(circle at 82% 74%, rgba(244, 114, 182, 0.12), transparent 25rem),
    radial-gradient(circle at 18% 88%, rgba(251, 191, 36, 0.075), transparent 22rem),
    linear-gradient(180deg, #050817 0%, #081428 42%, #050916 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Background */
@keyframes aurora-shift {
  0%, 100% {
    transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate3d(2%, 1.5%, 0) rotate(3deg) scale(1.04);
  }
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 90% 70% at 75% -10%, rgba(59, 130, 246, 0.2), transparent 55%),
    radial-gradient(ellipse 54% 44% at 4% 85%, rgba(45, 212, 191, 0.13), transparent 52%),
    radial-gradient(ellipse 46% 36% at 96% 92%, rgba(244, 114, 182, 0.14), transparent 54%),
    linear-gradient(135deg, #030711 0%, #07142a 45%, #11071d 100%);
}

.bg-mesh::before,
.bg-mesh::after {
  content: "";
  position: absolute;
  inset: -18%;
  pointer-events: none;
}

.bg-mesh::before {
  background:
    radial-gradient(ellipse 36% 28% at 22% 25%, rgba(45, 212, 191, 0.22), transparent 68%),
    radial-gradient(ellipse 42% 30% at 76% 28%, rgba(167, 139, 250, 0.2), transparent 68%),
    radial-gradient(ellipse 34% 28% at 70% 74%, rgba(244, 114, 182, 0.16), transparent 70%),
    radial-gradient(ellipse 30% 24% at 18% 78%, rgba(251, 191, 36, 0.1), transparent 72%);
  filter: blur(18px) saturate(1.15);
  opacity: 0.86;
  animation: aurora-shift 18s ease-in-out infinite;
}

.bg-mesh::after {
  background:
    conic-gradient(from 140deg at 24% 34%, transparent 0 18%, rgba(34, 211, 238, 0.09) 22%, transparent 32% 100%),
    conic-gradient(from 310deg at 74% 64%, transparent 0 20%, rgba(244, 114, 182, 0.075) 25%, transparent 38% 100%);
  opacity: 0.72;
  mix-blend-mode: screen;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.78;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.032) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 15%, black 20%, transparent 75%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 37%, rgba(34, 211, 238, 0.07) 37.4% 37.9%, transparent 38.3%),
    linear-gradient(65deg, transparent 0 58%, rgba(167, 139, 250, 0.07) 58.2% 58.7%, transparent 59.1%),
    linear-gradient(22deg, transparent 0 72%, rgba(244, 114, 182, 0.045) 72.2% 72.7%, transparent 73%);
}

.app-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(125, 211, 252, 0.15);
  background: linear-gradient(180deg, rgba(3, 7, 17, 0.9), rgba(3, 7, 17, 0.68));
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-logo {
  position: relative;
  width: 72px;
  height: 58px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.brand-logo-img {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 66px;
  object-fit: contain;
  flex-shrink: 0;
  transform: translateX(-2px) scale(1.08);
  filter:
    drop-shadow(0 0 10px rgba(34, 211, 238, 0.5))
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.brand-name {
  font-family: var(--display-font);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.mode-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.22);
  white-space: nowrap;
}

.mode-badge.live {
  background: rgba(52, 211, 153, 0.1);
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.28);
}

.topbar-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-shrink: 0;
}

/* Main */
.dashboard-main {
  flex: 1;
  padding-bottom: 3rem;
}

/* Hero */
@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-visual-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

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

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

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.45);
    opacity: 1;
  }
}

@keyframes panel-drift {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
}

.hero {
  position: relative;
  margin: 1.05rem 0 1.25rem;
  padding: 0;
  overflow: hidden;
  border-radius: 32px;
  animation: hero-enter 0.65s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-card {
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 13% 18%, rgba(45, 212, 191, 0.18), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(34, 211, 238, 0.28), transparent 26%),
    radial-gradient(circle at 78% 86%, rgba(167, 139, 250, 0.22), transparent 34%),
    radial-gradient(circle at 38% 96%, rgba(244, 114, 182, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(14, 25, 48, 0.9) 0%, rgba(7, 12, 26, 0.78) 44%, rgba(19, 8, 31, 0.9) 100%);
  border: 1px solid rgba(125, 211, 252, 0.24);
  backdrop-filter: blur(18px);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(34, 211, 238, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, black 20%, transparent 72%);
}

.hero-glow-orb {
  position: absolute;
  top: 8%;
  right: 6%;
  width: min(52%, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(103, 232, 249, 0.28) 0%, rgba(59, 130, 246, 0.12) 42%, transparent 68%),
    radial-gradient(circle at 20% 80%, rgba(244, 114, 182, 0.18), transparent 58%);
  filter: blur(2px) saturate(1.2);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
  padding: clamp(1.6rem, 4vw, 3rem) clamp(1.35rem, 4vw, 3rem);
}

.hero-col-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.92;
}

.eyebrow-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.12), 0 0 18px rgba(52, 211, 153, 0.6);
}

.hero-title {
  font-family: var(--display-font);
  font-size: clamp(2rem, 5vw, 4.65rem);
  font-weight: 700;
  line-height: 0.98;
  margin: 0 0 1rem;
  letter-spacing: -0.035em;
  color: var(--text);
  max-width: 12ch;
  text-wrap: balance;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  margin: 0 0 1.2rem;
  color: #bed0e8;
  font-size: clamp(0.95rem, 1.8vw, 1.06rem);
  max-width: 38rem;
  line-height: 1.75;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.hero-chip {
  padding: 0.4rem 0.78rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.92);
  background: rgba(8, 14, 26, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.35rem;
  max-width: 34rem;
}

.hero-stat {
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  background: rgba(3, 7, 17, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-stat-value,
.hero-stat-label {
  display: block;
}

.hero-stat-value {
  font-family: var(--display-font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.hero-stat-label {
  margin-top: 0.12rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-btn-primary:not(:disabled):hover {
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.32);
  transform: translateY(-1px);
}

.hero-btn-secondary:not(:disabled):hover {
  border-color: rgba(34, 211, 238, 0.35);
  color: var(--text);
  transform: translateY(-1px);
}

.hero-btn-primary,
.hero-btn-secondary {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.hero-col-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 390px;
}

.hero-visual-wrap {
  width: 100%;
  max-width: 430px;
  padding: 0;
  background: transparent;
  animation: hero-visual-float 5s ease-in-out infinite;
}

.hero-analysis-orb {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.orb-core {
  position: relative;
  width: min(92%, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.16), transparent 34%),
    radial-gradient(circle at 42% 35%, rgba(167, 139, 250, 0.16), transparent 32%),
    rgba(3, 7, 17, 0.42);
  border: 1px solid rgba(125, 211, 252, 0.28);
  box-shadow:
    inset 0 0 60px rgba(34, 211, 238, 0.08),
    0 0 70px rgba(34, 211, 238, 0.16),
    0 28px 70px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.orb-core::before,
.orb-core::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  pointer-events: none;
}

.orb-core::before {
  border: 1px dashed rgba(125, 211, 252, 0.28);
  animation: orb-spin 22s linear infinite;
}

.orb-core::after {
  inset: 22%;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(125, 211, 252, 0.22) 49.5% 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(125, 211, 252, 0.22) 49.5% 50.5%, transparent 50.5%);
  opacity: 0.5;
}

.dish-ring {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.2);
}

.ring-middle {
  inset: 24%;
  border-color: rgba(45, 212, 191, 0.22);
}

.ring-inner {
  inset: 39%;
  border-color: rgba(167, 139, 250, 0.28);
}

.fish {
  position: absolute;
  width: 44px;
  height: 18px;
  border-radius: 70% 45% 55% 70%;
  background: linear-gradient(90deg, #e0faff, #22d3ee 55%, #3b82f6);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.35);
  transform-origin: center;
}

.fish::before {
  content: "";
  position: absolute;
  right: -11px;
  top: 3px;
  width: 14px;
  height: 12px;
  background: #3b82f6;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.fish::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #061018;
}

.fish-1 {
  left: 25%;
  top: 34%;
  transform: rotate(14deg);
}

.fish-2 {
  right: 23%;
  top: 28%;
  width: 36px;
  height: 15px;
  transform: rotate(154deg);
  opacity: 0.86;
}

.fish-3 {
  left: 34%;
  bottom: 28%;
  width: 39px;
  height: 16px;
  transform: rotate(-28deg);
  opacity: 0.92;
}

.fish-4 {
  right: 27%;
  bottom: 36%;
  width: 31px;
  height: 13px;
  transform: rotate(208deg);
  opacity: 0.72;
}

.track-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.8);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.dot-1 { left: 20%; top: 24%; animation-delay: 0s; }
.dot-2 { left: 55%; top: 18%; animation-delay: 0.25s; }
.dot-3 { right: 16%; top: 54%; animation-delay: 0.5s; }
.dot-4 { left: 32%; bottom: 18%; animation-delay: 0.75s; }
.dot-5 { right: 36%; bottom: 25%; animation-delay: 1s; }

.floating-panel {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.82rem 0.95rem;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 18px;
  background: rgba(3, 7, 17, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: panel-drift 4.8s ease-in-out infinite;
}

.floating-panel-top {
  top: 8%;
  right: 1%;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08rem;
}

.floating-panel-bottom {
  left: 0;
  bottom: 10%;
  color: #dffaff;
  font-size: 0.78rem;
  font-weight: 700;
  animation-delay: -1.6s;
}

.panel-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.floating-panel strong {
  font-family: var(--display-font);
  font-size: 1.22rem;
  color: var(--cyan);
}

.mini-bars {
  display: inline-flex;
  align-items: end;
  gap: 3px;
  height: 24px;
}

.mini-bars i {
  display: block;
  width: 5px;
  border-radius: 999px;
  background: var(--gradient-hot);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.4);
}

.mini-bars i:nth-child(1) { height: 11px; }
.mini-bars i:nth-child(2) { height: 18px; }
.mini-bars i:nth-child(3) { height: 14px; }
.mini-bars i:nth-child(4) { height: 22px; }

/* Cards */
.glass-card {
  position: relative;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 32%),
    var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.glass-card:hover {
  border-color: var(--card-hover-border);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.34),
    0 0 0 1px var(--card-glow),
    0 0 44px rgba(34, 211, 238, 0.08);
}

/* Upload */
.panel-row {
  margin-bottom: 1.5rem;
}

.upload-card {
  padding: clamp(1.1rem, 3vw, 1.5rem);
}

.upload-card.drag-over {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2), 0 12px 40px rgba(34, 211, 238, 0.08);
}

.upload-drop {
  text-align: center;
  padding: clamp(1.8rem, 5vw, 3rem) 1.25rem;
  border: 1px dashed rgba(125, 211, 252, 0.36);
  border-radius: 18px;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.12), transparent 52%),
    rgba(3, 7, 17, 0.34);
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.upload-drop:hover,
.upload-card.drag-over .upload-drop {
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.18), transparent 55%),
    rgba(34, 211, 238, 0.055);
  border-color: rgba(45, 212, 191, 0.62);
  box-shadow: inset 0 0 38px rgba(34, 211, 238, 0.08), 0 0 34px rgba(34, 211, 238, 0.08);
}

.upload-cloud {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: var(--cyan);
  display: grid;
  place-items: center;
  border-radius: 22px;
  background:
    linear-gradient(rgba(6, 16, 28, 0.82), rgba(6, 16, 28, 0.82)) padding-box,
    var(--gradient) border-box;
  border: 1px solid transparent;
  box-shadow: 0 12px 34px rgba(34, 211, 238, 0.18);
}

.upload-cloud svg {
  width: 38px;
  height: 38px;
}

.upload-title {
  font-family: var(--display-font);
  font-size: clamp(1.18rem, 2.4vw, 1.55rem);
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.upload-sub {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.upload-helper {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.9;
}

.upload-files {
  margin-top: 1rem;
}

.file-selected {
  margin: 0.35rem 0;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.24);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  overflow: hidden;
}

.file-selected-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.72rem;
  color: var(--text);
}

.file-selected-size {
  flex-shrink: 0;
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
}

.file-selected-label {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--teal);
}

.upload-video-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--card-border);
}

.upload-video-label {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.upload-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.upload-browse-row {
  margin-top: 1rem;
  justify-content: center;
}

.video-path-label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.video-path-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: rgba(3, 7, 17, 0.68);
  color: var(--text);
  font-size: 0.8rem;
  font-family: ui-monospace, "Cascadia Code", monospace;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.video-path-input:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.video-path-input::placeholder {
  color: rgba(139, 156, 184, 0.65);
}

.upload-footer {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.35rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.45rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    opacity var(--transition),
    background var(--transition);
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none !important;
}

.btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.btn-gradient {
  background: var(--gradient);
  color: #03101a;
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-gradient:not(:disabled):hover {
  box-shadow: 0 16px 38px rgba(34, 211, 238, 0.34), 0 0 28px rgba(167, 139, 250, 0.12);
}

.btn-ghost {
  background: rgba(3, 7, 17, 0.36);
  color: #dbeafe;
  border: 1px solid rgba(125, 211, 252, 0.22);
  backdrop-filter: blur(10px);
}

.btn-ghost:not(:disabled):hover {
  color: var(--text);
  border-color: rgba(125, 211, 252, 0.42);
  background: rgba(13, 21, 40, 0.85);
}

.btn-secondary {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: var(--text);
}

.btn-secondary:not(:disabled):hover {
  background: rgba(34, 211, 238, 0.18);
  border-color: rgba(34, 211, 238, 0.45);
}

.btn-sm {
  padding: 0.56rem 1rem;
  font-size: 0.8rem;
}

.btn.loading .btn-label {
  opacity: 0.75;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(6, 16, 24, 0.25);
  border-top-color: #061018;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.loading .btn-spinner {
  display: inline-block !important;
}

.btn .btn-spinner {
  display: none;
}

.btn-link {
  background: none;
  border: none;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-link:hover {
  background: rgba(34, 211, 238, 0.1);
  color: #67e8f9;
}

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

/* Metrics */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.65rem;
}

.metric-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem 1.2rem;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12), transparent 68%);
  pointer-events: none;
}

.metric-card.glass-card:hover {
  transform: translateY(-4px);
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.metric-icon svg {
  width: 22px;
  height: 22px;
}

.metric-icon.cyan {
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.12);
}

.metric-icon.blue {
  background: rgba(59, 130, 246, 0.14);
  color: var(--blue);
}

.metric-icon.teal {
  background: rgba(45, 212, 191, 0.14);
  color: var(--teal);
}

.metric-icon.purple {
  background: rgba(167, 139, 250, 0.14);
  color: var(--purple);
}

.metric-icon.green {
  background: rgba(52, 211, 153, 0.14);
  color: var(--green);
}

.metric-label {
  display: block;
  font-size: 0.7rem;
  color: #aebdd4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.metric-value {
  font-family: var(--display-font);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

.metric-card.populated .metric-value {
  animation: count-in 0.45s ease;
}

@keyframes count-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Results */
.results-block {
  margin-bottom: 1.5rem;
  animation: fadeUp 0.45s ease;
}

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

.section-title {
  margin-bottom: 1.25rem;
}

.section-title h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display-font);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.job-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: 100%;
}

.job-meta-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
}

.job-meta-file {
  width: 100%;
}

.job-label {
  color: var(--muted);
  font-weight: 500;
}

.job-id {
  font-family: ui-monospace, monospace;
  color: var(--cyan);
}

.job-sep {
  opacity: 0.45;
}

.job-filename {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.72rem;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.viz-span-full {
  grid-column: 1 / -1;
}

.viz-card {
  padding: 1.15rem 1.2rem;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.viz-table {
  min-height: 280px;
}

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

.card-head h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.table-search {
  padding: 0.4rem 0.65rem;
  font-size: 0.72rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: rgba(7, 11, 20, 0.5);
  color: var(--text);
  min-width: 120px;
  max-width: min(180px, 42vw);
  flex: 0 1 auto;
}

.table-search:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.4);
}

.table-scroll {
  flex: 1;
  overflow: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(125, 211, 252, 0.16);
  background: rgba(3, 7, 17, 0.24);
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.72rem;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  padding: 0.5rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.07);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 0;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(16, 24, 44, 0.96);
  color: #b7c7dd;
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table td {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
}

.data-table tbody tr {
  transition: background var(--transition);
}

.data-table tbody tr:hover td {
  background: rgba(34, 211, 238, 0.05);
}

.data-table td.col-text {
  font-variant-numeric: normal;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.68rem;
}

.viz-frame {
  flex: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(34, 211, 238, 0.08), transparent 52%),
    rgba(3, 7, 17, 0.62);
  border: 1px solid rgba(125, 211, 252, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.viz-frame img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: contain;
  display: block;
}

.viz-placeholder {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 1.5rem 1rem;
  line-height: 1.5;
  max-width: 220px;
}

.gallery-card {
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
}

.figure-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.figure-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--card-border);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  background: rgba(4, 8, 16, 0.5);
}

.figure-item:not(.figure-clickable):hover {
  transform: translateY(-2px);
  border-color: var(--card-hover-border);
}

.figure-item img {
  width: 100%;
  display: block;
}

.figure-caption {
  padding: 0.55rem 0.7rem;
  font-size: 0.72rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Export */
.export-row {
  margin-bottom: 1.5rem;
}

.export-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.35rem;
  flex-wrap: wrap;
}

.export-info h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.export-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 420px;
}

.download-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  flex: 1;
  min-width: 200px;
}

.download-empty {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Results tabs */
.results-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(3, 7, 17, 0.54);
  border: 1px solid rgba(125, 211, 252, 0.16);
  backdrop-filter: blur(10px);
}

.tab-btn {
  flex: 1 1 auto;
  min-width: 7rem;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.tab-btn:hover {
  color: var(--text);
  background: rgba(34, 211, 238, 0.06);
}

.tab-btn.active {
  color: var(--text);
  background:
    linear-gradient(rgba(34, 211, 238, 0.16), rgba(34, 211, 238, 0.12)) padding-box,
    var(--gradient) border-box;
  border-color: transparent;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
}

.tab-panels {
  min-height: 200px;
}

.tab-panel {
  display: none;
  animation: tab-fade 0.25s ease;
}

.tab-panel.active {
  display: block;
}

.tab-panel[hidden] {
  display: none !important;
}

@keyframes tab-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.figures-preview-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-hint {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.card-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.card-head-actions .btn-sm {
  font-size: 0.72rem;
  padding: 0.4rem 0.65rem;
  white-space: nowrap;
}

.export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.export-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: rgba(4, 8, 16, 0.45);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.export-tile:hover {
  border-color: var(--card-hover-border);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.1);
  transform: translateY(-2px);
}

.export-tile-name {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

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

.export-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

/* Clickable figures */
.figure-clickable {
  cursor: zoom-in;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.viz-frame.figure-clickable {
  border-color: var(--card-border);
}

.viz-frame.figure-clickable:hover,
.figure-item.figure-clickable:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.22);
  transform: translateY(-2px);
}

.figure-item.figure-clickable {
  cursor: zoom-in;
}

.figure-item.figure-clickable:hover img {
  filter: brightness(1.06);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(4, 8, 16, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox.hidden {
  display: none;
}

.lightbox-img {
  max-width: min(96vw, 1200px);
  max-height: min(82vh, 900px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-hover-border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.lightbox-caption {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--card-border);
  border-radius: 50%;
  background: rgba(15, 22, 40, 0.9);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.lightbox-close:hover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
}

/* Pipeline */
.pipeline-panel {
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}

.pipeline-state {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  color: var(--muted);
  white-space: nowrap;
}

.pipeline-state.running {
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  animation: pulse-badge 1.5s ease infinite;
}

.pipeline-state.done {
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
}

@keyframes pulse-badge {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.72;
  }
}

.pipeline-grid {
  display: grid;
  grid-template-columns: minmax(160px, 200px) 1fr minmax(110px, 130px);
  gap: 1.25rem;
  align-items: start;
}

.pipeline-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pipeline-steps li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.46rem 0;
  font-size: 0.8rem;
  color: var(--muted);
  transition: color var(--transition);
}

.step-icon {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.28);
  flex-shrink: 0;
  position: relative;
}

.pipeline-steps li.done {
  color: var(--green);
}

.pipeline-steps li.done .step-icon {
  border-color: var(--green);
  background: var(--green);
}

.pipeline-steps li.done .step-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #061018;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pipeline-steps li.active {
  color: var(--cyan);
}

.pipeline-steps li.active .step-icon {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}

.log-terminal {
  margin: 0;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(3, 7, 17, 0.85), rgba(3, 7, 17, 0.64)),
    radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.1), transparent 40%);
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 16px;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.72rem;
  line-height: 1.55;
  color: #99f6e4;
  max-height: 200px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  min-width: 0;
}

.progress-ring-wrap {
  position: relative;
  width: 118px;
  height: 118px;
  margin: 0 auto;
  flex-shrink: 0;
  filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.15));
}

.progress-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(148, 163, 184, 0.12);
  stroke-width: 8;
}

.ring-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: var(--ring-circ);
  stroke-dashoffset: var(--ring-circ);
  transition: stroke-dashoffset 0.35s ease;
}

.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ring-pct {
  font-family: var(--display-font);
  font-size: 1.42rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ring-caption {
  font-size: 0.62rem;
  color: var(--muted);
  text-align: center;
  max-width: 88px;
  line-height: 1.35;
  margin-top: 0.15rem;
}

.progress-bar-linear {
  height: 4px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  margin-top: 1.1rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 1100px) {
  .metrics-row {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.45rem 1.15rem 1.55rem;
  }

  .hero-col-visual {
    min-height: 300px;
    max-height: none;
    overflow: visible;
  }

  .hero-visual-wrap {
    max-width: 340px;
    margin: 0 auto;
  }

  .hero-title {
    max-width: 100%;
  }

  .hero-glow-orb {
    right: 50%;
    transform: translateX(50%);
    width: 70%;
    top: auto;
    bottom: 0;
  }
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .progress-ring-wrap {
    justify-self: center;
  }

  .export-card {
    flex-direction: column;
  }

  .upload-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .upload-footer .btn {
    width: 100%;
  }

  .topbar-inner {
    flex-wrap: wrap;
  }

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

  .floating-panel {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.02;
  }

  .hero-chips {
    gap: 0.35rem;
  }

  .hero-chip {
    font-size: 0.68rem;
    white-space: normal;
  }

  .hero-col-visual {
    min-height: 230px;
  }

  .hero-visual-wrap {
    max-width: 260px;
  }

  .metrics-row {
    grid-template-columns: 1fr;
  }

  .brand-tagline {
    font-size: 0.68rem;
  }

  .job-filename {
    max-width: 100%;
  }
}
