:root {
  color-scheme: light;
  --brand: #0f3f4a;
  --brand-ink: #0b2e36;
  --accent: #f6c84c;
  --bg: #f4f7f8;
  --panel: #ffffff;
  --text: #14262d;
  --muted: #5d7078;
  --line: #dce6ea;
  --green: #16784d;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  margin: 0;
}

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

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 230, 234, 0.82);
  display: flex;
  gap: 28px;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(20px, 5vw, 72px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.brand img {
  height: 34px;
  width: 34px;
}

.site-header nav {
  display: flex;
  gap: 22px;
  justify-content: center;
}

.site-header nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.header-download,
.primary-action,
.download-button {
  align-items: center;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  min-height: 42px;
  padding: 0 18px;
  white-space: nowrap;
}

.hero {
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f7f8 100%);
  min-height: 660px;
  padding: 54px clamp(20px, 5vw, 72px) 48px;
}

.hero-shell {
  align-items: center;
  display: grid;
  gap: clamp(34px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  margin: 0 auto;
  max-width: 1320px;
}

.hero-content {
  color: var(--text);
  max-width: 610px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--brand-ink);
  font-size: clamp(52px, 6vw, 78px);
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}

.hero h1 span {
  display: block;
}

.hero-copy {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  margin: 24px 0 0;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--brand-ink);
  min-height: 48px;
  padding: 0 22px;
}

.secondary-action {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  min-height: 48px;
  padding: 0 22px;
  white-space: nowrap;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-meta span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 11px;
}

.product-demo {
  --active-index: 0;
  --stage-flow-x: -14%;
  --water-duration: 8000ms;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(15, 63, 74, 0.14);
  min-width: 0;
  overflow: hidden;
}

.demo-topbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 14px;
}

.demo-topbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.demo-topbar div {
  display: flex;
  gap: 6px;
}

.demo-topbar i {
  background: #d7e3e7;
  border-radius: 999px;
  display: block;
  height: 9px;
  width: 9px;
}

.demo-stage {
  aspect-ratio: 16 / 10;
  background: #e8eef1;
  overflow: hidden;
  position: relative;
}

.demo-stage::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(18, 128, 146, 0.14), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  content: "";
  inset: 0;
  opacity: 0.62;
  pointer-events: none;
  position: absolute;
  transform: translateX(var(--stage-flow-x));
  transition: transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
}

.demo-slide {
  inset: 0;
  pointer-events: none;
  position: absolute;
  transition:
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 420ms ease,
    filter 420ms ease;
  will-change: transform, opacity, filter;
}

.demo-slide.is-active {
  pointer-events: auto;
  z-index: 2;
}

.demo-slide img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.demo-caption {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(220, 230, 234, 0.9);
  border-radius: 8px;
  bottom: 16px;
  box-shadow: 0 16px 36px rgba(15, 63, 74, 0.12);
  display: grid;
  gap: 6px;
  left: 16px;
  max-width: min(430px, calc(100% - 32px));
  padding: 14px 16px;
  position: absolute;
}

.demo-caption span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.demo-caption strong {
  color: var(--brand-ink);
  font-size: 15px;
  line-height: 1.5;
}

.demo-waterline {
  background:
    linear-gradient(90deg, rgba(234, 247, 239, 0.5), rgba(238, 244, 246, 0.96), rgba(232, 247, 239, 0.5));
  height: 42px;
  overflow: hidden;
  position: relative;
}

.demo-waterline::before {
  background: linear-gradient(90deg, transparent, rgba(15, 63, 74, 0.1), transparent);
  content: "";
  height: 1px;
  left: 16px;
  position: absolute;
  right: 16px;
  top: 50%;
}

.demo-waterline span,
.demo-waterline::after {
  content: "";
  left: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-128%);
}

.demo-waterline span {
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0) 58%),
    linear-gradient(90deg, rgba(48, 202, 224, 0), rgba(48, 202, 224, 0.22), rgba(246, 200, 76, 0.28), rgba(48, 202, 224, 0));
  border-radius: 999px;
  bottom: 5px;
  filter: blur(8px);
  height: 34px;
  opacity: 0;
  width: 48%;
}

