:root {
  --kd-black: #07090d;
  --kd-ink: #15181e;
  --kd-muted: #6b717b;
  --kd-line: #dadddf;
  --kd-surface: #f2f4f5;
  --kd-white: #ffffff;
  --kd-cyan: #36c7dc;
  --kd-violet: #8d43c5;
  --kd-green: #36b37e;
}

body.keryon-diagnostic-page .kp-content-page {
  width: 100%;
  margin: 0;
  padding: 0;
}

body.keryon-diagnostic-page .kp-content-page > article > .kp-kicker,
body.keryon-diagnostic-page .kp-content-page > article > h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.keryon-diagnostic-page .kp-entry-content {
  margin: 0;
}

.kd-portal,
.kd-portal * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.kd-portal {
  width: 100%;
  min-width: 0;
  background: var(--kd-surface);
  color: var(--kd-ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.kd-portal button,
.kd-portal input {
  font: inherit;
}

.kd-portal__intro {
  min-height: 20rem;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.55fr);
  align-items: end;
  gap: 5rem;
  padding: clamp(3.5rem, 7vw, 7rem) max(2rem, calc((100vw - 1440px) / 2)) 3rem;
  background:
    linear-gradient(90deg, rgba(54, 199, 220, 0.1) 1px, transparent 1px) 0 0 / 12.5vw 100%,
    radial-gradient(circle at 72% 20%, rgba(54, 199, 220, 0.15), transparent 25%),
    var(--kd-black);
  color: var(--kd-white);
}

.kd-eyebrow {
  margin: 0 0 1rem;
  color: var(--kd-cyan);
  font-size: 0.66rem;
  font-weight: 800;
}

.kd-portal__intro h2 {
  max-width: 58rem;
  margin: 0;
  font-size: 5.6rem;
  font-weight: 520;
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
}

.kd-portal__intro > p {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  line-height: 1.75;
}

.kd-shell {
  width: min(1440px, calc(100vw - 4rem));
  min-height: 45rem;
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  margin: 2rem auto 5rem;
  border: 1px solid var(--kd-line);
  background: var(--kd-white);
}

.kd-demo-access {
  width: min(1440px, calc(100vw - 4rem));
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 2rem auto -1rem;
  border-left: 3px solid var(--kd-cyan);
  padding: 1rem 1.2rem;
  background: #e7f6f8;
}

.kd-demo-access span,
.kd-demo-access strong,
.kd-demo-access code {
  display: block;
}

.kd-demo-access span {
  color: #286873;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.kd-demo-access strong {
  margin: 0.2rem 0;
  font-size: 0.78rem;
}

.kd-demo-access code {
  color: #286873;
  font-size: 0.68rem;
}

.kd-demo-access__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.kd-demo-access button,
.kd-demo-access a {
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--kd-ink);
  border-radius: 2px;
  padding: 0.6rem 1rem;
  background: var(--kd-ink);
  color: var(--kd-white);
  cursor: pointer;
  font-size: 0.64rem;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  text-transform: uppercase;
}

.kd-demo-access a {
  background: transparent;
  color: var(--kd-ink);
}

.kd-steps {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2rem 1.2rem;
  background: var(--kd-ink);
  color: var(--kd-white);
}

.kd-step {
  position: relative;
  min-height: 6.2rem;
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  border-left: 2px solid rgba(255, 255, 255, 0.14);
  padding: 0.9rem 0 0.9rem 1rem;
  color: rgba(255, 255, 255, 0.36);
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease;
}

.kd-step span {
  grid-row: 1 / 3;
  color: currentColor;
  font-size: 0.62rem;
  font-weight: 800;
}

.kd-step strong {
  font-size: 0.72rem;
  text-transform: uppercase;
}

.kd-step small {
  margin-top: 0.2rem;
  font-size: 0.62rem;
}

.kd-step.is-active {
  border-left-color: var(--kd-cyan);
  background: rgba(255, 255, 255, 0.05);
  color: var(--kd-white);
}

.kd-step.is-complete {
  border-left-color: var(--kd-green);
  color: rgba(255, 255, 255, 0.72);
}

.kd-privacy-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem 0.8rem 0;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

