:root{--green:#043b2f;--deep:#003d2e;--orange:#ff6b00;--cream:#fff2e6;--mint:#b9d8bd;--line:#559d75;--display:'Bricolage Grotesque',sans-serif;--body:'DM Sans',sans-serif}*{box-sizing:border-box}body{margin:0;min-height:100dvh;display:flex;flex-direction:column;background:linear-gradient(135deg,#368b50 0%,#07513e 36%,#00251c 100%);color:var(--cream);font:15px var(--body)}button,input,textarea,select{font:inherit}button,a{color:inherit}button{cursor:pointer;border:0;background:transparent}a{text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--orange);outline-offset:3px}[hidden]{display:none!important}.topbar{height:64px;flex-shrink:0;background:#003326;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 24px;gap:20px}.profile{display:flex;align-items:center;gap:10px;width:max-content;padding-right:20px;border-right:1px solid #8c9b92}.profile small{display:block;color:var(--mint);font-size:11px}.avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#286f52;color:white;font-weight:800;flex-shrink:0}.topbar nav,.tools{display:flex;align-items:center;gap:10px}.tools{justify-content:flex-end;font-size:23px}.tab{padding:8px 18px;border:1px solid var(--orange);border-radius:8px;font-weight:700}.tab.active,.orange{background:var(--orange);color:#fff}.orange{border-radius:8px;padding:10px 16px;font-weight:800}.workspace{display:grid;grid-template-columns:minmax(190px,1fr) minmax(0,3.4fr) minmax(190px,1fr);gap:14px;padding:18px;flex:1;height:calc(100dvh - 104px);min-height:510px}.panel{border:1px solid var(--line);border-radius:13px;background:#00392de8;min-width:0;overflow:hidden}.sidebar,.right-panel{padding:18px;overflow:auto}.sidebar{display:flex;flex-direction:column}.sidebar h1{font:800 32px var(--display);margin:0;letter-spacing:-.04em}.sidebar h1 span{color:var(--orange);margin-left:8px}.sidebar p{color:var(--mint);font-size:13px;margin:6px 0 26px}h3{font-size:12px;letter-spacing:.08em;color:var(--mint);margin:18px 0 12px}.channel{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px 10px;border-radius:7px;text-align:left;font-weight:600;margin-bottom:5px}.channel:hover,.channel.active{background:#ffffff16}.channel.active{color:#ff9b51;border-left:3px solid var(--orange)}.crown{width:100px;opacity:.25;margin:auto auto 0;padding-top:30px}.main-panel{display:flex;flex-direction:column}.panel-header{padding:15px 20px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #559d7555}.panel-header h2{font:800 23px var(--display);margin:0 0 4px}.panel-header small{color:var(--mint)}#demo-label{margin-left:auto;color:var(--mint);font-size:11px}.view{display:flex;flex-direction:column;flex:1;min-height:0}.messages,.topics{overflow:auto;flex:1;padding:18px 20px;scrollbar-color:#397b60 transparent}.messages{background:linear-gradient(#00392de8,#00392de8),url('../assets/images/coroaverde.png') center/220px no-repeat}.message{display:flex;gap:12px;margin-bottom:24px}.message-body{min-width:0;flex:1}.message b{color:#ffab6d}.message time{font-size:11px;color:var(--mint);margin-left:9px}.message p{margin:5px 0;overflow-wrap:anywhere;white-space:pre-wrap}.reaction,.report{font-size:12px;border:1px solid #559d7555;border-radius:6px;padding:3px 8px;margin-right:6px}.composer{padding:12px 16px;background:#003326}.emojis{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:9px}.emojis button{font-size:21px;padding:3px}.composer form{display:flex;gap:9px}input,textarea,select{background:#002b22;color:var(--cream);border:1px solid #559d75;border-radius:8px;padding:11px;min-width:0}input::placeholder{color:#b1c8ba}.composer input{flex:1}.right-panel h2{font:800 17px var(--display);margin:0 0 20px}.member{display:flex;align-items:center;gap:9px;margin:13px 0;font-size:13px}.member .avatar{width:32px;height:32px}.member small{margin-left:auto;color:var(--mint)}.filters{display:flex;gap:8px;padding:12px 20px;border-bottom:1px solid #559d7555}.filters button{padding:7px 10px;border-radius:7px}.filters .active{background:#ffffff18;color:#ffab6d}.topic{display:flex;gap:14px;background:#07513e99;border:1px solid #559d7555;border-radius:10px;padding:15px;margin-bottom:12px}.votes{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:32px}.votes button{font-size:20px}.votes .selected{color:var(--orange)}.topic-content{flex:1;min-width:0}.topic h3{font:800 19px var(--display);color:var(--cream);letter-spacing:0;margin:7px 0}.topic p{overflow-wrap:anywhere;white-space:pre-wrap}.topic small{color:var(--mint)}.tag{color:#ffab6d;font-size:11px;font-weight:800}.comments{margin-top:12px;border-top:1px solid #559d7555;padding-top:10px}.comments form{display:flex;gap:6px}.comments input{flex:1;width:100%}footer{min-height:40px;background:#003326;display:flex;align-items:center;gap:15px;padding:4px 24px;font-size:12px;color:var(--mint)}footer img{width:65px;max-height:32px;object-fit:contain}.footer-end{margin-left:auto}#toast{position:fixed;bottom:55px;right:20px;background:#003326;border-left:4px solid var(--orange);padding:14px;border-radius:7px;z-index:10}dialog{background:#043b2f;color:var(--cream);border:1px solid var(--line);border-radius:12px;width:min(500px,92vw)}dialog::backdrop{background:#001b16bb}dialog label{display:grid;gap:7px;margin:12px 0}textarea{min-height:120px;resize:vertical}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}@media(max-width:1000px){.workspace{grid-template-columns:180px minmax(0,1fr)}.right-panel{display:none}}@media(max-width:650px){.topbar{height:auto;min-height:65px;grid-template-columns:1fr auto;padding:10px;gap:8px}.topbar nav{grid-row:2;grid-column:1/-1;justify-content:center}.profile{border:0}.workspace{display:flex;flex-direction:column;height:auto;min-height:75dvh;padding:8px;gap:8px}.sidebar{padding:12px}.sidebar h1{font-size:23px}.sidebar p,.sidebar h3,.crown{display:none}#channels{display:flex;overflow:auto;gap:5px}.channel{white-space:nowrap;width:auto;gap:10px}.main-panel{height:70dvh;min-height:440px}.panel-header{padding:12px}.messages,.topics{padding:12px}.footer-end{font-size:10px}footer{padding:5px 10px}.tab{padding:7px 12px}}

/* BUILD 0.2 */
html,body{height:100%;overflow:hidden}
body{height:100dvh;min-height:0}
.workspace{flex:1 1 0;min-height:0;height:auto;grid-template-rows:minmax(0,1fr)}
.panel{min-height:0;background:rgba(0,24,18,.72)}
.main-panel,.view{min-height:0;overflow:hidden}
.panel-header,.filters,.composer{flex-shrink:0}
.messages,.topics{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.messages{background:linear-gradient(#001d16d9,#001d16d9),url('../assets/images/coroaverde.png') right 12% top 12%/220px no-repeat}
.topic{background:rgba(0,39,29,.58)}
.topbar nav{position:relative;isolation:isolate}
.tab{position:relative;z-index:1;transition:color .25s,background .25s}
.tab.active{background:transparent}
.tab-indicator{position:absolute;left:0;top:0;height:100%;border-radius:8px;background:var(--orange);z-index:0;pointer-events:none;transition:transform .3s cubic-bezier(.2,.8,.2,1),width .3s cubic-bezier(.2,.8,.2,1)}
.tools{gap:22px;font-size:28px}
.tools button,.tools a{display:grid;place-items:center;width:36px;height:38px;padding:0;transition:transform .2s,color .2s}
.tools button:hover,.tools a:hover{color:var(--orange);transform:translateY(-2px)}
.tools svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.view.switching{animation:appear .25s ease-out}
@keyframes appear{from{opacity:.35;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
footer{flex-shrink:0}
@media(max-width:650px){.workspace{height:auto;min-height:0;overflow:hidden}.sidebar{flex-shrink:0;max-height:140px}.main-panel{height:auto;min-height:0;flex:1}.tools{gap:8px}.tools button,.tools a{width:30px}.tools svg{width:21px;height:21px}.messages{background-size:auto,140px}.profile{padding-right:0}}
@media(prefers-reduced-motion:reduce){.tab-indicator,.tab,.tools button,.tools a{transition:none}.view.switching{animation:none}}
