/* Visual language from comercialia.xyz: system typography, blue CTAs, glass panels. */
:root{color-scheme:light;--green:#0071e3;--muted:#65656d;--line:#dcdce2;color:#1d1d1f;background:#f5f5f7;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}
body{background:radial-gradient(ellipse at 75% 10%,#e4e8ff55,transparent 45%),#f5f5f7}
::selection{background:#c9e4ff}h1,h2,h3{font-weight:600;letter-spacing:-.045em}h1{font-size:36px;line-height:1.1}.brand{font-size:21px;font-weight:600;letter-spacing:-.8px;gap:9px;color:#1d1d1f}.brand-mark{display:inline-block;flex-shrink:0;width:23px;height:23px;border:5px solid #1d1d1f;border-right-color:transparent;border-radius:50%;transform:rotate(-35deg);background:transparent;font-size:0}.brand>.small{display:none}
.sidebar{background:#fafafce8;border-right:1px solid #cbd0de60;backdrop-filter:blur(22px) saturate(180%)}.workspace{background:#eff1f680;border-color:#e3e4ec;border-radius:12px;color:#484850}.nav-label{color:#92929d;letter-spacing:.08em}.nav button{color:#747781}.nav button.active{color:#0870dc;background:#d9e8fab0}.nav button:hover{background:#eaf1fc}.local-label{background:#ffffff70;color:#777c84;border-color:#e4e7ef}.topbar{background:#fafafcec;backdrop-filter:blur(22px) saturate(180%);border-bottom-color:#00000009}.topbar strong{color:#4c4c55}.avatar{color:#7a6cb4;background:#dedaf6;border:2px solid white}.eyebrow{letter-spacing:.07em;color:#0071e3;font-weight:600}.content{padding-top:42px}.page-heading{margin-bottom:32px}.page-heading p{line-height:1.65}
.button{background:#0071e3;border-radius:999px;font-weight:500;padding:12px 23px;min-height:42px;transition:background .2s,box-shadow .2s,transform .2s}.button:hover{background:#0077ed;transform:translateY(-1px);box-shadow:0 8px 20px #0071e320}.button.secondary{border-color:#d5dfef;color:#0071e3;background:#ffffff90}.button.ghost{color:#0071e3;background:#edf4ff}.button.danger{color:#b15353;background:#fff0f0}.button:focus-visible{outline:3px solid #0071e3}
.hero{background:radial-gradient(ellipse at 90% 65%,#e8def65c,transparent 50%),linear-gradient(130deg,#fafafc,#f0f4fd);border:1px solid #fff;border-radius:24px;box-shadow:0 12px 35px #61657e08;min-height:270px}.hero-copy{padding:36px}.hero-copy h2{font-size:34px;line-height:1.1;letter-spacing:-.055em}.hero-copy h2 em,.auth-story h1 em{-webkit-text-fill-color:transparent;background:linear-gradient(100deg,#007aff 5%,#6261db 55%,#b566d7);background-clip:text;font-style:normal}.hero-copy p{color:#676774}.hero-art{background:radial-gradient(ellipse at center,#c9ddff90,transparent 63%)}.orbit{border-color:#c9d5ee80}.orbit.two{border-color:#d3c9eb80}.hub{color:#6975da;background:linear-gradient(130deg,#ffffffed,#fff9);border:1px solid #fff;box-shadow:0 18px 45px #4b527a20;backdrop-filter:blur(25px);border-radius:24px}.float-label{background:linear-gradient(115deg,#fffffff0,#ffffff9c);border:1px solid #fff;backdrop-filter:blur(25px);box-shadow:0 15px 45px #4c537218;border-radius:14px;padding:13px 16px;color:#626572}.float-label svg{color:#658dde}.dot{background:#30a46c}
.stats{gap:18px}.stat,.card,.panel{background:linear-gradient(140deg,#fff,#ffffffc7);border:1px solid #fff;border-radius:20px;box-shadow:0 5px 25px #31384b05}.stat{padding:22px}.stat strong{font-weight:500;letter-spacing:-.065em;font-size:32px}.stat small{color:#878894}.card{padding:25px}.card-description{color:#747781}.card-meta{border-top-color:#e8eaf1;color:#878894;line-height:1.7}.agent-icon{color:#658dde;background:#ecf3ff}.agent-icon.sales{color:#7a6cb4;background:#eeebfb}.agent-icon.followup{color:#98748d;background:#f6edf4}.agent-icon.support{color:#6386a6;background:#eaf1fb}.badge{border-radius:20px}.badge.ready{background:#e1f3e9;color:#27805b}.card-actions .button{border-radius:999px;padding:10px 14px}.template:hover{border-color:#9ec9f9;box-shadow:0 12px 35px #408be614}.template .arrow{color:#0071e3}.empty{border-color:#d7dfed;border-radius:20px;background:#ffffff9c}.notice{color:#626d89;background:linear-gradient(115deg,#f0f6ff,#f4f0ff);border:1px solid #d9e8ff;border-radius:12px}.field{color:#505057}.field input,.field textarea,.field select{color:#1d1d1f;border-color:#dcdce2;border-radius:10px;background:#ffffffd0}.field input:focus,.field textarea:focus,.field select:focus{outline:2px solid #a4caff;border-color:#0071e3}.output{color:#555663}.run-item .prompt{border-color:#b9cff6;background:#f4f7fe}.logout{color:#6f7688}.logout:hover{color:#0071e3}.modal-inner{padding:32px}dialog{border-radius:24px;border-color:#fff;box-shadow:0 35px 85px #4b527a30}dialog::backdrop{background:#30394d45;backdrop-filter:blur(6px)}#toast{background:#1d1d1f;border-radius:14px}
.auth-layout{background:#f5f5f7}.auth-story{position:relative;overflow:hidden;background:radial-gradient(ellipse at 10% 45%,#bad9ff80,transparent 52%),radial-gradient(ellipse at 95% 75%,#e1c9ef70,transparent 50%),linear-gradient(#fafafc,#f4f5f9 70%,#f5f5f7);padding:45px 60px}.auth-story h1{font-size:clamp(44px,4.5vw,72px);letter-spacing:-.065em;line-height:1.02;max-width:560px}.auth-story>div>p{color:#676774;font-size:17px}.auth-story .eyebrow{font-size:12px;color:#5e606a}.auth-form-wrap{background:#ffffffb8;backdrop-filter:blur(30px);border-left:1px solid #fff}.auth-form{max-width:380px}.auth-form h2{font-size:30px}.auth-tabs{background:#eff1f6;border:1px solid #e5e7ee;border-radius:999px;padding:4px}.auth-tabs button{border-radius:999px}.auth-tabs button.selected{color:#0071e3}.auth-form .field input{min-height:46px}.auth-form .button{min-height:48px}.demo-divider{display:flex;gap:12px;align-items:center;margin:22px 0;color:#9b9ba5;font-size:11px}.demo-divider::before,.demo-divider::after{content:'';height:1px;background:#e6e6ec;flex:1}.demo-caption{font-size:11px;color:#878894;text-align:center;margin:10px 0 0}.demo-banner{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:12px 18px;margin-bottom:25px;border:1px solid #c9ddfa;background:linear-gradient(110deg,#eaf3ff,#f3eefe);border-radius:14px;font-size:12px;color:#5d6781}.demo-banner strong{color:#0870dc}.demo-banner button{flex-shrink:0}.demo-banner p{margin:0}.demo-pill{font-size:10px;background:#e5f1ff;color:#1675ce;padding:5px 9px;border-radius:20px}
@media(max-width:1100px){.auth-story{padding:35px}.hero-copy h2{font-size:29px}.hero-copy{padding:28px}}
@media(max-width:760px){h1{font-size:27px}.hero{min-height:0}.hero-copy h2{font-size:29px}.hero-copy{padding:25px}.auth-story{padding:23px}.auth-form-wrap{padding:30px 23px}.auth-layout{min-height:100vh}.demo-banner{align-items:flex-start;gap:10px}.demo-banner .button{padding:9px 12px;font-size:11px}.content{padding-top:26px}.stat{padding:18px}}
@media(prefers-reduced-motion:reduce){.button{transition:none}.button:hover{transform:none}}

.clio-output{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:1rem;line-height:1.6}
.clio-messages{display:flex;flex-direction:column;gap:12px;max-height:520px;min-height:180px;overflow-y:auto;padding:12px 2px 20px}
.clio-message{max-width:min(85%,700px);padding:14px 18px;border-radius:18px;background:#edf4ff;overflow-wrap:anywhere}
.clio-message.from-user{align-self:flex-end;background:#dfeafa}
.clio-message.from-clio{align-self:flex-start;background:#f3f6fb}
.clio-message p{margin:6px 0 0;white-space:pre-wrap;line-height:1.55}
.clio-tasks summary{cursor:pointer;display:flex;justify-content:space-between;gap:12px}
.clio-tasks[open] summary{margin-bottom:20px}
