:root {
  --bg: linear-gradient(160deg, #ecf9f2 0%, #f5f8ff 46%, #fdf5ec 100%);
  --card: rgba(255, 255, 255, 0.9);
  --text: #12312a;
  --muted: #5d6c68;
  --accent: #0f6a52;
  --accent-soft: #dbf2ea;
  --border: #d6e3de;
  --secondary: #365f86;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "SF Pro Text", "Avenir Next", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app-shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 14px 40px;
}

.hero {
  padding: 10px 2px 14px;
}

.hero h1 {
  margin: 10px 0 6px;
  font-size: 26px;
  line-height: 1.15;
}

.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 999px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(12, 28, 25, 0.06);
  backdrop-filter: blur(4px);
}

.deadline-card {
  border: 1px solid #b8d7cc;
  background: linear-gradient(160deg, #f4fffb, #ffffff);
}

h2, h3 {
  margin: 0 0 8px;
}

.subtext,
.notice {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

label {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 13px;
  color: var(--muted);
}

input,
button {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 13px;
  font-size: 16px;
}

input {
  background: #fff;
}

button {
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  margin-top: 10px;
}

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

button:active {
  transform: translateY(1px);
}

.grid-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.timeline-item strong {
  display: block;
  font-size: 14px;
}

.timeline-item span {
  font-size: 13px;
  color: var(--muted);
}

.manual-token {
  margin-top: 8px;
}

.manual-token summary {
  cursor: pointer;
  color: var(--secondary);
  font-size: 14px;
}

.install-card ol {
  margin: 6px 0 0 18px;
  padding: 0;
  color: var(--muted);
}

.install-card li {
  margin-bottom: 6px;
  font-size: 14px;
}

.link-btn {
  background: transparent;
  color: var(--secondary);
  border: 1px dashed var(--border);
  margin-top: 4px;
}

.hidden {
  display: none;
}

@media (min-width: 680px) {
  .app-shell {
    padding-top: 28px;
  }

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