.kd-privacy-note i {
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid var(--kd-green);
  border-radius: 50%;
  box-shadow: 0 0 0.7rem rgba(54, 179, 126, 0.45);
}

.kd-workspace {
  min-width: 0;
  min-height: 45rem;
}

.kd-view {
  min-height: 45rem;
  padding: clamp(2rem, 5vw, 5rem);
  animation: kd-view-in 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.kd-view[hidden] {
  display: none;
}

.kd-view__head {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--kd-line);
  padding-bottom: 0.9rem;
  color: var(--kd-muted);
  font-size: 0.62rem;
  font-weight: 800;
}

.kd-view__head b {
  color: var(--kd-violet);
}

.kd-auth-copy,
.kd-form {
  width: min(100%, 36rem);
}

.kd-auth-copy {
  margin-top: 4rem;
}

.kd-auth-copy h3 {
  margin: 0;
  font-size: 3.8rem;
  font-weight: 540;
  line-height: 1;
  text-transform: uppercase;
}

.kd-auth-copy p {
  max-width: 31rem;
  margin: 1.2rem 0 0;
  color: var(--kd-muted);
  line-height: 1.7;
}

.kd-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 2.5rem;
}

.kd-form label {
  margin-top: 0.7rem;
  color: var(--kd-muted);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.kd-form input {
  width: 100%;
  min-height: 3.6rem;
  border: 1px solid #cfd3d8;
  border-radius: 2px;
  outline: 0;
  padding: 0.8rem 1rem;
  background: var(--kd-white);
  color: var(--kd-ink);
  font-size: 0.95rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.kd-form input:focus {
  border-color: var(--kd-violet);
  box-shadow: 0 0 0 3px rgba(141, 67, 197, 0.12);
}

.kd-form .kd-code-input {
  font-size: 1.65rem;
  font-variant-numeric: tabular-nums;
}

.kd-button {
  min-height: 3.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--kd-ink);
  border-radius: 2px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.kd-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.kd-button:focus-visible,
.kd-text-button:focus-visible {
  outline: 2px solid var(--kd-cyan);
  outline-offset: 3px;
}

.kd-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.kd-button--primary,
.kd-button--connect {
  margin-top: 1.25rem;
  background: var(--kd-ink);
  color: var(--kd-white);
}

.kd-button i {
  position: relative;
  width: 1.7rem;
  height: 1px;
  display: block;
  background: currentColor;
}

.kd-button i::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.kd-button.is-loading i {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  background: transparent;
  animation: kd-spin 700ms linear infinite;
}

.kd-button.is-loading i::after {
  display: none;
}

.kd-text-button {
  min-height: 2.75rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--kd-muted);
  cursor: pointer;
  font-size: 0.64rem;
  font-weight: 750;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.kd-form__message {
  border-left: 3px solid var(--kd-cyan);
  margin: 0.6rem 0 0;
  padding: 0.8rem 1rem;
  background: #eaf7f9;
  color: #1b6570;
  font-size: 0.72rem;
  font-weight: 700;
}

.kd-form__message.is-error {
  border-color: #c64252;
  background: #fae9ec;
  color: #8a2632;
}

.kd-form__message.is-success {
  border-color: var(--kd-green);
  background: #e8f6ef;
  color: #1f674a;
}

.kd-view--dashboard {
  padding: clamp(1.5rem, 3vw, 3rem);
}

.kd-dashboard-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--kd-line);
  padding-bottom: 1.5rem;
}

.kd-dashboard-head > div:first-child span {
  color: var(--kd-muted);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
}

.kd-dashboard-head h3 {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
  font-weight: 650;
}

.kd-connection {
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--kd-line);
  padding: 0.55rem 0.8rem;
  color: var(--kd-muted);
  font-size: 0.62rem;
  font-weight: 750;
  text-transform: uppercase;
}

.kd-connection i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #8d949d;
}

.kd-connection--pending i {
  background: #d1982e;
  animation: kd-pulse 900ms ease-in-out infinite alternate;
}

.kd-connection--online i {
  background: var(--kd-green);
  box-shadow: 0 0 0.7rem rgba(54, 179, 126, 0.55);
}

.kd-health-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 1px;
  margin-top: 1.5rem;
  background: var(--kd-line);
}

