:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --ink: #172025;
  --muted: #63707a;
  --accent: #fc4c02;
  --accent-strong: #c73b00;
  --green: #136f4b;
  --border: rgba(23, 32, 37, 0.14);
  --shadow: 0 22px 60px rgba(23, 32, 37, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

.connect-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px 16px;
}

.connect-panel {
  width: min(680px, 100%);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.eyebrow,
.label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 10px 0 12px;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: 0;
}

.intro-copy {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.info-grid > div,
.permission-row {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfc;
}

.info-grid strong {
  display: block;
  margin-top: 5px;
}

.permission-section {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.permission-row {
  display: grid;
  gap: 5px;
}

.permission-row span,
.notes-section,
.message {
  color: var(--muted);
  line-height: 1.55;
}

.notes-section {
  padding-top: 2px;
  font-size: 14px;
}

.notes-section p {
  margin: 8px 0;
}

.actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

.button-primary {
  color: #fff;
  background: var(--accent);
}

.button-primary:not(:disabled):hover {
  background: var(--accent-strong);
}

.message {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(23, 32, 37, 0.06);
}

.message.error {
  color: #8c2f39;
  background: rgba(140, 47, 57, 0.1);
}

.message.success {
  color: var(--green);
  background: rgba(19, 111, 75, 0.1);
}

@media (max-width: 620px) {
  .connect-panel {
    padding: 22px;
  }

  h1 {
    font-size: 31px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    justify-content: stretch;
  }

  .button {
    width: 100%;
  }
}
