/* Namespaced: no global card or enterprise theme overrides */
.lac-studio-view{--sw-surface:rgba(23,42,68,.83);--sw-border:rgba(143,182,223,.18);--sw-text:#eaf4ff;--sw-muted:#9db4d0;--sw-accent:#3d91fa;color:var(--sw-text)}
html[data-skin="enterprise"][data-vision="day"] .lac-studio-view,html[data-vision="day"] .lac-studio-view{--sw-surface:#ecf3ff;--sw-border:#cbdbee;--sw-text:#213f61;--sw-muted:#5c7792;--sw-accent:#2067c0}
.lac-studio-overline{font-size:10px;letter-spacing:2px;color:var(--sw-accent);font-weight:750}
.lac-studio-pill{border:1px solid var(--sw-border);border-radius:15px;padding:10px 14px;color:var(--sw-muted);font-size:12px}
.lac-studio-layout{display:grid;grid-template-columns:minmax(180px,235px) minmax(350px,1fr) minmax(215px,270px);gap:14px;min-height:clamp(610px,76vh,900px)}
.lac-studio-left,.lac-studio-main,.lac-studio-right,.lac-studio-sidecard{min-width:0}
.lac-studio-left,.lac-studio-main,.lac-studio-sidecard{border:1px solid var(--sw-border);border-radius:14px;background:var(--sw-surface)}
.lac-studio-left{padding:14px;display:flex;flex-direction:column;gap:13px}
.lac-studio-primary{border:0!important;color:#fff!important;background:linear-gradient(105deg,#2077f3,#4a9bfa)!important;box-shadow:0 5px 16px rgba(24,99,199,.2);border-radius:9px!important;min-height:39px;padding:9px 15px;cursor:pointer;font-weight:650}
.lac-studio-section-title{display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:1.5px;font-weight:700;color:var(--sw-muted)}
.lac-studio-history{display:grid;align-content:start;gap:5px;overflow:auto;max-height:70vh}
.lac-studio-history button,.lac-knowledge-list button{min-height:48px;text-align:left;border:1px solid transparent;display:flex;gap:8px;flex-direction:column;align-items:stretch;justify-content:center;padding:9px 12px;border-radius:10px;background:transparent;color:var(--sw-text);cursor:pointer;white-space:normal;overflow-wrap:anywhere}
.lac-studio-history button:hover,.lac-studio-history button.active,.lac-knowledge-list button:hover,.lac-knowledge-list button.active{border-color:var(--sw-border);background:rgba(62,126,203,.15)}
.lac-studio-history small,.lac-knowledge-list small{font-size:11px;color:var(--sw-muted)}
.lac-studio-main{display:flex;flex-direction:column;overflow:hidden;min-height:610px}
.lac-studio-chat-head{padding:14px 18px;display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--sw-border)}
.lac-studio-chat-head strong{display:block;font-size:16px}.lac-studio-chat-head small{display:block;color:var(--sw-muted);font-size:11px;margin-top:3px}
.lac-studio-head-tools{display:flex;gap:6px}
.lac-studio-messages{flex:1;min-height:280px;overflow:auto;display:flex;flex-direction:column;gap:16px;padding:22px 20px}
.lac-studio-welcome{margin:auto;text-align:center;max-width:450px}.lac-studio-welcome span{display:block;font-size:38px;color:var(--sw-accent)}.lac-studio-welcome h2{font-size:22px}.lac-studio-welcome p{font-size:13px;color:var(--sw-muted);line-height:1.7}
.lac-chat-bubble{max-width:92%;padding:14px 16px;line-height:1.65;border-radius:13px;background:rgba(89,126,179,.12);border:1px solid var(--sw-border);color:var(--sw-text)}
.lac-chat-bubble.user{align-self:flex-end;max-width:84%;background:rgba(44,122,235,.22);border-color:rgba(77,155,247,.28)}
.lac-chat-bubble small{display:block;font-size:11px;color:var(--sw-muted);margin-bottom:8px}.lac-chat-bubble pre{font-family:inherit;white-space:pre-wrap;overflow-wrap:anywhere;color:inherit;line-height:1.55;margin:0;font-size:13px}
.lac-studio-compose{padding:14px;border-top:1px solid var(--sw-border)}
.lac-studio-compose textarea{width:100%;min-height:88px;resize:vertical;border-color:var(--sw-border)!important;color:var(--sw-text)!important;background:rgba(12,30,53,.23)!important;padding:12px;border-radius:10px;box-sizing:border-box}
.lac-studio-compose-bottom{margin-top:10px;display:flex;align-items:center;justify-content:space-between;gap:10px}.lac-studio-compose-bottom span{font-size:11px;color:var(--sw-muted);margin-right:auto}
.lac-studio-right{display:flex;flex-direction:column;gap:13px}.lac-studio-sidecard{padding:18px;display:flex;flex-direction:column;gap:10px;color:var(--sw-text)}
.lac-studio-sidecard h3{font-size:14px;margin:0 0 5px;color:var(--sw-text)}.lac-studio-sidecard label,.lac-studio-modal-card label{font-size:12px;color:var(--sw-muted);display:flex;flex-direction:column;gap:8px}
.lac-studio-sidecard select,.lac-studio-sidecard textarea,.lac-studio-sidecard input:not([type=checkbox]):not([type=range]),.lac-studio-modal-card select{width:100%;box-sizing:border-box;background:rgba(44,80,123,.12);border:1px solid var(--sw-border);border-radius:8px;padding:10px;color:var(--sw-text);min-height:37px}
.lac-studio-sidecard select option,.lac-studio-modal-card select option{background:#213856;color:#fff}
.lac-studio-sidecard textarea{resize:vertical}.lac-studio-sidecard input[type=range]{width:100%;accent-color:#398af3}
.lac-studio-subtle{font-size:11px;line-height:1.65;color:var(--sw-muted)}
.lac-knowledge-layout{display:grid;grid-template-columns:minmax(260px,34%) 1fr;gap:15px}.lac-knowledge-list{display:grid;gap:5px;min-height:220px;max-height:58vh;overflow:auto}.lac-knowledge-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.lac-checkbox{flex-direction:row!important;align-items:center}.lac-checkbox input{accent-color:#3a8bfa}
.lac-studio-modal{z-index:10000;position:fixed;inset:0;background:rgba(1,10,25,.85);display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto}
.lac-studio-modal.hidden{display:none}.lac-studio-modal-card{--sw-surface:#142842;--sw-text:#ecf5ff;--sw-muted:#a2b9d6;--sw-border:#395575;max-height:88vh;overflow:auto;max-width:820px;width:100%;box-sizing:border-box;background:#142842;border:1px solid #365475;border-radius:16px;padding:22px;color:#ecf5ff;display:flex;flex-direction:column;gap:16px}
.lac-ensemble-models{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.lac-ensemble-models label{display:flex;flex-direction:row;align-items:center;gap:8px;padding:10px;background:rgba(255,255,255,.04);border:1px solid #2a486c;border-radius:8px;color:#dfebfb;font-size:12px}
.lac-ensemble-results{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;max-height:46vh;overflow:auto}.lac-ensemble-results article{padding:14px;border:1px solid #395575;border-radius:10px;margin-top:10px}.lac-ensemble-results h4{margin:0 0 6px}
@media(max-width:1250px){.lac-studio-layout{grid-template-columns:195px minmax(270px,1fr)}.lac-studio-right{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.lac-studio-layout,.lac-knowledge-layout{display:flex;flex-direction:column}.lac-studio-left{max-height:170px;overflow:auto}.lac-studio-right{display:flex}.lac-studio-main{min-height:580px}.lac-studio-messages{min-height:300px}}

/* Smart Council v1.5: scoped to studio modal only */
.lac-council-actions{display:flex;gap:10px;flex-wrap:wrap}.lac-council-history{display:flex;gap:6px;flex-wrap:wrap;max-height:80px;overflow:auto}.lac-council-history button{font-size:11px;border:1px solid #365475!important;border-radius:7px!important;color:#d2e4ff!important}
