:root {
  --green: #2e7d32;
  --green-dark: #1b5e20;
  --green-soft: #e8f5e9;
  --yellow: #ffc72c;
  --background: #eef3ed;
  --card: #ffffff;
  --text: #1d1f1d;
  --muted: #5f675f;
  --danger: #b00020;
  --shadow: 0 18px 44px rgba(27, 94, 32, 0.18);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 199, 44, 0.28), transparent 34rem),
    linear-gradient(135deg, #f8fbf7 0%, var(--background) 100%);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.app-card {
  width: min(100%, 460px);
  padding: 30px 24px 26px;
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid rgba(46, 125, 50, 0.12);
}

.app-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.28);
  overflow: hidden;
}

.app-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.subtitle {
  margin: 12px auto 26px;
  max-width: 320px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.button-stack {
  display: grid;
  gap: 14px;
}

.action-button {
  width: 100%;
  min-height: 88px;
  padding: 18px 20px;
  border: 0;
  border-radius: 22px;
  display: grid;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.action-button:active {
  transform: scale(0.985);
}

.action-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  box-shadow: 0 10px 24px rgba(46, 125, 50, 0.28);
}

.secondary-button {
  color: var(--green-dark);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px rgba(46, 125, 50, 0.14);
}

.button-title {
  font-size: 22px;
  font-weight: 850;
}

.button-subtitle {
  font-size: 14px;
  opacity: 0.82;
}

.status {
  min-height: 30px;
  margin: 22px 0 0;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.status.ok {
  color: var(--green-dark);
}

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

@media (display-mode: standalone) {
  .page-shell {
    padding-top: max(22px, env(safe-area-inset-top));
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }
}
