:root {
  color-scheme: light;
  --bg: #f7fbfa;
  --surface: #fffffd;
  --surface-soft: #eaf8f4;
  --surface-cool: #eef7ff;
  --text: #112a31;
  --muted: #607680;
  --border: #d6e7e3;
  --primary: #0f766e;
  --primary-strong: #07534e;
  --primary-ink: #063635;
  --rose: #ef6f63;
  --amber: #c98d27;
  --sky: #2489b8;
  --green: #39a77a;
  --shadow: 0 26px 80px rgba(11, 52, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fbfefc 0%, var(--bg) 42%, #f4f8ff 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  border-bottom: 1px solid rgba(214, 231, 227, 0.82);
  background: rgba(251, 254, 252, 0.9);
  padding: 0 clamp(18px, 4vw, 56px);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-ink), var(--primary));
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
  color: #fff;
  font-weight: 850;
  font-size: 24px;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav a {
  border-radius: 8px;
  color: var(--muted);
  padding: 9px 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 680;
}

.nav a:hover {
  background: #ecf7f4;
  color: var(--text);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.primary-link,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  padding: 0 15px;
  text-decoration: none;
  font-weight: 760;
  transition:
    transform 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease;
}

.primary-link {
  border: 1px solid var(--primary);
  background: linear-gradient(135deg, var(--primary), #119889);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.24);
  color: #fff;
}

.secondary-button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 253, 0.92);
  box-shadow: 0 12px 28px rgba(17, 42, 49, 0.06);
  color: var(--text);
}

.large {
  min-height: 48px;
  padding: 0 20px;
  font-size: 15px;
}

.primary-link:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-link:hover {
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
}

.secondary-button:hover {
  border-color: rgba(36, 137, 184, 0.35);
  background: #f4fbff;
}

.announcement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-bottom: 1px solid rgba(214, 231, 227, 0.72);
  background: linear-gradient(90deg, #edfdf6, #f4fbff 55%, #fff7f3);
  color: #235a57;
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
}

.announcement span {
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 253, 0.82);
  padding: 4px 8px;
  font-weight: 780;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 122px);
  padding: clamp(58px, 8vw, 94px) clamp(18px, 4vw, 56px) 34px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(
      rgba(251, 254, 252, 0.98),
      rgba(244, 253, 249, 0.9) 45%,
      rgba(247, 251, 250, 0.98)
    ),
    url("/hero-dashboard.png");
  background-repeat: no-repeat;
  background-position: center 390px;
  background-size: 1240px auto;
  filter: saturate(0.92);
  transform: scale(1.04);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.section-heading span,
.preview-copy span,
.final-cta-inner span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 253, 0.82);
  color: var(--primary-strong);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 20px;
  display: grid;
  gap: 2px;
  text-wrap: balance;
  font-size: 72px;
  line-height: 1.02;
}

.hero-title-line {
  display: block;
  word-break: keep-all;
  overflow-wrap: normal;
}

.hero p {
  max-width: 780px;
  margin: 24px auto 0;
  color: #506a72;
  font-size: 19px;
  line-height: 1.85;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 34px auto 0;
}

.hero-stats div,
.feature-card,
.preview-cards article,
.faq details {
  border: 1px solid rgba(214, 231, 227, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 253, 0.86);
  box-shadow: 0 18px 48px rgba(11, 52, 55, 0.07);
}

.hero-stats div {
  padding: 13px;
}

.hero-stats strong,
.hero-stats span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-stats strong {
  font-size: 18px;
}

.hero-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.hero-visual {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 44px auto 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  border: 1px solid rgba(214, 231, 227, 0.94);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 253, 0.88);
  padding: 18px;
}

.strip span {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f3fbf8);
  color: var(--muted);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 760;
}

.section,
.preview-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(58px, 8vw, 92px) clamp(18px, 4vw, 28px);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 20px;
}

.section-heading h2,
.preview-copy h2,
.final-cta h2 {
  margin-top: 14px;
  text-wrap: balance;
  font-size: 46px;
  line-height: 1.08;
}

.section-heading p,
.preview-copy p,
.feature-card p,
.preview-cards p,
.faq p,
.final-cta p,
.site-footer span {
  color: var(--muted);
  line-height: 1.72;
}

.section-heading p,
.preview-copy p,
.final-cta p {
  margin-top: 14px;
}

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

.feature-card {
  padding: 24px;
}

.feature-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--surface-soft), var(--surface-cool));
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 840;
}

.feature-card h3,
.preview-cards h3 {
  margin-top: 20px;
  font-size: 20px;
}

.feature-card p,
.preview-cards p {
  margin-top: 10px;
  font-size: 14px;
}

.preview-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 28px;
}

.preview-copy {
  max-width: 520px;
}

.preview-cards {
  display: grid;
  gap: 14px;
}

