:root {
  --green: #638a25;
  --green-dark: #486719;
  --green-bright: #75b900;
  --green-soft: #f0f4e9;
  --ink: #111510;
  --navy: #202b31;
  --muted: #626a60;
  --line: #dfe3da;
  --white: #fff;
  --danger: #a52a2a;
  --shadow: 0 18px 50px rgba(18, 25, 15, .09);
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; border-top: 7px solid #090d0a; font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--ink); background: linear-gradient(180deg, #f4f6f1 0, #fff 32rem); }
body::before { content: ""; position: fixed; z-index: -1; inset: 7px 0 auto; height: 150px; pointer-events: none; background: linear-gradient(100deg, rgba(99,138,37,.1), transparent 55%); }
a { color: var(--green-dark); }
button, input, select, textarea { font: inherit; }
button, .choice, .pill { -webkit-tap-highlight-color: transparent; }
.app-shell { width: min(100% - 32px, 980px); margin: 0 auto; padding: 22px 0 48px; position: relative; }
.brand, .admin-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 82px; margin-bottom: 0; padding: 12px 25px; border-bottom: 4px solid var(--green); background: #fff; box-shadow: 0 8px 24px rgba(18,25,15,.07); }
.brand-mark { display: inline-flex; align-items: center; gap: 15px; color: var(--navy); text-decoration: none; }
.brand-mark img { display: block; width: 174px; height: 58px; object-fit: contain; }
.brand-mark .product-name { padding-left: 14px; border-left: 1px solid var(--line); color: var(--green-dark); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.secure-note { font-size: .82rem; color: var(--muted); }
.secure-note::before { content: "●"; color: var(--green); margin-right: 7px; }
.form-card, .admin-card, .admin-content { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: clamp(24px, 5vw, 54px); box-shadow: var(--shadow); }
.form-card { border-top: 0; }
.progress-head { display: flex; justify-content: space-between; color: var(--muted); font-size: .82rem; font-weight: 650; margin-bottom: 9px; }
.progress { height: 5px; overflow: hidden; background: var(--green-soft); margin-bottom: 42px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--green-bright)); transition: width .25s ease; }
.step-copy { max-width: 650px; margin-bottom: 32px; }
.eyebrow { display: inline-block; width: fit-content; padding: 6px 10px; color: #fff; background: var(--green); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; font-weight: 800; margin: 0 0 14px; }
h1 { color: var(--navy); font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.06; margin: 0 0 14px; }
h2 { font-size: 1.12rem; margin: 38px 0 14px; }
.step-copy > p:last-child, .success > p { color: var(--muted); font-size: 1.02rem; line-height: 1.65; margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; font-size: .9rem; font-weight: 700; margin: 18px 0; }
.field em, legend em { color: var(--green); font-style: normal; }
.field small { color: var(--muted); font-weight: 450; }
input, select, textarea { width: 100%; border: 1px solid #ccd2c7; border-radius: 4px; padding: 13px 14px; color: var(--ink); background: #fff; transition: border-color .18s, box-shadow .18s; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(99,138,37,.13); }
fieldset { border: 0; margin: 30px 0; padding: 0; }
legend { font-size: .94rem; font-weight: 800; margin-bottom: 14px; }
legend small { color: var(--muted); font-weight: 500; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.choice { position: relative; display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--line); border-radius: 4px; padding: 15px; cursor: pointer; background: #fff; transition: .18s ease; }
.choice:hover { border-color: #9eb78a; transform: translateY(-1px); }
.choice.selected { border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.choice input, .pill input { position: absolute; opacity: 0; pointer-events: none; }
.choice .checkmark { width: 20px; height: 20px; flex: 0 0 auto; border: 1.5px solid #9ca997; border-radius: 6px; background: white; position: relative; }
.choice input[type=radio] + .checkmark { border-radius: 50%; }
.choice.selected .checkmark { border-color: var(--green); background: var(--green); }
.choice.selected .checkmark::after { content: "✓"; color: #fff; position: absolute; inset: -2px 0 0; text-align: center; font-weight: 900; font-size: .84rem; }
.choice b, .choice small { display: block; }
.choice b { font-size: .91rem; }
.choice small { color: var(--muted); margin-top: 4px; line-height: 1.35; }
.refinement { background: #f7f8f5; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 3px; padding: 18px; margin: 15px 0; }
.pill-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill span { display: block; padding: 9px 12px; border: 1px solid var(--line); border-radius: 99px; background: white; color: var(--muted); font-size: .82rem; font-weight: 650; }
.pill input:checked + span { color: var(--green-dark); background: var(--green-soft); border-color: var(--green); }
.field.compact { margin-bottom: 0; }
.actions { display: flex; justify-content: space-between; gap: 14px; align-items: center; border-top: 1px solid var(--line); margin-top: 34px; padding-top: 24px; }
.button, button { border: 0; cursor: pointer; font-weight: 800; border-radius: 999px; padding: 13px 21px; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 18px; text-transform: uppercase; letter-spacing: .02em; font-size: .82rem; }
.button.primary, .admin-card button, .status-form button { background: linear-gradient(90deg, var(--green), #769d34); color: #fff; box-shadow: 0 7px 20px rgba(73,103,25,.2); }
.button.primary:hover, .admin-card button:hover { background: var(--green-dark); }
.button.secondary { border: 1px solid var(--green); color: var(--green-dark); background: #fff; }
button:disabled { opacity: .65; cursor: wait; }
.form-error { min-height: 22px; color: var(--danger); font-size: .86rem; font-weight: 650; margin-top: 14px; }
.privacy-copy { color: var(--muted); line-height: 1.55; font-size: .82rem; margin: 20px 0 0; }
.review-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 28px; row-gap: 3px; margin: 0 0 24px; padding: 13px 15px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 3px; background: #f7f8f5; }
.review-row span { grid-column: 1; color: var(--muted); font-size: .72rem; }
.review-row b { grid-column: 1; min-width: 0; overflow-wrap: anywhere; font-size: .9rem; }
.review-row button { grid-column: 2; grid-row: 1 / 3; justify-self: end; padding: 4px 7px; border: 1px solid var(--line); background: #fff; color: var(--green-dark); box-shadow: none; font-size: .7rem; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
footer { color: var(--muted); text-align: center; font-size: .78rem; margin-top: 24px; }
.success { text-align: center; padding-block: 70px; }
.success-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 2rem; font-weight: 900; margin: 0 auto 22px; box-shadow: 0 0 0 10px var(--green-soft); }
.success > p { max-width: 560px; margin: 0 auto; }
.reference { display: inline-grid; gap: 4px; background: var(--green-soft); border-radius: 12px; padding: 12px 24px; margin: 28px auto; }
.reference span { font-size: .72rem; color: var(--muted); }
.success .button { display: flex; width: fit-content; margin: 0 auto; }
.loading, .message-page { padding: 80px 20px; text-align: center; color: var(--muted); }

.admin-login { width: min(100% - 32px, 460px); margin: 8vh auto; }
.admin-login > .brand-mark { margin-bottom: 30px; }
.admin-card { display: grid; gap: 15px; }
.admin-card h1 { font-size: 2rem; }
.admin-card label { display: grid; gap: 8px; font-size: .86rem; font-weight: 750; }
.admin-shell { width: min(100% - 32px, 1120px); margin: 0 auto; padding: 28px 0 60px; position: relative; }
.admin-header { margin-bottom: 24px; }
.admin-header form { margin: 0; }
.link-button, .back { color: var(--green-dark); background: transparent; box-shadow: none; text-decoration: none; padding: 8px; }
.title-row { display: flex; justify-content: space-between; align-items: center; }
.title-row h1 { margin-bottom: 0; }
.count { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); font-weight: 850; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 18px; }
.filter { color: var(--muted); text-decoration: none; font-size: .8rem; font-weight: 750; border: 1px solid var(--line); border-radius: 99px; padding: 7px 11px; }
.filter.active { background: var(--green); border-color: var(--green); color: white; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { background: #f6f9f4; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
td { font-size: .86rem; }
td a { font-weight: 800; text-decoration: none; }
td small { display: block; color: var(--muted); margin-top: 4px; }
.status { display: inline-block; border-radius: 99px; padding: 5px 9px; color: var(--green-dark); background: var(--green-soft); font-size: .72rem; font-weight: 750; white-space: nowrap; }
.status-closed { background: #eee; color: #555; }
.status-won { background: #ddf5de; color: #1f6327; }
.empty { color: var(--muted); text-align: center; padding: 50px; }
.quick-details { min-width: 112px; }
.quick-details summary { color: var(--green-dark); cursor: pointer; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.quick-panel { width: min(520px, 74vw); margin-top: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf7; box-shadow: 0 12px 30px rgba(35,65,16,.1); }
.quick-panel h3 { margin: 0 0 12px; font-size: 1rem; }
.quick-panel dl { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 0; }
.quick-panel dl div { min-width: 0; padding: 9px; border-radius: 8px; background: #fff; }
.quick-panel dt { color: var(--muted); font-size: .68rem; margin-bottom: 4px; }
.quick-panel dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; font-size: .8rem; }
.quick-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; }
.quick-actions a { font-size: .78rem; }
.quick-actions form { margin: 0; }
.small-action { padding: 6px 9px; background: var(--green-soft); color: var(--green-dark); box-shadow: none; font-size: .72rem; }
.detail { max-width: 900px; margin: 0 auto; }
.detail > h1 { margin-bottom: 25px; }
.status-form { display: flex; align-items: end; gap: 12px; padding: 16px; background: var(--green-soft); border-radius: 13px; }
.status-form label { display: grid; gap: 6px; flex: 1; font-size: .8rem; font-weight: 750; }
.status-form select { background: white; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.detail-item { background: white; padding: 15px; }
.detail-item dt { color: var(--muted); font-size: .72rem; margin-bottom: 5px; }
.detail-item dd { margin: 0; white-space: pre-wrap; line-height: 1.45; font-size: .88rem; }
.note-form { display: grid; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #f8faf7; }
.note-form > label:first-of-type { display: grid; gap: 7px; font-size: .82rem; font-weight: 750; }
.note-form button { justify-self: start; background: var(--green); color: #fff; }
.complete-check { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .8rem; cursor: pointer; }
.complete-check input { width: 18px; height: 18px; accent-color: var(--green); }
.notes-list { display: grid; gap: 9px; list-style: none; margin: 14px 0 0; padding: 0; }
.note-entry, .notes-empty { padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.note-entry.completed { border-left: 4px solid var(--green); }
.note-entry > div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .7rem; }
.note-entry.completed > div span { color: var(--green-dark); font-weight: 800; }
.note-entry p { margin: 8px 0 0; white-space: pre-wrap; line-height: 1.45; font-size: .86rem; }
.notes-empty { color: var(--muted); font-size: .82rem; }
.record-actions { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); margin-top: 35px; padding-top: 18px; }
.record-actions form { margin: 0; }
.danger-button { padding: 8px 10px; border: 1px solid #e7c7c7; background: #fff7f7; color: #8b2525; box-shadow: none; font-size: .75rem; }
.deleted-banner { padding: 10px 13px; border-radius: 9px; background: #fff1df; color: #7d4b0c; font-size: .82rem; font-weight: 700; }

@media (max-width: 660px) {
  .app-shell, .admin-shell { width: min(100% - 20px, 880px); padding-top: 17px; }
  .secure-note { display: none; }
  .form-card, .admin-content { border-radius: 16px; padding: 22px 17px; }
  .progress { margin-bottom: 30px; }
  .choice-grid, .form-grid, .detail-grid { grid-template-columns: 1fr; }
  .choice { padding: 14px 12px; }
  .actions .button { flex: 1; }
  .privacy-copy { font-size: .78rem; }
  .admin-content { padding-inline: 12px; }
  th:nth-child(2), td:nth-child(2) { display: none; }
  .status-form { align-items: stretch; flex-direction: column; }
  .quick-panel { width: 76vw; }
  .quick-panel dl { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
