:root {
  --green-900: #0d2b21;
  --green-700: #1f6f4a;
  --green-500: #2e9e63;
  --green-100: #dff3e7;
  --ink: #14201a;
  --paper: #f6faf7;
  --card: #ffffff;
  --danger: #b3401f;
  --radius: 18px;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
}

.hero {
  background: linear-gradient(150deg, var(--green-900), var(--green-700));
  color: #fff;
  border-radius: 28px;
  padding: 40px 24px 32px;
  text-align: center;
}

.hero h1 { font-size: 2rem; margin: 0 0 8px; line-height: 1.15; }
.hero p { margin: 0 0 24px; opacity: .85; }

.btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .06s ease, opacity .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green-500); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--green-500); color: var(--green-700); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; }
.btn[disabled] { opacity: .5; cursor: default; }

.screen-title { text-align: center; margin: 8px 0 4px; font-size: 1.25rem; }
.screen-sub { text-align: center; margin: 0 0 20px; opacity: .65; font-size: .95rem; }

.chip-grid { display: grid; gap: 10px; margin-bottom: 20px; }
.chip {
  background: var(--card);
  border: 2px solid #e2ece5;
  border-radius: var(--radius);
  padding: 16px;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.chip small { display: block; opacity: .55; margin-top: 2px; font-size: .8rem; }
.chip.selected { border-color: var(--green-500); background: var(--green-100); }

.chat-bubble {
  align-self: flex-start;
  max-width: 88%;
  background: var(--card);
  border-radius: 4px 18px 18px 18px;
  padding: 14px 16px;
  margin: 6px 0;
  box-shadow: 0 1px 3px rgba(13,43,33,.08);
  white-space: pre-wrap;
}
.chat-bubble.mine {
  align-self: flex-end;
  background: var(--green-700);
  color: #fff;
  border-radius: 18px 4px 18px 18px;
}
.chat-log { display: flex; flex-direction: column; flex: 1; margin-bottom: 16px; }

.card {
  background: var(--card);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(13,43,33,.07);
  margin-bottom: 14px;
}
.card h2 { margin: 0 0 4px; font-size: 1.3rem; }
.card .org { opacity: .6; margin: 0 0 14px; }
.meta-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #edf3ee; font-size: .95rem; }
.meta-row span:first-child { opacity: .55; }
.badge {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 12px;
  margin: 4px 6px 4px 0;
}
.badge.warn { background: #fbe9dd; color: var(--danger); }

.stack { display: grid; gap: 10px; }

.share-card {
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 2px 10px rgba(13,43,33,.12);
}

.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.stat {
  background: var(--green-900);
  color: #fff;
  border-radius: 22px;
  padding: 20px;
  text-align: center;
}
.stat b { display: block; font-size: 2.1rem; }
.stat span { opacity: .7; font-size: .85rem; }

.history-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--card); border-radius: 14px; padding: 13px 16px; margin-bottom: 8px;
  font-size: .95rem;
}
.history-item em { font-style: normal; opacity: .55; font-size: .82rem; }
.status-verified { color: var(--green-500); font-weight: 700; }
.status-pending_review { color: #b98a00; }
.status-rejected, .status-accepted { opacity: .5; }

.back-link {
  background: none; border: none; color: var(--green-700); font-weight: 700;
  font-size: .95rem; padding: 4px 0; cursor: pointer; text-align: left; margin-bottom: 8px;
}

.notice {
  background: #fdf3e3; color: #7a5a00; border-radius: 14px;
  padding: 12px 14px; font-size: .9rem; margin-bottom: 14px;
}

input[type=text], input[type=tel], input[type=email] {
  width: 100%; border: 2px solid #e2ece5; border-radius: 14px;
  padding: 14px; font-size: 1rem; margin-bottom: 12px; background: var(--card);
}
input:focus { outline: none; border-color: var(--green-500); }

.footer-note { text-align: center; opacity: .45; font-size: .78rem; margin-top: auto; padding-top: 24px; }
