:root{color:#2a241d;font-synthesis:none;background:#f5f1e8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{min-width:320px;height:100%;min-height:100%;margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}.login-page{background:radial-gradient(circle at 75% 15%,#d9eadf,#0000 28%),#f5f1e8;place-items:center;min-height:100vh;padding:30px;display:grid}.login-card{background:#fffdf8;border:1px solid #ddd3c3;border-radius:22px;width:min(480px,100%);padding:44px;box-shadow:0 22px 55px #4234251a}.brand-mark{letter-spacing:-1px;color:#fff;background:#2f6f57;border-radius:16px;place-items:center;width:58px;height:58px;font-weight:800;display:grid}.brand-mark.small{border-radius:11px;width:38px;height:38px;font-size:13px}.eyebrow{text-transform:uppercase;letter-spacing:.12em;color:#7a6d5e;margin:0 0 7px;font-size:11px;font-weight:800}.login-card h1,.topbar h1,.detail-panel h2,.modal h2{letter-spacing:-.035em;margin:0}.login-card h1{margin-top:20px;font-size:38px}.login-copy{color:#6b6054;margin:14px 0 28px;line-height:1.6}label{gap:8px;font-size:13px;font-weight:700;display:grid}input,textarea,select{color:#2a241d;background:#fff;border:1px solid #cfc4b3;border-radius:10px;outline:none;width:100%;padding:11px 12px}input:focus,textarea:focus,select:focus{border-color:#2f6f57;box-shadow:0 0 0 3px #2f6f571f}.primary-button,.secondary-button{border:0;border-radius:10px;padding:11px 15px;font-weight:750}.primary-button{color:#fff;background:#2f6f57}.secondary-button{color:#4b4035;background:#ece5d9}.login-card .primary-button{width:100%;margin-top:14px}.status-message{color:#5b5147;margin:16px 0 0;font-size:13px}.app-shell{grid-template-columns:300px 1fr;height:100vh;min-height:100vh;display:grid;overflow:hidden}.sidebar{background:#eee9df;border-right:1px solid #d8cfbf;padding:16px 12px 30px;overflow-y:auto}.sidebar-brand{align-items:center;gap:11px;padding:2px 7px 18px;display:flex}.sidebar-brand strong,.sidebar-brand span{display:block}.sidebar-brand span{color:#7e7164;font-size:12px}.sidebar-section{margin:5px 0 11px}.sidebar-heading{color:#76695d;text-transform:uppercase;letter-spacing:.09em;text-align:left;background:0 0;border:0;align-items:center;gap:5px;width:100%;padding:8px 7px;font-size:10px;font-weight:850;display:flex}.sidebar-items{gap:2px;display:grid}.nav-item{text-align:left;color:#493f36;background:0 0;border:0;border-radius:7px;padding:7px 9px;font-size:12px;line-height:1.35}.nav-item:hover{background:#ffffff8c}.nav-item.active{color:#235b47;background:#fffdf8;font-weight:750;box-shadow:0 1px #0000000a}.tree-row{padding-left:calc(var(--depth) * 14px);border-radius:7px;grid-template-columns:20px minmax(0,1fr);align-items:start;display:grid}.tree-row:hover{background:#ffffff7a}.tree-toggle,.tree-label{color:#51463c;background:0 0;border:0}.tree-toggle{padding:6px 2px;font-size:11px}.tree-spacer{width:20px}.tree-label{text-align:left;flex-direction:column;gap:2px;padding:6px 4px;font-size:11.5px;line-height:1.3;display:flex}.tree-suffix{opacity:.65;letter-spacing:-1px;font-size:9px}.add-activity-button{color:#245641;background:#e3efe8;border:1px solid #2f6f57;border-radius:9px;width:calc(100% - 12px);margin:14px 6px;padding:9px 10px;font-weight:800}.workspace{background:#f8f5ee;flex-direction:column;min-width:0;min-height:0;display:flex;overflow-y:auto}.topbar{z-index:5;background:#fffdf8f0;border-bottom:1px solid #ded6c9;justify-content:space-between;align-items:center;gap:15px;height:80px;min-height:80px;padding:15px 22px;display:flex;position:sticky;top:0}.topbar h1{font-size:21px}.user-menu{color:#6d6155;align-items:center;gap:9px;font-size:12px;display:flex}.user-menu button{color:#5b5148;background:0 0;border:0;text-decoration:underline}.role-pill{color:#35624e;text-transform:capitalize;background:#e4ece7;border-radius:999px;padding:4px 8px;font-weight:800}.main-grid{flex:1;grid-template-columns:1fr;min-height:calc(100vh - 80px);display:grid}.main-grid.with-detail{grid-template-columns:minmax(0,1fr) minmax(390px,26vw)}.graph-card{min-width:0;height:calc(100vh - 80px);min-height:640px;position:relative}.graph{width:100%;height:100%}.graph-help{z-index:2;color:#776b5f;pointer-events:none;background:#fffdf8eb;border:1px solid #ddd3c3;border-radius:8px;padding:6px 9px;font-size:11px;position:absolute;top:13px;left:15px}.detail-panel{background:#fffdf8;border-left:1px solid #ddd3c5;max-height:calc(100vh - 80px);padding:27px 28px 55px;position:sticky;top:80px;overflow-y:auto}.detail-panel h2{margin-bottom:15px;font-size:27px}.lead{color:#5f554b;font-size:15px;line-height:1.55}.field{background:#f4efe5;border-radius:10px;justify-content:space-between;gap:12px;margin:20px 0;padding:12px 13px;font-size:13px;display:flex}.text-section,.related,.embedded-map,.sequence{border-top:1px solid #ece4d8;margin-top:20px;padding-top:17px}.text-section h3,.related h3,.embedded-map h3,.sequence h3{margin:0 0 10px;font-size:13px}.formatted-text{white-space:pre-wrap;color:#62584e;font-size:13px;line-height:1.6}.formatted-text.muted{color:#978b7f;font-style:italic}.related{gap:6px;display:grid}.related h3{margin-bottom:4px}.related button{text-align:left;color:#3f4f48;background:#f4efe6;border:0;border-radius:7px;justify-content:space-between;align-items:center;gap:10px;padding:9px 10px;font-size:12px;display:flex}.related button:hover{background:#e8f0eb}.related small{white-space:nowrap;opacity:.72;letter-spacing:-1px;font-size:9px}.ai-tag{color:#684888;vertical-align:1px;background:#ede2fb;border-radius:999px;margin-left:5px;padding:2px 6px;font-size:9px}.sequence-note{color:#887b6e;margin:-2px 0 12px;font-size:11px}.sequence-step{grid-template-columns:24px 1fr;gap:7px;padding-bottom:12px;display:grid;position:relative}.sequence-number{color:#fff;background:#415a77;border-radius:50%;place-items:center;width:22px;height:22px;font-size:10px;font-weight:800;display:grid}.sequence-step button{text-align:left;color:#3f4f48;background:#f4efe6;border:0;border-radius:7px;padding:8px 9px;font-size:12px}.sequence-arrow{color:#978b7f;font-size:14px;position:absolute;bottom:-3px;left:7px}.mini-graph{background:#faf7f0;border:1px solid #e4dbcf;border-radius:10px;width:100%}.error-banner{color:#8a3329;background:#fff0ee;border:1px solid #edc1bb;border-radius:9px;margin:12px 18px 0;padding:9px 11px;font-size:12px}.loading-screen{color:#6f6256;background:#f5f1e8;place-items:center;min-height:100vh;display:grid}.modal-backdrop{z-index:10;background:#231e1966;place-items:center;padding:25px;display:grid;position:fixed;inset:0}.modal{background:#fffdf8;border-radius:18px;width:min(760px,100%);max-height:90vh;padding:25px;overflow-y:auto;box-shadow:0 30px 90px #00000040}.modal-head{justify-content:space-between;align-items:start;margin-bottom:20px;display:flex}.icon-button{color:#7d7062;background:0 0;border:0;font-size:27px}.modal form{gap:16px;display:grid}.two-col{grid-template-columns:1fr 1fr;gap:13px;display:grid}fieldset{border:1px solid #ddd2c2;border-radius:12px;padding:13px}legend{color:#685c50;padding:0 5px;font-size:12px;font-weight:800}.check-grid{grid-template-columns:1fr 1fr;gap:7px 13px;max-height:180px;display:grid;overflow-y:auto}.check-grid.outcomes{max-height:240px}.check-grid label{align-items:start;gap:7px;font-weight:500;line-height:1.35;display:flex}.check-grid input{width:auto;margin-top:2px}.modal-actions{justify-content:end;gap:9px;display:flex}.error-message{color:#9a3c31;font-size:12px}@media (width<=1000px){.app-shell{grid-template-columns:240px 1fr}.main-grid.with-detail{grid-template-columns:1fr}.detail-panel{z-index:4;width:min(430px,90vw);max-height:none;position:fixed;top:80px;bottom:0;right:0;box-shadow:-15px 0 40px #00000014}.user-menu>span:first-child{display:none}}.form-guidance{color:#75695d;margin:2px 0 12px;font-size:12px;font-weight:500;line-height:1.5}.selection-count{color:#8a7d70;margin:9px 0 0;font-size:11px}.outcome-groups{gap:14px;max-height:390px;padding-right:5px;display:grid;overflow-y:auto}.outcome-group{border-top:1px solid #eee5d8;padding-top:10px}.outcome-group:first-child{border-top:0;padding-top:0}.outcome-group h4{color:#415a77;margin:0 0 8px;font-size:12px}.outcome-group .check-grid{max-height:none}.chilli-fieldset .two-col{margin-top:3px}.chilli-guide{background:#f7f2e9;border:1px solid #e0d5c4;border-radius:12px;gap:11px;padding:15px;display:grid}.chilli-guide h3{margin:0 0 2px;font-size:13px}.chilli-guide div{gap:3px;display:grid}.chilli-guide strong{font-size:12px}.chilli-guide span{color:#706459;font-size:11.5px;line-height:1.45}.modal{width:min(820px,100%)}.detail-title-row{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:15px;display:flex}.detail-title-row h2{margin-bottom:0}.edit-activity-button{color:#2f6f57;background:#edf4f0;border:1px solid #b7c9bf;border-radius:9px;flex:none;padding:7px 10px;font-size:11px;font-weight:800}.edit-activity-button:hover{background:#dfece5}