.preview-cards article {
  padding: 22px;
}

.preview-cards article:nth-child(2) {
  background: linear-gradient(180deg, #f1fbf7, #fff);
}

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

.faq details {
  padding: 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 780;
}

.faq p {
  margin-top: 12px;
  font-size: 14px;
}

.final-cta {
  max-width: 980px;
  margin: 0 auto clamp(58px, 8vw, 92px);
  padding: 0 clamp(18px, 4vw, 28px);
  text-align: center;
}

.final-cta-inner {
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(234, 248, 244, 0.96), rgba(238, 247, 255, 0.92)),
    #fff;
  box-shadow: var(--shadow);
  padding: clamp(30px, 6vw, 56px);
}

.final-cta .primary-link {
  margin-top: 26px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding: 22px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 253, 0.72);
  font-size: 13px;
}

.load-error {
  display: grid;
  min-height: 100vh;
  place-content: center;
  padding: 24px;
  text-align: center;
}

.load-error p {
  margin-top: 12px;
  color: var(--muted);
}

.activation-modal[hidden] {
  display: none;
}

.activation-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
}

.activation-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 22, 24, 0.46);
  backdrop-filter: blur(12px);
}

.activation-panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid rgba(214, 231, 227, 0.96);
  border-radius: 8px;
  background: #fffffd;
  box-shadow: 0 30px 90px rgba(5, 24, 28, 0.28);
  padding: 28px;
  text-align: center;
}

.activation-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.activation-copy span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  color: var(--primary-strong);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.activation-copy h2 {
  margin-top: 14px;
  font-size: 28px;
  line-height: 1.18;
}

.activation-copy p {
  min-height: 28px;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.activation-copy p[data-tone="success"] {
  color: var(--primary-strong);
  font-weight: 760;
}

.activation-copy p[data-tone="error"] {
  color: #b83a30;
  font-weight: 760;
}

.activation-qr {
  display: grid;
  width: min(300px, 100%);
  min-height: 300px;
  place-items: center;
  margin: 22px auto 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff, #f5fbf9),
    #fff;
  padding: 10px;
}

.activation-qr img {
  display: block;
  width: 280px;
  max-width: 100%;
  height: auto;
}

.qr-loading {
  width: 44px;
  height: 44px;
  border: 4px solid #dbeee9;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.qr-placeholder,
.qr-success {
  display: grid;
  width: 220px;
  height: 220px;
  place-items: center;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 760;
}

.qr-success {
  border-color: rgba(15, 118, 110, 0.28);
  background: var(--surface-soft);
  color: var(--primary-strong);
}

.activation-steps {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--muted);
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
}

.workspace-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f8fcfb 0%, #eef8f5 48%, #f8f7ff 100%);
}

.workspace-header {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  border-bottom: 1px solid rgba(214, 231, 227, 0.86);
  background: rgba(251, 254, 252, 0.92);
  padding: 0 clamp(16px, 4vw, 42px);
  backdrop-filter: blur(18px);
}

.workspace-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.workspace-nav a {
  border-radius: 8px;
  color: var(--muted);
  padding: 9px 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 720;
}

.workspace-nav a:hover {
  background: #edf7f4;
  color: var(--text);
}

.workspace-shell,
.admin-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(20px, 4vw, 42px) 0 56px;
}

.workspace-hero-panel,
.activation-inline,
.metric-panel,
.record-form,
.records-panel,
.admin-login,
.admin-section {
  border: 1px solid rgba(214, 231, 227, 0.94);
  border-radius: 8px;
  background: rgba(255, 255, 253, 0.9);
  box-shadow: 0 18px 54px rgba(11, 52, 55, 0.08);
}

.workspace-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  align-items: stretch;
  gap: 18px;
  padding: clamp(24px, 4vw, 38px);
}

.workspace-kicker,
.panel-heading span,
.activation-inline-copy span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: #f7fffc;
  color: var(--primary-strong);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 840;
  text-transform: uppercase;
}

.workspace-hero-panel h1,
.admin-topline h1,
.admin-login h1 {
  margin-top: 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.workspace-hero-panel p,
.admin-login p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.connection-card {
  display: grid;
  align-content: space-between;
  gap: 22px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(234, 248, 244, 0.88), rgba(238, 247, 255, 0.94)),
    #fff;
  padding: 20px;
}

.connection-card strong {
  display: block;
  margin-top: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(96, 118, 128, 0.2);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.status-pill[data-status="active"],
.status-pill[data-status="activated"],
#connectionStatus[data-status="active"] {
  border-color: rgba(15, 118, 110, 0.28);
  background: var(--surface-soft);
  color: var(--primary-strong);
}

.status-pill[data-status="failed"],
.status-pill[data-status="expired"],
#connectionStatus[data-status="failed"] {
  border-color: rgba(239, 111, 99, 0.34);
  background: #fff3f1;
  color: #b83a30;
}

