:root {
  --bg: #060a12;
  --bg-soft: #08101d;
  --panel: #0d1527;
  --panel-strong: #101c32;
  --panel-muted: #0a1220;
  --border: #1b2a42;
  --border-strong: #28405f;
  --text: #edf7fb;
  --muted: #8ea2b9;
  --muted-strong: #b5c3d2;
  --cyan: #45e1e5;
  --cyan-soft: #153c46;
  --blue: #4b7cff;
  --green: #4ee0a0;
  --amber: #f5c451;
  --red: #ff6d7a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --font-ui: Inter, Manrope, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
.remote-stage:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px 22px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: #080e19;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 30px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(69, 225, 229, 0.58);
  background: #0d202b;
  box-shadow: 0 0 24px rgba(69, 225, 229, 0.12);
}

.brand-mark span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.primary-nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  min-height: 44px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.nav-item.active {
  color: var(--text);
  border-color: #20334b;
  background: #101a2a;
}

.nav-item.active .nav-symbol {
  color: var(--cyan);
}

.nav-item:disabled {
  cursor: default;
  opacity: 0.65;
}

.nav-item em {
  color: #697d93;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-symbol {
  font-size: 13px;
  text-align: center;
}

.sidebar-spacer {
  flex: 1;
}

.security-card.compact {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #1b3e43;
  background: #0b1c24;
}

.security-card .shield {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #06100c;
  background: var(--green);
  font-weight: 800;
}

.security-card strong,
.security-card small {
  display: block;
}

.security-card strong {
  font-size: 11px;
}

.security-card small {
  margin-top: 3px;
  color: #80a8a4;
  font-size: 9px;
}

.account-link {
  margin-top: 14px;
  padding: 10px 8px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}

.account-link:hover {
  color: var(--cyan);
}

.main-content {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 44px 28px;
}

.topbar {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 7px;
  color: #668099;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.topbar h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.health-pill {
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #244052;
  border-radius: 999px;
  color: var(--muted-strong);
  background: #0b1724;
  font-size: 10px;
}

.health-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(245, 196, 81, 0.5);
}

.health-pill.online span {
  background: var(--green);
  box-shadow: 0 0 10px rgba(78, 224, 160, 0.5);
}

.health-pill.offline span {
  background: var(--red);
}

.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--cyan);
  background: var(--panel);
  font-size: 10px;
  font-weight: 800;
}

.hero {
  min-height: 350px;
  margin-top: 32px;
  padding: 48px 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 40px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  background: #0b1423;
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  right: -120px;
  top: -150px;
  border: 1px solid rgba(69, 225, 229, 0.09);
  border-radius: 50%;
}

.hero::after {
  width: 220px;
  height: 1px;
  left: 0;
  bottom: 0;
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(69, 225, 229, 0.6);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(69, 225, 229, 0.08), 0 0 16px rgba(69, 225, 229, 0.55);
}

