:root {
  color-scheme: light;
  --leaf: #1f7a4d;
  --leaf-dark: #0f3f2d;
  --leaf-ink: #09291d;
  --rice: #a5c94f;
  --tomato: #d73b27;
  --tomato-dark: #9f2418;
  --soil: #6d4c32;
  --jute: #f0c36d;
  --cream: #f6f4ed;
  --ink: #14211b;
  --muted: #66736d;
  --line: #dfe6dc;
  --panel: #ffffff;
  --panel-soft: #fbfcf7;
  --shadow: 0 28px 70px rgba(20, 33, 27, 0.14);
  --shadow-tight: 0 14px 34px rgba(20, 33, 27, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f9f7ef 0%, #f3f0e6 100%);
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(246, 244, 237, 0.9);
  border-bottom: 1px solid rgba(223, 230, 220, 0.72);
  backdrop-filter: blur(18px);
}

.brand,
.topbar nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 800;
  font-size: 1.08rem;
}

.brand small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(31, 122, 77, 0.18);
}

.topbar nav {
  color: var(--muted);
  font-size: 0.94rem;
  padding: 4px;
  border: 1px solid rgba(223, 230, 220, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.topbar nav a {
  border-radius: 999px;
  padding: 8px 13px;
  transition: color 160ms ease, background 160ms ease;
}

.topbar nav a:hover {
  color: var(--leaf-dark);
  background: white;
}

.nav-cta {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  color: white;
  background: var(--leaf-dark);
  font-size: 0.9rem;
  font-weight: 850;
  box-shadow: var(--shadow-tight);
}

.lang-toggle {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--leaf-dark);
  background: white;
  cursor: pointer;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 112px clamp(20px, 6vw, 86px) 46px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 28, 18, 0.86) 0%, rgba(7, 28, 18, 0.58) 46%, rgba(7, 28, 18, 0.22) 100%),
    linear-gradient(0deg, rgba(7, 28, 18, 0.78) 0%, rgba(7, 28, 18, 0.04) 56%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 430px);
  gap: 34px;
  align-items: end;
}

.hero-content {
  max-width: 760px;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--tomato);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--jute);
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 6.8rem;
  line-height: 0.95;
}

h2 {
  margin: 0;
  font-size: 3.35rem;
  line-height: 1.04;
}

h3 {
  margin: 0;
  font-size: 1.45rem;
}

h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.24rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  gap: 8px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--tomato), var(--tomato-dark));
  box-shadow: 0 16px 34px rgba(215, 59, 39, 0.28);
}

.button.secondary {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.1);
}

.button.full {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 650px;
  margin: 0;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.hero-stats div {
  padding: 18px;
  background: rgba(8, 32, 19, 0.58);
}

.hero-console {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: white;
  background: rgba(9, 41, 29, 0.72);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.console-top,
.console-metrics div,
.panel-kicker,
.subhead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.console-top {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 800;
}

.status-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rice);
  box-shadow: 0 0 0 6px rgba(165, 201, 79, 0.18);
}

.console-dial {
  display: grid;
  min-height: 210px;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(165, 201, 79, 0.18), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.06);
}

.console-dial span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  color: var(--leaf-ink);
  background: var(--jute);
  font-size: 1.8rem;
  font-weight: 950;
  box-shadow: inset 0 -10px 18px rgba(109, 76, 50, 0.16);
}

.console-dial strong {
  margin-top: 12px;
  font-size: 1.32rem;
}

.console-metrics {
  display: grid;
  gap: 10px;
}

.console-metrics div {
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.console-metrics small {
  color: rgba(255, 255, 255, 0.58);
}

.console-metrics strong {
  text-align: right;
  font-size: 0.96rem;
}

.hero-stats dt {
  font-size: 1.4rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

section:not(.hero) {
  padding: 92px clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.section-heading.compact {
  max-width: 760px;
}

.split-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(280px, 0.92fr) minmax(280px, 0.72fr);
  gap: 28px;
  align-items: end;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.diagnose-section {
  background:
    linear-gradient(180deg, #f6f4ed 0%, #ffffff 100%);
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: -4px 0 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow-tight);
}

.workflow-strip div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 12px;
  align-items: center;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.82);
}

.workflow-strip span {
  grid-row: span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--leaf-dark);
  font-weight: 950;
}

.workflow-strip strong {
  font-size: 1rem;
}

.workflow-strip small {
  color: var(--muted);
}