.button-reset {
  border-style: solid;
  cursor: pointer;
  font-family: inherit;
}

.button-reset:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.compact-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.activation-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  padding: clamp(20px, 4vw, 30px);
}

.activation-inline[hidden] {
  display: none;
}

.activation-inline-copy h2 {
  margin-top: 12px;
  font-size: 32px;
  line-height: 1.12;
}

.activation-inline-copy p,
.review-box p,
.record-item p,
.empty-state,
.admin-login p {
  color: var(--muted);
  line-height: 1.7;
}

.activation-inline-copy p {
  margin-top: 12px;
}

.activation-inline .activation-qr {
  margin: 0;
}

.activation-qr.compact {
  min-height: 260px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 18px;
  margin-top: 18px;
}

.metric-panel,
.record-form,
.records-panel,
.admin-section {
  padding: clamp(18px, 3vw, 24px);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-heading strong {
  color: var(--muted);
  font-size: 13px;
}

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

.metric-grid article {
  min-height: 112px;
  border: 1px solid rgba(214, 231, 227, 0.9);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f6fbf9);
  padding: 16px;
}

.metric-grid article span,
.metric-grid article small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.metric-grid article strong {
  display: block;
  margin: 12px 0 8px;
  overflow-wrap: anywhere;
  font-size: 28px;
  line-height: 1.05;
}

.review-box {
  margin-top: 14px;
  border: 1px solid rgba(36, 137, 184, 0.18);
  border-radius: 8px;
  background: #f5fbff;
  padding: 16px;
}

.review-box p {
  margin-top: 8px;
}

.review-box ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.record-form {
  display: grid;
  gap: 14px;
}

.record-form label {
  display: grid;
  gap: 7px;
  color: #315159;
  font-size: 13px;
  font-weight: 780;
}

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

.record-form input,
.record-form textarea,
.admin-login input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  letter-spacing: 0;
  outline: none;
}

.record-form input,
.admin-login input {
  min-height: 42px;
  padding: 0 12px;
}

.record-form textarea {
  resize: vertical;
  padding: 12px;
}

.record-form input:focus,
.record-form textarea:focus,
.admin-login input:focus {
  border-color: rgba(15, 118, 110, 0.48);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.records-panel {
  margin-top: 18px;
}

.records-list {
  display: grid;
  gap: 10px;
}

.record-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(214, 231, 227, 0.9);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.record-item strong,
.record-item span {
  display: block;
}

.record-item span {
  margin-top: 6px;
  color: #315159;
  line-height: 1.55;
}

.record-item p {
  margin-top: 8px;
  font-size: 14px;
}

.icon-button {
  display: grid;
  width: 36px;
  min-height: 36px;
  place-items: center;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.empty-state {
  margin: 12px 0 0;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  background: #063635;
  box-shadow: 0 16px 40px rgba(5, 24, 28, 0.26);
  color: #fff;
  padding: 11px 14px;
  font-weight: 760;
}

.toast[data-tone="error"] {
  border-color: rgba(239, 111, 99, 0.34);
  background: #7d231c;
}

.admin-login {
  width: min(520px, 100%);
  margin: clamp(40px, 10vw, 110px) auto;
  padding: clamp(24px, 5vw, 38px);
}

.admin-login form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.admin-dashboard {
  display: grid;
  gap: 18px;
}

.admin-dashboard[hidden] {
  display: none;
}

.admin-topline {
  align-items: end;
  margin-bottom: 0;
}

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

.admin-section pre {
  overflow: auto;
  max-height: 280px;
  border: 1px solid rgba(214, 231, 227, 0.9);
  border-radius: 8px;
  background: #f7fbfa;
  color: #315159;
  padding: 14px;
  white-space: pre-wrap;
}

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

.admin-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(214, 231, 227, 0.9);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  h1 {
    font-size: 56px;
  }

  .section-heading h2,
  .preview-copy h2,
  .final-cta h2 {
    font-size: 38px;
  }

  .nav {
    display: none;
  }

  .hero-stats,
  .feature-grid,
  .preview-section,
  .faq-grid,
  .workspace-hero-panel,
  .activation-inline,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

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

  .preview-copy {
    max-width: none;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: auto;
    padding: 12px 14px;
  }

  .workspace-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 14px;
  }

  .workspace-nav {
    width: 100%;
  }

  .workspace-nav a {
    flex: 1;
    text-align: center;
  }

  .brand-text small {
    display: none;
  }

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

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-heading h2,
  .preview-copy h2,
  .final-cta h2 {
    font-size: 30px;
  }

  .hero-actions > * {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid,
  .metric-grid,
  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .connection-card {
    padding: 16px;
  }

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

  .record-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .icon-button {
    width: 100%;
  }

  .activation-panel {
    padding: 24px 18px;
  }
}