.kd-health-card {
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  background: var(--kd-white);
}

.kd-health-card > span,
.kd-health-card small {
  color: var(--kd-muted);
  font-size: 0.58rem;
  font-weight: 750;
  text-transform: uppercase;
}

.kd-health-card > strong {
  font-size: 2.6rem;
  font-weight: 520;
  font-variant-numeric: tabular-nums;
}

.kd-health-card b {
  font-weight: inherit;
}

.kd-health-card--primary {
  align-items: flex-start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.5rem;
  grid-template-rows: auto 1fr;
  background: var(--kd-ink);
  color: var(--kd-white);
}

.kd-health-card--primary > span {
  color: var(--kd-cyan);
}

.kd-health-card--primary > p {
  align-self: end;
  display: grid;
  gap: 0.3rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  line-height: 1.5;
}

.kd-health-card--primary > p b {
  color: var(--kd-white);
  font-size: 0.9rem;
  font-weight: 620;
}

.kd-health-card--primary > p small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.62rem;
  text-transform: none;
}

.kd-status-orb {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 7.5rem;
  height: 7.5rem;
  position: relative;
  align-self: center;
  display: grid;
  place-content: center;
  border-radius: 50%;
  border: 1px solid rgba(95, 216, 236, 0.48);
  background: radial-gradient(circle at 40% 35%, rgba(95, 216, 236, 0.22), rgba(95, 216, 236, 0.04) 58%, transparent 60%);
  box-shadow: inset 0 0 2.2rem rgba(95, 216, 236, 0.08), 0 0 2rem rgba(95, 216, 236, 0.08);
  text-align: center;
}

.kd-status-orb::before,
.kd-status-orb::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.kd-status-orb::before {
  inset: 0.55rem;
  border: 1px dashed rgba(95, 216, 236, 0.34);
  animation: kd-spin 12s linear infinite;
}

.kd-status-orb::after {
  inset: 1.25rem;
  border: 1px solid rgba(95, 216, 236, 0.16);
}

.kd-status-orb i {
  width: 0.8rem;
  height: 0.42rem;
  border-bottom: 2px solid var(--kd-cyan);
  border-left: 2px solid var(--kd-cyan);
  transform: rotate(-45deg);
  margin: 0 auto 0.5rem;
}

.kd-status-orb strong,
.kd-status-orb i {
  position: relative;
  z-index: 1;
}

.kd-status-orb strong {
  color: var(--kd-cyan);
  font-size: 1.1rem;
  font-weight: 520;
}

.kd-health-card--primary[data-kd-status="watch"] .kd-status-orb {
  border-color: rgba(209, 152, 46, 0.6);
  box-shadow: inset 0 0 2.2rem rgba(209, 152, 46, 0.1), 0 0 2rem rgba(209, 152, 46, 0.08);
}

.kd-health-card--primary[data-kd-status="watch"] .kd-status-orb strong {
  color: #efbb58;
}

.kd-health-card--primary[data-kd-status="service"] .kd-status-orb {
  border-color: rgba(220, 87, 87, 0.64);
  box-shadow: inset 0 0 2.2rem rgba(220, 87, 87, 0.1), 0 0 2rem rgba(220, 87, 87, 0.08);
}

.kd-health-card--primary[data-kd-status="service"] .kd-status-orb strong {
  color: #f07b7b;
}

.kd-health-card--primary[data-kd-status="unknown"] .kd-status-orb {
  border-color: rgba(255, 255, 255, 0.24);
  filter: saturate(0.2);
}

.kd-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.6fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.kd-live-panel,
.kd-action-panel {
  border: 1px solid var(--kd-line);
  padding: 1.5rem;
}

.kd-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--kd-line);
  padding-bottom: 1.2rem;
}

.kd-panel-head span,
.kd-panel-head small,
.kd-action-panel__index {
  color: var(--kd-muted);
  font-size: 0.58rem;
  font-weight: 750;
  text-transform: uppercase;
}

.kd-panel-head h4,
.kd-action-panel h4 {
  margin: 0.3rem 0 0;
  font-size: 1.25rem;
  font-weight: 620;
}

.kd-telemetry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.kd-telemetry > div {
  min-height: 6.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--kd-line);
  border-right: 1px solid var(--kd-line);
  padding: 1rem;
}

