
:root{--bg:#f4f5f1;--paper:#fffef9;--ink:#17201d;--muted:#64706b;--line:#dde2dc;--brand:#195e50;--brand2:#0f7b67;--soft:#e9f3ef;--amber:#a85f00;--red:#a63737;--shadow:0 18px 55px rgba(28,45,39,.08);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(circle at 70% -10%,#e7f2ed 0,transparent 32%),var(--bg);min-height:100vh;font-size:clamp(15px,.94rem + .18vw,17px);line-height:1.5}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
.shell{display:grid;grid-template-columns:245px 1fr;min-height:100vh}
.sidebar{background:#102620;color:#eef7f3;padding:24px 18px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}
.brand{display:flex;gap:11px;align-items:center;margin-bottom:30px}
.brandmark{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#d4eadf;color:#15372e;font-weight:800}
.brand h1{font-size:1.35rem;margin:0;line-height:1.15}
.brand small{display:block;color:#91aba2;margin-top:4px;font-size:.95rem;line-height:1.3}
.nav{display:grid;gap:8px}
.nav button{border:0;background:transparent;color:#b9cbc5;text-align:left;padding:13px 14px;border-radius:11px;font-size:1.08rem;line-height:1.25}
.nav button.active,.nav button:hover{background:#1d3a32;color:white}
.sidefoot{margin-top:auto;padding:14px;border:1px solid #2d493f;border-radius:13px;color:#a9beb7;font-size:.92rem;line-height:1.55}
.content{padding:24px 30px 50px;max-width:1500px;width:100%;margin:auto}
.topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:24px}
.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:.78rem;color:var(--brand2);font-weight:800}
.topbar h2{margin:5px 0 6px;font-size:2.15rem;letter-spacing:-.03em;line-height:1.12}
.sub{color:var(--muted);font-size:1rem;line-height:1.45}
.workspace-select{min-width:290px;padding:12px 14px;border-radius:11px;border:1px solid var(--line);background:var(--paper);font-size:1rem}
.grid{display:grid;gap:16px}
.metrics{grid-template-columns:repeat(6,minmax(120px,1fr));margin-bottom:18px}
.card{background:rgba(255,254,249,.94);border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow)}
.metric{padding:18px}
.metric .n{font-size:2rem;font-weight:780;letter-spacing:-.04em;line-height:1}
.metric .l{font-size:.95rem;color:var(--muted);margin-top:8px;line-height:1.35}
.metric.alert .n{color:var(--red)}
.main2{grid-template-columns:1.15fr .85fr}
.panel{padding:20px}
.panelhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;gap:8px}
.panelhead h3{margin:0;font-size:1.4rem;line-height:1.2}
.badge{font-size:.82rem;padding:6px 10px;border-radius:999px;background:var(--soft);color:var(--brand);font-weight:700;white-space:nowrap}
.issue-list,.task-list,.cluster-list,.inbox-list{display:grid;gap:10px}
.row{display:grid;grid-template-columns:1fr auto;gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:white}
.row strong{font-size:1.08rem;line-height:1.3}
.meta{font-size:.92rem;color:var(--muted);margin-top:5px;line-height:1.45}
.pill{font-size:.78rem;font-weight:800;padding:5px 8px;border-radius:999px;background:#edf0ed;color:#4e5e58;align-self:start;line-height:1.1}
.pill.URGENT{background:#fbe7e4;color:#9a2b2b}
.pill.HIGH{background:#fff0d5;color:#8a5200}
.pill.WATER,.pill.ROAD,.pill.HEALTH,.pill.ELECTRICITY{background:#e6f2ee;color:#1b6858}
.bars{display:grid;gap:12px}
.barline{display:grid;grid-template-columns:120px 1fr 32px;align-items:center;gap:10px;font-size:.95rem;line-height:1.35}
.track{height:9px;background:#edf0ed;border-radius:20px;overflow:hidden}
.fill{height:100%;background:linear-gradient(90deg,var(--brand),#53a894);border-radius:20px}
.hero{padding:24px;margin-bottom:17px;background:linear-gradient(135deg,#fffef9,#edf6f2)}
.hero h3{margin:4px 0 8px;font-size:2rem;letter-spacing:-.025em;line-height:1.18}
.hero p{margin:0;color:var(--muted);max-width:780px;line-height:1.65;font-size:1rem}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.btn{border:1px solid var(--line);background:white;padding:10px 14px;border-radius:10px;font-weight:700;font-size:.98rem;color:var(--ink);line-height:1.2}
.btn.primary{background:var(--brand);border-color:var(--brand);color:white}
.btn.danger{color:var(--red)}
.tablewrap{overflow:auto}
.table{width:100%;border-collapse:collapse;font-size:.95rem}
.table th{text-align:left;color:var(--muted);font-weight:700;padding:11px 10px;border-bottom:1px solid var(--line);line-height:1.35}
.table td{padding:12px 10px;border-bottom:1px solid #edf0ed;vertical-align:top;line-height:1.45}
.table tr:last-child td{border-bottom:0}
.empty{padding:32px;text-align:center;color:var(--muted);font-size:1rem;line-height:1.5}
.split{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form{display:grid;gap:12px}
.field label{font-size:.88rem;font-weight:750;color:#4b5752;display:block;margin-bottom:6px;line-height:1.35}
.field input,.field textarea,.field select{width:100%;border:1px solid var(--line);background:white;padding:12px 13px;border-radius:10px;outline:none;font-size:1rem;line-height:1.45}
.field textarea{min-height:110px;resize:vertical}
.field input:focus,.field textarea:focus,.field select:focus{border-color:#7caf9f;box-shadow:0 0 0 3px #e4f0ec}
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:25px}
.login{max-width:440px;width:100%;padding:28px}
.login .brandmark{margin-bottom:17px}
.login h1{font-size:2rem;margin:0 0 8px;line-height:1.15}
.login p{color:var(--muted);font-size:1rem;line-height:1.65}
.notice{border:1px solid #f1d9ae;background:#fff8e9;color:#785112;padding:12px 13px;border-radius:10px;font-size:.9rem;line-height:1.55;margin:12px 0}
.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.statusdot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#d09331;margin-right:6px}
.statusdot.ok{background:#2c916c}
.toast{position:fixed;right:20px;bottom:20px;background:#132d25;color:white;padding:12px 15px;border-radius:10px;box-shadow:var(--shadow);font-size:.95rem;z-index:5;line-height:1.4}
.mobile-nav{display:none}
@media(max-width:1050px){
  .metrics{grid-template-columns:repeat(3,1fr)}
  .main2{grid-template-columns:1fr}
  .shell{grid-template-columns:220px 1fr}
  .content{padding:22px}
  .topbar h2{font-size:1.95rem}
  .hero h3{font-size:1.8rem}
}
@media(max-width:760px){
  body{font-size:16px}
  .shell{display:block}
  .sidebar{display:none}
  .content{padding:18px 16px 92px}
  .topbar{display:block}
  .workspace-select{margin-top:12px;width:100%;min-width:0;font-size:1rem}
  .metrics{grid-template-columns:repeat(2,1fr)}
  .split{grid-template-columns:1fr}
  .mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#102620;padding:8px 6px;z-index:4;justify-content:space-around}
  .mobile-nav button{border:0;background:transparent;color:#b9cbc5;font-size:.82rem;padding:9px 8px;line-height:1.2}
  .mobile-nav button.active{color:white}
  .topbar h2{font-size:1.8rem}
  .hero{padding:18px}
  .hero h3{font-size:1.55rem}
  .hero p{font-size:1rem;line-height:1.6}
  .panel{padding:16px}
  .panelhead h3{font-size:1.22rem}
  .row{padding:13px 12px}
  .row strong{font-size:1rem}
  .meta{font-size:.92rem}
  .badge,.pill{font-size:.76rem}
  .metric{padding:15px}
  .metric .n{font-size:1.75rem}
  .metric .l{font-size:.92rem}
  .barline{grid-template-columns:92px 1fr 26px;font-size:.92rem}
  .btn{font-size:.96rem;padding:10px 13px}
  .table{font-size:.92rem}
}
.conversation-row{width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer}.conversation-row:hover{border-color:#abc8be;background:#fbfdfa}.modal-wrap{position:fixed;inset:0;background:#10262099;z-index:9;display:grid;place-items:center;padding:20px}.modal-card{width:min(760px,100%);max-height:88vh;overflow:auto}.chat-thread{display:grid;gap:10px;padding:6px 0}.chat{max-width:82%;padding:12px 14px;border-radius:14px;line-height:1.5}.chat.incoming{justify-self:start;background:#f2f5f2;border:1px solid var(--line)}.chat.outgoing{justify-self:end;background:#e3f2ec;border:1px solid #cbe3da}.section-gap{margin-top:24px}.workspace-select.compact{min-width:0;max-width:320px}.memory-card{border:1px solid var(--line);border-radius:13px;background:white;padding:15px;margin-bottom:10px}.memory-card p{margin:9px 0;line-height:1.6}.memory-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.followup{margin-top:10px;padding:10px 12px;border-radius:10px;background:#fff7e7;color:#6e4c16;line-height:1.5}.briefing{margin-top:12px}.brief-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.brief-grid>div{padding:10px;border-radius:10px;background:#f2f6f3;display:grid}.brief-number{font-size:1.5rem;font-weight:800;line-height:1}.brief-grid span:last-child{font-size:.86rem;color:var(--muted);margin-top:4px}.memory-card h4{margin:16px 0 8px;font-size:1rem}.brief-line{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #edf0ed}.brief-line:last-child{border-bottom:0}.commitStatus,.statusSel{font:inherit;font-size:.9rem;border:1px solid var(--line);background:white;border-radius:8px;padding:6px 8px;color:var(--ink)}
@media(max-width:760px){.mobile-nav{overflow-x:auto;justify-content:flex-start;gap:2px}.mobile-nav button{flex:0 0 auto;min-width:74px}.modal-wrap{padding:10px}.modal-card{max-height:92vh}.chat{max-width:92%}.brief-grid{grid-template-columns:1fr 1fr 1fr}.memory-top{display:block}.memory-top .pill{display:inline-block;margin-top:7px}.toolbar .workspace-select.compact{width:100%;max-width:none}.toolbar{align-items:stretch}.toolbar .btn{width:100%}}
