:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #647084;
  --line: #dbe2ec;
  --soft: #eef4fb;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #0f766e;
  --warning: #b45309;
  --danger: #b91c1c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 18px 50px rgba(20, 33, 61, 0.08);
}

.dashboard-card {
  max-width: 860px;
  padding: 0;
  overflow: hidden;
}

.logo {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 24px;
  color: var(--text);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 24px 28px;
}

.dashboard-header .logo {
  margin-bottom: 0;
}

.account {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-email {
  color: var(--muted);
  font-size: 14px;
}

.dashboard-content {
  padding: 28px;
}

h1 {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.15;
}

.dashboard-title {
  margin-bottom: 8px;
}

.lead {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.5;
}

.button,
.secondary-button {
  display: inline-block;
  width: 100%;
  border-radius: 12px;
  padding: 13px 17px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.button:hover {
  background: var(--primary-dark);
}

.secondary-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
}

.secondary-button:hover {
  background: var(--soft);
}

.small-button {
  width: auto;
  min-width: 96px;
  padding: 10px 14px;
  font-size: 14px;
}

.card form + form,
.card form + .secondary-button {
  margin-top: 12px;
}

.form-section {
  margin-top: 22px;
}

.secondary-actions {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.verify-hint {
  margin-top: 0;
  margin-bottom: 22px;
}

label {
  display: block;
  margin-bottom: 18px;
  color: var(--text);
  font-weight: 700;
}

.readonly-value {
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  background: var(--soft);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.readonly-value strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  overflow-wrap: anywhere;
}

input,
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  background: #ffffff;
  color: var(--text);
  font-size: 16px;
}

textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.copy-status {
  min-height: 20px;
  margin: 10px 0 18px;
  color: var(--success);
  font-size: 14px;
}

.error {
  margin: 0 0 18px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fef2f2;
  color: var(--danger);
}

.notice {
  margin: 0 0 18px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px 14px;
  background: #eff6ff;
  color: #1d4ed8;
}

.panel {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: #ffffff;
}

.panel-title {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  background: #e6f6f2;
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
}

.status-pill.inactive {
  background: #fff7ed;
  color: var(--warning);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 22px;
}

.steps {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.actions-row {
  display: flex;
  gap: 12px;
}

.actions-row .button,
.actions-row .secondary-button {
  flex: 1;
}

@media (max-width: 680px) {
  .page {
    align-items: flex-start;
    padding: 18px;
  }

  .card {
    padding: 24px;
  }

  .dashboard-card {
    padding: 0;
  }

  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .account {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .small-button {
    width: 100%;
  }

  .dashboard-content {
    padding: 22px;
  }

  h1 {
    font-size: 28px;
  }

  .actions-row {
    flex-direction: column;
  }
}
