/**
 * Copyright © 2026 Indian Council of Agricultural Research (ICAR). All Rights Reserved.
 * Title: Pineapple Yield & Harvest Planning DSS (v1.0)
 * Property of: ICAR - Indian Agricultural Research Institute (IARI), Assam
 * Lead Developer & Modeler: Dr. Dibyendu Deb
 * Scientific Contributors: Dr. Alemwati Pongener, Dr. Shovik Deb, Dr. Arpan Bhowmik
 */
/* ==========================================================================
   Pineapple Yield & Harvest Planning DSS (v1.0)
   ICAR - Indian Agricultural Research Institute (IARI), Assam
   Color Theme: Satellite Space Navy + Cyan Sensor + Pineapple Saffron Amber
   ========================================================================== */

:root {
  /* Space-Borne Remote Sensing & AI Palette */
  --space-dark: #090d16;
  --space-navy: #0f172a;
  --space-indigo: #1e1b4b;
  --space-slate: #1e293b;
  
  /* Multispectral Sensor Cyan / Electric Spectrum */
  --sensor-cyan: #06b6d4;
  --sensor-blue: #0284c7;
  --sensor-sky: #38bdf8;
  --cyan-glow: rgba(6, 182, 212, 0.25);
  --cyan-subtle: #ecfeff;
  
  /* Ripe Pineapple Fruit Saffron & Golden Amber */
  --pineapple-amber: #f59e0b;
  --pineapple-saffron: #d97706;
  --pineapple-deep: #b45309;
  --pineapple-orange: #ea580c;
  --gold-glow: rgba(245, 158, 11, 0.28);
  --gold-subtle: #fffbeb;

  /* Neutral Background & Surface */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --card-border: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.08);
  --shadow-tech: 0 10px 25px -5px rgba(2, 132, 199, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-page);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.6;
}

/* --- Government Top Bar --- */
.gov-top-bar {
  background: #020617;
  color: #94a3b8;
  padding: 6px 30px;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1e293b;
}

.gov-top-bar .gov-creds {
  display: flex;
  gap: 14px;
}

.gov-top-bar span.accent {
  color: var(--sensor-sky);
  font-weight: 700;
}

/* --- Institutional Header --- */
.iari-header-banner {
  background: #ffffff;
  border-bottom: 2px solid #e2e8f0;
  padding: 16px 30px;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.inst-logo-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icar-official-logo {
  height: 68px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.inst-meta h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--space-navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.inst-meta .hindi-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}

.inst-meta .campus-details {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.unit-badge {
  background: linear-gradient(135deg, #f0fdf4 0%, var(--gold-subtle) 100%);
  border: 1.5px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  text-align: right;
}

.unit-badge .sub-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--pineapple-saffron);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
}

.unit-badge .unit-title {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--space-navy);
}

/* --- Navigation Bar --- */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  padding: 10px 30px;
  border-bottom: 1px solid rgba(6, 182, 212, 0.25);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.nav-inner {
  max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-insignia {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-svg-logo {
  height: 38px;
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pineapple-amber), var(--pineapple-saffron));
  border-radius: 9px;
  color: #ffffff;
  box-shadow: 0 2px 10px var(--gold-glow);
}

.brand-text b {
  font-size: 1.1rem;
  color: #ffffff;
  letter-spacing: -0.01em;
  display: block;
}

.brand-text small {
  font-size: 0.7rem;
  color: var(--sensor-sky);
  display: block;
}

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-menu a {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 650;
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-menu a:hover, .nav-menu a.active {
  color: #ffffff;
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.35);
}

/* --- Main Content Wrapper --- */
.container {
  max-width: 1280px;
  margin: auto;
  padding: 30px 24px 80px;
}