.demo-waterline::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(48, 202, 224, 0.12), rgba(255, 255, 255, 1), rgba(48, 202, 224, 0.2), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(15, 63, 74, 0), rgba(23, 107, 135, 0.72), rgba(246, 200, 76, 0.52), rgba(23, 107, 135, 0));
  border-radius: 999px;
  bottom: 18px;
  box-shadow:
    0 0 20px rgba(48, 202, 224, 0.44),
    0 0 38px rgba(246, 200, 76, 0.24);
  height: 4px;
  opacity: 0;
  width: 48%;
}

.product-demo.is-water-cycling .demo-waterline span {
  animation: demo-water-wash var(--water-duration) cubic-bezier(0.33, 0, 0.12, 1) forwards;
}

.product-demo.is-water-cycling .demo-waterline::after {
  animation: demo-water-trace var(--water-duration) cubic-bezier(0.33, 0, 0.12, 1) forwards;
}

@keyframes demo-water-trace {
  0% {
    opacity: 0;
    transform: translateX(-130%);
  }
  9% {
    opacity: 1;
  }
  82% {
    opacity: 1;
    transform: translateX(250%);
  }
  100% {
    opacity: 0;
    transform: translateX(250%);
  }
}

@keyframes demo-water-wash {
  0% {
    opacity: 0;
    transform: translateX(-130%) scaleX(0.72);
  }
  12% {
    opacity: 1;
  }
  78% {
    opacity: 0.72;
    transform: translateX(250%) scaleX(1.08);
  }
  100% {
    opacity: 0;
    transform: translateX(250%) scaleX(1.12);
  }
}

.section,
.security-section {
  padding: 84px clamp(20px, 5vw, 72px);
}

.section-heading {
  margin-bottom: 28px;
  max-width: 760px;
}

.section h2,
.security-section h2 {
  color: var(--brand-ink);
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0;
  line-height: 1.14;
  margin: 0;
}

.section-heading > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 12px 0 0;
}

.feature-grid,
.download-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid article,
.download-grid article,
.faq-section details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.feature-grid h3,
.download-grid h3 {
  color: var(--brand-ink);
  font-size: 18px;
  margin: 0;
}

.feature-grid p,
.download-grid p,
.faq-section p,
.security-list p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 12px 0 0;
}

.workflow-section {
  background: #fff;
}

.workflow-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.workflow-grid span {
  align-items: center;
  background: #eaf7ef;
  border: 1px solid #cbeedb;
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  margin-bottom: 18px;
  width: 44px;
}

.workflow-grid h3 {
  color: var(--brand-ink);
  font-size: 18px;
  margin: 0;
}

.workflow-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 12px 0 0;
}

.security-section {
  align-items: start;
  background: var(--brand);
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.security-section h2 {
  color: #fff;
}

.security-list {
  display: grid;
  gap: 12px;
}

.security-list p {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
  padding: 16px;
}

.download-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
}

.download-button {
  margin-top: 18px;
}

.faq-section {
  display: grid;
  gap: 12px;
}

.faq-section details {
  max-width: 900px;
}

.faq-section summary {
  color: var(--brand-ink);
  cursor: pointer;
  font-weight: 900;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 72px);
}

.site-footer a {
  color: var(--brand);
  font-weight: 900;
}

.desktop-login-page {
  background:
    radial-gradient(circle at 14% 18%, rgba(23, 107, 135, 0.14), transparent 30%),
    radial-gradient(circle at 86% 78%, rgba(246, 200, 76, 0.22), transparent 28%),
    linear-gradient(135deg, #f3fafb, #eef6f2);
  min-height: 100vh;
}

.desktop-login-shell {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.08fr) 440px;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 100vh;
  padding: 34px;
}

.desktop-auth-brief,
.desktop-auth-card,
.desktop-auth-success {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(220, 230, 234, 0.9);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(15, 63, 74, 0.12);
}

.desktop-auth-brief {
  display: grid;
  gap: 24px;
  grid-template-rows: auto 1fr auto auto;
  padding: 28px;
}

