/* Visual design from the Codex prototype (Oct 20, 2026), extended for the API-backed workspace. */
:root{--navy:#111d3f;--navy2:#1b2b5e;--gold:#f5a623;--paper:#f6f7fa;--ink:#18233f;--muted:#737d90;--line:#e7eaf0;--green:#248568;--blue:#5975bd}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.4}a{color:inherit}.shell{display:flex;min-height:100vh}.sidebar{width:240px;flex-shrink:0;background:var(--navy);color:white;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:32px 20px}.brand{display:flex;align-items:center;gap:10px;padding:0 12px}.brand svg{width:33px;height:38px;color:var(--gold)}.brand strong{font-size:25px;letter-spacing:-1px}.brand strong span{color:var(--gold)}.brand-note{font-size:9px;letter-spacing:2.2px;color:#a9b2ca;margin:7px 0 0 56px}.nav-label{font-size:10px;letter-spacing:1.8px;color:#8692af;margin:49px 14px 15px}.nav-btn{width:100%;background:none;border:0;display:flex;align-items:center;gap:13px;color:#aeb8d0;padding:13px 14px;border-radius:8px;text-align:left;margin:4px 0;font-weight:500}.nav-btn svg{width:18px;height:18px}.nav-btn:hover{background:#ffffff09;color:white}.nav-btn.active{background:#f5a623;color:#18233f}.nav-btn .count{margin-left:auto;font-size:11px;background:#ffffff13;padding:3px 7px;border-radius:4px}.nav-btn.active .count{background:#111d3f12}.sidebar-bottom{margin-top:auto;padding:24px 13px 0}.territory{border:1px solid #ffffff18;padding:15px;border-radius:9px;margin:40px 0 22px}.territory small{color:#aeb8d0;font-size:10px;letter-spacing:1.3px}.territory b{display:block;font-size:13px;font-weight:500;margin:10px 0}.territory .dot{display:inline-block;width:6px;height:6px;background:var(--gold);border-radius:50%;margin-right:7px}.territory p{font-size:11px;line-height:1.6;color:#8f9bb8;margin:0}.local{display:flex;align-items:center;gap:8px;font-size:11px;color:#8f9bb8}.local i{width:6px;height:6px;background:#62b6a0;border-radius:50%}.main{margin-left:240px;width:calc(100% - 240px);padding:0 42px 28px;max-width:1800px}.topbar{height:92px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:16px}.breadcrumb{color:#8a93a5;font-size:12px}.breadcrumb span{margin:0 12px;color:#bec5d1}.breadcrumb b{color:#586277;font-weight:500}.topright{display:flex;align-items:center;gap:18px}.date{color:#8a93a5;font-size:11px}.avatar{width:33px;height:33px;background:#e8ebf2;border:3px solid white;box-shadow:0 0 0 1px var(--line);border-radius:50%;display:grid;place-items:center;font-size:10px;font-weight:700}.heading{display:flex;justify-content:space-between;align-items:center;margin:34px 0 28px;gap:20px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.8px;color:#8c95a6;text-transform:uppercase}.heading h1{font-size:29px;line-height:1.2;margin:9px 0 9px;letter-spacing:-.9px;font-weight:650}.heading p{margin:0;color:var(--muted);font-size:13px}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.btn{border:1px solid #dfe3eb;border-radius:7px;background:white;color:#43506a;padding:11px 15px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;text-decoration:none}.btn svg{width:15px;height:15px}.btn:hover{background:#f0f2f6}.btn.primary{background:var(--navy);color:white;border-color:var(--navy)}.btn.primary:hover{background:var(--navy2)}.btn.gold{background:var(--gold);color:var(--navy);border-color:var(--gold)}.btn.ghost{background:transparent}.btn.danger{color:#b24646}.welcome{display:flex;align-items:center;justify-content:space-between;background:var(--navy);border-radius:12px;padding:29px 32px;color:white;overflow:hidden;position:relative;min-height:150px}.welcome:after{content:"";position:absolute;width:320px;height:320px;border:1px solid #ffffff0d;border-radius:50%;right:48px;top:-90px;pointer-events:none;box-shadow:0 0 0 42px #ffffff03,0 0 0 84px #ffffff02}.welcome-copy{position:relative;z-index:1}.welcome .eyebrow{color:var(--gold);font-size:9px}.welcome h2{font-size:23px;letter-spacing:-.5px;margin:12px 0 9px;font-weight:550}.welcome p{font-size:12px;color:#b2bdd4;margin:0;line-height:1.6}.welcome-status{position:relative;z-index:1;padding-left:25px;margin-left:25px;border-left:1px solid #ffffff22;min-width:166px}.pill{display:inline-flex;align-items:center;gap:7px;font-size:9px;letter-spacing:1px;background:#ffffff0c;border:1px solid #ffffff18;border-radius:20px;padding:6px 10px}.pill i{background:var(--gold);width:5px;height:5px;border-radius:50%}.welcome-status p{font-size:10px;margin-top:12px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin:23px 0}.stat{background:white;border:1px solid var(--line);border-radius:10px;padding:20px 22px}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#758095;font-size:11px}.stat-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:6px;background:#f5f6f9;color:#7584a9}.stat-icon svg{width:15px;height:15px}.stat strong{font-size:30px;font-weight:550;letter-spacing:-1px;display:block;margin:10px 0 7px}.stat small{font-size:10px;color:#9ba3b2}.stat small span{color:var(--green)}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:23px}.panel{border:1px solid var(--line);border-radius:10px;background:white;overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:22px 23px 20px}.panel h2{font-size:14px;margin:0;letter-spacing:-.2px;font-weight:650}.panel-sub{color:#9ba3b2;font-size:10px;margin-top:6px}.small-link{font-size:10px;color:#6f7f9f;border:0;background:none;padding:5px}.filters{border-top:1px solid #f0f2f6;border-bottom:1px solid var(--line);padding:14px 21px;display:flex;align-items:center;gap:9px;flex-wrap:wrap}.search{flex:1;min-width:145px;position:relative}.search svg{width:15px;height:15px;position:absolute;top:11px;left:11px;color:#a1aaba}.search input{width:100%;border:1px solid var(--line);border-radius:6px;padding:10px 10px 10px 33px;font-size:11px;color:var(--ink);background:#fafbfc}.filters select{background:white;border:1px solid var(--line);border-radius:6px;padding:9px 8px;font-size:10px;color:#738097;max-width:135px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:11px;white-space:nowrap}th{background:#fbfcfd;text-align:left;color:#8b94a5;font-size:9px;letter-spacing:.5px;font-weight:500;padding:13px 20px;border-bottom:1px solid var(--line)}td{padding:17px 20px;border-bottom:1px solid #f0f2f6;color:#758095}td b{display:block;font-weight:600;color:var(--ink);font-size:11px;margin-bottom:4px}td small{color:#9aa4b4;font-size:10px}.row-open{border:0;background:none;text-align:left;padding:0;cursor:pointer;color:inherit}.row-open:hover b{text-decoration:underline}.status{display:inline-flex;font-size:9px;padding:5px 8px;border-radius:4px;background:#eff2f8;color:#7483a2}.status.Qualified,.status.Partner{background:#eaf6f0;color:#348265}.status.Contacted,.status.Meeting{background:#edf2fb;color:#5479b8}.status.Closed{background:#f3eeee;color:#957a7a}.overdue{color:#be7044}.empty{padding:41px 20px 45px;text-align:center}.empty > svg{width:108px;height:84px}.empty h3{font-size:15px;margin:19px 0 10px;font-weight:600;letter-spacing:-.2px}.empty p{font-size:11px;line-height:1.8;color:#939caf;margin:0 auto 19px;max-width:295px}.empty .btn{font-size:11px;padding:10px 14px}.table-footer{display:flex;justify-content:space-between;padding:16px 22px;font-size:10px;color:#9ba3b2;border-top:1px solid #f1f3f6;gap:10px}.rail{display:flex;flex-direction:column;gap:20px}.rail .panel-head{padding-bottom:14px}.phase{margin:0 22px;padding:16px 0;border-top:1px solid #f0f2f5;display:flex;gap:13px}.phase-num{width:25px;height:25px;flex-shrink:0;border:1px solid #e5e9f0;border-radius:50%;display:grid;place-items:center;font-size:9px;color:#a5aebe}.phase.current .phase-num{color:#a56b0b;background:#fff4dd;border-color:#f8dca5}.phase h3{font-size:11px;font-weight:600;margin:2px 0 6px}.phase p{font-size:10px;line-height:1.65;color:#9aa3b4;margin:0}.tag{font-size:8px;background:#fff4dd;color:#b78226;border-radius:3px;padding:3px 5px;display:inline-block;margin-top:8px}.setup{padding:20px 22px}.setup h3{font-size:12px;margin:0 0 9px}.setup p{font-size:10px;line-height:1.8;color:#939caf;margin:0 0 15px}.setup .btn{font-size:10px;padding:9px 12px;width:100%}.footer{display:flex;justify-content:space-between;color:#9ca5b5;font-size:9px;margin-top:24px;line-height:1.6;gap:20px}.footer a{text-decoration:none}.footer a:hover{text-decoration:underline}.pipeline-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:0 22px 22px}.stage{background:#f8f9fb;border:1px solid #ebedf2;border-radius:8px;min-height:145px;padding:14px}.stage-head{display:flex;justify-content:space-between;font-size:11px;font-weight:600;margin-bottom:14px}.stage-head span{color:#9ca6b7}.stage p{font-size:10px;color:#a4adbc;line-height:1.7}.card{display:block;border:1px solid var(--line);border-radius:6px;padding:13px;width:100%;background:white;text-align:left;margin:9px 0;font-size:11px;color:var(--ink)}.card small{display:block;font-size:10px;color:#9ca5b5;margin-top:6px}.pipeline .content-grid,.followups .content-grid{grid-template-columns:minmax(0,1fr) 292px}.agencies .content-grid{grid-template-columns:1fr}.agencies .rail{display:none}.agencies .welcome,.pipeline .welcome,.followups .welcome{display:none}.hidden{display:none!important}dialog{border:0;border-radius:13px;box-shadow:0 25px 100px #111d3f40;max-height:90vh;max-width:710px;width:calc(100% - 28px);padding:0;color:var(--ink)}dialog::backdrop{background:#111d3f88;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:23px 27px;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:19px;letter-spacing:-.4px;margin:0 0 5px}.dialog-head p{font-size:11px;color:#8c96a8;margin:0}.close{background:none;border:0;font-size:24px;color:#9ba6b8;padding:0 6px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;padding:24px 27px}.field{display:flex;flex-direction:column;gap:7px}.field label{font-size:11px;font-weight:600;color:#61708a}.field input,.field select,.field textarea{width:100%;padding:10px 11px;border:1px solid #dfe4ed;border-radius:6px;background:#fcfcfd;color:var(--ink);font-size:12px;min-width:0}.field textarea{min-height:78px;resize:vertical}.full{grid-column:1/-1}.dialog-footer{padding:18px 27px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fafbfd}.dialog-footer .actions{justify-content:flex-end}.help-content{padding:24px 27px;font-size:12px;line-height:1.9;color:#718097}.help-content h3{color:var(--ink);font-size:13px;margin:18px 0 8px}.help-content h3:first-child{margin-top:0}.help-content ul{padding-left:19px}.help-content code{font-size:10px;background:#f0f2f7;padding:3px 6px;border-radius:4px;overflow-wrap:anywhere}.toast{position:fixed;bottom:25px;left:calc(50% + 120px);transform:translateX(-50%);background:var(--navy);color:white;padding:14px 22px;border-radius:8px;font-size:12px;box-shadow:0 6px 25px #111d3f22;z-index:10;max-width:80vw}.toast.error{background:#9b4141}.notice{padding:10px 14px;border:1px solid #f1dfbc;background:#fff9ee;border-radius:6px;font-size:11px;line-height:1.7;color:#937137;margin-bottom:14px}.import-preview{max-height:250px;overflow:auto;border:1px solid var(--line);border-radius:6px}.import-summary{margin-bottom:13px;font-size:12px}.mobile-brand{display:none} @media(min-width:1600px){.main{padding-left:60px;padding-right:60px}.content-grid{grid-template-columns:minmax(0,1fr) 320px}.empty{padding-top:60px;padding-bottom:60px}}@media(max-width:1200px){.sidebar{width:210px;padding-left:13px;padding-right:13px}.main{margin-left:210px;width:calc(100% - 210px);padding-left:26px;padding-right:26px}.content-grid,.pipeline .content-grid,.followups .content-grid{grid-template-columns:1fr}.rail{display:grid;grid-template-columns:1fr 1fr;align-items:start}.welcome-status{display:none}.stats{gap:12px}.stat{padding:17px}.toast{left:calc(50% + 105px)}}@media(max-width:760px){.shell{display:block}.sidebar{position:static;width:100%;padding:20px;display:block}.brand{padding:0}.brand-note,.nav-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;gap:6px;margin-top:20px}.nav-btn{justify-content:center;padding:10px 7px;font-size:10px;gap:6px;margin:0}.nav-btn svg{width:15px}.nav-btn .count{display:none}.main{margin:0;width:100%;padding:0 18px 24px}.topbar{height:56px}.date{display:none}.heading{align-items:flex-start;flex-direction:column;margin:24px 0}.heading h1{font-size:26px}.heading .actions{width:100%}.heading .actions .btn{flex:1}.welcome{padding:24px}.welcome h2{font-size:21px}.stats{grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.stat{padding:15px}.stat strong{font-size:27px}.stat-top{font-size:10px}.content-grid{gap:17px}.rail{display:flex}.pipeline-grid{grid-template-columns:1fr 1fr;padding:0 15px 15px;gap:10px}.panel-head{padding:20px 17px}.filters{padding:13px 15px}.search{flex-basis:100%}.filters select{flex:1;max-width:none}.footer{flex-direction:column;gap:9px}.form-grid{padding:20px;gap:14px}.dialog-head,.dialog-footer{padding:20px}.toast{left:50%;width:max-content}.breadcrumb{font-size:10px}.table-footer{font-size:9px}}@media(prefers-reduced-motion:no-preference){.btn,.nav-btn{transition:background .16s}.panel,.stat{animation:appear .3s ease-out}@keyframes appear{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}}
.decision-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}.decision-tab{display:flex;gap:10px;align-items:center;border:1px solid var(--line);background:white;border-radius:7px;padding:10px 13px;color:#748099;font-size:11px}.decision-tab.active{background:var(--navy);color:white;border-color:var(--navy)}.decision-tab span{font-weight:650}.decision-select{max-width:140px;border:1px solid #e0e5ed;border-radius:5px;background:#f9fafc;padding:7px;color:#58677f;font-size:10px}.decision-select[data-value="Move forward"]{background:#eaf5ef;color:#287b57;border-color:#d3e9dc}.decision-select[data-value="Possible lead"]{background:#fff5df;color:#9f792a;border-color:#f1dfb3}.decision-select[data-value="No-go"]{background:#f9ecec;color:#a25e5e;border-color:#eddcdc}.decision-select[data-value="Done"]{background:#edf0fa;color:#6578a7}.card-wrap{padding:12px;background:white;border:1px solid var(--line);border-radius:7px;margin:9px 0}.card-wrap .card{border:0;padding:0;margin:0 0 11px}.card-wrap .decision-select{width:100%;max-width:none}.card-meta{font-size:9px;color:#95a0b2;line-height:1.6;margin:8px 0}.status-label{font-size:9px;color:#95a0b2;margin-top:5px}.next-step{max-width:210px;white-space:normal;line-height:1.5;font-size:10px;color:#8190a5;margin-top:6px}.pipeline-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.decision-help{font-size:10px;line-height:1.7;color:#97a0b1}.mode-button{font-size:10px;padding:8px 11px}.pipeline .rail{display:none}.pipeline .content-grid{grid-template-columns:1fr}@media(max-width:760px){.decision-tabs{gap:6px}.decision-tab{font-size:10px;padding:8px 9px}.pipeline-grid{grid-template-columns:1fr 1fr}.topright{gap:8px}}@media(max-width:400px){.pipeline-grid{grid-template-columns:1fr}}
