:root{color-scheme:light;--ground:#edf3ee;--white:#fff;--paper:#f7faf7;--ink:#142b22;--muted:#466055;--line:#cbd9cf;--forest:#153f32;--mint:#d6f5b7}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--ground);color:var(--ink);font:16px/1.6 system-ui,sans-serif}
.top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px max(16px,calc((100vw - 1120px)/2));background:#f9fcfa;border-block-end:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:8px;color:var(--ink);font-size:1.13rem;font-weight:800;text-decoration:none;white-space:nowrap}
.brand span{display:grid;place-items:center;width:30px;height:30px;background:var(--forest);color:#fff;border-radius:50%}
nav,.section-head,.tab-row,.choices,.actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.section-head{justify-content:space-between;margin-block-end:10px}
main{width:min(1120px,calc(100% - 28px));margin:18px auto 40px}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:14px;align-items:start}
.layout:has(#auth[hidden]){grid-template-columns:minmax(0,1fr)}
.main-column,.columns,.stack,form{display:grid;gap:10px;min-width:0}
.columns{grid-template-columns:1.25fr 1fr;margin-block-start:12px}
.hero{display:grid;gap:9px;border-radius:22px;padding:clamp(18px,5vw,44px);color:#fff;background:radial-gradient(ellipse at 15% 120%,#426f59 0%,transparent 55%),linear-gradient(110deg,#112f26 15%,#245245)}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(25px,5vw,50px);line-height:1.1;letter-spacing:-.03em}
h2{font-size:1.17rem;line-height:1.3}
h3{font-size:1rem}
.hero em{font-style:normal;color:var(--mint)}
.hero p{max-width:49ch;color:#daeee4}
.hero .eyebrow{font-size:.84rem;font-weight:700}
.surface{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:clamp(12px,2.7vw,20px);min-width:0}
.side,.surface>[id]:not(form){margin-block:0}
.surface h2+form,.side .tab-row,.surface h2+.stack,.side form{margin-top:9px}
.stack>article{border-bottom:1px solid var(--line);padding-block:8px;overflow-wrap:anywhere}
.stack>article:last-child{border-bottom:0}
.proposal{background:var(--paper);border-radius:12px;padding:12px!important;border:1px solid var(--line)!important}
.muted,small{color:var(--muted)}
button,input,textarea,select{font:inherit;min-height:44px}
button{background:var(--paper);border:1px solid #a8bdb0;border-radius:9px;padding:6px 12px;color:var(--ink);font-weight:680;cursor:pointer}
button.primary,button[aria-pressed=true]{background:var(--forest);border-color:var(--forest);color:#fff}
button:disabled{opacity:.65;cursor:default}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #33785f;outline-offset:2px}
input:not([type=radio]):not([type=checkbox]),select,textarea{width:100%;border:1px solid #abbbb0;border-radius:8px;padding:7px 9px;background:white;color:var(--ink)}
textarea{min-height:86px;resize:vertical}
form label:not(.choice),legend{font-weight:700}
form button{justify-self:start}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
fieldset{border:1px solid var(--line);border-radius:9px;min-width:0;padding:9px;margin:0}
.choice{display:flex;gap:8px;align-items:center;min-height:44px}
.choice input{min-height:auto}
.choices .choice{min-width:34px}
#notice{font-size:.82rem;background:var(--mint);color:var(--ink);border-radius:10px;padding:0 6px}
.nav-icon{font-size:1.26rem;line-height:1;font-weight:750}
.app-nav>button{display:inline-flex;align-items:center;gap:6px}
.logout{font-size:.82rem;padding-inline:10px}
.identity{display:flex;align-items:center;gap:9px;min-width:0}
.avatar{flex:0 0 auto;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#e4f4e8;color:#20513d;font-size:1.05rem;font-weight:800}
.proposal>.identity{margin-bottom:5px}
.post-copy{margin:5px 45px 0 0;white-space:pre-wrap}
.privacy-tag{color:#1b593e;background:#e6f5e9;border-radius:20px;padding:4px 10px;font-size:.84rem;font-weight:750}
#chat{margin:0}
#chat form,#block{margin-top:10px}
.messages{display:grid;gap:6px;max-height:280px;overflow:auto}
.bubble{width:fit-content;max-width:84%;overflow-wrap:anywhere;background:#e6f2e9;border-radius:10px;padding:6px 10px;white-space:pre-wrap}
.bubble.mine{justify-self:end;background:#eff0f6}
.feedback{position:sticky;bottom:8px;margin-top:10px;border-radius:10px;background:#163e32;color:white;padding:10px 14px}
@media(max-width:710px){
 .layout,.columns{grid-template-columns:1fr;gap:8px}
 .hero{border-radius:14px;padding:17px}
 .hero h1{font-size:1.95rem}
 .top{min-height:56px;padding:6px 12px;position:sticky;top:0;z-index:2}
 .brand{font-size:1rem}
 main{width:calc(100% - 16px);margin-block:8px 16px}
 body:not(.signed-in) .main-column,body:not(.signed-in) #community{display:contents}
 body:not(.signed-in) .hero{grid-row:1}
 body:not(.signed-in) .side{grid-row:2}
 body:not(.signed-in) .columns{grid-row:3}
 body:not(.signed-in) .app-nav{display:none}
 .signed-in main{padding-bottom:calc(64px + env(safe-area-inset-bottom))}
 .signed-in .app-nav{position:fixed;z-index:3;inset:auto 0 0;display:grid;gap:0;grid-template-columns:repeat(3,minmax(0,1fr));padding:3px 7px env(safe-area-inset-bottom);border-top:1px solid var(--line);background:#fcfefc}
 .signed-in .app-nav>button{position:relative;display:grid;justify-items:center;align-content:center;gap:3px;padding:4px 2px;min-height:51px;border:0;background:transparent;color:var(--muted);border-radius:10px;font-size:.72rem;line-height:1.2}
 .signed-in .app-nav>button[aria-pressed=true]{color:#174d39;background:#e4f3e8}
 #notice{position:absolute;top:2px;inset-inline-start:calc(50% + 10px)}
 .feedback{bottom:calc(60px + env(safe-area-inset-bottom))}
 .logout{min-height:39px}
 .columns{margin-block-start:0}
 .choices{column-gap:11px;row-gap:0}
 .choices .choice{min-height:39px}
 .proposal{padding:10px!important}
}

/* Shared mobile-first visual language for both city pilots. */
:root{--ground:#f3f5f0;--paper:#f7f9f4;--ink:#18292a;--muted:#50635d;--line:#dbe4da;--forest:#13463e;--mint:#d8ff91}
.top{background:rgba(255,255,255,.96)}
.brand span{background:var(--mint);color:var(--ink);border-radius:11px}
button{border-radius:13px}
button.primary{box-shadow:0 3px 7px #13463e24}
.hero{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(125deg,#133b36,#135343);min-height:225px;align-content:center}
.hero h1,.hero p{position:relative;z-index:1}
.hero .eyebrow{width:max-content;border:1px solid #d8ff9170;color:#e4ffb4;border-radius:100px;padding:2px 11px}
.route-art{position:absolute;z-index:0;left:-48px;top:24px;width:38%;height:150%;transform:rotate(-28deg);opacity:.38;pointer-events:none}
.route-art i{position:absolute;inset:0;border:1px solid var(--mint);border-radius:100px}
.route-art i:nth-child(2){inset:13px}
.route-art i:nth-child(3){inset:26px}
.surface{border-radius:20px;box-shadow:0 3px 15px #173b3010}
.side .tab-row{padding:4px;display:grid;grid-template-columns:1fr 1fr;background:#edf2eb;border-radius:12px;gap:4px}
.side .tab-row button{border:none;background:transparent}
.side .tab-row button[aria-pressed=true]{background:white;color:var(--forest);box-shadow:0 2px 7px #173b3020}
.side form>.primary{width:100%}
#matches,#profile{max-width:660px;margin-inline:auto;width:100%}
.proposal{background:linear-gradient(140deg,#f7ffeb,#fff);border-radius:18px;padding:16px!important;display:grid;gap:12px}
.proposal.connected{background:linear-gradient(140deg,#e9faf1,#fff)}
.proposal .avatar{background:var(--mint);color:var(--ink);border-radius:14px;width:42px;height:42px}
.proposal>.identity{margin:0}
.proposal h3{font-size:1.18rem}
.match-details{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.match-details p{border-radius:100px;background:#eef4e9;padding:3px 10px;font-size:.86rem;unicode-bidi:plaintext}
.proposal .actions button.primary{flex:1 0 auto}
.proposal .actions p{color:var(--muted);font-size:.9rem}
#chat .messages{background:#f8faf6;border:1px solid var(--line);min-height:72px;border-radius:16px;padding:10px}
.bubble{border-radius:16px}
.bubble.mine{background:#def4b9}
@media(max-width:710px){
 main{width:calc(100% - 20px);margin-block-start:10px}
 .hero{min-height:195px;padding:18px;border-radius:19px}
 .hero h1{font-size:2.1rem}
 .route-art{width:34%;left:-58px}
 .signed-in .app-nav{gap:8px;padding:5px 10px max(5px,env(safe-area-inset-bottom));box-shadow:0 -4px 20px #173b3010}
 .signed-in .app-nav>button[aria-pressed=true]{background:#e8f7d0;color:#153f32}
 .proposal{padding:14px!important}
}