.desktop-auth-brief h1,
.desktop-auth-success h1 {
  color: var(--brand-ink);
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

.desktop-auth-brief p,
.desktop-auth-success p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 14px 0 0;
  max-width: 660px;
}

.desktop-device-card {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.desktop-device-card article,
.desktop-auth-notice {
  background: #f8fbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.desktop-device-card span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
}

.desktop-device-card strong {
  color: var(--brand-ink);
  display: block;
  overflow-wrap: anywhere;
}

.desktop-auth-notice strong {
  color: var(--brand-ink);
  display: block;
  font-size: 14px;
}

.desktop-auth-notice p {
  font-size: 13px;
  margin-top: 8px;
}

.desktop-auth-card {
  align-self: center;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.desktop-card-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.desktop-card-head h2 {
  color: var(--brand-ink);
  font-size: 26px;
  margin: 0;
}

.desktop-status-pill {
  background: #eef4f6;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.desktop-status-pill.ready {
  background: #e8f7ef;
  border-color: #cbeedb;
  color: var(--green);
}

.desktop-status-pill.pending {
  background: #fff8df;
  border-color: #f5e4a8;
  color: #8a6500;
}

.desktop-status-pill.error {
  background: #fff0ee;
  border-color: #f2c5c1;
  color: #b03a34;
}

.desktop-mode-tabs {
  background: #eef4f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
}

.desktop-mode-tabs button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 900;
  min-height: 36px;
}

.desktop-mode-tabs button.active {
  background: #fff;
  box-shadow: 0 6px 14px rgba(15, 63, 74, 0.08);
  color: var(--brand-ink);
}

.desktop-auth-form {
  display: grid;
  gap: 12px;
}

.desktop-auth-form label {
  display: grid;
  gap: 6px;
}

.desktop-auth-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.desktop-auth-form input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 42px;
  padding: 0 12px;
  width: 100%;
}

.desktop-auth-form input:focus {
  border-color: rgba(23, 107, 135, 0.5);
  box-shadow: 0 0 0 4px rgba(23, 107, 135, 0.1);
  outline: 0;
}

.desktop-card-hint {
  background: #f4f8f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0;
  padding: 9px 10px;
}

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

.desktop-alert {
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  padding: 10px 12px;
}

.desktop-alert.error {
  background: #fff0ee;
  border: 1px solid #f2c5c1;
  color: #9c312c;
}

.desktop-alert.info {
  background: #e9f6f8;
  border: 1px solid #c9e8ee;
  color: var(--brand);
}

.desktop-auth-success {
  align-content: center;
  display: grid;
  justify-items: center;
  padding: 44px;
  text-align: center;
}

.desktop-auth-success img {
  height: 68px;
  margin-bottom: 18px;
  width: 68px;
}

.admin-console-page {
  background: var(--bg);
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}

.admin-sidebar {
  background: #0f2633;
  color: #dce8ee;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 16px;
}

.admin-brand {
  align-items: center;
  display: flex;
  gap: 10px;
  font-weight: 900;
  min-height: 42px;
}

.admin-brand img {
  background: #fff;
  border-radius: 8px;
  height: 36px;
  width: 36px;
}

.admin-nav {
  display: grid;
  gap: 7px;
}

.admin-nav button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #b9c8cf;
  font-weight: 900;
  min-height: 36px;
  text-align: left;
  padding: 0 10px;
}

.admin-nav button.active,
.admin-nav button:hover {
  background: #173949;
  border-color: rgba(240, 180, 41, 0.3);
  color: #fff;
}

.admin-sidebar-note {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #b9c8cf;
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding: 10px;
}

.admin-sidebar-note strong {
  color: #fff;
}

.admin-sidebar-note span {
  font-size: 12px;
  line-height: 1.5;
}

.admin-main {
  display: grid;
  gap: 10px;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  padding: 16px;
}

.admin-topbar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.admin-topbar h1 {
  color: var(--brand-ink);
  font-size: 24px;
  margin: 0;
}

