:root {
	color-scheme: light;
	--app-paper: #f7f8f1;
	--app-forest: #123d2d;
	--app-sage: #d8ebe2;
	--app-muted: #657168;
	--app-coral: #e56b4c;
	font-family: "DM Sans", "Avenir Next", sans-serif;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(ellipse at 85% 12%, #d8ebe2 0, transparent 38%), var(--app-paper); color: var(--app-forest); }
a { color: inherit; }
button, input { font: inherit; }
.app-shell { display: flex; min-height: 100vh; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px; }
.app-brand { display: block; width: min(190px, 60vw); margin-bottom: 30px; }
.app-brand img { display: block; width: 100%; height: auto; }
.app-card { width: min(100%, 440px); padding: clamp(26px, 7vw, 44px); border: 1px solid rgba(18, 61, 45, .12); background: rgba(255, 255, 255, .86); box-shadow: 0 24px 70px rgba(18, 61, 45, .1); }
.app-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--app-forest); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.app-eyebrow::before { width: 7px; height: 7px; background: var(--app-coral); content: ""; }
h1 { margin: 15px 0 8px; font-family: "Space Grotesk", "Avenir Next", sans-serif; font-size: clamp(34px, 9vw, 44px); font-weight: 600; line-height: 1.05; }
.app-intro { margin: 0 0 28px; color: var(--app-muted); }
.app-field { margin-bottom: 18px; }
.app-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.app-field input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid rgba(18, 61, 45, .24); border-radius: 0; background: white; color: var(--app-forest); }
.app-field input:focus { outline: 3px solid rgba(216, 235, 226, .9); border-color: var(--app-forest); }
.date-wheel { display: flex; gap: 8px; }
.date-wheel select { min-width: 0; min-height: 48px; flex: 1; padding: 8px 10px; border: 1px solid rgba(18, 61, 45, .24); border-radius: 12px; background: white; color: var(--app-forest); font: inherit; scroll-snap-align: center; }
.date-wheel select:focus { outline: 3px solid rgba(216, 235, 226, .9); border-color: var(--app-forest); }
.app-button { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; padding: 12px 18px; border: 1px solid var(--app-forest); background: var(--app-forest); color: white; cursor: pointer; font-weight: 700; }
.app-button:hover { background: #1b553e; }
.app-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 22px; color: var(--app-muted); font-size: 12px; }
.app-divider::before, .app-divider::after { height: 1px; flex: 1; background: rgba(18, 61, 45, .14); content: ""; }
.app-form-title { margin: 0 0 18px; font-family: "Space Grotesk", "Avenir Next", sans-serif; font-size: 20px; font-weight: 600; }
.app-field small { display: block; margin-top: 6px; color: var(--app-muted); font-size: 12px; }
.app-button:focus-visible, a:focus-visible { outline: 3px solid var(--app-coral); outline-offset: 3px; }
.app-button--secondary { background: transparent; color: var(--app-forest); }
.app-button--secondary:hover { background: var(--app-sage); }
.app-feedback { margin: 0 0 20px; padding: 12px 14px; border-left: 3px solid var(--app-coral); background: #fff3ef; color: #71341f; font-size: 14px; }
.app-feedback p { margin: 0; }
.app-account { padding: 12px 0; border-top: 1px solid rgba(18, 61, 45, .12); color: var(--app-muted); font-size: 14px; }
.app-help { margin: 22px 0 0; color: var(--app-muted); font-size: 13px; text-align: center; }
.app-help a { color: var(--app-forest); font-weight: 700; }
.app-back { margin-top: 22px; color: var(--app-muted); font-size: 13px; text-decoration: none; }
.app-back:hover { color: var(--app-forest); text-decoration: underline; }
.app-card--home { width: min(100%, 980px); }
.app-home-notice { margin: 0 0 18px; padding: 12px 14px; border-left: 3px solid var(--app-forest); background: var(--app-sage); font-size: 13px; }
.app-impact-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0 30px; }
.app-impact-summary article { display: grid; min-width: 0; gap: 8px; padding: 14px; border: 1px solid rgba(18, 61, 45, .14); background: rgba(216, 235, 226, .35); }
.app-impact-summary span, .app-mission-capacity, .app-mission-pool, .app-ecoquest-dates { color: var(--app-muted); font-size: 12px; }
.app-impact-summary strong { overflow-wrap: anywhere; font-size: clamp(16px, 4vw, 22px); }
.app-ecoquest-list { display: grid; gap: 18px; }
.app-ecoquest-card { min-width: 0; padding: 18px; border: 1px solid rgba(18, 61, 45, .14); background: rgba(255, 255, 255, .72); }
.app-ecoquest-card h3 { margin: 0 0 8px; font-family: "Space Grotesk", "Avenir Next", sans-serif; font-size: 20px; }
.app-ecoquest-card > p { line-height: 1.55; }
.app-quest-state, .app-participation-state { padding: 10px 12px; background: rgba(216, 235, 226, .5); font-size: 13px; }
.app-mission-card { margin-top: 14px; padding: 16px; border: 1px solid rgba(18, 61, 45, .12); }
.app-mission-card h4 { margin: 0 0 8px; font-size: 16px; }
.app-mission-card > p { line-height: 1.5; }
.app-inline-form .app-button, .app-completion-form .app-button { width: auto; min-height: 42px; margin-top: 12px; padding: 9px 16px; border-radius: 20px; }
.app-completion-form { display: grid; gap: 8px; margin-top: 14px; }
.app-completion-form label { font-size: 13px; font-weight: 700; }
.app-completion-form textarea { width: 100%; padding: 10px 12px; border: 1px solid rgba(18, 61, 45, .24); border-radius: 12px; color: var(--app-forest); font: inherit; resize: vertical; }
.app-empty { padding: 16px; background: rgba(216, 235, 226, .4); color: var(--app-muted); font-size: 14px; }
.rebooter-home-shell { display: block; min-height: 100vh; padding: 0; }
.rebooter-home-shell > .app-brand, .rebooter-home-shell > .app-back { display: none; }
.rebooter-home-shell > .app-card--home { width: 100%; max-width: none; min-height: 100vh; padding: 0; border: 0; background: transparent; box-shadow: none; }
.rebooter-home { width: 100%; }
.rebooter-map-stage { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: #dce8df; }
.rebooter-map { position: absolute; inset: 0; z-index: 0; background: #dce8df; }
.rebooter-map .leaflet-control-attribution { font-size: 10px; }
.rebooter-map-header { position: absolute; z-index: 450; top: max(76px, calc(env(safe-area-inset-top) + 70px)); left: 50%; width: min(90%, 420px); padding: 12px 16px; border: 1px solid rgba(18, 61, 45, .12); border-radius: 18px; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 26px rgba(18, 61, 45, .16); text-align: center; transform: translateX(-50%); }
.rebooter-map-header .app-eyebrow { font-size: 10px; }
.rebooter-map-header h1 { margin: 4px 0 0; font-size: clamp(20px, 5vw, 26px); }
.rebooter-map-controls { position: absolute; z-index: 600; inset: 0; pointer-events: none; }
.rebooter-icon-button { display: grid; place-items: center; overflow: hidden; padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: none; color: var(--app-forest); cursor: pointer; pointer-events: auto; }
.rebooter-map-control { position: absolute; width: clamp(72px, 19vw, 88px); height: clamp(72px, 19vw, 88px); }
.rebooter-map-control img { position: absolute; inset: 0; display: block; width: 100%; max-width: none; height: 100%; object-fit: contain; transform: scale(2.2); mix-blend-mode: multiply; }
.rebooter-map-control--nearby { top: max(14px, env(safe-area-inset-top)); left: max(14px, env(safe-area-inset-left)); }
.rebooter-map-control--stats { top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); }
.rebooter-map-control--menu { bottom: max(24px, calc(env(safe-area-inset-bottom) + 18px)); left: 50%; width: clamp(88px, 23vw, 104px); height: clamp(88px, 23vw, 104px); transform: translateX(-50%); }
.rebooter-map-status { position: absolute; z-index: 400; right: 12px; bottom: max(6px, env(safe-area-inset-bottom)); left: 12px; max-width: min(520px, calc(100% - 24px)); margin: 0 auto; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .9); color: var(--app-muted); font-size: 11px; text-align: center; pointer-events: none; }
.rebooter-map-feedback { position: absolute; z-index: 550; top: 150px; right: 14px; left: 14px; max-width: 520px; margin: auto; }
.rebooter-map-panel { position: absolute; z-index: 650; width: min(360px, calc(100% - 28px)); max-height: min(55vh, 480px); overflow-y: auto; padding: 18px; border: 1px solid rgba(18, 61, 45, .16); border-radius: 20px; background: rgba(255, 255, 255, .97); box-shadow: 0 12px 36px rgba(18, 61, 45, .24); }
.rebooter-map-panel[hidden] { display: none; }
.rebooter-map-panel h2 { margin: 0 0 8px; font-family: "Space Grotesk", "Avenir Next", sans-serif; font-size: 20px; }
.rebooter-map-panel > p, .rebooter-collectors p, .rebooter-map-panel--profile p { margin: 8px 0; color: var(--app-muted); font-size: 13px; line-height: 1.45; }
.rebooter-map-panel--nearby { top: max(86px, calc(env(safe-area-inset-top) + 80px)); left: 14px; }
.rebooter-map-panel--stats { top: max(86px, calc(env(safe-area-inset-top) + 80px)); right: 14px; }
.rebooter-map-panel--account, .rebooter-map-panel--profile { bottom: max(112px, calc(env(safe-area-inset-bottom) + 100px)); left: 50%; transform: translateX(-50%); }
.rebooter-panel-link { display: block; width: 100%; margin-top: 8px; padding: 11px 12px; border: 1px solid rgba(18, 61, 45, .14); border-radius: 12px; background: white; color: var(--app-forest); cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; text-align: left; text-decoration: none; }
.rebooter-panel-link:hover { background: var(--app-sage); }
.rebooter-collectors { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(18, 61, 45, .14); }
.rebooter-collectors h3 { margin: 0; font-size: 15px; }
.rebooter-map-panel .app-impact-summary { grid-template-columns: 1fr; margin: 12px 0; }
.rebooter-map-panel .app-impact-summary article { grid-template-columns: 1fr auto; align-items: center; padding: 10px; }
.rebooter-map-panel .app-impact-summary span { font-size: 11px; }
.rebooter-map-panel .app-impact-summary strong { font-size: 15px; }
.rebooter-impact-note { font-size: 11px !important; }
.rebooter-logout-form { margin: 0; }
.rebooter-no-map-quests { margin: 0 0 16px; padding: 12px 14px; border-left: 3px solid var(--app-coral); background: #fff3ef; color: #71341f; font-size: 13px; }
.rebooter-no-map-quests[hidden] { display: none; }
.rebooter-ecoquests { width: min(100%, 980px); margin: 0 auto; padding: 36px 20px 48px; }
.rebooter-ecoquests > h2 { margin: 0 0 18px; font-family: "Space Grotesk", "Avenir Next", sans-serif; font-size: clamp(22px, 5vw, 30px); }
.rebooter-list-map-button { min-height: 40px; margin: 4px 0 12px; padding: 8px 14px; border: 1px solid var(--app-forest); border-radius: 20px; background: white; color: var(--app-forest); cursor: pointer; font-weight: 700; }
.rebooter-list-map-button:hover { background: var(--app-sage); }
.rebooter-home-notice { margin: 12px; }
@media (min-width: 760px) {
	.rebooter-map-stage { min-height: min(100vh, 960px); }
	.rebooter-map-panel--nearby { left: 24px; }
	.rebooter-map-panel--stats { right: 24px; }
	.rebooter-map-control--nearby { left: 24px; }
	.rebooter-map-control--stats { right: 24px; }
}
@media (max-width: 480px) {
	.app-shell { justify-content: flex-start; padding-top: max(28px, env(safe-area-inset-top)); }
	.app-card:not(.app-card--home) { margin-block: auto; }
	.app-card--home { padding: 22px 16px; }
	.rebooter-home-shell { padding: 0; }
	.rebooter-home-shell > .app-card--home { padding: 0; }
	.rebooter-map-header { top: max(82px, calc(env(safe-area-inset-top) + 76px)); }
	.rebooter-ecoquests { padding: 28px 14px 36px; }
	.app-impact-summary { grid-template-columns: 1fr; }
	.app-impact-summary article { grid-template-columns: 1fr auto; align-items: center; }
	.app-ecoquest-card { padding: 14px; }
	.app-mission-card { padding: 12px; }
	.app-back { padding-bottom: env(safe-area-inset-bottom); }
}