/* --- Hero Section: Space-Borne EO & Pineapple AI --- */
.hero-satellite {
  background: linear-gradient(135deg, var(--space-dark) 0%, var(--space-navy) 40%, var(--space-indigo) 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 46px 42px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  margin-bottom: 36px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  position: relative;
  overflow: hidden;
}

.hero-satellite::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, rgba(6, 182, 212, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-satellite::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: 20%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-left-content h2 {
  font-size: clamp(1.85rem, 3.3vw, 2.75rem);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 10px 0 16px;
}

.hero-left-content h2 .amber-word {
  color: var(--pineapple-amber);
}

.hero-left-content h2 .cyan-word {
  color: var(--sensor-sky);
}

.hero-left-content p {
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 26px;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-cta-gold {
  background: linear-gradient(135deg, var(--pineapple-amber), var(--pineapple-saffron));
  color: #0b1120;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--gold-glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-cta-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-cta-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: var(--sensor-sky);
  border: 1px solid rgba(6, 182, 212, 0.4);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-cta-cyan:hover {
  background: rgba(6, 182, 212, 0.22);
}

/* Hero Right Side: Science & AI Matrix */
.hero-ai-matrix {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.matrix-card {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.matrix-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.matrix-score {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--pineapple-amber);
  line-height: 1;
}

.matrix-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sensor-sky);
  font-weight: 750;
  margin-top: 4px;
}

.matrix-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* --- Technological Pipeline Flow Graphic --- */
.pipeline-section {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 34px 30px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.pipeline-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 28px;
}

.pipeline-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sensor-blue);
  background: var(--cyan-subtle);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.pipeline-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  position: relative;
}

.pipe-step-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  position: relative;
  transition: all 0.2s ease;
}

.pipe-step-card:hover {
  border-color: var(--sensor-cyan);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.pipe-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--space-navy);
  padding: 2px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 10px;
}

.pipe-step-card h4 {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--space-navy);
  margin-bottom: 6px;
}

.pipe-step-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Wavelength Spectrum Bar */
.spectrum-bar {
  margin-top: 14px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
}

.band-red { color: #dc2626; }
.band-edge { color: #d97706; }
.band-nir { color: #0284c7; }

/* --- Regional Importance & Utility Cards --- */
.regional-section {
  margin-bottom: 44px;
}

.utility-4-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.ner-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  border-top: 4px solid var(--pineapple-amber);
  transition: all 0.25s ease;
}

.ner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--sensor-cyan);
}

.ner-card .icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gold-subtle);
  color: var(--pineapple-saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 16px;
  border: 1px solid #fed7aa;
}

.ner-card h4 {
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--space-navy);
  margin-bottom: 10px;
}

.ner-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Interactive DSS Prediction Tool --- */
.dss-tool-wrapper {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 38px 34px;
  margin-bottom: 44px;
}

/* Stage Navigation Tabs */
.stage-tab-group {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 12px;
}

.stage-tab {
  background: #f1f5f9;
  border: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 750;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.stage-tab.active {
  background: var(--space-navy);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.stage-tab:hover:not(.active) {
  background: #e2e8f0;
  color: var(--text-main);
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-bottom: 26px;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 750;
  color: var(--space-navy);
}

.field-label small {
  font-weight: 500;
  color: var(--text-subtle);
}

.ui-input, .ui-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background: #ffffff;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.ui-input:focus, .ui-select:focus {
  outline: none;
  border-color: var(--sensor-cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

/* VI Presets Container */
.vi-presets-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 18px 0 26px;
}

.vi-presets-box span.title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
}

.preset-chip-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 650;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-chip:hover {
  background: var(--cyan-subtle);
  border-color: var(--sensor-cyan);
  color: var(--sensor-blue);
}

.btn-run-model {
  width: 100%;
  background: linear-gradient(135deg, var(--space-navy) 0%, #1e1b4b 100%);
  color: var(--pineapple-amber);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 15px;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.2);
  transition: all 0.2s ease;
}

.btn-run-model:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: var(--shadow-tech);
}

/* --- Results Display Card --- */
.output-dashboard {
  margin-top: 36px;
  background: linear-gradient(145deg, #090e17 0%, #0f172a 60%, #1e1b4b 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.output-tag {
  background: rgba(6, 182, 212, 0.18);
  color: var(--sensor-sky);
  border: 1px solid rgba(6, 182, 212, 0.35);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 8px;
}

.output-dashboard h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fde68a;
  margin-bottom: 22px;
}

.metrics-3box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.metric-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 20px;
}

.metric-panel small {
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sensor-sky);
  display: block;
  margin-bottom: 4px;
}

.metric-panel .big-val {
  font-size: 2.1rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}

.metric-panel p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 6px;
}

/* Fruit Grading Grid */
.grading-container {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.grading-container h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #a7f3d0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.grading-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.grade-box-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 16px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--sensor-cyan);
}

.grade-box-item.gold { border-left-color: var(--pineapple-amber); }
.grade-box-item.crimson { border-left-color: #f87171; }

.grade-box-item .g-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  display: block;
}

.grade-box-item .g-tons {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin: 4px 0 2px;
}

