:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17211b;
  background: #eef1ee;
  line-height: 1.45;
}

* { box-sizing: border-box; }
body { margin: 0; background: #eef1ee; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.wrap { width: min(780px, 100%); margin: 0 auto; padding: 22px 16px 40px; }
.top { display: flex; justify-content: space-between; align-items: end; padding: 10px 4px 22px; }
.top h1 { margin: 2px 0 0; font-size: clamp(2.2rem, 8vw, 3.4rem); line-height: 1; letter-spacing: -.04em; }
.top p { margin: 8px 0 0; color: #59645e; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #56635b; }

.card { background: #fff; border: 1px solid #dde3de; border-radius: 16px; padding: 18px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(22, 35, 27, .05); }
.card h2 { margin: 0 0 15px; font-size: 1.08rem; }
.intro-card { border-left: 5px solid #202b24; }
.intro-card p { margin: 0; color: #3f4b44; }

label { display: block; margin-bottom: 14px; font-weight: 700; }
.optional { font-weight: 500; color: #79827d; }
input, textarea { width: 100%; margin-top: 6px; padding: 12px 13px; border: 1px solid #bfc8c1; border-radius: 10px; background: #fff; color: #17211b; outline: none; }
input:focus, textarea:focus { border-color: #2d5e3d; box-shadow: 0 0 0 3px rgba(45, 94, 61, .12); }
textarea { min-height: 82px; resize: vertical; }

.question { border-left: 7px solid #b8c0ba; transition: border-color .15s ease; }
.question.safe { border-left-color: #258447; }
.question.stop { border-left-color: #c8353e; }
.q-title { display: flex; gap: 10px; align-items: flex-start; font-weight: 800; margin-bottom: 14px; }
.q-number { display: inline-grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 50%; background: #edf0ed; font-size: .84rem; }
.answer-row, .recheck-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.answer-btn { border: 1px solid transparent; border-radius: 10px; min-height: 50px; padding: 11px 10px; font-weight: 800; cursor: pointer; }
.answer-btn.yes { background: #e4f3e8; color: #175d31; }
.answer-btn.no { background: #fae4e6; color: #9d1d29; }
.answer-btn.active.yes { background: #258447; color: #fff; }
.answer-btn.active.no { background: #c8353e; color: #fff; }

.measure { margin-top: 15px; padding: 14px; background: #fff3f3; border: 1px solid #f1c7ca; border-radius: 12px; }
.measure.hidden { display: none; }
.measure-title { margin: 0 0 4px; font-weight: 900; color: #9d1d29; }
.measure-help { margin: 0 0 12px; color: #734147; font-size: .92rem; }
.checkline { display: flex; gap: 11px; align-items: flex-start; }
.checkline input { width: auto; margin-top: 4px; transform: scale(1.25); }

.primary, .secondary { border: 0; border-radius: 10px; padding: 13px 16px; font-weight: 800; cursor: pointer; }
.primary { width: 100%; background: #202b24; color: #fff; }
.primary:disabled { cursor: wait; opacity: .65; }
.secondary { background: #e7ebe8; color: #253028; }
.status { margin: 12px 0 0; font-weight: 800; }
.status.success { color: #176735; }
.status.error { color: #a51f2c; }
.privacy-note { margin: 12px 0 0; color: #727b75; font-size: .82rem; }

.footer { display: flex; justify-content: space-between; gap: 12px; padding: 8px 4px; color: #727b75; font-size: .82rem; }
.footer a { color: inherit; }

.admin-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.token-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.lmra-item { padding: 14px 0; border-top: 1px solid #e4e8e5; }
.lmra-item:first-child { border-top: 0; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: .75rem; font-weight: 900; background: #e4f3e8; color: #176735; }
.meta { color: #67716b; font-size: .9rem; }
.details { margin-top: 8px; }
.details summary { cursor: pointer; font-weight: 800; }
.detail-row { padding: 9px 0; border-bottom: 1px solid #edf0ee; }
.stop-note { margin-top: 4px; color: #9d1d29; font-weight: 800; }

@media (max-width: 560px) {
  .wrap { padding: 12px 10px 28px; }
  .card { border-radius: 12px; padding: 15px; }
  .answer-row, .recheck-row, .token-row { grid-template-columns: 1fr; }
  .answer-btn { min-height: 48px; }
}
