/* Original SolarQ V8.3 design system, scoped to native authenticated workspace.
   No demo JavaScript, sample data or localStorage included. */
@scope (#sandbox-shell) {

:scope{--bg:#f9f4e9;--paper:#fffdf8;--ink:#171b18;--muted:#71695d;--line:#e3d8c8;--teal:#08696f;--soft:#e8f2ed;--red:#a33f35;--gold:#a77931}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'Segoe UI',Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:9px;background:var(--paper);padding:10px 13px;color:var(--ink);font-weight:600}button:hover{background:var(--soft)}button:disabled{opacity:.45;cursor:not-allowed}.primary{background:var(--teal);border-color:var(--teal);color:#fff}.primary:hover{background:#07575b}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #68b9b3;outline-offset:2px}aside{position:fixed;inset:0 auto 0 0;width:216px;padding:23px 16px;background:#fffaf0;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:8px}.brand{width:168px;height:auto;display:block}.small{font-size:11px;color:var(--muted)}.sub{font-size:10px;text-transform:uppercase;letter-spacing:1.4px;font-weight:700;color:var(--muted);margin:3px 0 18px}.nav{border:0;background:transparent;text-align:left;display:flex;gap:10px;align-items:center}.nav.active{background:var(--soft);color:var(--teal)}.profile{margin-top:auto;border-top:1px solid var(--line);padding-top:16px;display:flex;gap:10px;align-items:center}.avatar{display:grid;place-items:center;background:var(--soft);color:var(--teal);border-radius:50%;width:36px;height:36px;font-weight:800;flex:none}.profile b{display:block}main{margin-left:216px;padding:25px 28px;min-width:0}header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}h1{font-size:30px;letter-spacing:-.7px;margin:4px 0}h2{font-size:20px;margin:0 0 13px}h3{font-size:15px;margin:0 0 8px}p{line-height:1.5;margin:5px 0 12px;color:var(--muted)}.eyebrow{font-weight:800;letter-spacing:1.5px;font-size:10px;color:var(--teal);text-transform:uppercase}.lang{display:flex;gap:3px;border:1px solid var(--line);border-radius:30px;padding:3px}.lang button{border:0;border-radius:30px;padding:7px 12px;background:none}.lang button.active{background:var(--teal);color:#fff}.header-actions,.row,.toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.between{justify-content:space-between}.spacer{flex:1}.demo{font-size:11px;line-height:1.4;color:var(--muted);padding:8px 0;margin-bottom:6px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.stat,.panel{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:15px}.stat{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:12px;color:var(--muted)}.stat strong{font-size:21px;color:var(--teal)}.toolbar{margin:12px 0}.seg{display:flex;background:#eee7db;padding:4px;border-radius:11px;gap:3px}.seg button{border:0;background:transparent}.seg button.active{background:var(--paper);color:var(--teal);box-shadow:0 1px 4px #0001}.create{font-size:15px;padding:13px 18px}.scrolltools{display:flex;gap:8px;align-items:center;margin:9px 0}.scrolltools button{padding:7px 13px}.topscroll{overflow-x:auto;flex:1;scrollbar-color:var(--teal) #ded6c8;scrollbar-width:auto;height:17px}.topscroll div{height:1px}.board{display:flex;gap:11px;overflow-x:auto;align-items:flex-start;min-height:390px;padding:3px 1px 15px;scrollbar-color:var(--teal) #ded6c8}.lane{flex:0 0 265px;background:#eee7db;border:1px solid #e3d8c8;border-radius:12px;padding:10px;min-height:345px}.lane.over{outline:2px solid var(--teal);outline-offset:-2px}.lanehead{display:flex;gap:7px;align-items:flex-start;min-height:57px}.dot{width:9px;height:9px;flex:none;border-radius:50%;margin-top:5px}.lanehead b{font-size:13px;line-height:1.3;display:block}.lanehead small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.count{margin-left:auto;background:#fff9;padding:3px 6px;border-radius:6px;font-size:11px}.sum{font-size:11px;color:var(--muted);padding:4px 0 10px}.card{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:12px;margin-bottom:9px;cursor:pointer;box-shadow:0 2px 4px #00000006}.card:hover{border-color:#7db1a8}.card h3{margin:10px 0 4px}.card p{font-size:12px;margin:3px 0 8px}.pill{background:var(--soft);color:var(--teal);padding:4px 7px;border-radius:5px;font-size:10px;font-weight:700;display:inline-block}.warn{background:#fff0d4;color:#8a5d20}.danger{color:var(--red)}.pill.danger{background:#fde8e3}.cardbottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #ece6dc;padding-top:9px;margin-top:9px;gap:5px;font-size:11px;color:var(--muted)}.card .primary{width:100%;margin-top:9px;padding:8px 6px;font-size:12px}.empty{text-align:center;color:var(--muted);padding:20px 5px;font-size:12px}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.panel{margin-bottom:12px;min-width:0}.lineitem{display:flex;align-items:center;gap:10px;padding:12px 0;border-top:1px solid var(--line)}.lineitem:first-of-type{border-top:0}.lineitem b{display:block}.lineitem .spacer{min-width:0}.tablewrap{overflow:auto;background:var(--paper);border:1px solid var(--line);border-radius:12px}table{border-collapse:collapse;width:100%;text-align:left}th,td{padding:11px;border-bottom:1px solid var(--line);vertical-align:top;min-width:110px;font-size:12px}th{background:#eee7db;color:var(--muted);font-weight:700}tr.click{cursor:pointer}tr.click:hover{background:var(--soft)}input,select,textarea{background:white;border:1px solid var(--line);border-radius:8px;padding:10px;max-width:100%;min-width:0;color:var(--ink)}textarea{resize:vertical}dialog{border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);width:min(720px,96vw);max-height:calc(100dvh - 22px);padding:22px;overflow:auto;box-shadow:0 20px 80px #0003}dialog::backdrop{background:#102e2b77}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.fields label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:12px}.fields label input[type=checkbox]{width:auto;min-height:0}.fields label input,.fields label select,.fields label textarea{width:100%;color:var(--ink)}.wide{grid-column:1/-1}.formactions{display:flex;justify-content:flex-end;gap:8px;position:sticky;bottom:-22px;background:var(--paper);padding:13px 0 5px;margin-top:15px;border-top:1px solid var(--line)}.err{color:var(--red);font-size:12px;margin:8px 0}.timeline{border-left:2px solid #b4c9bf;margin-left:7px;padding-left:15px}.timeline article{padding:0 0 14px}.timeline p{margin:3px 0;font-size:12px;overflow-wrap:anywhere}.callout{background:#fff5df;border:1px solid #e7d1a3;border-radius:9px;padding:12px;color:#745420;font-size:12px;margin:10px 0}.guidegrid{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.4fr);gap:14px;align-items:start}.guidebtn{display:block;width:100%;text-align:left;margin-bottom:6px;border-color:transparent;background:transparent}.guidebtn.active{background:var(--soft);border-color:#b9d8ce;color:var(--teal)}.guidebtn small{display:block;font-weight:400;margin:3px 0 0;color:var(--muted)}.guide-detail{position:sticky;top:10px}.guide-detail h2{font-family:Georgia,serif;font-size:30px;font-weight:400}.check{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid var(--line);border-radius:8px;margin:6px 0}.check input{accent-color:var(--teal)}.progress{height:7px;border-radius:8px;background:#e5ddd0;overflow:hidden;margin:10px 0}.progress div{height:100%;background:var(--teal)}.guide-detail li{margin:8px 0;line-height:1.45}.nowrap{white-space:nowrap}.badge{font-size:11px;color:var(--muted)}[hidden]{display:none!important}a{color:var(--teal)}.stagejump{max-width:250px}.toast{position:fixed;bottom:20px;right:20px;background:#123d39;color:#fff;padding:14px 18px;border-radius:10px;z-index:99;max-width:90vw;box-shadow:0 5px 20px #0003}.tagline{font-size:12px;color:var(--muted)}
@media(max-width:1000px){main{padding:19px 16px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.grid3{grid-template-columns:1fr 1fr}.guidegrid{grid-template-columns:1fr}.guide-detail{position:static}}@media(max-width:750px){aside{position:static;width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:12px;border-right:0;border-bottom:1px solid var(--line)}.brand{width:130px;grid-column:1/3}.sub{display:none}.profile{grid-column:3;grid-row:1;border:0;margin:0;padding:0;justify-content:flex-end}.profile .small{display:none}.nav{justify-content:center;text-align:center;font-size:12px;padding:9px 4px;min-height:42px}main{margin:0;padding:14px 12px}header{align-items:flex-start}h1{font-size:24px}.header-actions{justify-content:flex-end}.grid2,.grid3{grid-template-columns:1fr}.stat{padding:12px;font-size:11px}.stat strong{font-size:19px}.toolbar input{width:100%}.toolbar .spacer{display:none}.create{flex:1}.board{scroll-snap-type:x proximity;min-height:300px}.lane{flex-basis:min(82vw,320px);scroll-snap-align:start;min-height:280px}.stagejump{max-width:100%;width:100%}.scrolltools .small{display:none}.fields{grid-template-columns:1fr}.wide{grid-column:auto}dialog{padding:16px;width:calc(100vw - 14px)}input,select,textarea{font-size:16px}button{min-height:40px}.formactions{bottom:-16px}.guidegrid{display:block}.tablewrap{max-width:100%}}

/* SolarQ / Kapai UI system – offline vector icons, activity feed and refined surfaces */
:scope{--bg:#f8f5ee;--paper:#fffefa;--ink:#202b29;--muted:#68736e;--line:#e1e3d9;--teal:#08696f;--soft:#e6f1ed;--red:#a84137;--gold:#9b7129;--shadow:0 3px 12px #1c39340a}body{font:14px/1.48 'Segoe UI',Arial,sans-serif;-webkit-font-smoothing:antialiased} .ui-icon{width:18px;height:18px;flex:0 0 18px;display:inline-block;vertical-align:middle}button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:8px;transition:background .15s,border-color .15s,box-shadow .15s}button:not(.nav):hover{box-shadow:0 2px 5px #162d2610}button.primary{box-shadow:0 2px 4px #08696f20}button .ui-icon{width:17px;height:17px;flex-basis:17px}a .ui-icon{width:15px;height:15px}aside{background:#fffdf8;padding:24px 15px;gap:5px}aside .brand{margin:0 0 4px 5px}.sub{letter-spacing:1.1px;margin:0 0 22px 5px;font-size:9px}.nav{font-size:13px;padding:12px 11px;justify-content:flex-start;position:relative;color:#52615a;min-height:44px}.nav .ui-icon{width:19px;height:19px;flex-basis:19px}.nav.active{font-weight:700;background:#e4efea;color:#08696f}.nav.active:before{content:'';position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:3px;background:var(--teal)}.profile{padding:16px 5px}.avatar,.mini-avatar,.contact-avatar{display:inline-grid;place-items:center;background:#e4efea;color:#08696f;font-weight:700;border-radius:50%;flex:none}.mini-avatar{width:25px;height:25px;font-size:11px}.contact-avatar{width:50px;height:50px;font-size:17px}.demo{font-size:10px;margin:0 0 14px;color:#7a8075;padding:7px 0;border-bottom:1px solid #e3e4db;letter-spacing:.1px}h1{font-size:29px;letter-spacing:-.8px;line-height:1.2}h2{font-size:19px;letter-spacing:-.35px}h3{font-weight:650}.stats{gap:12px;margin:15px 0 18px}.stat{padding:14px 15px;box-shadow:var(--shadow);align-items:flex-start;min-height:84px}.stat>div{min-width:0}.stat>div>span{display:block;font-size:11px;font-weight:600;margin-bottom:5px}.stat strong{display:block;font-size:24px;font-weight:670;letter-spacing:-.6px;line-height:1.2;color:#253b34}.stat-icon,.item-icon{display:grid;place-items:center;border-radius:10px;width:35px;height:35px;flex:none;background:var(--soft);color:var(--teal)}.stat-icon.alert{background:#fbeee8;color:var(--red)}.stat-icon.pause{background:#faf0dd;color:var(--gold)}.panel{box-shadow:var(--shadow);border-radius:12px}.toolbar{gap:10px;margin:14px 0}.seg{background:#eaece4;border:1px solid #e1e3d9;padding:3px}.seg button{padding:9px 12px}.create{padding:12px 17px}.searchbox{position:relative;min-width:160px}.searchbox .ui-icon{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:#77837a}.searchbox input{padding-left:35px;width:100%}.scrolltools{margin:10px 0 13px;gap:9px}.scrolltools button{padding:8px 10px;min-width:34px}.topscroll{scrollbar-color:#7aa49b #e3e6de;border-radius:8px}.board{gap:13px;min-height:400px}.lane{flex-basis:280px;background:#eeeee6;border:1px solid #e0e3d9;border-radius:12px;padding:11px;min-height:360px}.lanehead{align-items:flex-start;min-height:53px;padding:3px 1px 0;gap:8px}.lanehead b{font-size:13px;font-weight:700;letter-spacing:-.15px}.lanehead small{font-size:11px;color:#6d7770}.count{background:#fffdf8;border:1px solid #e1e3d9;min-width:24px;text-align:center;line-height:1.25}.sum{padding:5px 2px 12px;color:#738077;font-size:10px;font-weight:600}.card{background:#fffefa;box-shadow:0 2px 5px #1c39340a;border-color:#e1e3d9;padding:13px;border-radius:10px;margin-bottom:10px;transition:border-color .15s,box-shadow .15s}.card:hover{box-shadow:0 4px 12px #1c393410;border-color:#9abcb1}.card .leadname{font-size:15px;letter-spacing:-.25px;line-height:1.3;margin:10px 0 5px}.card .location{display:flex;gap:4px;align-items:center;flex-wrap:wrap}.location .ui-icon,.cardbottom .ui-icon{width:13px;height:13px;flex-basis:13px}.meta-divider{color:#a7aea4}.cardbottom{border-color:#edf0e8;gap:7px}.cardbottom>span:first-child{display:flex;align-items:center;gap:5px}.card .card-action{display:flex;justify-content:space-between;text-align:left;padding:9px 10px;min-height:37px;gap:5px;font-size:11.5px}.card-action .ui-icon{width:15px;height:15px;flex-basis:15px}.pill{border-radius:5px;font-size:10px;padding:4px 7px;line-height:1.35}.lineitem{gap:11px;padding:13px 0}.lineitem .small{line-height:1.5}.item-icon{width:34px;height:34px;border-radius:9px}.section-label{display:flex;align-items:center;gap:7px}.section-label .ui-icon{color:var(--teal);width:16px;height:16px;flex-basis:16px}.modal-heading{padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:14px}.modal-heading h2{margin:0;font-size:22px}.modal-heading button{padding:7px;border-color:transparent;background:transparent}.detail-dialog{width:min(850px,96vw)}.lead-summary{display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:13px;background:#eff4ee;border:1px solid #dfe9df;border-radius:11px}.lead-stage b{font-size:13px}.lead-stage small{display:block;color:var(--muted)}.lead-value{margin-left:auto;font-size:22px;color:var(--teal);white-space:nowrap}.activity-section{background:#fffefa;border:1px solid var(--line);border-radius:12px;padding:18px 19px;margin-top:4px}.activity-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding-bottom:15px;border-bottom:1px solid var(--line);margin-bottom:13px}.activity-head h3{margin:3px 0 0;font-size:19px;letter-spacing:-.35px;display:flex;align-items:center;gap:8px}.activity-head select{font-size:12px;padding:8px;max-width:180px}.total-count{font-size:11px;color:#61736a;background:#edf0e9;border-radius:20px;padding:3px 8px;letter-spacing:0}.timeline{border:0;padding:0;margin:0}.activity-group{margin-bottom:12px}.activity-date{font-size:11px;font-weight:700;letter-spacing:.025em;color:#718077;margin:15px 0 11px}.timeline article.activity-event{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;position:relative;padding:0 0 16px;min-height:55px}.activity-event:not(:last-child):before{content:'';position:absolute;width:1px;background:#dce5dc;left:16px;top:32px;bottom:0}.activity-marker{width:34px;height:34px;display:grid;place-items:center;z-index:1;border-radius:50%;background:#edf1e9;border:1px solid #dfe7db;color:#5e7366}.activity-marker .ui-icon{width:16px;height:16px}.activity-marker.stage{background:#e7f0ee;color:#08696f;border-color:#d2e4de}.activity-marker.contact{background:#e8f1f5;color:#426d80;border-color:#d8e7ee}.activity-marker.meeting{background:#edecf6;color:#696389;border-color:#e0deee}.activity-marker.offer{background:#eaf2e7;color:#47744e;border-color:#dbe9d6}.activity-marker.status{background:#fcf1df;color:#987231;border-color:#f1e4ca}.activity-content{min-width:0;padding:1px 0 0}.activity-title{display:flex;gap:10px;align-items:baseline;justify-content:space-between}.activity-title b{font-size:13px;font-weight:650}.activity-title time{font-size:11px;color:#7b857c;white-space:nowrap}.activity-meta{display:flex;gap:4px;align-items:center;font-size:11px;color:#7a857c;margin-top:3px}.activity-meta .ui-icon{width:12px;height:12px;flex-basis:12px}.activity-note{background:#f6f7f1;border:1px solid #eceee5;color:#485950;border-radius:7px;padding:8px 10px;margin-top:8px;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.stage-transition{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:8px;font-size:11px;color:#68776d}.stage-transition span{background:#f2f3ed;border:1px solid #e3e6dd;padding:4px 7px;border-radius:5px}.stage-transition span:last-child{background:#e5f0e9;color:#08696f;border-color:#d1e5da;font-weight:600}.stage-transition .ui-icon{width:13px;height:13px;flex-basis:13px}.timeline-empty{text-align:center;color:#718077;padding:24px}.timeline-empty .ui-icon{width:24px;height:24px}.guidebtn{display:block}.guidebtn.active{box-shadow:none}.tablewrap th{background:#edf0e9}input,textarea,select{border-color:#dde2d8}dialog::backdrop{background:#1c302b66;backdrop-filter:blur(2px)}
@media(max-width:750px){aside{padding:12px 10px;gap:4px}.nav{justify-content:flex-start;font-size:11px;gap:6px;padding:8px 7px;min-height:43px}.nav .ui-icon{width:15px;height:15px;flex-basis:15px}.nav.active:before{top:7px;bottom:7px}.profile{padding:0}.stats{gap:8px}.stat{padding:11px;min-height:73px}.stat strong{font-size:20px}.stat-icon{width:29px;height:29px}.stat-icon .ui-icon{width:16px;height:16px}.searchbox{width:100%;flex:1 1 100%}.lane{flex-basis:min(82vw,320px);min-height:280px}.scrolltools{flex-wrap:wrap}.topscroll{min-width:100px}.detail-dialog{width:calc(100vw - 14px)}.lead-summary{padding:11px;gap:9px;flex-wrap:wrap}.lead-value{font-size:18px}.activity-section{padding:12px}.activity-head{align-items:flex-start;flex-wrap:wrap}.activity-head h3{font-size:17px}.activity-head select{max-width:100%;width:100%;font-size:14px}.timeline article.activity-event{grid-template-columns:29px minmax(0,1fr);gap:8px}.activity-marker{width:29px;height:29px}.activity-event:not(:last-child):before{left:14px;top:29px}.activity-title{gap:5px;flex-wrap:wrap}.activity-title time{margin-left:auto}.lineitem{flex-wrap:wrap}.lineitem .spacer{min-width:140px}.lineitem button{font-size:12px}.modal-heading h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}


input.topscroll{appearance:none;-webkit-appearance:none;flex:1;height:10px;padding:0;margin:0;min-width:75px;background:#e0e5dc;border:0;border-radius:10px;cursor:ew-resize}input.topscroll::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;height:12px;width:64px;border:1px solid #69988c;border-radius:9px;background:#86afa4}input.topscroll::-moz-range-thumb{height:12px;width:64px;border:1px solid #69988c;border-radius:9px;background:#86afa4}input.topscroll:disabled{opacity:.4;cursor:default}.activity-section{scroll-margin-top:12px}@media(max-width:750px){.detail-dialog .lead-summary+.row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.detail-dialog .lead-summary+.row button{font-size:12px;padding:8px 6px;white-space:normal}.detail-dialog .lead-summary+.row button.primary{grid-column:1/-1}.detail-dialog .panel{margin-bottom:0}.detail-dialog .grid2{gap:9px;margin-bottom:14px}.detail-dialog .panel p{margin:5px 0 8px}.toolbar .topscroll{width:auto}}
.product-picker{margin:0;min-width:0;border:0;padding:0}.product-picker legend{font-weight:700;font-size:13px;margin-bottom:8px}.product-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product-option{position:relative;display:flex!important;flex-direction:row!important;align-items:center;gap:8px;min-height:56px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer}.product-option input{position:absolute;opacity:0;width:1px;height:1px}.product-option:has(input:checked){background:#e8f2ed;border-color:#08696f;color:#08696f}.product-option:focus-within{outline:2px solid #08696f;outline-offset:2px}.product-visual{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.product-visual .ui-icon{flex:none;width:20px;height:20px}.product-check{display:grid;place-items:center;width:19px;height:19px;border:1px solid #b4c0ba;border-radius:5px;flex:none}.product-check .ui-icon{visibility:hidden;width:14px;height:14px}.product-option:has(input:checked) .product-check{background:#08696f;color:white;border-color:#08696f}.product-option:has(input:checked) .product-check .ui-icon{visibility:visible}.product-picker small{display:block;margin-top:6px;color:var(--muted)}.tech-group{padding:12px;border:1px solid var(--line);border-radius:10px;background:#fffdf9}.tech-group h3{margin:0 0 10px;font-size:13px;color:#08696f}.card .pill{white-space:normal;max-width:100%;overflow-wrap:anywhere}.card>.row:first-child{align-items:flex-start}.card>.row:first-child>.small{flex:none}@media(max-width:480px){.product-options{grid-template-columns:1fr}}

}
#sandbox-shell{border:0;padding:0;background:#f8f5ee;color:#202b29;font:14px/1.48 'Segoe UI',Arial,sans-serif}
#sandbox-shell .sandbox-layout{grid-template-columns:216px minmax(0,1fr);flex:1;min-height:0}
#sandbox-shell .sandbox-sidebar{position:relative;inset:auto;width:auto;height:100%;padding:24px 15px;gap:5px;overflow:auto;background:#fffdf8;border-right:1px solid #e1e3d9}
#sandbox-shell .sandbox-sidebar nav{display:flex;flex-direction:column;gap:5px}
#sandbox-shell .sandbox-sidebar .nav{width:100%;margin:0;color:#52615a;padding:12px 11px;background:transparent;border:0;text-align:left;justify-content:flex-start}
#sandbox-shell .sandbox-sidebar .nav.active{color:#08696f;background:#e4efea}
#sandbox-shell .sb-nav-icon{width:20px;text-align:center;font-size:19px;flex:none}
#sandbox-shell .sandbox-content{overflow:auto;min-width:0;padding:25px 28px;background:#f8f5ee}
#sandbox-shell .sandbox-content>section,#sandbox-shell .lane{border-top:0;padding-top:0}
#sandbox-shell .lane{border:1px solid #e0e3d9;padding:11px}
#sandbox-shell .sandbox-content .sb-header{margin-bottom:15px;align-items:center}
#sandbox-shell .sb-header h1{font-size:29px;letter-spacing:-.8px;margin:4px 0;line-height:1.2}
#sandbox-shell .sb-header p{margin:0;font-size:12px;color:#68736e}
#sandbox-shell .sandbox-content .eyebrow{font-size:10px;letter-spacing:1.5px}
#sandbox-shell .sandbox-content button,#sandbox-shell .sandbox-content select{width:auto;margin:0;color:#202b29}
#sandbox-shell .sandbox-content button.primary{color:#fff;background:#08696f}
#sandbox-shell .sandbox-content button.active{color:#08696f;background:#fffefa}
#sandbox-shell .sandbox-content .lang button.active{color:#fff;background:#08696f}
#sandbox-shell .sandbox-content .toolbar input{width:100%;padding:10px;border-color:#dde2d8}
#sandbox-shell .sandbox-content .searchbox input{padding-left:12px}
#sandbox-shell .sandbox-content .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
#sandbox-shell .sandbox-content .board{display:flex;gap:13px;overflow-x:auto;min-height:400px;padding:3px 1px 15px;align-items:flex-start}
#sandbox-shell .sandbox-content .card{display:block;cursor:default}
#sandbox-shell .sandbox-content .card .leadname{cursor:pointer}
#sandbox-shell .sandbox-content .card .primary{width:100%;margin-top:9px}
#sandbox-shell .sb-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:8px}
#sandbox-shell .sb-card-actions button{font-size:10px;padding:7px 4px;line-height:1.2}
#sandbox-shell .sandbox-content .scrolltools input{width:auto;padding:0}
#sandbox-shell .sandbox-content #sandbox-status{font-size:11px;color:#68736e;margin:4px 0}
#sandbox-shell .sandbox-content .tablewrap td button{font-size:12px;padding:7px 10px}
#sandbox-shell .sandbox-content .tablewrap{min-height:80px}
#sandbox-dialog{width:min(850px,96vw);background:#fffefa;border-color:#e1e3d9;color:#202b29;font:14px/1.48 'Segoe UI',Arial,sans-serif;padding:22px}
#sandbox-dialog .sb-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#sandbox-dialog .sb-fields>.wide,#sandbox-dialog .sb-fields>#sb-standby-fields,#sandbox-dialog .sb-fields>#sb-closing-fields{grid-column:1/-1}
#sandbox-dialog .sb-field label{font-size:12px;color:#68736e;margin:0 0 5px}
#sandbox-dialog .sb-field input,#sandbox-dialog .sb-field select,#sandbox-dialog .sb-field textarea{width:100%;border:1px solid #dde2d8;border-radius:8px;padding:10px;color:#202b29;font-size:14px;background:white}
#sandbox-dialog .sb-section{margin:12px 0 0}
#sandbox-dialog .formactions{display:flex;justify-content:flex-end;gap:8px;position:sticky;bottom:-22px;background:#fffefa;padding:13px 0 5px;margin-top:15px;border-top:1px solid #e1e3d9}
#sandbox-dialog .formactions button{width:auto;margin:0}
#sandbox-dialog #sb-technologies{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#sandbox-dialog #sb-technologies label{position:relative;display:flex;align-items:center;gap:8px;min-height:56px;padding:10px;border:1px solid #e1e3d9;border-radius:10px;background:#fff;cursor:pointer;margin:0}
#sandbox-dialog #sb-technologies label input{position:absolute;opacity:0;width:1px;height:1px}
#sandbox-dialog #sb-technologies label:has(input:checked){background:#e8f2ed;border-color:#08696f;color:#08696f}
#sandbox-dialog #sb-technologies label:focus-within{outline:2px solid #08696f;outline-offset:2px}
#sandbox-dialog .product-visual{flex:1}#sandbox-dialog .product-check{width:19px;height:19px;border:1px solid #b4c0ba;border-radius:5px;color:transparent;text-align:center}#sandbox-dialog .product-option:has(input:checked) .product-check{background:#08696f;color:white}
@media(max-width:1000px){#sandbox-shell .sandbox-content{padding:19px 16px}#sandbox-shell .sandbox-content .stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){#sandbox-shell .sandbox-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}#sandbox-shell .sandbox-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:12px 10px;border-right:0;border-bottom:1px solid #e1e3d9}#sandbox-shell .sandbox-sidebar .brand{width:130px;grid-column:1;grid-row:1}#sandbox-shell .sandbox-sidebar .profile{grid-column:2;grid-row:1;justify-self:end;margin:0}#sandbox-shell .sandbox-sidebar .sub{display:none}#sandbox-shell .sandbox-sidebar nav{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}#sandbox-shell .sandbox-sidebar .nav{padding:8px 7px;font-size:11px;gap:6px;min-height:40px}#sandbox-shell .sandbox-content{padding:14px 12px}#sandbox-shell .sandbox-content .sb-header h1{font-size:24px}#sandbox-shell .sandbox-content .lane{flex-basis:min(82vw,320px)}#sandbox-dialog .sb-fields{grid-template-columns:1fr}#sandbox-dialog .formactions{bottom:-16px}}
@media(max-width:480px){#sandbox-dialog #sb-technologies{grid-template-columns:1fr}}

/* Exact reference shell alignment: no extra global header. Original static SVGs and one primary card action. */
#sandbox-shell{--bg:#f8f5ee;--paper:#fffefa;--ink:#202b29;--muted:#68736e;--line:#e1e3d9;--teal:#08696f;--soft:#e6f1ed;--red:#a84137;--gold:#9b7129;--shadow:0 3px 12px #1c39340a}
#sandbox-shell .sandbox-layout{height:100%;min-height:0}
#sandbox-shell .sandbox-sidebar .brand{width:168px;max-width:100%;height:auto;margin:0 0 4px 5px}
#sandbox-shell .sandbox-sidebar .profile{margin-top:auto}
#sandbox-shell .sandbox-sidebar .nav .ui-icon{width:19px;height:19px;flex:0 0 19px}
#sandbox-shell .sandbox-sidebar .profile .small{display:block;font-size:11px}
#sandbox-shell .sb-account-actions{display:flex;gap:8px;justify-content:space-between;margin:0 5px}
#sandbox-shell .sb-account-actions button{width:auto;margin:0;background:transparent;color:#68736e;border:0;padding:2px 0;font-size:10px;font-weight:500;min-height:0}
#sandbox-shell .sandbox-content .sb-header{flex-wrap:nowrap}
#sandbox-shell .sandbox-content .sb-notice{display:flex;align-items:center;gap:8px;min-height:30px}
#sandbox-shell .sandbox-content .sb-notice button{margin-left:auto;background:transparent;color:#68736e;padding:3px;border:0;min-height:0}
#sandbox-shell .sandbox-content #sandbox-status{font-size:10px;white-space:nowrap;margin:0}
#sandbox-shell .sandbox-content button:not(.primary){border-color:var(--line);background:var(--paper);font:inherit;font-weight:600}
#sandbox-shell .sandbox-content .lang button{border:0;background:transparent;font-size:14px;padding:7px 12px}
#sandbox-shell .sandbox-content .lang button.active{background:#08696f;color:white}
#sandbox-shell .sandbox-content .seg button{border:0;background:transparent;padding:9px 12px;font-size:14px}
#sandbox-shell .sandbox-content .seg button.active{background:var(--paper);color:#08696f}
#sandbox-shell .sandbox-content .toolbar .primary.create{padding:12px 17px;font-size:15px;line-height:1.48}
#sandbox-shell .sandbox-content .searchbox input{padding:10px 12px 10px 35px;width:249px;font:inherit}
#sandbox-shell .sandbox-content .toolbar select{font:inherit;padding:10px}
#sandbox-shell .sandbox-content .scrolltools select{width:250px;font:inherit;padding:10px}
#sandbox-shell .sandbox-content .scrolltools .topscroll{height:10px;padding:0;border:0;background:#e0e5dc}
#sandbox-shell .sandbox-content .scrolltools button{padding:8px 10px}
#sandbox-shell .sandbox-content .card{cursor:pointer}
#sandbox-shell .sandbox-content .card .leadname{cursor:inherit}
#sandbox-shell .sandbox-content .card .card-action{font-size:11.5px;line-height:1.48;padding:9px 10px;min-height:37px}
#sandbox-shell .sandbox-content .lanehead{flex-wrap:nowrap}
#sandbox-shell .sandbox-content .stat-icon.alert{background:#fbeee8;color:#a84137}
#sandbox-shell .sandbox-content .stat-icon.pause{background:#faf0dd;color:#9b7129}
#sb-detail-dialog{width:min(850px,96vw);max-height:calc(100dvh - 22px);padding:22px;border:1px solid #e1e3d9;border-radius:16px;background:#fffefa;color:#202b29;font:14px/1.48 'Segoe UI',Arial,sans-serif;overflow:auto;--line:#e1e3d9;--paper:#fffefa;--teal:#08696f;--muted:#68736e;--soft:#e6f1ed}
#sb-detail-dialog::backdrop{background:#1c302b66;backdrop-filter:blur(2px)}
#sb-detail-dialog .ui-icon{width:18px;height:18px;flex:none;vertical-align:middle}
#sb-detail-dialog .row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
#sb-detail-dialog .between{justify-content:space-between}
#sb-detail-dialog button{width:auto;margin:0;padding:10px 13px;border:1px solid #e1e3d9;border-radius:8px;background:#fffefa;color:#202b29;font:inherit;font-weight:600;display:inline-flex;align-items:center;gap:7px}
#sb-detail-dialog button.primary{background:#08696f;color:white;border-color:#08696f}
#sb-detail-dialog .modal-heading{padding-bottom:12px;border-bottom:1px solid #e1e3d9;margin-bottom:14px}
#sb-detail-dialog .modal-heading h2{margin:0;font-size:22px}
#sb-detail-dialog .lead-summary{display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:13px;background:#eff4ee;border:1px solid #dfe9df;border-radius:11px}
#sb-detail-dialog .contact-avatar{width:50px;height:50px;display:grid;place-items:center;background:#e4efea;color:#08696f;border-radius:50%;font-weight:700;font-size:17px}
#sb-detail-dialog .lead-stage small{display:block;color:#68736e}
#sb-detail-dialog .grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#sb-detail-dialog .panel,#sb-detail-dialog .activity-section{background:#fffefa;border:1px solid #e1e3d9;border-radius:12px;padding:15px;min-width:0;margin-bottom:12px}
#sb-detail-dialog .section-label{display:flex;align-items:center;gap:7px;font-size:15px;margin:0 0 8px}
#sb-detail-dialog .section-label .ui-icon{color:#08696f}
#sb-detail-dialog p{color:#68736e;line-height:1.5;margin:5px 0 12px;overflow-wrap:anywhere}
#sb-detail-dialog .activity-section{padding:18px 19px}
#sb-detail-dialog .activity-head{display:flex;justify-content:space-between;align-items:center;padding-bottom:15px;border-bottom:1px solid #e1e3d9;margin-bottom:13px}
#sb-detail-dialog .activity-head h3{margin:3px 0 0;font-size:19px}
#sb-detail-dialog .eyebrow{font-size:10px;letter-spacing:1.5px}
#sb-detail-dialog .total-count{font-size:11px;color:#61736a;background:#edf0e9;border-radius:20px;padding:3px 8px}
#sb-detail-dialog .activity-event{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;position:relative;padding:0 0 16px;min-height:55px}
#sb-detail-dialog .activity-event:not(:last-child):before{content:'';position:absolute;width:1px;background:#dce5dc;left:16px;top:32px;bottom:0}
#sb-detail-dialog .activity-marker{width:34px;height:34px;display:grid;place-items:center;z-index:1;border-radius:50%;background:#edf1e9;color:#5e7366;border:1px solid #dfe7db}
#sb-detail-dialog .activity-marker.contact{background:#e8f1f5;color:#426d80;border-color:#d8e7ee}
#sb-detail-dialog .activity-marker.offer{background:#eaf2e7;color:#47744e;border-color:#dbe9d6}
#sb-detail-dialog .activity-marker.stage{background:#e7f0ee;color:#08696f;border-color:#d2e4de}
#sb-detail-dialog .activity-title{display:flex;gap:10px;justify-content:space-between;align-items:baseline;font-size:13px}
#sb-detail-dialog .activity-title time,#sb-detail-dialog .activity-meta{font-size:11px;color:#7a857c}
#sb-detail-dialog .activity-note{background:#f6f7f1;border:1px solid #eceee5;color:#485950;border-radius:7px;padding:8px 10px;margin-top:8px;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:750px){#sandbox-shell .sandbox-sidebar .brand{width:130px}#sandbox-shell .sandbox-sidebar .profile{margin:0}#sandbox-shell .sb-account-actions{grid-column:1/-1}#sandbox-shell .sandbox-content .searchbox input{width:100%}#sandbox-shell .sandbox-content .sb-notice{flex-wrap:wrap}#sandbox-shell .sandbox-content #sandbox-status{white-space:normal}#sandbox-shell .sandbox-content .scrolltools select{width:100%}#sb-detail-dialog .grid2{grid-template-columns:1fr}#sb-detail-dialog{padding:16px}#sb-detail-dialog .activity-title{flex-wrap:wrap}}