.grade-box-item small {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* Logistics & Advisory Box */
.fpc-advisory-panel {
  background: rgba(245, 158, 11, 0.12);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 22px;
}

.fpc-advisory-panel h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 10px;
}

.fpc-advisory-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fpc-advisory-panel li {
  font-size: 0.9rem;
  color: #f1f5f9;
  line-height: 1.55;
  position: relative;
  padding-left: 20px;
}

.fpc-advisory-panel li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--pineapple-amber);
  font-size: 0.85rem;
}

/* --- Development Team & Scientific Credits --- */
.team-credits-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 44px;
}

.team-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.person-card {
  background: #f8fafc;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
}

.person-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.person-card.lead-developer {
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  border: 2px solid var(--pineapple-amber);
  box-shadow: 0 4px 18px var(--gold-glow);
}

.lead-developer-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--pineapple-amber), var(--pineapple-saffron));
  color: #090d16;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  white-space: nowrap;
}

.avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--space-navy), var(--space-indigo));
  color: var(--sensor-sky);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 14px;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

.person-card.lead-developer .avatar-circle {
  background: linear-gradient(135deg, var(--space-navy), #042f2e);
  color: #fde68a;
  border-color: var(--pineapple-amber);
}

.person-card h5 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--space-navy);
  margin-bottom: 4px;
}

.person-card .designation-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sensor-blue);
  background: var(--cyan-subtle);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.person-card.lead-developer .designation-badge {
  color: #92400e;
  background: #fef3c7;
}

.person-card p.institute-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --- Historical Ledger --- */
.ledger-wrapper {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  margin-bottom: 44px;
  box-shadow: var(--shadow-sm);
}

.ledger-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
}

table.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

table.ledger-table th, table.ledger-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
}

table.ledger-table th {
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 750;
  text-transform: uppercase;
  font-size: 0.72rem;
}

/* --- Institutional Footer --- */
.iari-footer {
  background: #090d16;
  color: #94a3b8;
  padding: 34px 30px;
  border-top: 1px solid #1e293b;
  font-size: 0.84rem;
}

.footer-inner {
  max-width: 1280px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-inner b {
  color: var(--pineapple-amber);
}

.footer-inner span.tech-tag {
  color: var(--sensor-sky);
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .hero-satellite {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .unit-badge {
    text-align: left;
    width: 100%;
  }
}


/* ==========================================================================
   Institutional Ownership & Humble Credits Styles (ICAR Stewardship)
   ========================================================================== */
.institutional-credits-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 40px;
  box-shadow: var(--shadow-sm);
}

.credits-header {
  margin-bottom: 22px;
}

.inst-property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.inst-prop-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--space-navy);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.inst-prop-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sensor-blue);
}

.humble-contrib-block {
  background: #f1f5f9;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  border: 1px dashed #cbd5e1;
}

.contrib-names-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px 18px;
  margin-bottom: 14px;
}

.contrib-entry {
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.4;
}

.contrib-entry b {
  color: var(--space-navy);
}

.contrib-entry small {
  color: #64748b;
}

.ip-statutory-note {
  border-top: 1px solid #cbd5e1;
  padding-top: 10px;
  font-size: 0.78rem;
  color: #475569;
  font-style: italic;
}

/* --- VI Range Warning Banner --- */
.vi-warning-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  color: #92400e;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vi-warning-banner.hidden {
  display: none;
}


/* ==========================================================================
   Prominent Principal Investigator & Lead Developer Styles
   ========================================================================== */
.pi-prominence-container {
  margin-top: 10px;
}

.pi-lead-card {
  background: linear-gradient(135deg, #090d16 0%, #0f172a 60%, #1e1b4b 100%);
  border: 2px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.15), 0 4px 12px rgba(15, 23, 42, 0.2);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.pi-lead-card::after {
  content: 'PRINCIPAL INVESTIGATOR';
  position: absolute;
  right: 18px;
  bottom: 10px;
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  letter-spacing: 0.05em;
  pointer-events: none;
}

.pi-badge-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.badge-pi {
  background: linear-gradient(135deg, var(--pineapple-amber), var(--pineapple-saffron));
  color: #0f172a;
  font-weight: 850;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 4px;
}

.badge-concept {
  background: rgba(6, 182, 212, 0.2);
  color: var(--sensor-sky);
  border: 1px solid rgba(6, 182, 212, 0.4);
  font-weight: 750;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 4px;
}

.pi-body-flex {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  flex-wrap: wrap;
}

.pi-avatar {
  height: 64px;
  width: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pineapple-amber), #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  box-shadow: 0 4px 14px var(--gold-glow);
  flex-shrink: 0;
}