.admin-status-strip {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.admin-pill,
.admin-mini-badge {
  background: #eef4f6;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 7px 9px;
  white-space: nowrap;
}

.admin-pill.ready,
.admin-mini-badge.ready {
  background: #e8f7ef;
  border-color: #cbeedb;
  color: var(--green);
}

.admin-pill.warning {
  background: #fff8df;
  border-color: #f5e4a8;
  color: #8a6500;
}

.admin-pill.error,
.admin-mini-badge.error {
  background: #fff0ee;
  border-color: #f2c5c1;
  color: #b03a34;
}

.admin-mini-badge.neutral {
  background: #f1f5f7;
  color: #51636b;
}

.compact-admin-button {
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
}

.compact-admin-button.danger {
  background: #fff0ee;
  border-color: #f2c5c1;
  color: #9c312c;
}

.admin-warning,
.admin-alert {
  border-radius: 8px;
  display: flex;
  gap: 8px;
  line-height: 1.45;
  padding: 10px 12px;
}

.admin-warning {
  background: #fff8df;
  border: 1px solid #f5e4a8;
  color: #745500;
}

.admin-alert.success {
  background: #e8f7ef;
  border: 1px solid #cbeedb;
  color: var(--green);
}

.admin-alert.error {
  background: #fff0ee;
  border: 1px solid #f2c5c1;
  color: #9c312c;
}

.admin-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 12px;
}

.admin-panel-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.admin-panel-head h2 {
  color: var(--brand-ink);
  font-size: 18px;
  margin: 0;
}

.admin-panel-head p {
  color: var(--muted);
  font-size: 13px;
  margin: 5px 0 0;
}

.admin-login-panel {
  max-width: 760px;
}

.admin-form {
  display: grid;
  gap: 9px;
}

.compact-admin-form {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
}

.admin-form label {
  display: grid;
  gap: 5px;
}

.admin-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-form input,
.admin-form select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 36px;
  padding: 0 10px;
  width: 100%;
}

#adminWorkspace,
.admin-section.active {
  min-height: 0;
  overflow: hidden;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: grid;
  gap: 10px;
}

.admin-metric-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-metric-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 12px;
}

.admin-metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-metric-card strong {
  color: var(--brand-ink);
  font-size: 28px;
}

.admin-grid-two {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  min-height: 0;
}

.admin-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 0;
  overflow: auto;
}

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

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #edf2f4;
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #f6fafb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-table td {
  font-size: 13px;
}

.admin-table td strong,
.admin-table td small {
  display: block;
}

.admin-table td small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.admin-empty-cell {
  color: var(--muted);
  text-align: center !important;
}

.generated-key-list {
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 10px;
}

.generated-key-head,
.generated-key-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.generated-key-head small,
.generated-key-code small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 4px;
}

.generated-key-code {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.generated-key-list code {
  background: #102b38;
  border-radius: 6px;
  color: #e8f7ef;
  display: block;
  font-size: 12px;
  overflow: auto;
  padding: 8px;
  user-select: text;
  white-space: nowrap;
}

.admin-copy-button {
  align-items: center;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.admin-copy-button:hover {
  background: #176b87;
  border-color: #176b87;
}

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

.admin-version-card div {
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 10px;
}

.admin-version-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-version-card strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .site-header nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

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

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

  .security-section {
    grid-template-columns: 1fr;
  }

  .desktop-login-shell {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .admin-console-page {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .admin-brand span,
  .admin-sidebar-note,
  .admin-nav button {
    font-size: 0;
  }

  .admin-nav button::first-letter {
    font-size: 14px;
  }

  .compact-admin-form,
  .admin-grid-two,
  .admin-metric-grid,
  .admin-version-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: 64px;
    padding-inline: 20px;
  }

  .brand span {
    display: none;
  }

  .header-download {
    min-height: 38px;
    padding-inline: 12px;
  }

  .hero {
    padding-block: 42px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .demo-caption {
    bottom: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    padding: 10px 12px;
  }

  .demo-caption strong {
    font-size: 13px;
  }

  .feature-grid,
  .download-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }
}