.diagnose-grid {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.upload-panel,
.result-panel,
.science-grid article,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.upload-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.panel-kicker {
  min-height: 46px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.panel-kicker span,
.subhead-row span {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--leaf-dark);
  background: #edf4e7;
  font-size: 0.78rem;
  font-weight: 900;
}

.panel-kicker strong {
  text-align: right;
  font-size: 0.98rem;
}

.dropzone {
  display: grid;
  min-height: 286px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 26px;
  border: 1px dashed #a9c3b1;
  border-radius: 8px;
  color: var(--leaf-dark);
  background:
    linear-gradient(135deg, rgba(31, 122, 77, 0.11), rgba(215, 59, 39, 0.07)),
    var(--panel-soft);
  cursor: pointer;
  text-align: center;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.dropzone:hover {
  transform: translateY(-1px);
  border-color: var(--leaf);
}

.dropzone.is-active {
  border-color: var(--tomato);
  background: #fff8f4;
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.drop-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--leaf), var(--leaf-dark));
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 16px 34px rgba(31, 122, 77, 0.22);
}

.drop-title {
  font-size: 1.08rem;
  font-weight: 900;
}

.mini-field {
  display: grid;
  gap: 8px;
  color: var(--leaf-dark);
  font-weight: 850;
}

.mini-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: var(--panel-soft);
  color: var(--ink);
}

.mini-field input:focus {
  outline: 0;
  border-color: var(--leaf);
  background: white;
  box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.12);
}

.drop-meta,
.model-state,
.disclaimer,
.form-status,
.file-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.file-meta {
  margin: -4px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f1f5ec;
}

.model-state {
  margin: 0;
  border-radius: 8px;
  padding: 11px 12px;
  background: #f4f6f0;
}

.model-state[data-tone="ready"] {
  color: var(--leaf-dark);
  background: #edf6ea;
}

.model-state[data-tone="warning"] {
  color: #8a2b1d;
  background: #fff0e8;
}

.capture-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.capture-guide span {
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}

.upload-footnote {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(31, 122, 77, 0.18);
  border-radius: 8px;
  color: var(--leaf-dark);
  background: #f3f8ef;
}

.upload-footnote span {
  color: var(--muted);
  font-size: 0.9rem;
}

.preview-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-tight);
}

.preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(20, 33, 27, 0.78);
  cursor: pointer;
}

.result-panel {
  min-height: 600px;
  padding: 0;
  overflow: hidden;
}

.empty-result {
  display: grid;
  min-height: 600px;
  place-items: center;
  align-content: center;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(31, 122, 77, 0.08), rgba(240, 195, 109, 0.08)),
    white;
}

.empty-result h3 {
  color: var(--ink);
}

.empty-visual {
  position: relative;
  display: grid;
  width: min(100%, 340px);
  height: 190px;
  margin-bottom: 22px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 122, 77, 0.12), rgba(215, 59, 39, 0.06)),
    #fbfcf7;
}

.pulse-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rice);
  box-shadow: 0 0 0 14px rgba(165, 201, 79, 0.18);
}

.scan-line {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 54%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tomato), transparent);
  box-shadow: 0 0 18px rgba(215, 59, 39, 0.42);
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(15, 63, 45, 0.98), rgba(31, 122, 77, 0.92));
  color: white;
}

.result-content {
  background: white;
}

.result-head .eyebrow {
  color: var(--jute);
}

.bengali-title {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.confidence {
  display: grid;
  min-width: 104px;
  height: 104px;
  place-items: center;
  align-content: center;
  border-radius: 8px;
  color: var(--leaf-ink);
  background: var(--jute);
  box-shadow: inset 0 -12px 22px rgba(109, 76, 50, 0.12);
}

.confidence span {
  font-size: 1.6rem;
  font-weight: 900;
}

.confidence small {
  color: rgba(9, 41, 29, 0.68);
}

.report-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.report-meta div {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: var(--panel-soft);
}

.report-meta small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-meta strong {
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.notice {
  margin: 24px 26px 14px;
  padding: 14px 16px;
  border-left: 4px solid var(--tomato);
  border-radius: 8px;
  background: #fff3ed;
  font-weight: 800;
}

.summary {
  margin: 0 26px 22px;
  color: var(--muted);
  line-height: 1.7;
}

.advisory-columns,
.science-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.advisory-columns {
  padding: 0 26px 22px;
}

.advisory-columns ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.alternatives {
  margin-top: 22px;
  padding: 22px 26px;
  border-top: 1px solid var(--line);
  background: var(--panel-soft);
}

.alt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 14px;
  align-items: center;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.bar {
  height: 7px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ea;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--leaf), var(--rice));
}

.disclaimer {
  margin: 0;
  padding: 18px 26px 24px;
}

.ops-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #eef4e8 100%);
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(240px, 0.75fr));
  gap: 18px;
}

.ops-card {
  display: grid;
  align-content: end;
  min-height: 290px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(251, 252, 247, 0.96));
  box-shadow: var(--shadow-tight);
}

.ops-card.large {
  min-height: 360px;
  color: white;
  background:
    linear-gradient(135deg, rgba(9, 41, 29, 0.96), rgba(31, 122, 77, 0.88));
}