.pi-details {
  flex: 1;
  min-width: 260px;
}

.pi-name {
  font-size: 1.4rem;
  font-weight: 850;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.pi-designation {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sensor-sky);
  margin-bottom: 4px;
}

.pi-affiliation {
  font-size: 0.84rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.pi-mandate {
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--pineapple-amber);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.55;
}

.co-investigators-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.co-inv-heading {
  font-size: 0.86rem;
  font-weight: 750;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.co-inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.co-inv-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.co-inv-item b {
  font-size: 0.92rem;
  color: var(--space-navy);
  display: block;
}

.co-inv-item span {
  font-size: 0.78rem;
  color: #475569;
  display: block;
  margin: 2px 0 4px;
}

.co-inv-item small {
  font-size: 0.73rem;
  color: var(--sensor-blue);
  font-weight: 600;
  display: block;
}


/* ==========================================================================
   Automated Field GPS Tracking & Sentinel-2 Telemetry Styles
   ========================================================================== */
.auto-ingestion-card {
  background: linear-gradient(135deg, #090d16 0%, #0f172a 60%, #1e1b4b 100%);
  border: 1.5px solid rgba(6, 182, 212, 0.4);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px -4px rgba(6, 182, 212, 0.2);
  color: #ffffff;
}

.auto-ingestion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.auto-ingestion-info {
  flex: 1;
  min-width: 280px;
}

.auto-ingestion-badge {
  background: rgba(6, 182, 212, 0.2);
  color: var(--sensor-sky);
  border: 1px solid rgba(6, 182, 212, 0.4);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.auto-ingestion-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.auto-ingestion-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}

.auto-ingestion-btn-wrap {
  flex-shrink: 0;
}

.btn-gps-action {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: #ffffff;
  border: 1px solid #38bdf8;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
  transition: all 0.2s ease;
}

.btn-gps-action:hover {
  background: linear-gradient(135deg, #0891b2, #0369a1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.btn-gps-action:active {
  transform: translateY(0);
}

.btn-gps-icon {
  font-size: 1.2rem;
}

.gps-telemetry-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.gps-telemetry-panel.hidden {
  display: none;
}

.gps-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.telemetry-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.telemetry-box small {
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
  color: var(--sensor-sky);
  letter-spacing: 0.07em;
  display: block;
}

.telemetry-val {
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  margin: 2px 0;
}

.telemetry-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  display: block;
}

.telemetry-success-pill {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.pill-check {
  background: #10b981;
  color: #ffffff;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
}


/* ==========================================================================
   Manual Coordinate Input & Quick Snap Styling
   ========================================================================== */
.btn-coord-toggle {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.btn-coord-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--sensor-sky);
  color: var(--sensor-sky);
}

.manual-coord-tray {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 16px 0;
}

.manual-coord-tray.hidden {
  display: none;
}

.coord-input-row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.coord-field {
  flex: 1;
  min-width: 140px;
}

.coord-field label {
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--sensor-sky);
  margin-bottom: 4px;
  display: block;
}

.ui-input-sm {
  width: 100%;
  padding: 8px 12px;
  background: #0f172a;
  border: 1.5px solid #334155;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
}

.ui-input-sm:focus {
  outline: none;
  border-color: var(--sensor-sky);
  box-shadow: 0 0 8px var(--cyan-glow);
}

.coord-field-btn {
  flex-shrink: 0;
}

.btn-apply-coords {
  background: linear-gradient(135deg, var(--pineapple-amber), var(--pineapple-saffron));
  color: #0f172a;
  border: none;
  font-size: 0.86rem;
  font-weight: 850;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 2px 10px var(--gold-glow);
  transition: all 0.2s ease;
}

.btn-apply-coords:hover {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #ffffff;
  transform: translateY(-1px);
}

.quick-snap-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 10px;
}

.chip-label {
  font-size: 0.74rem;
  font-weight: 750;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-snap-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-snap-chip:hover {
  background: rgba(6, 182, 212, 0.25);
  border-color: var(--sensor-sky);
  color: #ffffff;
}

.btn-snap-chip.active-chip {
  background: rgba(245, 158, 11, 0.25);
  border-color: var(--pineapple-amber);
  color: #fde68a;
  font-weight: 750;
}

.app-custom-logo {
  height: 64px;
  width: 64px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
  border: 1.5px solid rgba(6, 182, 212, 0.6);
  background: #090d16;
  padding: 2px;
}
