:root{font-family:"Segoe UI",system-ui,sans-serif;color:#172d25;background:#eff3eb;--forest:#152e27;--forest-mid:#203e34;--green:#295841;--sage:#dbebd5;--lime:#dbf883;--paper:#f8faf6;--line:#d8e3d8;--muted:#4d6357;font-size:16px}
*{box-sizing:border-box}body{margin:0}button,textarea,input,select{font:inherit}button,select{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,textarea:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #6b9d6b;outline-offset:2px}[hidden]{display:none!important}
#shell{width:min(100%,1500px);height:100vh;height:100dvh;margin:auto;display:grid;grid-template-columns:306px minmax(0,1fr);background:var(--paper)}
#sidebar{background:var(--forest);color:#f4f8ee;display:flex;flex-direction:column;overflow:auto;padding:22px 16px 16px;min-height:0}
.brand{display:flex;align-items:center;gap:12px;padding:5px 8px 29px}.brand-mark{display:grid;place-items:center;border-radius:13px;width:46px;height:46px;background:var(--lime);color:var(--forest);font-size:25px;font-weight:800}.brand strong{font-size:22px;line-height:1.1;display:block;letter-spacing:-.5px}.brand div span{font-size:14px;color:#b9cbbc;display:block;margin-top:4px}
.city-label,.side-label{margin:0 8px 8px;font-size:14px;color:#c2d3c6}.side-label{margin-top:24px}
#city{margin:0 7px;padding:10px 11px;color:#f4f8ee;border:1px solid #526c60;border-radius:9px;background:var(--forest-mid);width:calc(100% - 14px)}
#rooms{display:grid;gap:4px}.room,.side-bottom button{display:flex;align-items:center;text-align:left;gap:11px;border:0;background:transparent;color:inherit;border-radius:11px;padding:10px 8px;width:100%;min-height:46px}.room:hover,.side-bottom button:hover{background:#244337}.room[aria-current=true]{background:#375b46;color:white}.room[aria-current=true] .room-icon{background:var(--lime);color:var(--forest)}.room strong{font-weight:600}.room-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#dbe9d9;color:#254a35;font-size:19px;flex:none}.room .room-icon{width:34px;height:34px;background:#2c493e;color:#d9edcb}
.side-bottom{margin-top:auto;padding-top:23px}.side-bottom button span{width:25px;text-align:center;color:#d4e7cc}.side-bottom button[aria-current=true]{background:#375b46}
main{min-width:0;display:flex;flex-direction:column;min-height:0;background:var(--paper)}.top{background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;padding:17px clamp(12px,3vw,34px)}.title{flex:1;min-width:0}h1{font-size:clamp(17px,2.4vw,24px);letter-spacing:-.025em;margin:0;overflow-wrap:anywhere}.title p{font-size:14px;margin:4px 0 0;color:var(--muted)}
.plain,.primary,.travel button{border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--green);padding:9px 12px;white-space:nowrap}.plain:hover,.travel button:hover{background:#eef5ec}.primary{background:var(--green);border-color:var(--green);color:white;font-weight:650}.primary:hover{background:#1e4533}.mobile{display:none}
#searchBar,.travel{background:#fff;display:flex;align-items:center;gap:8px;padding:8px clamp(12px,3vw,34px);border-bottom:1px solid var(--line)}#searchBar label{white-space:nowrap;font-size:14px}.travel button{font-size:14px;padding:5px 11px}.travel button[aria-pressed=true]{background:var(--sage);border-color:#bfd4bc}
#pinned{border:0;border-bottom:1px solid var(--line);background:#eaf2e6;color:var(--green);text-align:left;padding:9px clamp(12px,3vw,34px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#history{flex:1;overflow:auto;padding:16px clamp(12px,6vw,64px);scrollbar-gutter:stable;background-color:#f0f5ed;background-image:radial-gradient(#c9dacb 1px,transparent 1px);background-size:19px 19px}#feed{display:grid;gap:12px;justify-items:start;max-width:950px;margin:0 auto}#older{display:block;margin:0 auto 14px}.date{justify-self:center;background:#dfeade;border-radius:100px;color:var(--muted);padding:4px 10px;font-size:13px}.empty{justify-self:center;text-align:center;margin:min(16vh,130px) auto 15px;max-width:490px;background:#f8faf6;border:1px solid var(--line);border-radius:20px;padding:27px 29px}.empty .room-icon{margin:auto;width:48px;height:48px;font-size:24px}.empty h2{font-size:22px;margin:12px 0 6px}.empty p{margin:0;color:var(--muted);line-height:1.5}
.bubble{border:1px solid var(--line);background:#fff;border-radius:4px 16px 16px 16px;padding:11px 13px;max-width:min(720px,94%);min-width:min(170px,94%);overflow-wrap:anywhere}.bubble.own{justify-self:end;background:#e2efd8;border-color:#cbdcc2;border-radius:16px 4px 16px 16px}.bubble:target,.bubble.highlight{outline:2px solid #649269}.author{font-weight:700;color:#264e39;font-size:14px}.text{white-space:pre-wrap;margin:6px 0}.time{font-size:13px;color:var(--muted);white-space:nowrap}.bubble-foot{display:flex;align-items:center;justify-content:space-between;gap:9px}.bubble-buttons{display:flex;flex-wrap:wrap;gap:5px}.bubble-buttons button,.quote{border:0;background:transparent;color:var(--green);padding:4px 6px;font-size:14px}.bubble-buttons button:hover,.quote:hover{text-decoration:underline}.quote{display:block;text-align:left;border-left:3px solid #6b926f;background:#f0f5ee;border-radius:5px;margin-top:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trip-card{background:#edf4ea;border:1px solid #c0d7bd;padding:9px 11px;border-radius:8px;margin:6px 0}.trip-card p{margin:3px 0}.trip-card span{font-size:14px;color:var(--muted)}.dialog-row,.report-card{width:100%;text-align:left;padding:14px;background:white;border:1px solid var(--line);border-radius:12px;color:inherit;overflow-wrap:anywhere}.dialog-row:hover{border-color:#6d946f}.dialog-row span{display:block;color:var(--muted);margin-top:5px}
#footer{background:white;border-top:1px solid var(--line);padding:11px clamp(12px,3vw,34px)}#footer:empty,#footer.no-content{display:none}#composer,#signInBar,#replyBar{display:flex;gap:9px;align-items:center}#signInBar,#replyBar{justify-content:space-between}#replyBar{border-left:3px solid #739e76;margin:0 0 8px;padding-left:8px;color:var(--green)}#replyText{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#editorial{margin:4px 0;color:var(--muted)}#composer textarea{flex:1;min-width:0;resize:vertical;min-height:43px;max-height:150px}
dialog{width:min(480px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;color:inherit;padding:20px;border:1px solid var(--line);border-radius:16px}dialog::backdrop{background:#0b231ccb}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-head h2{font-size:22px;margin:0}.dialog-head button{padding:4px 10px;font-size:23px}dialog form{display:grid;gap:11px;margin-top:13px}dialog label{display:grid;gap:5px;font-weight:600}input,textarea,dialog select{padding:9px 10px;border:1px solid #b2c4b5;border-radius:8px;color:inherit;background:white;width:100%;min-width:0}textarea{line-height:1.4}.hint{color:var(--muted);background:#edf5ea;padding:10px;border-radius:8px}.status,.form-status{margin:0;padding:8px 12px;color:#7d281b;background:#fff3eb}.form-status{margin-top:10px}.status.ok{color:var(--green);background:#e9f6e9}
@media(max-width:720px){#shell{display:block}#sidebar,main{height:100%}#shell:not(.open) main,#shell.open #sidebar{display:none}.mobile{display:inline-block;padding:7px}.top{gap:6px;padding:11px 8px}.top .room-icon{display:none}.top .plain{font-size:14px;padding:7px}.brand{padding-bottom:19px}.side-label{margin-top:14px}.side-bottom{padding-top:10px}#history{padding:10px}.empty{margin-top:9vh;padding:18px}#composer{gap:5px}#composer .primary,#composer .plain{padding:9px 6px;font-size:14px}.bubble{max-width:97%}}

/* Shared chat and account surfaces */
:root{--forest:#132a23;--forest-mid:#1c3b31;--lime:#dafa91;--paper:#f8faf6;--green:#235540}
#sidebar{scrollbar-width:thin;padding-top:20px}
.brand-mark{box-shadow:0 0 0 1px #e2fcb767 inset}
#bots{display:grid;gap:4px}.bot-label{margin-top:19px}#bots .room{min-height:42px;padding-top:6px;padding-bottom:6px}
#bots .room-icon{border-radius:50%;background:#24463d;color:#c9edaa}
.side-bottom{border-top:1px solid #3b544a;display:grid;gap:3px;margin-top:auto;padding-top:9px}
.side-bottom button#account{gap:11px}.side-bottom #accountLabel{width:auto;text-align:left;min-width:0;overflow:hidden;text-overflow:ellipsis;color:#f4f8ee}
.account-initial{display:grid;place-items:center;flex:none;width:31px!important;height:31px;border-radius:50%;color:#163629!important;background:#d3eabc;font-size:14px;font-weight:800;overflow:hidden}
.account-initial img,.portrait img{display:block;width:100%;height:100%;object-fit:cover}
.top{min-height:72px}.title p{margin-top:5px}.top .room-icon{width:42px;height:42px;border-radius:13px}
#history{background-color:#edf4ee;background-image:radial-gradient(#cbdccf .9px,transparent .9px);background-size:20px 20px}
.empty{box-shadow:0 7px 24px #203e3410}.bubble{box-shadow:0 1px 2px #213b2d0d}
.author-button{display:inline-block;background:none;border:0;padding:0;color:#264e39;font-weight:700;font-size:14px;text-align:left}.author-button:hover{text-decoration:underline}
#botActions{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 9px}
#botActions button{font-size:14px;padding:7px 10px;white-space:normal}
.profile-dialog{width:min(540px,calc(100% - 24px));padding:22px}
.profile-hero{display:flex;align-items:center;gap:15px;margin:15px 0 12px;border-radius:13px;background:#e8f2e4;padding:13px;overflow-wrap:anywhere}
.profile-hero .portrait{display:grid;place-items:center;flex:none;width:60px;height:60px;border-radius:50%;overflow:hidden;background:#cde6b9;color:#21452f;font-size:22px;font-weight:800}
.profile-hero strong{font-size:19px}.profile-hero p{white-space:pre-wrap;color:var(--muted);margin:3px 0 0}
.sheet-tabs{display:flex;flex-wrap:wrap;gap:6px}.sheet-tabs button[aria-pressed=true]{background:#e8f2e4;border-color:#b5d1b8;font-weight:650}
.field-note{font-size:14px;color:var(--muted);margin:0;line-height:1.45}
#profileForm button[type=submit]{justify-self:start}.account-footer{border-top:1px solid var(--line);margin-top:14px;padding-top:12px}
#sessionsPanel{margin-top:13px}.session-row{border-bottom:1px solid var(--line);padding:10px 0;display:flex;gap:8px;align-items:center;justify-content:space-between}
.session-row .device-meta{min-width:0}.session-row small{display:block;color:var(--muted);margin-top:3px}.session-row button{font-size:14px;padding:6px 9px}
@media(max-width:720px){.top{min-height:60px}.top .room-icon{display:none}.side-bottom{margin-top:15px}.profile-dialog{padding:16px}.brand{padding-bottom:19px}}
.trip-entry{margin:9px 7px 0;background:var(--lime);border-color:var(--lime);color:#172f25}.trip-entry:hover{background:#c7ea79;color:#172f25}
.trip-section{flex:1;overflow:auto;padding:clamp(12px,3vw,28px);background:#edf4ee}
.trip-sheet{max-width:650px;margin:auto;padding:clamp(15px,3vw,25px);border-radius:16px;background:white;border:1px solid var(--line)}
.trip-sheet h2{margin:15px 0 5px;line-height:1.2}.trip-links{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0}
.trip-sheet form{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.trip-sheet form label{display:grid;gap:5px;font-weight:600}.trip-sheet form label:has(textarea){grid-column:1/-1}
.trip-sheet select{width:100%;padding:9px 10px;border:1px solid #b2c4b5;background:white;border-radius:8px;color:inherit}
.trip-sheet button[type=submit]{justify-self:start}
#vehiclesPanel{margin-top:13px}.vehicle-form{grid-template-columns:repeat(2,minmax(0,1fr))}.vehicle-form button{grid-column:1/-1;justify-self:start}
@media(max-width:520px){.trip-sheet form{grid-template-columns:1fr}.trip-links .plain{white-space:normal}.trip-sheet{border-radius:12px}}
.trip-vehicle label{margin-bottom:5px}
.trip-vehicle-controls{display:flex;align-items:stretch;gap:7px}
.trip-vehicle-controls select{flex:1;min-width:0}
.trip-entry-secondary{margin:6px 7px 0;padding:8px 12px;border:1px solid #536c61;border-radius:9px;color:#f4f8ee;background:transparent;text-align:center}
.trip-entry-secondary:hover,.trip-entry-secondary[aria-current=true]{background:#375b46}
.plan-group{display:grid;gap:10px;width:100%}
.plan-group h2{font-size:18px;margin:4px 0}
.plan-group + .plan-group{margin-top:12px}
.plan-group .trip-card{margin-top:0}
.plan-group .report-card button{font-size:14px}
.auth-tabs{margin-top:14px}
#connectEmail{justify-self:start}
