:root {
  color-scheme: dark;
  --bg: #171a21;
  --panel: #242936;
  --panel-edge: #343b4d;
  --text: #f5f7fb;
  --muted: #aeb7c7;
  --accent: #36d399;
  --accent-strong: #20b87d;
  --danger: #ff6b6b;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(135deg, #171a21 0%, #202636 56%, #191f2a 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.connect-shell {
  display: grid;
  min-height: 100%;
  padding: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  place-items: center;
}

.connect-panel {
  width: min(100%, 430px);
  padding: 30px;
  border: 1px solid var(--panel-edge);
  border-radius: 8px;
  background: rgba(36, 41, 54, 0.92);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.app-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #36d399, #68a6ff);
  color: #111821;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0 0 26px;
  font-size: 30px;
  line-height: 1.15;
}

.connect-form {
  display: grid;
  gap: 12px;
}

.connect-form label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.connect-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #485164;
  border-radius: 8px;
  outline: none;
  background: #151922;
  color: var(--text);
  font-size: 18px;
}

.connect-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(54, 211, 153, 0.2);
}

.connect-button {
  min-height: 54px;
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #0d1712;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.connect-button:active {
  transform: translateY(1px);
  background: var(--accent-strong);
}

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

.status-line.error {
  color: var(--danger);
}

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

  h1 {
    font-size: 26px;
  }
}
