:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#192019;background:#f5f6f2;font-size:16px}*{box-sizing:border-box}html,body{height:100%;margin:0}button,input,textarea{font:inherit}button{cursor:pointer;border:1px solid #ccd3c8;border-radius:14px;background:#fff;color:#172118;padding:10px 16px;font-weight:700}button.primary,.primary{background:#b5ed5c;border-color:#b5ed5c;color:#172118}a{color:inherit;text-decoration:none}.app{height:100dvh;min-height:360px;display:flex;flex-direction:column}.topbar{flex:none;height:58px;background:#fff;border-bottom:1px solid #e0e4da;display:flex;align-items:center;justify-content:space-between;padding:0 20px;gap:16px}.brand{font-weight:900;letter-spacing:.12em;white-space:nowrap}.brand span{font-weight:500;letter-spacing:0;color:#5d6a60}.identity{display:flex;align-items:center;gap:16px;font-size:.88rem;color:#526254}.identity form{margin:0}.identity button{padding:7px 12px}.main{flex:1;min-height:0}.layout{height:100%;display:grid;grid-template-columns:minmax(230px,300px) 1fr}.sidebar{overflow:auto;min-height:0;border-right:1px solid #e0e4da;background:#fff;padding:20px 14px}.sidebar h2{font-size:1rem;margin:2px 10px 18px}.new-link,.thread-link{display:block;border-radius:12px;padding:12px;margin-bottom:6px}.new-link{background:#eef5e1;font-weight:700}.thread-link.current{background:#e3efcd}.thread-link:hover,.new-link:hover{background:#ecf3e4}.thread-link strong,.thread-link span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thread-link span{font-size:.82rem;color:#697469;margin-top:4px}.chat{height:100%;min-height:0;display:flex;flex-direction:column;background:#f6f7f3}.chat-head{flex:none;min-height:57px;border-bottom:1px solid #e0e4da;background:#fff;display:flex;align-items:center;gap:12px;padding:7px 22px}.chat-head strong,.chat-head small{display:block}.chat-head small{font-size:.73rem;color:#6d786d;margin-top:2px}.back{display:none;font-size:1.4rem}.messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px max(18px,calc((100% - 900px)/2));display:flex;flex-direction:column;gap:13px}.bubble{max-width:min(76%,650px);padding:12px 16px;border-radius:18px;border:1px solid #e0e5d9;background:#fff;overflow-wrap:anywhere}.bubble.mine{align-self:flex-end;background:#e1efc7;border-color:#d1e5b2}.bubble.theirs{align-self:flex-start}.bubble p{margin:6px 0 8px;line-height:1.45}.bubble small{font-weight:800;color:#55743e;text-transform:uppercase;letter-spacing:.06em;font-size:.69rem}.bubble time{display:block;text-align:right;font-size:.68rem;color:#748074}.composer{flex:none;display:flex;align-items:end;gap:10px;background:#fff;border-top:1px solid #e0e4da;padding:12px max(18px,calc((100% - 900px)/2))}.composer textarea,.start-form textarea{resize:vertical;min-height:44px;max-height:160px;width:100%;padding:11px 14px;border:1px solid #ccd4c8;border-radius:14px;background:#fff}.composer button{min-height:44px}.start{width:min(760px,100%);margin:auto;overflow:auto;padding:25px}.start h1{font-size:clamp(1.8rem,3vw,2.6rem);margin:0 0 10px}.start p{color:#647164;line-height:1.5}.start-form,.panel{background:#fff;border:1px solid #e0e4da;border-radius:18px;padding:22px;margin:18px 0}.start-form h2{margin:0 0 14px;font-size:1.15rem}.start-form button{margin-top:10px}.panel.login,.panel.center{width:min(450px,calc(100% - 32px));margin:8vh auto;padding:28px}.login h1{margin-top:0}.login p{color:#5e6a5f}.login form{display:grid;gap:10px;margin-top:18px}.login label{display:grid;gap:7px;font-weight:700}.login input{padding:12px;border-radius:12px;border:1px solid #cbd3c8}.notice,.error{padding:10px 14px;border-radius:10px;margin:8px 18px}.notice{background:#e7f5d6;color:#355a21}.error{background:#fff0ed;color:#9a2d1d}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}@media(max-width:700px){.topbar{padding:0 12px}.identity span{display:none}.layout{display:block}.sidebar{height:100%;border-right:0}.chat{display:none}.layout.chat-open .sidebar{display:none}.layout.chat-open .chat{display:flex}.chat-head{padding:7px 14px}.back{display:block}.messages{padding:14px;gap:10px}.bubble{max-width:90%}.composer{padding:10px}.start{padding:18px}}
.portal-nav{display:flex;gap:4px;flex:1;margin-left:18px}
.portal-nav a{padding:8px 12px;border-radius:10px;font-weight:600;color:#3f4b40}
.portal-nav a:hover{background:#eef3e7}
.portal-nav a[aria-current=page]{background:#e3efcd;color:#172118}
.portal-home{overflow:auto;height:100%;padding:28px max(18px,calc((100% - 960px)/2)) 60px}
.hero h1{font-size:clamp(1.8rem,3.4vw,2.8rem);margin:6px 0 8px}
.hero p{color:#5e6a5f;max-width:640px;line-height:1.5}
.eyebrow{font-size:.72rem;font-weight:800;letter-spacing:.12em;color:#55743e}
.cards{margin-top:26px;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.cards h2{grid-column:1/-1;font-size:1rem;margin:0 0 2px}
.cards .empty,.cards .text-link{grid-column:1/-1}
.card{display:block;background:#fff;border:1px solid #e0e4da;border-radius:16px;padding:16px 18px}
.card:hover{border-color:#b9d394;background:#fbfdf7}
.card strong,.card span,.card time{display:block}
.card span{color:#647164;font-size:.88rem;margin-top:6px;line-height:1.4;overflow:hidden;text-overflow:ellipsis}
.card time{color:#7a857a;font-size:.75rem;margin-top:8px}
.agent-card{border-color:#cfe3ad;background:#f5fbea}
.support-card strong{color:#2f4f1d}
.start .agent-card{margin-top:12px}
.text-link{font-weight:700;color:#3f6a24}
.portal-link{display:block;margin-top:18px;padding:12px;border-top:1px solid #e6eae1;font-weight:700;color:#3f6a24}
.home-link{margin-left:auto;font-size:.85rem;font-weight:700;color:#3f6a24;padding:6px 10px;border-radius:10px;border:1px solid #d6e4c2}
.empty{color:#647164}
@media(max-width:700px){.portal-nav{margin-left:6px;gap:2px}.portal-nav a{padding:7px 9px;font-size:.92rem}.portal-home{padding:18px 14px 40px}.cards{grid-template-columns:1fr}.brand span{display:none}}
.source-list{display:flex;flex-direction:column;gap:10px}.source-card{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;background:#fff;border:1px solid #e2e4dc;border-radius:14px;padding:14px 16px}.source-card small{display:block;color:#6d746c;margin-top:4px}.source-grants{display:flex;flex-wrap:wrap;gap:6px}.grant-toggle{border:1px solid #d4d8cc;background:#f6f7f2;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:650;cursor:pointer}.grant-toggle.is-on{background:#e7f6c8;border-color:#a9d266}
.section-title{font-size:1rem;margin:26px 0 10px}.doc-link{align-items:center;color:inherit}.doc-link:hover{border-color:#b9d394;background:#fbfdf7}
.version-list,.panel-block{display:flex;flex-direction:column;gap:10px;margin-top:18px}.panel-block h2{font-size:1.05rem;margin:8px 0 2px}
.version-card,.item-card{background:#fff;border:1px solid #e2e4dc;border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:8px}.version-card.is-approved{border-color:#a9d266}.version-card.is-superseded,.version-card.is-withdrawn{background:#fafaf7}
.version-card header,.item-card header{display:flex;justify-content:space-between;gap:10px;align-items:center}.version-card small,.item-card small{color:#6d746c;line-height:1.45}
.state{font-size:.78rem;font-weight:700;padding:4px 10px;border-radius:999px;background:#eef1e8;color:#4c5a4c;white-space:nowrap}.state.is-attention{background:#fff1cf;color:#7a5200}
.doc-text{white-space:pre-wrap;font:inherit;font-size:.9rem;line-height:1.5;background:#f7f8f4;border-radius:10px;padding:12px;margin:0;max-height:420px;overflow:auto}
details summary{cursor:pointer;font-weight:650;color:#3f6a24}.edit-minute textarea{width:100%;margin:8px 0;font:inherit}
.item-card blockquote{margin:0;padding:8px 12px;border-left:3px solid #cfe3ad;background:#f8fbf2;font-size:.9rem}.item-card blockquote small{display:block;margin-top:4px}
.item-form{display:flex;flex-direction:column;gap:8px}.item-form label{display:flex;flex-direction:column;gap:4px;font-size:.85rem;font-weight:650}.item-form input{font:inherit;padding:8px 10px;border:1px solid #d4d8cc;border-radius:10px}
.actions{display:flex;flex-wrap:wrap;gap:8px}.actions form{margin:0}button.quiet{background:transparent;border:1px solid #d4d8cc}
.history{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px;font-size:.88rem;color:#4c5a4c}.history time{color:#7a857a;margin-right:6px}