.kd-telemetry > div:nth-child(3n) {
  border-right: 0;
}

.kd-telemetry span,
.kd-battery-meta span {
  color: var(--kd-muted);
  font-size: 0.6rem;
  font-weight: 700;
}

.kd-telemetry strong {
  min-width: 0;
  font-size: 1.15rem;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.kd-telemetry b {
  font-weight: inherit;
}

.kd-battery-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.kd-battery-meta > div {
  display: grid;
  gap: 0.3rem;
  padding: 0.8rem 1rem;
  background: var(--kd-surface);
}

.kd-battery-meta strong {
  font-size: 0.75rem;
}

.kd-action-panel {
  display: flex;
  flex-direction: column;
  background: #fafbfb;
}

.kd-action-panel > p {
  color: var(--kd-muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.kd-action-panel .kd-support {
  border-left: 2px solid var(--kd-cyan);
  padding-left: 0.7rem;
  font-size: 0.66rem;
}

.kd-action-panel .kd-support.is-warning {
  border-color: #d1982e;
}

.kd-button--connect {
  width: 100%;
}

.kd-consent {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.7rem;
  margin: 1.2rem 0;
  color: var(--kd-muted);
  cursor: pointer;
  font-size: 0.66rem;
  line-height: 1.5;
}

.kd-consent input {
  width: 1rem;
  height: 1rem;
  margin: 0.1rem 0 0;
  accent-color: var(--kd-violet);
}

.kd-button--secondary,
.kd-button--certificate {
  width: 100%;
  background: var(--kd-white);
  color: var(--kd-ink);
}

.kd-button--certificate {
  margin-top: 0.7rem;
  border-color: var(--kd-green);
  background: #e8f6ef;
  color: #1d6849;
}

.kd-button[hidden],
.kd-form__message[hidden] {
  display: none;
}

.kd-analysis-panel {
  margin-top: 1.5rem;
  border: 1px solid var(--kd-line);
  padding: 1.5rem;
  background: var(--kd-white);
}

.kd-cell-analysis,
.kd-event-history {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1rem;
  background: var(--kd-line);
}

.kd-cell-analysis article,
.kd-event-history article {
  min-width: 0;
  min-height: 7rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem;
  background: #f7f8f9;
}

.kd-cell-analysis article > span,
.kd-event-history article > span {
  color: var(--kd-muted);
  font-size: 0.56rem;
  font-weight: 800;
}

.kd-cell-analysis article > strong,
.kd-event-history article > strong {
  font-size: 1.4rem;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.kd-cell-analysis article > strong b,
.kd-event-history article > strong b {
  font-weight: inherit;
}

.kd-cell-analysis article > small,
.kd-event-history article > small {
  color: var(--kd-muted);
  font-size: 0.62rem;
  line-height: 1.45;
}

.kd-cell-analysis article > small b {
  color: var(--kd-ink);
}

.kd-cell-balance[data-kd-balance-status="normal"] {
  border-left: 3px solid var(--kd-green);
  background: #eef8f3;
}

.kd-cell-balance[data-kd-balance-status="watch"] {
  border-left: 3px solid #d1982e;
  background: #fff8e9;
}

.kd-cell-balance[data-kd-balance-status="service"] {
  border-left: 3px solid #c64f5d;
  background: #fff0f2;
}

.kd-event-history article:first-child {
  border-top: 2px solid var(--kd-green);
}

.kd-event-history article[data-kd-error-state="active"] {
  border-top-color: #c64f5d;
  background: #fff0f2;
}

.kd-analysis-note {
  margin: 1rem 0 0;
  border-left: 2px solid var(--kd-cyan);
  padding: 0.75rem 1rem;
  background: #edf7f8;
  color: #4e6168;
  font-size: 0.66rem;
  line-height: 1.6;
}

.kd-history-panel {
  margin-top: 1.5rem;
  border: 1px solid var(--kd-line);
  padding: 1.5rem;
  background: var(--kd-white);
}

.kd-history-list {
  display: grid;
}

.kd-history-list > div {
  min-height: 4.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--kd-line);
  padding: 0.8rem 0;
}

.kd-history-list > div:last-child {
  border-bottom: 0;
}

.kd-history-list > div > div {
  display: grid;
  gap: 0.28rem;
}

.kd-history-list strong {
  color: var(--kd-ink);
  font-size: 0.82rem;
}

.kd-history-list span,
.kd-history-empty {
  color: var(--kd-muted);
  font-size: 0.68rem;
}

.kd-history-list button {
  min-height: 2.55rem;
  border: 1px solid var(--kd-ink);
  border-radius: 0;
  padding: 0.7rem 1rem;
  background: var(--kd-ink);
  color: var(--kd-white);
  cursor: pointer;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.kd-history-list button:hover {
  background: var(--kd-white);
  color: var(--kd-ink);
}

.kd-history-empty {
  margin: 1.2rem 0 0;
}

@keyframes kd-view-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes kd-pulse {
  to { opacity: 0.35; }
}

@media (max-width: 1100px) {
  .kd-shell {
    width: calc(100vw - 2rem);
    grid-template-columns: 13.5rem minmax(0, 1fr);
  }

  .kd-portal__intro {
    padding-inline: 2rem;
  }

  .kd-health-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .kd-health-card--primary {
    grid-column: 1 / -1;
  }

  .kd-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .kd-cell-analysis,
  .kd-event-history {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .kd-portal__intro {
    min-height: 24rem;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 4rem 1rem 2rem;
  }

  .kd-portal__intro h2 {
    font-size: 3rem;
  }

  .kd-portal__intro > p {
    max-width: 35rem;
  }

  .kd-shell {
    width: 100%;
    grid-template-columns: 1fr;
    margin: 0;
    border: 0;
  }

  .kd-demo-access {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    margin: 0;
  }

  .kd-demo-access__actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .kd-steps {
    position: sticky;
    z-index: 5;
    top: 4.6rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-right: 0;
    padding: 0;
  }

  .kd-step {
    min-height: 4rem;
    grid-template-columns: auto 1fr;
    border-left: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.14);
    padding: 0.7rem;
  }

  .kd-step span {
    margin-right: 0.5rem;
  }

  .kd-step small,
  .kd-privacy-note {
    display: none;
  }

  .kd-step.is-active {
    border-bottom-color: var(--kd-cyan);
  }

  .kd-view,
  .kd-view--dashboard {
    min-height: 40rem;
    padding: 2rem 1rem 4rem;
  }

  .kd-auth-copy {
    margin-top: 3rem;
  }

  .kd-auth-copy h3 {
    font-size: 2.8rem;
  }

  .kd-health-card > strong {
    font-size: 2.3rem;
  }

  .kd-dashboard-head {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  .kd-dashboard-head > .kd-text-button {
    grid-column: 1 / -1;
  }

  .kd-health-grid {
    grid-template-columns: 1fr 1fr;
  }

  .kd-health-card--primary {
    grid-column: 1 / -1;
  }

  .kd-health-card {
    min-height: 10rem;
  }

  .kd-telemetry {
    grid-template-columns: 1fr 1fr;
  }

  .kd-telemetry > div,
  .kd-telemetry > div:nth-child(3n) {
    border-right: 1px solid var(--kd-line);
  }

  .kd-telemetry > div:nth-child(2n) {
    border-right: 0;
  }

  .kd-analysis-panel {
    padding: 1rem;
  }
}

@media (max-width: 420px) {
  .kd-portal__intro h2 {
    font-size: 2.45rem;
  }

  .kd-auth-copy h3 {
    font-size: 2.35rem;
  }

  .kd-step {
    grid-template-columns: 1fr;
  }

  .kd-step span {
    display: none;
  }

  .kd-step strong {
    font-size: 0.58rem;
    text-align: center;
  }

  .kd-health-grid,
  .kd-battery-meta,
  .kd-cell-analysis,
  .kd-event-history {
    grid-template-columns: 1fr;
  }

  .kd-health-card--primary {
    grid-template-columns: minmax(0, 1fr) 6.5rem;
  }

  .kd-status-orb {
    width: 6.5rem;
    height: 6.5rem;
  }

  .kd-history-list > div {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kd-view,
  .kd-button,
  .kd-connection--pending i,
  .kd-status-orb::before {
    animation: none !important;
    transition: none !important;
  }
}