.hero h2 {
  max-width: 740px;
  margin: 21px 0 18px;
  font-size: clamp(35px, 4vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 650px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 17px;
}

.button {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.015em;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.button.primary {
  color: #031014;
  background: var(--cyan);
  box-shadow: 0 10px 28px rgba(69, 225, 229, 0.18);
}

.button.primary:hover {
  background: #72edf0;
}

.button.secondary {
  color: var(--text);
  border-color: var(--border-strong);
  background: #111d30;
}

.button.danger {
  color: #ffd9dd;
  border-color: #61333e;
  background: #2c1720;
}

.microcopy {
  color: #6f859b;
  font-size: 10px;
}

.trust-orbit {
  width: 310px;
  height: 310px;
  justify-self: center;
  position: relative;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(69, 225, 229, 0.2);
  border-radius: 50%;
}

.orbit-one {
  inset: 22px;
}

.orbit-two {
  inset: 64px;
  border-color: rgba(75, 124, 255, 0.22);
}

.trust-core {
  width: 112px;
  height: 112px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(69, 225, 229, 0.7);
  border-radius: 50%;
  background: #0c2730;
  box-shadow: 0 0 70px rgba(69, 225, 229, 0.18), inset 0 0 24px rgba(69, 225, 229, 0.08);
}

.trust-core span {
  color: var(--cyan);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.trust-core small {
  margin-top: 4px;
  color: #86a8b0;
  font-size: 8px;
  letter-spacing: 0.22em;
}

.trust-node {
  width: 28px;
  height: 28px;
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid #2d6670;
  border-radius: 50%;
  color: var(--cyan);
  background: #0c1e29;
  font-size: 9px;
  font-weight: 800;
}

.node-one { top: 31px; left: 66px; }
.node-two { right: 20px; top: 142px; }
.node-three { bottom: 34px; left: 82px; }

.workflow {
  margin: 16px 0 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  background: var(--panel-muted);
}

.workflow article {
  min-height: 100px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 17px;
  border-right: 1px solid var(--border);
}

.workflow article:last-child {
  border-right: 0;
}

.workflow article > span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.workflow strong {
  font-size: 12px;
}

.workflow p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.session-card {
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  border: 1px solid #275363;
  background: #0b1725;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.session-details {
  padding: 32px 36px;
  border-right: 1px solid var(--border);
}

.session-details h2,
.panel h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.session-details > p:not(.eyebrow) {
  max-width: 690px;
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.code-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.code-row > code {
  min-width: 250px;
  padding: 12px 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(69, 225, 229, 0.38);
  color: var(--cyan);
  background: #07151d;
  font: 700 24px/1 Consolas, monospace;
  letter-spacing: 0.16em;
}

.agent-command {
  margin-top: 16px;
  display: grid;
  gap: 7px;
}

.agent-command span {
  color: #668099;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.agent-command code {
  max-width: 700px;
  padding: 9px 11px;
  overflow-x: auto;
  color: #aac1d7;
  border: 1px solid #1d2d43;
  background: #080f1a;
  font-size: 10px;
  white-space: nowrap;
}

.waiting-panel {
  min-height: 250px;
  padding: 30px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  background: #0a1320;
}

.waiting-panel strong {
  margin-top: 18px;
  font-size: 12px;
}

.waiting-panel p {
  margin: 7px 0 14px;
  color: var(--muted);
  font-size: 10px;
}

.waiting-animation {
  display: flex;
  gap: 6px;
}

.waiting-animation span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: waitPulse 1.2s infinite ease-in-out;
}

.waiting-animation span:nth-child(2) { animation-delay: 140ms; }
.waiting-animation span:nth-child(3) { animation-delay: 280ms; }

@keyframes waitPulse {
  0%, 70%, 100% { opacity: 0.25; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-5px); }
}

.text-button {
  padding: 7px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.text-button.danger:hover {
  color: var(--red);
}

.viewer-card {
  margin-bottom: 30px;
  border: 1px solid #2a5261;
  background: #070d16;
  box-shadow: var(--shadow);
}

.viewer-toolbar,
.viewer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.viewer-toolbar {
  min-height: 66px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: #0b1422;
}

.device-identity {
  display: flex;
  align-items: center;
  gap: 11px;
}

.device-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(78, 224, 160, 0.5);
}

.device-identity strong,
.device-identity small {
  display: block;
}

.device-identity strong {
  font-size: 12px;
}

.device-identity small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.viewer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-badge,
.score,
.memory-only {
  padding: 7px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted-strong);
  background: #0f1b2d;
  font-size: 9px;
  font-weight: 700;
}

.mode-badge.control {
  color: var(--cyan);
  border-color: #27606a;
  background: #0b222a;
}

.remote-stage {
  min-height: 540px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #03070c;
  cursor: default;
  user-select: none;
}

.remote-stage.controllable {
  cursor: crosshair;
}

.remote-stage img {
  width: 100%;
  max-height: 72vh;
  display: none;
  object-fit: contain;
  pointer-events: none;
}

.remote-stage.has-frame img {
  display: block;
}

.frame-placeholder {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
}

.remote-stage.has-frame .frame-placeholder {
  display: none;
}

.frame-placeholder strong {
  color: var(--muted-strong);
  font-size: 12px;
}

.frame-placeholder span {
  font-size: 9px;
}

.frame-loader {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border: 2px solid #1e3145;
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.consent-watermark {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 9px;
  color: #91adb7;
  border: 1px solid rgba(69, 225, 229, 0.2);
  background: rgba(5, 14, 21, 0.82);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.viewer-footer {
  min-height: 42px;
  padding: 0 18px;
  color: #6f8599;
  border-top: 1px solid var(--border);
  background: #09111d;
  font-size: 9px;
}

.viewer-footer span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.green-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.panel {
  min-height: 330px;
  padding: 28px 30px;
  border: 1px solid var(--border);
  background: var(--panel-muted);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.score {
  color: var(--green);
  border-color: #215042;
  background: #0a201a;
}

.memory-only {
  color: #90a9bb;
}

.check-list,
.activity-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #142136;
}

.check-list li:last-child {
  border-bottom: 0;
}

.check-list li > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid #1e5546;
  border-radius: 50%;
  color: var(--green);
  background: #0b211c;
  font-size: 9px;
}

.check-list strong,
.check-list small,
.activity-list strong,
.activity-list small {
  display: block;
}

.check-list strong,
.activity-list strong {
  font-size: 10px;
}

.check-list small,
.activity-list small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.activity-list {
  max-height: 246px;
  overflow-y: auto;
}

.activity-list li {
  padding: 15px 0;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border-bottom: 1px solid #142136;
}

.activity-list li > span {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(75, 124, 255, 0.4);
}

.activity-list li.success > span {
  background: var(--green);
}

.activity-list li.warning > span {
  background: var(--amber);
}

.page-footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #53697e;
  font-size: 9px;
}

.toast {
  max-width: min(420px, calc(100vw - 32px));
  padding: 13px 16px;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  color: var(--text);
  border: 1px solid #2a5261;
  background: #0e1c2c;
  box-shadow: var(--shadow);
  font-size: 11px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  border-color: #61333e;
  background: #28151d;
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .sidebar {
    padding-inline: 12px;
  }

  .brand {
    justify-content: center;
    padding-inline: 0;
  }

  .brand > div:last-child,
  .nav-item:not(.active),
  .nav-item.active:not(:focus),
  .security-card.compact > div,
  .account-link {
    font-size: 0;
  }

  .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  .nav-item em {
    display: none;
  }

  .security-card.compact {
    justify-content: center;
    padding: 10px;
  }

  .hero {
    grid-template-columns: 1fr 260px;
    padding-inline: 38px;
  }

  .trust-orbit {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    height: auto;
    position: static;
    padding: 14px 18px;
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .brand {
    padding: 0;
  }

  .brand > div:last-child {
    display: block;
  }

  .primary-nav,
  .sidebar-spacer,
  .security-card.compact,
  .account-link {
    display: none;
  }

  .main-content {
    padding: 0 20px 20px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 38px 30px;
  }

  .trust-orbit {
    display: none;
  }

  .workflow,
  .dashboard-grid,
  .session-card {
    grid-template-columns: 1fr;
  }

  .workflow article {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .workflow article:last-child {
    border-bottom: 0;
  }

  .session-details {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .remote-stage {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .topbar {
    min-height: 78px;
  }

  .health-pill {
    display: none;
  }

  .hero {
    margin-top: 20px;
    padding: 30px 23px;
  }

  .hero h2 {
    font-size: 34px;
  }

  .hero-actions,
  .code-row,
  .viewer-toolbar,
  .viewer-footer,
  .page-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .microcopy {
    text-align: center;
  }

  .code-row > code {
    min-width: 0;
  }

  .viewer-toolbar,
  .viewer-footer {
    padding-block: 13px;
  }

  .viewer-actions {
    justify-content: space-between;
  }

  .panel,
  .session-details {
    padding: 24px 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.topbar-link {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.pairing-panel {
  min-height: 160px;
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
}

.pairing-panel p:not(.eyebrow) {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.pairing-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.pairing-actions code {
  min-width: 205px;
  padding: 12px 16px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  border: 1px solid #275363;
  background: #07151d;
  font: 700 16px/1 Consolas, monospace;
  letter-spacing: 0.1em;
}

body.gate-open {
  overflow: hidden;
}

.admin-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 7, 13, 0.92);
  backdrop-filter: blur(12px);
}

.admin-gate-panel {
  width: min(460px, 100%);
  padding: 38px;
  border: 1px solid #2a5261;
  background: #0b1423;
  box-shadow: var(--shadow);
}

.gate-mark {
  margin-bottom: 26px;
}

.admin-gate-panel h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.035em;
}

.admin-gate-panel > p:not(.eyebrow) {
  margin: 14px 0 24px;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.65;
}

.admin-gate-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-gate-panel input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  color: var(--cyan);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  outline: none;
  background: #07101c;
  font: 700 18px/1 Consolas, monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.admin-gate-panel input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(69, 225, 229, 0.08);
}

.admin-gate-panel .button {
  width: 100%;
  margin-top: 12px;
}

.admin-gate-panel small,
.admin-gate-panel > a {
  display: block;
  text-align: center;
}

.admin-gate-panel small {
  margin-top: 13px;
  color: var(--muted);
  font-size: 9px;
}

.admin-gate-panel > a {
  margin-top: 22px;
  color: var(--cyan);
  font-size: 10px;
  text-decoration: none;
}

.client-page {
  min-height: 100vh;
  background: var(--bg);
}

.client-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 54px;
}

.client-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.client-header .brand {
  padding: 0;
}

.client-header a {
  color: var(--muted);
  font-size: 10px;
  text-decoration: none;
}

.client-hero {
  padding: 72px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 70px;
}

.client-hero h1 {
  max-width: 680px;
  margin: 14px 0 20px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.client-hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.7;
}

.download-card {
  padding: 30px;
  border: 1px solid #275363;
  background: #0b1725;
  box-shadow: var(--shadow);
}

.download-card .shield-large {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #06100c;
  border-radius: 50%;
  background: var(--green);
  font-size: 20px;
  font-weight: 900;
}

.download-card h2 {
  margin: 22px 0 9px;
  font-size: 20px;
}

.download-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.download-card .button {
  width: 100%;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.download-meta {
  margin-top: 14px;
  display: grid;
  gap: 7px;
  color: #668099;
  font-size: 8px;
  overflow-wrap: anywhere;
}

.client-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}

.client-step {
  min-height: 190px;
  padding: 28px;
  border-right: 1px solid var(--border);
  background: var(--panel-muted);
}

.client-step:last-child {
  border-right: 0;
}

.client-step > span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.client-step h3 {
  margin: 24px 0 9px;
  font-size: 15px;
}

.client-step p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.client-warning {
  margin-top: 18px;
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  color: #d8c89b;
  border: 1px solid #504629;
  background: #211d10;
  font-size: 10px;
  line-height: 1.5;
}

.client-code {
  margin-top: 36px;
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--panel-muted);
}

.client-code h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.client-code p {
  color: var(--muted);
  font-size: 11px;
}

.client-code input {
  width: min(360px, 100%);
  height: 52px;
  margin-top: 12px;
  padding: 0 16px;
  color: var(--cyan);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: #07101c;
  font: 700 20px/1 Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .pairing-panel,
  .client-hero,
  .client-steps {
    grid-template-columns: 1fr;
  }

  .pairing-actions {
    flex-direction: column;
  }

  .client-step {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .client-step:last-child {
    border-bottom: 0;
  }
}