.ops-label {
  width: fit-content;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--leaf-dark);
  background: #edf4e7;
  font-size: 0.78rem;
  font-weight: 900;
}

.ops-card.large .ops-label {
  color: var(--leaf-ink);
  background: var(--jute);
}

.ops-card h3 {
  max-width: 560px;
}

.ops-card p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.65;
}

.ops-card.large p {
  color: rgba(255, 255, 255, 0.74);
}

.science-section {
  background:
    linear-gradient(180deg, #edf4e7 0%, #f8f5ec 100%);
}

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

.science-grid article {
  position: relative;
  overflow: hidden;
  padding: 26px;
  box-shadow: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.science-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--leaf), var(--jute), var(--tomato));
}

.science-grid article:hover {
  transform: translateY(-2px);
  border-color: #bdd0bf;
}

.step {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--leaf-dark);
  font-weight: 900;
}

.science-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.classes-section {
  background:
    linear-gradient(180deg, white 0%, #fbfcf7 100%);
}

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

.class-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 15px;
  background: #fbfdf9;
  color: var(--leaf-dark);
  font-weight: 750;
  box-shadow: 0 8px 20px rgba(20, 33, 27, 0.04);
}

.pilot-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);
  gap: 30px;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(9, 41, 29, 0.92), rgba(31, 122, 77, 0.82)),
    var(--leaf-dark);
  color: white;
}

.pilot-section .eyebrow {
  color: var(--jute);
}

.pilot-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.pilot-copy code {
  color: var(--jute);
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  color: var(--ink);
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--leaf-dark);
  font-weight: 800;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fbfdf9;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: 0;
  border-color: var(--leaf);
  background: white;
  box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.12);
}

.lead-form textarea {
  resize: vertical;
}

.span-two {
  grid-column: span 2;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--leaf-dark);
}

footer span:first-child {
  color: white;
  font-weight: 900;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: white;
}

.admin-body {
  min-height: 100vh;
  background: #f2f4ed;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 244, 237, 0.94);
  backdrop-filter: blur(18px);
}

.admin-auth {
  display: flex;
  gap: 10px;
}

.admin-auth input {
  min-height: 42px;
  width: min(42vw, 260px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
}

.admin-shell {
  display: grid;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px) 72px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 24px;
  align-items: end;
  padding: 34px;
  border-radius: 8px;
  color: white;
  background:
    linear-gradient(135deg, rgba(9, 41, 29, 0.96), rgba(31, 122, 77, 0.88));
  box-shadow: var(--shadow);
}

.admin-hero h1 {
  font-size: 4.2rem;
}

.admin-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.admin-note {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.admin-metrics,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.admin-metrics article,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-tight);
}

.admin-metrics article {
  display: grid;
  gap: 6px;
  padding: 22px;
}

.admin-metrics small,
.muted {
  color: var(--muted);
}

.admin-metrics strong {
  color: var(--leaf-dark);
  font-size: 2.4rem;
}

.admin-panel {
  overflow: hidden;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.panel-title h2 {
  font-size: 1.4rem;
}

.panel-title span {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--leaf-dark);
  background: #edf4e7;
  font-size: 0.78rem;
  font-weight: 900;
}

.rank-list {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.rank-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rank-row > span {
  text-align: right;
  color: var(--leaf-dark);
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--leaf-dark);
  background: #fbfcf7;
  font-size: 0.82rem;
  text-transform: uppercase;
}

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

@media (max-width: 860px) {
  .topbar {
    position: sticky;
  }

  .topbar nav {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .lang-toggle {
    margin-left: auto;
  }

  .hero {
    min-height: calc(100vh - 69px);
    padding-top: 68px;
  }

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

  .hero-console {
    display: none;
  }

  .hero-stats,
  .diagnose-grid,
  .workflow-strip,
  .advisory-columns,
  .science-grid,
  .ops-grid,
  .split-heading,
  .report-meta,
  .admin-hero,
  .admin-metrics,
  .admin-grid,
  .pilot-section,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .span-two {
    grid-column: auto;
  }

  .result-head,
  footer {
    flex-direction: column;
  }

  h1 {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  section:not(.hero) {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .admin-topbar,
  .admin-auth {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-auth input,
  .admin-auth .button {
    width: 100%;
  }

  .admin-hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 560px) {
  .hero-stats,
  .capture-guide {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  h1 {
    font-size: 3.45rem;
  }

  h2 {
    font-size: 2rem;
  }

  .panel-kicker {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-kicker strong {
    text-align: left;
  }

  .workflow-strip div {
    grid-template-columns: 1fr;
  }

  .workflow-strip span {
    grid-row: auto;
  }

  .ops-card,
  .ops-card.large {
    min-height: 240px;
  }
}
