:root {
  --olive: #4A4F33;
  --blush: #F6EFE3;
  --gold: #B08D3E;
  --cream: #F6F2E8;
  --white: #FAF7F0;
  --olive-soft: #6F7458;
  --ink: #3D422F;
  --line: #E5DECB;
  --muted: #A8A28C;
  --serif: 'Cormorant Garamond', Georgia, 'Palatino Linotype', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { background: var(--blush); font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
#app { max-width: 440px; margin: 0 auto; padding: 24px 16px 48px; }

.wordmark { display: flex; flex-direction: column; align-items: center; padding: 18px 0 6px; user-select: none; }
.wordmark .olive-title { font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: .38em; color: var(--olive); padding-left: .38em; margin-top: 4px; }
.wordmark .olive-sub { font-size: 9px; font-weight: 500; letter-spacing: .3em; color: var(--gold); padding-left: .3em; margin-top: 2px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 26px; margin-top: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(74,79,51,.08); }
.pad { padding: 18px 26px 30px; }

.stepper { display: block; width: 100%; max-width: 340px; margin: 14px auto 0; }

.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .28em; color: var(--gold); text-align: center; }
h1 { font-family: var(--serif); font-weight: 600; color: var(--olive); font-size: 32px; line-height: 1.15; text-align: center; margin-top: 14px; }
h1 em { font-style: italic; }
h2 { font-family: var(--serif); font-weight: 600; color: var(--olive); font-size: 25px; }
.sub { font-size: 14px; line-height: 1.6; color: var(--olive-soft); margin-top: 7px; }
.center { text-align: center; }

.trust { display: flex; justify-content: center; gap: 22px; margin: 22px 0 26px; }
.trust .t { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; color: var(--olive-soft); letter-spacing: .04em; }
.trust svg { color: var(--gold); }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: none; cursor: pointer; border-radius: 999px; font-family: var(--sans); transition: opacity .15s; }
.btn:disabled { opacity: .35; cursor: default; }
.btn-primary { background: var(--olive); color: var(--white); padding: 14px 0; font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.btn-ghost { background: transparent; color: var(--olive-soft); border: 1.5px solid var(--line); padding: 12px 0; font-size: 14px; font-weight: 500; }
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

.notice { margin-top: 16px; border-radius: 12px; padding: 12px 16px; font-size: 13px; line-height: 1.5; background: rgba(176,141,62,.12); color: #7A6428; }

.photo-btn { width: 100%; border: 1.8px dashed var(--gold); background: var(--cream); border-radius: 18px; padding: 30px 0; display: flex; flex-direction: column; align-items: center; gap: 9px; cursor: pointer; font-family: var(--sans); }
.photo-btn .big { font-size: 14px; font-weight: 600; color: var(--olive); }
.photo-btn .small { font-size: 11.5px; color: var(--olive-soft); }
.photo-secondary { width: 100%; border: 1.5px solid var(--line); background: var(--white); border-radius: 18px; padding: 15px 0; display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--olive); font-family: var(--sans); }
.photo-wrap { display: flex; flex-direction: column; align-items: center; margin-top: 18px; }
.photo-wrap img { max-height: 260px; border-radius: 18px; border: 2px solid var(--gold); display: block; }
.link-row { display: flex; gap: 18px; margin-top: 12px; }
.link { background: none; border: none; cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--olive-soft); text-decoration: underline; font-family: var(--sans); }

.camera-box { border: 2px solid var(--gold); border-radius: 18px; overflow: hidden; background: #1a1a14; margin-top: 18px; }
.camera-box video { width: 100%; display: block; transform: scaleX(-1); }
.camera-actions { display: flex; gap: 10px; margin-top: 12px; }
.camera-actions .btn { flex: 1; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--sans); }
.consent .box { width: 20px; height: 20px; border-radius: 6px; border: 1.6px solid #C9C2AC; flex: none; margin-top: 2px; display: flex; align-items: center; justify-content: center; }
.consent.on .box { background: var(--olive); border-color: var(--olive); color: var(--white); }
.consent .txt { font-size: 12px; line-height: 1.6; color: var(--olive-soft); }

.tcard { width: 100%; display: flex; gap: 13px; align-items: flex-start; text-align: left; border-radius: 16px; padding: 14px 15px; background: var(--white); border: 1.8px solid var(--line); cursor: pointer; font-family: var(--sans); transition: border-color .15s, background .15s; }
.tcard.on { border-color: var(--olive); background: var(--cream); }
.tcard .ticon { color: var(--gold); flex: none; margin-top: 2px; }
.tcard .tname { font-size: 14.5px; font-weight: 600; color: var(--olive); }
.tcard .tag { font-size: 9px; font-weight: 700; letter-spacing: .08em; color: var(--gold); border: 1px solid var(--gold); border-radius: 4px; padding: 2px 6px; margin-left: 8px; vertical-align: 2px; }
.tcard .tblurb { font-size: 12.5px; line-height: 1.45; color: var(--olive-soft); margin-top: 4px; }
.tcard .tick { width: 20px; height: 20px; border-radius: 50%; border: 1.6px solid #C9C2AC; flex: none; margin-top: 3px; display: flex; align-items: center; justify-content: center; color: var(--white); }
.tcard.on .tick { background: var(--olive); border-color: var(--olive); }
.count { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 12px; }
.count.warn { color: var(--gold); }

.field { margin-top: 15px; }
.field label { display: block; font-size: 11px; font-weight: 500; color: var(--olive-soft); letter-spacing: .05em; margin-bottom: 6px; }
.field label b { color: var(--gold); font-weight: 600; }
.field input { width: 100%; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); padding: 13px 15px; font-size: 15px; color: var(--olive); font-family: var(--sans); outline: none; transition: border-color .15s; }
.field input:focus { border-color: var(--gold); }
.row2 { display: flex; gap: 10px; }
.row2 .field { flex: 1; }
.micro { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 11.5px; line-height: 1.55; color: var(--olive-soft); }
.micro svg { color: var(--gold); flex: none; margin-top: 2px; }

.analyzing { display: flex; flex-direction: column; align-items: center; padding: 30px 26px 46px; }
.analyzing .face { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--gold); animation: softPulse 2s ease-in-out infinite; }
.analyzing .stage { font-family: var(--serif); font-style: italic; color: var(--olive); font-size: 20px; margin-top: 26px; text-align: center; }
.shimmer { width: 220px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 22px; }
.shimmer i { display: block; height: 100%; width: 34%; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: oliveShimmer 1.4s linear infinite; }
.tiny { font-size: 11px; color: var(--muted); margin-top: 18px; text-align: center; }

.panelgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.panel { position: relative; border-radius: 16px; overflow: hidden; }
.panel img { width: 100%; display: block; }
.panel.now { border: 2px solid var(--line); }
.panel.map { border: 2px solid var(--gold); }
.chip { position: absolute; top: 8px; left: 8px; font-size: 9px; font-weight: 700; letter-spacing: .1em; color: var(--white); padding: 4px 8px; border-radius: 6px; }
.panel.now .chip { background: rgba(74,79,51,.85); }
.panel.map .chip { background: rgba(176,141,62,.92); }
.zone { position: absolute; border-radius: 50%; border: 1.5px solid var(--gold); background: rgba(176,141,62,.18); box-shadow: 0 0 14px rgba(176,141,62,.45); pointer-events: none; }
.zone i { position: absolute; top: -6px; left: -6px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); color: var(--white); font-size: 9px; font-weight: 700; font-style: normal; display: flex; align-items: center; justify-content: center; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 9px; font-size: 10.5px; color: var(--olive-soft); }
.legend b { color: var(--gold); }
.caption { font-size: 10px; color: var(--muted); margin-top: 5px; }
.pull { font-family: var(--serif); font-style: italic; color: var(--olive); font-size: 17.5px; line-height: 1.45; text-align: center; margin-top: 18px; padding: 0 6px; }

.obs { background: var(--cream); border-radius: 16px; padding: 15px 18px; margin-top: 20px; }
.obs .lab, .lab { font-size: 9.5px; font-weight: 700; letter-spacing: .16em; color: var(--gold); margin-bottom: 8px; }
.obs .o { display: flex; gap: 10px; padding: 4px 0; font-size: 13.5px; line-height: 1.55; }
.obs .o svg { color: var(--gold); flex: none; margin-top: 4px; }

.treat { border: 1.5px solid var(--line); border-radius: 16px; padding: 15px 18px; margin-top: 13px; background: var(--white); }
.treat .name { font-family: var(--serif); font-weight: 600; color: var(--olive); font-size: 19px; }
.rowlab { padding: 8px 0 2px; }
.rowlab .k { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; margin-bottom: 4px; }
.rowlab .v { font-size: 13.5px; line-height: 1.6; color: var(--ink); }

.also { background: var(--cream); border-radius: 16px; padding: 13px 16px; margin-top: 10px; }
.also .n { font-size: 14px; font-weight: 600; color: var(--olive); }
.also .w { font-size: 12.5px; line-height: 1.55; color: var(--olive-soft); margin-top: 3px; }

.oliveview { background: var(--olive); padding: 22px 26px; margin-top: 22px; }
.oliveview .lab { color: var(--gold); }
.oliveview .sum { font-family: var(--serif); font-style: italic; color: var(--white); font-size: 18px; line-height: 1.45; margin-top: 8px; }
.oliveview .note { font-size: 12.5px; line-height: 1.6; color: #D9D4BE; margin-top: 10px; }

.cta { padding: 22px 26px 8px; display: flex; flex-direction: column; gap: 10px; }
.cta a { text-decoration: none; }
.startover { align-self: center; margin-top: 4px; }
.disclaimer { font-size: 10.5px; line-height: 1.6; color: var(--muted); text-align: center; padding: 18px 26px 30px; }
.footer-note { text-align: center; font-size: 11px; color: var(--muted); margin-top: 18px; }

@keyframes oliveShimmer { 0% { transform: translateX(-110%);} 100% { transform: translateX(320%);} }
@keyframes softPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(176,141,62,.35);} 50% { box-shadow: 0 0 0 12px rgba(176,141,62,0);} }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: translateY(0);} }
.fade-up { animation: fadeUp .5s ease both; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
