:root{--bg:#07111d;--bg2:#0b1626;--panel:#0f1c2e;--panel2:#14243a;--line:rgba(255,255,255,.09);--text:#f7f9fd;--muted:#97a8be;--accent:#7189ff;--accent2:#ad6cf2;--shadow:0 22px 70px rgba(0,0,0,.34);--radius:20px}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}body{background:radial-gradient(circle at 78% -10%,#24345a 0,transparent 34%),radial-gradient(circle at 7% 108%,#2b153c 0,transparent 29%),#07111d}button,input,textarea,select{font:inherit}.hidden{display:none!important}button{cursor:pointer}.brand{color:#fff;text-decoration:none;display:flex;align-items:center;gap:11px;font-weight:700;line-height:1}.brand b{font-weight:900}.brand-mark{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:conic-gradient(from 25deg,#f89abb,#ffd17c,#62ddbc,#7696ff,#be7cf3,#f89abb);color:#0d1727;box-shadow:0 10px 28px rgba(130,117,255,.25)}.brand-large{font-size:23px}.brand-large .brand-mark{width:48px;height:48px}.brand.tiny{font-size:14px}.brand.tiny .brand-mark{width:31px;height:31px}.eyebrow{text-transform:uppercase;letter-spacing:1.5px;font-size:11px;font-weight:900;color:#9fafff}.input,.textarea{width:100%;border:1px solid var(--line);background:#0a1626;color:#fff;border-radius:13px;padding:12px 13px;outline:0}.input:focus,.textarea:focus{border-color:#7189ff;box-shadow:0 0 0 3px rgba(113,137,255,.1)}label{display:grid;gap:7px;color:#cbd5e2;font-size:12px}.btn{border:1px solid var(--line);background:#14233a;color:#fff;padding:11px 15px;border-radius:13px;font-weight:800}.btn:hover{border-color:rgba(255,255,255,.2)}.btn.primary{border:0;background:linear-gradient(135deg,#5f7cff,#a162eb);box-shadow:0 13px 30px rgba(90,108,255,.25)}.btn.soft{background:rgba(255,255,255,.045)}.btn.wide{width:100%}.icon-btn{width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.045);color:#fff;font-size:18px}.text-btn,.text-link{border:0;background:transparent;color:#a9b6ff;font-weight:800;padding:7px 0}.toast{position:fixed;right:22px;top:22px;background:#17263b;border:1px solid var(--line);border-radius:14px;padding:12px 16px;z-index:200;box-shadow:var(--shadow);max-width:360px}.toast.error{border-color:rgba(255,95,112,.35);color:#ffd2d8}
.auth-screen{min-height:100vh;display:grid;grid-template-columns:1.18fr .82fr}.auth-art{padding:48px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh;background:radial-gradient(circle at 70% 25%,rgba(255,166,115,.25),transparent 20%),radial-gradient(circle at 82% 36%,rgba(139,82,247,.28),transparent 33%),linear-gradient(135deg,#101e32,#15233e 58%,#2a1d39)}.auth-art:after{content:"";position:absolute;right:-110px;bottom:-120px;width:620px;height:500px;border-radius:50%;background:radial-gradient(circle,#4c89e6,transparent 68%);opacity:.18}.auth-art>*{position:relative;z-index:2}.auth-copy{max-width:730px}.auth-copy h1{font-size:clamp(46px,6.2vw,84px);line-height:.98;letter-spacing:-4px;margin:13px 0 23px}.auth-copy h1 em{font-style:normal;background:linear-gradient(90deg,#8eaaff,#cb87ff,#ff9dbc);-webkit-background-clip:text;color:transparent}.auth-copy p{font-size:18px;line-height:1.65;color:#c6d1df;max-width:650px}.pill-row{display:flex;flex-wrap:wrap;gap:9px;margin-top:25px}.pill-row span{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);padding:9px 12px;border-radius:999px;font-size:12px;color:#e3e8f0}.auth-foot{font-size:11px;color:#8294ad}.auth-panel{display:grid;place-items:center;padding:26px}.auth-card{width:min(450px,100%);background:rgba(8,17,30,.82);backdrop-filter:blur(18px);border:1px solid var(--line);padding:32px;border-radius:27px;box-shadow:var(--shadow);display:grid;gap:15px}.auth-card h2{font-size:31px;margin:0}.auth-card p{margin:-7px 0 5px;color:var(--muted)}
.app-shell{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:19px 15px;background:rgba(5,11,20,.82);backdrop-filter:blur(20px);border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:40}.sidebar>.brand{padding:7px 8px 26px}.nav{display:grid;gap:6px}.nav-item{border:0;background:transparent;color:#c1cddd;padding:12px 13px;border-radius:12px;text-align:left;display:flex;align-items:center;gap:11px}.nav-item:hover,.nav-item.active{color:#fff;background:linear-gradient(135deg,rgba(101,128,255,.25),rgba(173,91,237,.12))}.nav-item span{width:23px;text-align:center}.side-insight{margin-top:28px;border:1px solid var(--line);background:linear-gradient(145deg,rgba(111,132,255,.12),rgba(255,132,178,.06));padding:15px;border-radius:17px;display:grid;gap:7px}.side-insight small{color:var(--muted);line-height:1.45}.mini-crown{color:#ffc86d}.sidebar-bottom{margin-top:auto}.profile-mini{width:100%;border:1px solid var(--line);background:#0d192a;color:#fff;border-radius:15px;padding:10px;display:grid;grid-template-columns:40px 1fr 20px;align-items:center;text-align:left;gap:9px}.profile-mini small{display:block;color:var(--muted);margin-top:3px}.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#f392b6,#6f89ff);font-weight:900}.main{padding:18px 24px 60px;min-width:0}.topbar{display:flex;gap:11px;align-items:center;margin-bottom:17px}.search-box{flex:1;max-width:730px;position:relative}.search-box span{position:absolute;left:14px;top:10px;color:#93a4bc}.search-box input{width:100%;border:1px solid var(--line);background:#0d192a;color:#fff;border-radius:13px;padding:11px 13px 11px 40px;outline:0}.mobile-menu{display:none}.view{display:none}.view.active{display:block}.hero{min-height:315px;border:1px solid var(--line);border-radius:28px;overflow:hidden;display:grid;grid-template-columns:1.15fr .85fr;background:radial-gradient(circle at 68% 25%,rgba(255,174,105,.21),transparent 18%),linear-gradient(135deg,#13243c,#152842 55%,#2e2139);box-shadow:var(--shadow);position:relative}.hero-copy{padding:37px;align-self:center}.hero h1{font-size:48px;line-height:1.03;letter-spacing:-2px;margin:8px 0 13px;max-width:680px}.hero h1 span{background:linear-gradient(90deg,#8aa8ff,#c187ff,#ff9dbb);-webkit-background-clip:text;color:transparent}.hero p{color:#c1ccdb;line-height:1.65;max-width:650px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:21px}.hero-art{position:relative;min-height:315px;display:grid;place-items:center}.core{width:105px;height:105px;border-radius:32px;display:grid;place-items:center;font-size:42px;color:#111b2c;background:conic-gradient(from 30deg,#ff9cbb,#ffd17d,#61dab9,#7997ff,#bf7ef1,#ff9cbb);box-shadow:0 0 70px rgba(127,116,255,.35);z-index:3}.orbit{position:absolute;border:1px solid rgba(255,255,255,.16);border-radius:50%}.o1{width:250px;height:250px}.o2{width:350px;height:350px;opacity:.6}.float-chip{position:absolute;border:1px solid rgba(255,255,255,.12);background:rgba(7,14,24,.62);backdrop-filter:blur(12px);padding:8px 11px;border-radius:999px;font-size:11px}.c1{top:50px;left:45px}.c2{top:83px;right:28px}.c3{bottom:59px;left:25px}.c4{bottom:35px;right:56px}.content-section{margin-top:28px}.section-title,.page-head{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:14px}.section-title h2,.page-head h1{margin:0 0 5px;letter-spacing:-.7px}.section-title h2{font-size:24px}.page-head h1{font-size:39px}.section-title p,.page-head p{margin:0;color:var(--muted);font-size:13px}.rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(230px,1fr);gap:13px;overflow-x:auto;padding:2px 2px 10px;scrollbar-width:thin}.rail.compact{grid-auto-columns:minmax(270px,360px)}.agent-card{min-height:280px;border:1px solid rgba(255,255,255,.08);border-radius:21px;position:relative;overflow:hidden;padding:16px;display:flex;flex-direction:column;box-shadow:0 14px 35px rgba(0,0,0,.18);transition:.22s;background:linear-gradient(180deg,color-mix(in srgb,var(--c) 35%,#182235),#0d1624 68%)}.agent-card:hover{transform:translateY(-4px);border-color:rgba(255,255,255,.19)}.agent-card:before{content:"";position:absolute;width:190px;height:190px;border-radius:50%;right:-65px;top:-48px;background:var(--c);filter:blur(12px);opacity:.35}.agent-card>*{position:relative;z-index:2}.agent-card .category{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#dbe4ef}.agent-card .big-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;margin-top:18px;background:rgba(255,255,255,.13);font-size:22px}.agent-card .grow{flex:1}.agent-card h3{font-size:21px;margin:17px 0 7px}.agent-card p{font-size:12px;color:#c6d0dd;line-height:1.5;margin:0}.agent-card .card-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:15px}.skill-count{font-size:11px;color:#9fb0c5}.round-go{width:35px;height:35px;border:0;border-radius:50%;background:#f1f5ff;color:#17233a;font-weight:900}.continue-card{border:1px solid var(--line);background:linear-gradient(135deg,#102038,#111c30);border-radius:17px;padding:15px;display:grid;grid-template-columns:42px 1fr 34px;align-items:center;gap:11px}.continue-card .mini-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-size:18px}.continue-card b{display:block}.continue-card small{display:block;color:var(--muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stats-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:11px}.stat-card{border:1px solid var(--line);background:#0f1c2e;border-radius:17px;padding:16px}.stat-card strong{font-size:27px;display:block;margin-top:7px}.stat-card small{color:var(--muted)}.filter-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:15px}.filter-chip{border:1px solid var(--line);background:#0f1c2e;color:#c8d3e1;border-radius:999px;padding:8px 11px}.filter-chip.active{background:#233655;color:#fff}.agents-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.journey-layout{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:14px}.panel{border:1px solid var(--line);background:#0e1b2d;border-radius:20px;padding:18px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.panel-head h3{margin:0}.bar-row{display:grid;grid-template-columns:130px 1fr 30px;gap:10px;align-items:center;margin:11px 0;font-size:12px}.bar{height:9px;border-radius:999px;background:#1c2a3f;overflow:hidden}.bar span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#6684ff,#aa68ee)}.activity-list,.stack-list{display:grid;gap:10px}.activity{border-bottom:1px solid var(--line);padding:10px 0;display:flex;justify-content:space-between;gap:12px}.activity:last-child{border-bottom:0}.activity small{color:var(--muted)}.stack-item{border:1px solid var(--line);background:#0f1c2e;border-radius:17px;padding:16px;display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.stack-item h3{margin:0 0 6px;font-size:16px}.stack-item p{margin:0;color:#b9c6d6;line-height:1.55;white-space:pre-wrap}.stack-item small{color:var(--muted)}.plan-check{width:22px;height:22px;accent-color:#7088ff}.library-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.library-card{border:1px solid var(--line);background:linear-gradient(145deg,#101f34,#0d1828);border-radius:19px;padding:18px;min-height:170px}.library-card .lib-type{display:inline-block;padding:6px 8px;border-radius:999px;background:rgba(113,137,255,.12);color:#b9c5ff;font-size:10px;font-weight:800}.library-card h3{margin:17px 0 7px}.library-card p{color:var(--muted);font-size:12px;line-height:1.5}.studio-note{border:1px solid rgba(112,137,255,.18);background:rgba(112,137,255,.07);padding:12px 14px;border-radius:14px;color:#b9c6d7;font-size:12px;margin-bottom:15px}.studio-grid{display:grid;gap:10px}.studio-item{border:1px solid var(--line);background:#0f1c2e;border-radius:16px;padding:14px;display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:13px}.studio-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center}.studio-item small{display:block;color:var(--muted);margin-top:3px}.studio-actions{display:flex;gap:7px}
.chat-layer{position:fixed;inset:0;background:#07111d;z-index:100;display:grid;grid-template-columns:290px minmax(0,1fr)}.chat-history{border-right:1px solid var(--line);padding:16px;background:#081321;display:flex;flex-direction:column;min-height:0}.chat-history-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.history-label{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#72839a;font-weight:900;margin:18px 4px 7px}.conversation-list{display:grid;gap:5px;overflow:auto}.conversation-item{border:0;background:transparent;color:#c4d0de;text-align:left;padding:10px;border-radius:11px}.conversation-item:hover,.conversation-item.active{background:#14243a;color:#fff}.conversation-item b{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-item small{color:#8496ae}.chat-main{display:grid;grid-template-rows:auto auto 1fr auto auto;min-height:100vh;max-height:100vh}.chat-header{height:72px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 22px}.agent-chip{display:flex;align-items:center;gap:10px}.agent-chip small{display:block;color:var(--muted);margin-top:3px}.agent-avatar{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#1b2b43}.mode-badge{font-size:10px;text-transform:uppercase;letter-spacing:.8px;border:1px solid var(--line);border-radius:999px;padding:7px 9px;color:#a9b7c9}.chat-context{padding:10px 22px;border-bottom:1px solid var(--line);color:#9fb0c4;font-size:11px;white-space:nowrap;overflow:auto}.messages{padding:26px max(22px,calc((100vw - 950px)/2));overflow:auto;display:flex;flex-direction:column;gap:14px}.message{max-width:760px;padding:13px 15px;border-radius:16px;line-height:1.55;font-size:14px;white-space:pre-wrap}.message.user{align-self:flex-end;background:#17314e;border-bottom-right-radius:5px}.message.assistant{align-self:flex-start;background:#101f33;border:1px solid var(--line);border-bottom-left-radius:5px}.message .meta{font-size:9px;color:#7f91aa;margin-top:8px}.starter-row{display:flex;gap:7px;overflow-x:auto;padding:8px max(22px,calc((100vw - 950px)/2)) 5px}.starter{white-space:nowrap;border:1px solid var(--line);background:#101e31;color:#c5d0df;padding:8px 10px;border-radius:999px;font-size:11px}.composer{margin:7px max(22px,calc((100vw - 950px)/2)) 4px;border:1px solid var(--line);background:#0f1c2e;border-radius:18px;padding:8px;display:grid;grid-template-columns:1fr 46px;gap:8px;align-items:end}.composer textarea{border:0;background:transparent;color:#fff;outline:0;resize:none;padding:9px;max-height:170px}.composer button{width:44px;height:44px;border:0;border-radius:14px;background:linear-gradient(135deg,#6885ff,#a263ed);color:#fff;font-size:18px}.safety-note{text-align:center;color:#71839b;font-size:9px;padding:4px 10px 10px}
.dialog{border:0;padding:0;background:transparent;color:#fff;max-width:680px;width:calc(100% - 28px)}.dialog::backdrop{background:rgba(2,7,13,.78);backdrop-filter:blur(7px)}.dialog-card{background:#0d192a;border:1px solid var(--line);border-radius:23px;padding:22px;box-shadow:var(--shadow);display:grid;gap:15px}.dialog-head{display:flex;align-items:start;justify-content:space-between}.dialog-head h2{margin:4px 0 0}.dialog-copy{color:var(--muted);line-height:1.5;font-size:12px;margin:0}.dialog-actions{display:flex;justify-content:flex-end;gap:8px}.wide-dialog{max-width:830px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.span2{grid-column:1/-1}.check{display:flex;align-items:center;gap:8px}.check input{accent-color:#7189ff}
.empty{border:1px dashed rgba(255,255,255,.12);border-radius:17px;padding:25px;text-align:center;color:var(--muted)}
@media(max-width:1120px){.agents-grid{grid-template-columns:repeat(3,1fr)}.stats-grid{grid-template-columns:repeat(3,1fr)}.hero{grid-template-columns:1fr}.hero-art{display:none}.library-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){.auth-screen{grid-template-columns:1fr}.auth-art{min-height:45vh;padding:30px}.auth-copy h1{font-size:48px;letter-spacing:-2px}.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:-260px;width:244px;transition:.2s}.sidebar.open{left:0}.main{padding:12px 14px 50px}.mobile-menu{display:block;border:1px solid var(--line);background:#0d192a;color:#fff;width:40px;height:40px;border-radius:12px}.topbar .btn{display:none}.hero-copy{padding:25px}.hero h1{font-size:37px}.agents-grid{grid-template-columns:repeat(2,1fr)}.stats-grid{grid-template-columns:repeat(2,1fr)}.journey-layout{grid-template-columns:1fr}.chat-layer{grid-template-columns:1fr}.chat-history{position:absolute;z-index:3;width:280px;inset:0 auto 0 0;transform:translateX(-100%);transition:.2s}.chat-history.open{transform:none}.library-grid{grid-template-columns:1fr}.page-head{align-items:flex-start;flex-direction:column}.messages,.starter-row{padding-left:14px;padding-right:14px}.composer{margin-left:14px;margin-right:14px}}
@media(max-width:520px){.auth-art{display:none}.auth-panel{min-height:100vh}.agents-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.span2{grid-column:auto}.hero h1{font-size:32px}.hero{min-height:auto}.rail{grid-auto-columns:82%}.topbar{position:sticky;top:0;z-index:20;background:rgba(7,17,29,.88);backdrop-filter:blur(12px);padding:4px 0}.search-box input{font-size:12px}}

.knowledge-dialog{max-width:1180px}.knowledge-card{max-height:92vh;overflow:auto}.knowledge-topbar{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--line);background:#101e31;border-radius:14px;padding:10px 12px}.knowledge-topbar span{font-size:12px;color:#aebdd0}.knowledge-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(340px,1.1fr);gap:14px;align-items:start}.knowledge-editor{border:1px solid var(--line);background:#0b1625;border-radius:18px;padding:15px;display:grid;gap:12px;position:sticky;top:0}.knowledge-help{border:1px solid rgba(112,137,255,.2);background:rgba(112,137,255,.07);border-radius:15px;padding:13px;margin-bottom:10px}.knowledge-help p{margin:6px 0 0;color:var(--muted);font-size:11px;line-height:1.5}.knowledge-list{display:grid;gap:9px;max-height:63vh;overflow:auto;padding-right:3px}.knowledge-item{border:1px solid var(--line);background:#101e31;border-radius:15px;padding:13px;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:start}.knowledge-item b{font-size:13px}.knowledge-item small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.knowledge-item p{font-size:11px;color:#b9c7d8;line-height:1.5;margin:8px 0 0}.btn.danger{border-color:rgba(255,111,133,.23);color:#ff9aae;background:rgba(255,95,125,.06)}.knowledge-used{margin-top:10px;padding:9px 10px;border:1px solid rgba(112,137,255,.16);background:rgba(112,137,255,.055);border-radius:11px;display:grid;gap:4px}.knowledge-used b{font-size:9px;text-transform:uppercase;letter-spacing:.75px;color:#9eafff}.knowledge-used span{font-size:10px;color:#9fb0c5}
@media(max-width:900px){.knowledge-layout{grid-template-columns:1fr}.knowledge-editor{position:static}.knowledge-list{max-height:none}.knowledge-item{grid-template-columns:1fr}.studio-actions{flex-wrap:wrap}}

.security-box{border:1px solid rgba(112,137,255,.2);background:rgba(112,137,255,.06);padding:14px;border-radius:16px;display:grid;gap:12px}.security-box.hidden{display:none}.security-box .eyebrow{margin-bottom:-2px}

.protocol-warning{border:1px solid rgba(255,196,99,.2);background:rgba(255,196,99,.065);color:#d8c7a9;border-radius:13px;padding:10px 12px;font-size:11px;line-height:1.5}.protocol-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px}.protocol-tags span{font-size:9px;border:1px solid var(--line);background:rgba(255,255,255,.035);color:#9fb0c5;border-radius:999px;padding:4px 7px}.version-list{display:grid;gap:9px;max-height:62vh;overflow:auto}.version-item{border:1px solid var(--line);background:#101e31;border-radius:15px;padding:13px;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}.version-item b{font-size:13px}.version-item small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.version-item p{font-size:11px;color:#b9c7d8;margin:7px 0 0}.studio-item .studio-actions{justify-content:flex-end;flex-wrap:wrap}.studio-item small{line-height:1.45}
@media(max-width:760px){.version-item{grid-template-columns:1fr}.studio-item{grid-template-columns:44px 1fr}.studio-item .studio-actions{grid-column:1/-1;justify-content:flex-start}}
.sandbox-result{display:grid;gap:13px}.sandbox-debug{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.sandbox-debug>div{border:1px solid var(--line);background:#101e31;border-radius:14px;padding:12px}.sandbox-debug small{display:block;color:var(--muted);font-size:9px;letter-spacing:.8px;margin-bottom:6px}.sandbox-debug b{font-size:12px;line-height:1.4}.sandbox-reply{border:1px solid rgba(112,137,255,.18);background:rgba(112,137,255,.055);border-radius:16px;padding:14px}.sandbox-reply #sandboxReply{white-space:pre-wrap;line-height:1.6;color:#d6deea;font-size:13px;margin-top:8px}.sandbox-result details{border:1px solid var(--line);border-radius:13px;padding:10px 12px}.sandbox-result summary{cursor:pointer;color:#aab9cc;font-size:11px}.sandbox-result pre{white-space:pre-wrap;word-break:break-word;font-size:10px;color:#8fa1b8;max-height:300px;overflow:auto}
@media(max-width:760px){.sandbox-debug{grid-template-columns:1fr}}
.file-btn{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.file-btn input{display:none}

/* Journey & personal memory */
.journey-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.journey-layout .span-panel{grid-column:1/-1}.panel-head small{display:block;color:var(--muted);margin-top:4px}.journey-records{display:grid;gap:10px}.journey-record{border:1px solid var(--line);background:linear-gradient(145deg,#101f33,#0c1828);border-radius:17px;padding:14px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:start}.journey-record.archived{opacity:.58}.journey-record-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:rgba(113,137,255,.11);border:1px solid rgba(113,137,255,.14);font-weight:900;color:#b9c5ff}.memory-record .journey-record-icon{background:rgba(173,108,242,.1);color:#d5b6ff}.journey-record-body h3{margin:7px 0 6px;font-size:15px}.journey-record-body p{margin:0 0 9px;color:#b9c6d6;white-space:pre-wrap;line-height:1.52;font-size:12px}.journey-record-body small{color:var(--muted);font-size:10px}.journey-record-top{display:flex;flex-wrap:wrap;gap:6px}.journey-record-top span{font-size:9px;border:1px solid var(--line);border-radius:999px;padding:4px 7px;color:#91a2b8}.journey-record-top .journey-kind{color:#c7d1ff;border-color:rgba(113,137,255,.2);background:rgba(113,137,255,.08)}.record-tags,.protocol-tags{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0 9px}.record-tags span,.protocol-tags span{font-size:9px;background:rgba(255,255,255,.045);border:1px solid var(--line);border-radius:999px;padding:4px 7px;color:#9fb0c5}.record-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.record-actions .btn{padding:8px 10px;font-size:10px}.journey-stats{margin-bottom:4px}
@media(max-width:900px){.journey-record{grid-template-columns:42px 1fr}.record-actions{grid-column:1/-1;justify-content:flex-start}.journey-layout .span-panel{grid-column:auto}}

/* Chat -> Journey capture */
.message-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px;padding-top:8px;border-top:1px solid rgba(255,255,255,.06)}.message-actions button{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035);color:#91a3bb;border-radius:999px;padding:5px 8px;font-size:9px}.message-actions button:hover{color:#fff;border-color:rgba(113,137,255,.28);background:rgba(113,137,255,.08)}.memory-used{border-color:rgba(173,108,242,.18);background:rgba(173,108,242,.05)}.memory-used b{color:#c9a7f8}


.chat-head-actions{display:flex;align-items:center;gap:8px}.btn.mini{padding:7px 10px;border-radius:10px;font-size:11px}.chat-continuity{margin:0 22px;border-bottom:1px solid var(--line);padding:10px 0;display:grid;gap:7px}.chat-continuity>div{border:1px solid rgba(113,137,255,.14);background:rgba(113,137,255,.045);border-radius:12px;padding:9px 11px;display:grid;gap:3px}.chat-continuity b{font-size:9px;text-transform:uppercase;letter-spacing:.8px;color:#9eafff}.chat-continuity span{font-size:11px;line-height:1.5;color:#aebdd0}.handoff-preview{border:1px solid rgba(113,137,255,.16);background:rgba(113,137,255,.055);padding:12px;border-radius:14px;display:grid;gap:5px}.handoff-preview b{font-size:12px}.handoff-preview span{font-size:11px;color:var(--muted);line-height:1.5}.conversation-item small{display:block;margin-top:4px}.conversation-item b{max-width:100%}@media(max-width:800px){.chat-head-actions .btn.mini{display:none}.chat-continuity{margin:0 14px}.chat-header{padding:0 14px}}


.home-talk{margin-top:20px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:end;max-width:760px}.home-talk textarea{width:100%;resize:vertical;min-height:62px;max-height:160px;border:1px solid rgba(255,255,255,.12);background:rgba(7,14,24,.56);backdrop-filter:blur(10px);color:#fff;border-radius:16px;padding:13px 14px;outline:0;line-height:1.45}.home-talk textarea:focus{border-color:#7189ff;box-shadow:0 0 0 3px rgba(113,137,255,.1)}.home-talk .btn{height:46px}.home-talk textarea::placeholder{color:#8fa0b6}@media(max-width:700px){.home-talk{grid-template-columns:1fr}.home-talk .btn{width:100%}}


.specialist-hero{border:1px solid var(--line);border-radius:26px;background:linear-gradient(135deg,#112239,#18283e 55%,#2a2036);padding:26px;display:grid;grid-template-columns:84px minmax(0,1fr) auto;gap:20px;align-items:center;box-shadow:var(--shadow);margin:12px 0 14px}.specialist-hero-icon{width:84px;height:84px;border-radius:24px;display:grid;place-items:center;font-size:36px}.specialist-hero-copy h1{font-size:36px;margin:4px 0 8px}.specialist-hero-copy p{margin:0;color:#c5d0df;line-height:1.55;max-width:760px}.specialist-hero-copy small{display:block;color:var(--muted);margin-top:10px;line-height:1.45}.specialist-stats{margin-bottom:14px}.specialist-layout{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:13px}.specialist-conversation{width:100%;border:1px solid var(--line);background:#101e31;color:#fff;border-radius:14px;padding:13px;display:grid;grid-template-columns:1fr 22px;gap:10px;text-align:left}.specialist-conversation b{display:block}.specialist-conversation small{display:block;color:var(--muted);margin-top:4px}.specialist-conversation p{margin:8px 0 0;color:#afbdd0;font-size:11px;line-height:1.45}.specialist-topics{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}.specialist-topics>span{border:1px solid var(--line);background:#101e31;padding:7px 9px;border-radius:999px;font-size:10px;color:#c4d0df}.specialist-topics .muted-inline{border-style:dashed;color:var(--muted)}.compact-list{gap:8px}.mini-record{border:1px solid var(--line);background:#101e31;border-radius:14px;padding:12px;display:grid;gap:5px}.mini-record small{color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.5px}.mini-record b{font-size:12px}.mini-record p{margin:0;color:#aebdd0;font-size:11px;line-height:1.45}.done-text{text-decoration:line-through;opacity:.62}@media(max-width:900px){.specialist-hero{grid-template-columns:70px 1fr}.specialist-hero-actions{grid-column:1/-1}.specialist-layout{grid-template-columns:1fr}.specialist-hero-icon{width:70px;height:70px}.specialist-hero-copy h1{font-size:30px}}


.whatsapp-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.8fr);gap:14px}.whatsapp-card{display:grid;gap:18px}.wa-status-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.wa-status-row h2{margin:4px 0 6px}.wa-status-row p{margin:0;color:var(--muted);line-height:1.5}.wa-dot{width:16px;height:16px;border-radius:50%;background:#5b6573;box-shadow:0 0 0 6px rgba(255,255,255,.03)}.wa-dot.active{background:#59d49b;box-shadow:0 0 0 6px rgba(89,212,155,.09)}.wa-connected{border:1px solid rgba(89,212,155,.18);background:rgba(89,212,155,.055);border-radius:15px;padding:13px;display:grid;gap:4px}.wa-connected b{font-size:12px}.wa-connected span{font-size:14px}.wa-connected small{color:var(--muted)}.wa-actions{display:flex;gap:9px;flex-wrap:wrap}.wa-code-box{border:1px solid rgba(113,137,255,.2);background:rgba(113,137,255,.06);border-radius:17px;padding:18px;display:grid;gap:8px}.wa-code-box small{color:var(--muted)}.wa-code-box strong{font-size:27px;letter-spacing:1px}.wa-code-box p{margin:0;color:#aebdd0;font-size:11px}.wa-steps{display:grid;gap:12px}.wa-steps>div{display:grid;grid-template-columns:32px 1fr;gap:10px;align-items:start}.wa-steps b{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:rgba(113,137,255,.13);color:#aebaff}.wa-steps span{color:#bdc9d8;line-height:1.55;font-size:12px}.wa-steps code{background:#0a1625;border:1px solid var(--line);border-radius:7px;padding:2px 5px}@media(max-width:900px){.whatsapp-layout{grid-template-columns:1fr}}

/* Sugestões inteligentes de jornada */
.suggestion-card{margin-top:11px;border:1px solid rgba(113,137,255,.22);background:rgba(113,137,255,.07);border-radius:14px;padding:12px;display:grid;gap:10px}.suggestion-card>div:first-child{display:grid;gap:5px}.suggestion-card b{font-size:11px;color:#c7d0ff}.suggestion-card span{font-size:11px;line-height:1.5;color:#aebcd0}.suggestion-actions{display:flex;gap:7px;flex-wrap:wrap}.suggestion-actions button{border:1px solid var(--line);background:#172943;color:#fff;border-radius:10px;padding:7px 10px;font-size:10px;font-weight:800}.suggestion-actions button:last-child{background:transparent;color:#91a1b7}.suggestion-saved{margin-top:9px;font-size:10px;color:#9ed9bd;border:1px solid rgba(97,218,185,.16);background:rgba(97,218,185,.055);border-radius:10px;padding:7px 9px}.capture-prefs{margin-top:18px;border-top:1px solid var(--line);padding-top:17px;display:grid;gap:12px}.capture-prefs p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.capture-prefs small{color:#7f91a8;line-height:1.5}
.wa-admin-setup{grid-column:1/-1}.wa-live-qr-wrap{display:grid;place-items:center;background:#fff;border-radius:18px;padding:16px;max-width:620px;margin:0 auto}.wa-live-qr-wrap canvas{width:min(100%,584px);height:auto;image-rendering:pixelated}.wa-admin-setup>small{display:block;text-align:center;color:var(--muted);margin-top:12px;line-height:1.5}
/* CLUB LIGHT MINIMAL — 2026 */
:root{
  --bg:#f5f6f4;
  --bg2:#f1f3f1;
  --panel:#ffffff;
  --panel2:#fafaf8;
  --line:#e7e9e6;
  --line-strong:#d9ddd9;
  --text:#161918;
  --muted:#7b827e;
  --soft:#a8aeaa;
  --ink:#171a19;
  --accent:#ef6b4d;
  --accent2:#e9b170;
  --sage:#9cad9f;
  --blue:#aebed6;
  --lilac:#c2b5d5;
  --peach:#edc6b5;
  --green:#29ad68;
  --shadow:0 10px 32px rgba(30,39,34,.055);
  --shadow-lg:0 20px 60px rgba(30,39,34,.08);
  --radius:24px;
}
html,body{background:var(--bg);color:var(--text)}
body{background:linear-gradient(135deg,#f7f8f6 0%,#f2f4f2 48%,#f8f7f4 100%)}
::selection{background:#202523;color:white}
*{scrollbar-color:#d7dbd7 transparent}
button,input,textarea,select{font-family:inherit}
button{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease}
button:active{transform:scale(.98)}

/* brand */
.brand{color:var(--ink);font-weight:600;letter-spacing:-.25px}
.brand b{font-weight:800}.brand-mark{position:relative;background:#f4f5f2!important;color:transparent!important;box-shadow:none!important;border:1px solid var(--line);overflow:hidden;font-size:0}
.brand-mark:before,.brand-mark:after{content:"";position:absolute;width:12px;height:25px;border-radius:12px;background:#343b38;transform:rotate(38deg)}
.brand-mark:before{left:9px;top:2px}.brand-mark:after{right:8px;bottom:2px;background:#9cac9f}
.brand-large{font-size:22px}.brand-large .brand-mark{width:50px;height:50px}.brand.tiny{font-size:14px}
.eyebrow{color:#7f8782;font-size:10px;letter-spacing:1.9px;font-weight:800}

/* controls */
.input,.textarea{border:1px solid var(--line);background:#fbfcfa;color:var(--text);border-radius:14px;padding:12px 14px}
.input:focus,.textarea:focus{border-color:#aeb5b0;box-shadow:0 0 0 4px rgba(64,75,68,.06)}
label{color:#59615d;font-size:12px;font-weight:600}
.btn{border:1px solid var(--line);background:#fff;color:#252a27;padding:11px 16px;border-radius:999px;font-weight:700;box-shadow:0 2px 8px rgba(30,40,34,.025)}
.btn:hover{border-color:#cfd4d0;box-shadow:0 6px 18px rgba(30,40,34,.06)}
.btn.primary{border-color:#171a19;background:#171a19;color:#fff;box-shadow:0 8px 20px rgba(12,16,14,.13)}
.btn.primary:hover{background:#292e2b}
.btn.soft{background:#fff;color:#333935}
.btn.danger{background:#fff5f3;color:#c64f3a;border-color:#f0d5cf}
.icon-btn{border:1px solid var(--line);background:#fff;color:#252a27;border-radius:50%;box-shadow:0 3px 12px rgba(30,40,34,.035)}
.text-btn,.text-link{color:#59615d}
.toast{background:#1c211e;color:#fff;border:0;border-radius:14px;box-shadow:0 18px 55px rgba(20,28,23,.2)}
.toast.error{color:#fff;background:#9d4738}

/* login */
.auth-screen{background:#f4f5f3;grid-template-columns:1.05fr .95fr}
.auth-art{background:linear-gradient(145deg,#f1f1ec,#e8ede8);color:var(--text);padding:52px}
.auth-art:before{content:"";position:absolute;width:460px;height:460px;border-radius:52% 48% 37% 63%;right:-100px;top:80px;background:radial-gradient(circle at 30% 30%,#efd0bf 0 20%,#b6c5b8 21% 46%,#d7d8cd 47% 68%,transparent 69%);opacity:.75;transform:rotate(-14deg)}
.auth-art:after{background:radial-gradient(circle,#bbc9bc,transparent 68%);opacity:.22}
.auth-copy h1{color:#171a19;letter-spacing:-4px}.auth-copy h1 em{background:none;color:#596b61}
.auth-copy p{color:#626a66}.pill-row span{border-color:#d6dbd7;background:rgba(255,255,255,.6);color:#4c544f}.auth-foot{color:#87908a}
.auth-panel{background:#f8f9f7}
.auth-card{background:#fff;border:1px solid var(--line);color:var(--text);box-shadow:var(--shadow-lg)}
.auth-card p{color:var(--muted)}

/* shell + navigation */
.app-shell{grid-template-columns:178px minmax(0,1fr);gap:0;background:transparent}
.sidebar{width:178px;padding:24px 14px 18px;background:rgba(249,250,248,.95);border-right:1px solid #e9ebe8;backdrop-filter:blur(20px)}
.sidebar>.brand{padding:3px 7px 28px;font-size:14px}.sidebar>.brand .brand-mark{width:36px;height:36px}.sidebar>.brand .brand-mark:before{left:8px}.sidebar>.brand .brand-mark:after{right:7px}
.nav{gap:7px}.nav-item{color:#555e59;padding:12px 13px;border-radius:14px;font-weight:600;font-size:13px}
.nav-item span{font-size:18px;color:#68716c}.nav-item:hover{background:#f0f2ef;color:#1f2421}
.nav-item.active{background:#171a19;color:#fff;box-shadow:0 9px 25px rgba(15,20,17,.12)}.nav-item.active span{color:#fff}
.side-insight{border:0;background:#eef2ed;padding:14px;border-radius:18px;color:#343b37}.side-insight small{color:#77807a}.mini-crown{color:#6f8076}
.profile-mini{border:1px solid var(--line);background:#fff;color:#252a27;border-radius:18px;box-shadow:0 4px 14px rgba(25,35,29,.03)}
.profile-mini small{color:var(--muted)}.avatar{background:#eceeea;color:#4b554f}
.main{padding:19px 22px 70px;max-width:1600px;width:100%;margin:0 auto}
.topbar{position:sticky;top:0;z-index:25;padding:5px 0 13px;background:linear-gradient(180deg,rgba(245,246,244,.96) 60%,rgba(245,246,244,0));margin-bottom:12px}
.search-box{max-width:580px}.search-box span{color:#818985}.search-box input{border:1px solid var(--line);background:#fff;color:#252a27;border-radius:999px;padding:12px 15px 12px 42px;box-shadow:0 4px 20px rgba(25,35,29,.025)}
.search-box input::placeholder{color:#a1a8a3}
.mobile-menu{background:#fff;color:#222;border-color:var(--line)}

/* headings */
.page-head{margin:14px 0 22px;align-items:center}.page-head h1{font-size:34px;letter-spacing:-1.5px;font-weight:730}.page-head p,.section-title p{color:var(--muted);line-height:1.5}
.section-title{align-items:center;margin-bottom:14px}.section-title h2{font-size:22px;letter-spacing:-.7px}
.content-section{margin-top:20px}

/* hero */
.hero{min-height:322px;border:1px solid var(--line);border-radius:28px;background:linear-gradient(135deg,#fff 0%,#fbfaf7 55%,#f2eee8 100%);box-shadow:var(--shadow);grid-template-columns:1.35fr .65fr}
.hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 83% 22%,rgba(235,188,146,.22),transparent 22%),radial-gradient(circle at 70% 82%,rgba(157,174,162,.17),transparent 26%);pointer-events:none}
.hero-copy{padding:36px 38px;position:relative;z-index:3}.hero h1{color:#151817;font-size:46px;letter-spacing:-2.8px;font-weight:740;max-width:620px}
.hero h1 span{background:none;color:#665f5a}.hero p{color:#666e69;max-width:660px}
.hero-art{min-height:322px}.core{width:102px;height:102px;border-radius:50%;font-size:0;background:linear-gradient(145deg,#d4c1b4,#f1d0b6 40%,#9caa9e 41% 66%,#626c66 67%);box-shadow:none;border:12px solid rgba(255,255,255,.75)}
.core:after{content:"";width:36px;height:36px;border-radius:50%;background:#fff;opacity:.9}
.orbit{border:1px solid rgba(87,101,92,.13)}.o1{width:210px;height:210px}.o2{width:290px;height:290px}
.float-chip{border:1px solid #e3e6e2;background:rgba(255,255,255,.85);color:#626b65;box-shadow:0 6px 20px rgba(25,35,29,.04)}
.home-talk{margin-top:20px;max-width:780px;grid-template-columns:minmax(0,1fr) auto;background:#fff;border:1px solid var(--line);padding:7px;border-radius:999px;box-shadow:0 8px 26px rgba(28,38,32,.045)}
.home-talk textarea{min-height:48px;height:48px;resize:none;border:0!important;background:transparent!important;color:#262b28;border-radius:999px;padding:13px 14px;box-shadow:none!important}
.home-talk textarea::placeholder{color:#9aa19c}.home-talk .btn{height:48px;padding-inline:22px}.hero-actions{margin-top:12px}.hero-actions .btn{font-size:11px;background:transparent;box-shadow:none}

/* cards */
.rail{gap:12px;scrollbar-width:none}.rail::-webkit-scrollbar{display:none}
.agent-card{min-height:245px;border:1px solid var(--line);border-radius:22px;padding:16px;background:#fff!important;box-shadow:0 7px 24px rgba(26,34,29,.035);color:var(--text)}
.agent-card:before{width:155px;height:155px;right:-52px;top:-55px;filter:none;opacity:.08;background:var(--c)}
.agent-card:hover{transform:translateY(-3px);border-color:#d8ddd9;box-shadow:0 14px 34px rgba(26,34,29,.075)}
.agent-card .category{color:#8a918d;font-size:9px;order:2;margin-top:10px}.agent-card .big-icon{width:72px;height:72px;border-radius:50%;margin-top:0;background:linear-gradient(145deg,color-mix(in srgb,var(--c) 14%,#f6f3ee),color-mix(in srgb,var(--c) 28%,#e9eee9));border:1px solid color-mix(in srgb,var(--c) 15%,#e4e7e4);font-size:25px;order:1}
.agent-card .grow{order:3}.agent-card h3{color:#1c211e;font-size:17px;margin:11px 0 5px;letter-spacing:-.4px}.agent-card p{color:#7b837e;font-size:11px;line-height:1.45}.agent-card .card-bottom{order:4;border-top:1px solid #f0f1ef;padding-top:12px}.skill-count{color:#939a95;font-size:9px}.round-go{background:#171a19;color:white;width:34px;height:34px}
.continue-card{border:1px solid var(--line);background:#fff;color:#252a27;border-radius:20px;padding:14px;box-shadow:0 6px 20px rgba(25,35,29,.025)}
.continue-card:hover{border-color:#d5dad6;box-shadow:0 10px 28px rgba(25,35,29,.055)}.continue-card small{color:var(--muted)}
.continue-card .mini-icon{background:#f2f3f0!important;color:#58635c}
.stats-grid{gap:10px}.stat-card{border:1px solid var(--line);background:#fff;border-radius:20px;padding:17px;box-shadow:0 5px 18px rgba(25,35,29,.025)}
.stat-card strong{color:#181c19;font-size:26px}.stat-card small{color:#858c87}
.filter-chip{border:1px solid var(--line);background:#fff;color:#636b66;border-radius:999px}.filter-chip.active{background:#171a19;color:#fff;border-color:#171a19}
.agents-grid{gap:12px}.panel{border:1px solid var(--line);background:#fff;border-radius:24px;padding:19px;box-shadow:var(--shadow)}
.stack-item,.mini-record,.specialist-conversation{border:1px solid var(--line);background:#fafbf9;color:#272c29;border-radius:16px}.stack-item p,.mini-record p,.specialist-conversation p{color:#77807a}.stack-item small,.mini-record small,.specialist-conversation small{color:#959c97}
.empty{border-color:#dde1dd;color:#949b96;background:#fafbf9}

/* specialist */
.specialist-hero{border:1px solid var(--line);background:linear-gradient(135deg,#fff,#f5f3ee);box-shadow:var(--shadow);color:var(--text)}
.specialist-hero-icon{border-radius:50%;background:#eef1ed!important;color:#4d5851}.specialist-hero-copy h1{color:#171a19}.specialist-hero-copy p{color:#68706b}.specialist-hero-copy small{color:#939a96}.specialist-topics>span{border-color:var(--line);background:#fafbf9;color:#66706a}

/* journey + library */
.bar{background:#edf0ec}.bar span{background:linear-gradient(90deg,#a5b5aa,#5e6a62)}
.activity{border-color:#eceeeb}.activity small{color:#969d98}.library-grid{gap:12px}.library-card{border:1px solid var(--line);background:#fff;color:var(--text);border-radius:22px;box-shadow:var(--shadow)}
.library-card .lib-type{background:#f2f4f0;color:#657069}.library-card p{color:#838a86}
.journey-record{border:1px solid var(--line);background:#fff;color:var(--text);border-radius:19px}.journey-record-icon{background:#f3f5f1;border-color:#e4e8e3;color:#647169}.memory-record .journey-record-icon{background:#f4f0f6;color:#766a7e}.journey-record-body p{color:#727b75}.journey-record-body small{color:#999f9b}.journey-record-top span{border-color:#e4e7e4;color:#858d87}.journey-record-top .journey-kind{color:#56625b;border-color:#dbe0dc;background:#f3f5f2}.record-tags span,.protocol-tags span{background:#f7f8f6;border-color:#e5e7e4;color:#7d8680}

/* whatsapp */
.whatsapp-layout{gap:12px}.wa-status-row h2{color:#1a1e1b}.wa-status-row p{color:var(--muted)}.wa-dot{background:#c8cdca}.wa-dot.active{background:#2bad69;box-shadow:0 0 0 6px rgba(43,173,105,.09)}
.wa-connected{border-color:#d7eadf;background:#f2fbf5}.wa-connected small{color:#7a8d81}.wa-code-box{border-color:#e4e7e3;background:#fafbf9}.wa-code-box small,.wa-code-box p{color:#808983}.wa-steps b{background:#f1f3ef;color:#59645d}.wa-steps span{color:#6d7670}.wa-steps code{background:#f3f5f2;border-color:#e0e4e0;color:#4e5852}.wa-live-qr-wrap{border:1px solid var(--line);box-shadow:0 10px 35px rgba(25,35,29,.04)}
.capture-prefs{border-color:var(--line)}

/* admin studio */
.studio-note{border:1px solid #dfe4df;background:#f3f5f2;color:#667069}.studio-grid{gap:9px}.studio-item{border:1px solid var(--line);background:#fff;color:#252a27;border-radius:18px;box-shadow:0 5px 18px rgba(25,35,29,.025)}
.studio-icon{background:#f1f3ef!important;border:1px solid #e4e7e3;color:#59645d}.studio-item small{color:#8a918c}.knowledge-topbar,.knowledge-editor,.knowledge-item,.version-item,.sandbox-debug>div{border-color:var(--line);background:#fafbf9;color:#262b28}.knowledge-help{border-color:#e1e5e1;background:#f4f6f3}.knowledge-help p,.knowledge-item small,.knowledge-item p,.version-item small,.version-item p{color:#7d8580}.protocol-warning{border-color:#ece1cf;background:#fff9f0;color:#846d52}.sandbox-reply{border-color:#e0e4df;background:#f7f8f6}.sandbox-reply #sandboxReply{color:#525b55}.sandbox-result details{border-color:var(--line)}.sandbox-result summary{color:#69736c}.sandbox-result pre{color:#727b75}.security-box{border-color:#e0e4df;background:#f6f8f5}

/* dialogs */
.dialog{color:var(--text)}.dialog::backdrop{background:rgba(25,30,27,.28);backdrop-filter:blur(8px)}.dialog-card{background:#fff;border:1px solid var(--line);border-radius:26px;box-shadow:0 28px 90px rgba(30,38,33,.18);color:var(--text)}.dialog-copy{color:var(--muted)}

/* chat */
.chat-layer{background:#f5f6f4;color:var(--text);grid-template-columns:264px minmax(0,1fr)}
.chat-history{border-color:var(--line);background:#f9faf8;padding:17px}.conversation-item{color:#626b65;border:1px solid transparent}.conversation-item:hover{background:#f0f2ef;color:#252a27}.conversation-item.active{background:#171a19;color:#fff}.conversation-item.active small{color:#bfc5c1}.conversation-item small{color:#979e99}
.chat-main{background:#fff}.chat-header{border-color:var(--line);background:#fff}.agent-chip small{color:var(--muted)}.agent-avatar{background:#f0f2ee;color:#4d5851;border:1px solid #e1e5e0}.mode-badge{border-color:#e2e5e2;color:#7d8580;background:#fafbf9}
.chat-context{border-color:var(--line);color:#858d88;background:#fcfdfb}.chat-continuity{border-color:var(--line)}.chat-continuity>div{border-color:#e3e7e2;background:#f7f9f6}.chat-continuity b{color:#5f6b63}.chat-continuity span{color:#747d77}
.messages{background:linear-gradient(180deg,#fff,#fcfdfb)}.message{color:#242925}.message.user{background:#171a19;color:#fff}.message.user .meta{color:#abb1ad}.message.assistant{background:#f4f6f3;border:1px solid #e5e8e4}.message .meta{color:#929a95}
.starter{border-color:#e2e5e2;background:#fff;color:#66706a}.starter:hover{background:#f4f6f3}.composer{border-color:#dfe3df;background:#fff;box-shadow:0 10px 35px rgba(22,30,25,.08)}.composer textarea{color:#262b28}.composer button{background:#171a19;color:#fff;border-radius:50%}.safety-note{color:#a0a6a2}
.message-actions{border-color:#e3e6e3}.message-actions button{border-color:#e1e4e1;background:#fff;color:#737c76}.message-actions button:hover{color:#242a26;border-color:#cfd5d0;background:#f7f8f6}
.knowledge-used{border-color:#e1e5e1;background:#fafbf9}.knowledge-used b{color:#647069}.knowledge-used span{color:#7e8781}.memory-used{border-color:#e4e0e7;background:#faf8fb}.memory-used b{color:#786f7e}.suggestion-card{border-color:#dfe4df;background:#f7f9f6}.suggestion-card b{color:#4f5c54}.suggestion-card span{color:#737d76}.suggestion-actions button{background:#171a19;border-color:#171a19}.suggestion-actions button:last-child{background:#fff;color:#707973;border-color:#dfe3df}.suggestion-saved{color:#4b795e;border-color:#d9e9df;background:#f3faf6}

/* responsive */
@media(max-width:1120px){.app-shell{grid-template-columns:164px minmax(0,1fr)}.sidebar{width:164px}.hero{grid-template-columns:1fr}.hero-art{display:none}}
@media(max-width:800px){
  .app-shell{grid-template-columns:1fr}.sidebar{left:-240px;width:220px;background:#fafbf9}.sidebar.open{left:0;box-shadow:20px 0 60px rgba(20,28,23,.15)}.main{padding:10px 13px 50px}.topbar{padding-top:3px}.hero-copy{padding:27px}.hero h1{font-size:38px}.chat-layer{grid-template-columns:1fr}.chat-history{background:#fafbf9}.topbar .btn{display:none}.mobile-menu{display:block}.page-head h1{font-size:30px}
}
@media(max-width:520px){
  .auth-art{display:none}.auth-panel{background:#f5f6f4}.hero h1{font-size:32px;letter-spacing:-1.7px}.hero-copy{padding:23px}.home-talk{grid-template-columns:1fr;border-radius:22px}.home-talk textarea{height:auto;min-height:58px}.home-talk .btn{width:100%}.agent-card{min-height:220px}.topbar{background:linear-gradient(180deg,rgba(245,246,244,.98) 72%,transparent)}
}

/* Dashboard composition refinement */
#view-home.active{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(285px,.7fr);gap:14px;align-items:start}
#view-home>.hero{grid-column:1;grid-row:1;margin:0}
#view-home>.content-section:last-child{grid-column:2;grid-row:1;margin:0;background:#fff;border:1px solid var(--line);border-radius:26px;padding:18px;box-shadow:var(--shadow);min-height:322px}
#view-home>.content-section:last-child .section-title{margin-bottom:10px}
#view-home>.content-section:last-child .section-title h2{font-size:18px}
#view-home>.content-section:last-child .section-title p{font-size:11px;line-height:1.45}
#view-home>.content-section:last-child #homeStats{display:grid;grid-template-columns:1fr;gap:7px}
#view-home>.content-section:last-child .stat-card{box-shadow:none;border-radius:16px;padding:12px 13px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fbfcfa}
#view-home>.content-section:last-child .stat-card small{font-size:11px;font-weight:650}
#view-home>.content-section:last-child .stat-card strong{font-size:19px;margin:0}
#continueSection{grid-column:1/-1;grid-row:2}
#view-home>.content-section:not(:last-child){grid-column:1/-1}
#categoryRails{grid-column:1/-1}
.agent-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.availability-dot{width:9px;height:9px;border-radius:50%;background:#36b46d;box-shadow:0 0 0 4px #eef9f2;flex:0 0 auto;margin:5px 3px 0 0}
.agent-card .category{order:initial;margin:0 0 7px;color:#7c8580;text-transform:none;letter-spacing:0;font-size:10px}
.agent-card .big-icon{order:initial}
.agent-card .grow{order:initial}.agent-card .card-bottom{order:initial;display:grid;grid-template-columns:1fr;gap:9px;align-items:stretch}
.agent-chat-btn{width:100%;border:1px solid #e0e4e0;background:#fff;color:#272c29;border-radius:999px;padding:9px 12px;font-size:11px;font-weight:750;display:flex;justify-content:space-between;align-items:center}
.agent-chat-btn:hover{background:#171a19;color:white;border-color:#171a19}
.agent-card:first-child .agent-chat-btn{background:#171a19;color:#fff;border-color:#171a19}
.agent-card:first-child .agent-chat-btn:hover{background:#2b302d}
.round-go{display:none}
.check input,.plan-check{accent-color:#171a19}
.capture-prefs small{color:#909792}
@media(max-width:1120px){#view-home.active{grid-template-columns:1fr}#view-home>.hero,#view-home>.content-section:last-child,#continueSection,#view-home>.content-section:not(:last-child),#categoryRails{grid-column:1;grid-row:auto}#view-home>.content-section:last-child{min-height:auto}#view-home>.content-section:last-child #homeStats{grid-template-columns:repeat(3,1fr)}#view-home>.content-section:last-child .stat-card{display:block}}
@media(max-width:680px){#view-home>.content-section:last-child #homeStats{grid-template-columns:1fr 1fr}}

/* =========================================================
   RESPONSIVE PASS · TABLET + MOBILE · 2026-09-28
   ========================================================= */
html{-webkit-text-size-adjust:100%}body{overflow-x:hidden}.chat-history-toggle{display:none}.nav-open{overflow:hidden}

/* TABLET / SMALL LAPTOP */
@media(max-width:1024px){
  .app-shell{display:block;min-height:100dvh}
  .sidebar{position:fixed;z-index:90;inset:0 auto 0 0;width:min(300px,82vw);height:100dvh;transform:translateX(-105%);left:0;transition:transform .24s ease;box-shadow:none;padding:20px 14px;background:rgba(250,251,249,.98);overflow-y:auto}
  .sidebar.open{transform:translateX(0);left:0;box-shadow:24px 0 70px rgba(20,28,23,.18)}
  body.nav-open:after{content:"";position:fixed;inset:0;background:rgba(28,34,30,.22);backdrop-filter:blur(2px);z-index:80}
  .main{max-width:none;width:100%;padding:12px 18px 56px}
  .mobile-menu{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:50%}
  .topbar{gap:8px;align-items:center;padding:6px 0 12px}
  .search-box{max-width:none;min-width:0}
  .search-box input{height:44px}
  #newConversationTop{display:none}
  .topbar>.icon-btn{flex:0 0 44px;width:44px;height:44px;border-radius:50%}
  #view-home.active{grid-template-columns:1fr}
  #view-home>.hero,#view-home>.content-section:last-child,#continueSection,#view-home>.content-section:not(:last-child),#categoryRails{grid-column:1;grid-row:auto}
  .hero{grid-template-columns:1fr;min-height:auto}
  .hero-art{display:none}
  .hero-copy{padding:32px}
  .hero h1{font-size:clamp(38px,6vw,50px)}
  #view-home>.content-section:last-child{min-height:auto}
  #view-home>.content-section:last-child #homeStats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .agents-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rail{grid-auto-columns:minmax(220px,44vw)}
  .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .journey-layout,.specialist-layout,.whatsapp-layout{grid-template-columns:1fr}
  .library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .studio-item{grid-template-columns:48px minmax(0,1fr)}
  .studio-item .studio-actions{grid-column:1/-1;justify-content:flex-start}
  .knowledge-layout{grid-template-columns:1fr}.knowledge-editor{position:static}.knowledge-list{max-height:none}
  .specialist-hero{grid-template-columns:72px minmax(0,1fr);padding:22px}.specialist-hero-actions{grid-column:1/-1}.specialist-hero-icon{width:72px;height:72px}
  .dialog{width:min(92vw,760px);max-height:92dvh}.dialog-card{max-height:92dvh;overflow:auto}
  .wa-admin-setup{grid-column:auto}
}

/* MOBILE */
@media(max-width:640px){
  :root{--radius:18px}
  .main{padding:8px 10px 40px}
  .topbar{position:sticky;top:0;z-index:35;margin:0 -2px 8px;padding:6px 2px 10px;background:linear-gradient(180deg,rgba(245,246,244,.98) 78%,rgba(245,246,244,0))}
  .search-box span{left:13px;top:11px}.search-box input{font-size:13px;padding-left:38px}
  .page-head{margin:12px 0 16px;align-items:flex-start;flex-direction:column}.page-head h1{font-size:28px;letter-spacing:-1.2px}.page-head p{font-size:12px}.page-head>.btn{width:100%}
  .section-title{align-items:flex-start}.section-title h2{font-size:20px}.section-title p{font-size:11px}.section-title>.text-link{font-size:11px}
  .hero{border-radius:22px}.hero-copy{padding:24px 20px}.hero h1{font-size:34px;line-height:1.02;letter-spacing:-2px;margin-top:6px}.hero p{font-size:13px;line-height:1.55}
  .home-talk{display:grid;grid-template-columns:1fr;border-radius:20px;padding:6px}.home-talk textarea{min-height:64px;height:auto;border-radius:15px;padding:12px}.home-talk .btn{width:100%;height:44px;border-radius:14px}
  .hero-actions{display:grid;grid-template-columns:1fr}.hero-actions .btn{width:100%;text-align:center}
  #view-home>.content-section:last-child{padding:15px;border-radius:20px}
  #view-home>.content-section:last-child #homeStats{grid-template-columns:1fr 1fr}
  #view-home>.content-section:last-child .stat-card{padding:12px;display:block}
  .rail,.rail.compact{grid-auto-columns:84vw;gap:10px;padding-right:6px;scroll-snap-type:x proximity}.rail>*{scroll-snap-align:start}
  .agents-grid{grid-template-columns:1fr}.agent-card{min-height:auto;padding:15px}.agent-card .big-icon{width:64px;height:64px}.agent-card h3{font-size:18px}.agent-card p{font-size:12px}
  .continue-card{grid-template-columns:42px minmax(0,1fr) 22px;width:100%;text-align:left}.continue-card small{white-space:normal;line-height:1.35}
  .stats-grid{grid-template-columns:1fr 1fr;gap:8px}.stat-card{padding:13px;border-radius:17px}.stat-card strong{font-size:22px}
  .panel{padding:15px;border-radius:20px}.panel-head{align-items:flex-start;gap:10px}.panel-head h3{font-size:16px}
  .journey-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px;scrollbar-width:none}.journey-tabs::-webkit-scrollbar{display:none}.journey-tabs .filter-chip{white-space:nowrap;flex:0 0 auto}
  .journey-record{grid-template-columns:38px minmax(0,1fr);padding:12px}.journey-record-icon{width:38px;height:38px}.record-actions{grid-column:1/-1;justify-content:flex-start}.record-actions .btn{min-height:38px}
  .library-grid{grid-template-columns:1fr}.library-card{min-height:auto}
  .specialist-hero{grid-template-columns:58px minmax(0,1fr);gap:13px;padding:18px;border-radius:22px}.specialist-hero-icon{width:58px;height:58px;font-size:25px}.specialist-hero-copy h1{font-size:26px}.specialist-hero-copy p{font-size:12px}.specialist-hero-actions .btn{width:100%}
  .specialist-conversation{padding:12px}.specialist-conversation p{font-size:10px}
  .whatsapp-layout{grid-template-columns:1fr}.wa-status-row{align-items:flex-start}.wa-actions{display:grid;grid-template-columns:1fr}.wa-actions .btn{width:100%}.wa-code-box strong{font-size:22px;word-break:break-word}.wa-live-qr-wrap{padding:10px;border-radius:15px}.wa-live-qr-wrap canvas{width:100%;height:auto;max-width:100%}
  .studio-item{grid-template-columns:40px minmax(0,1fr);padding:12px}.studio-icon{width:40px;height:40px}.studio-item .studio-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:6px}.studio-item .studio-actions .btn{width:100%;padding:9px 8px;font-size:10px}.studio-item .studio-actions .btn.danger{grid-column:1/-1}
  .form-grid{grid-template-columns:1fr}.span2{grid-column:auto}.knowledge-item,.version-item{grid-template-columns:1fr}.knowledge-topbar{align-items:flex-start;gap:10px;flex-direction:column}.knowledge-topbar .studio-actions{width:100%;display:grid;grid-template-columns:1fr}.knowledge-topbar .btn{width:100%}
  .dialog{width:calc(100vw - 16px);max-width:none;margin:8px;max-height:calc(100dvh - 16px)}.dialog-card{padding:16px;border-radius:20px;max-height:calc(100dvh - 16px)}.dialog-head h2{font-size:21px}.dialog-actions{display:grid;grid-template-columns:1fr 1fr}.dialog-actions .btn{width:100%;min-height:44px}.wide-dialog{max-width:none}
  .sandbox-debug{grid-template-columns:1fr}.toast{left:10px;right:10px;top:10px;max-width:none}

  /* full-screen mobile chat */
  .chat-layer{height:100dvh;min-height:100dvh;grid-template-columns:1fr;overflow:hidden}
  .chat-main{min-height:100dvh;height:100dvh;max-height:100dvh;grid-template-rows:auto auto auto minmax(0,1fr) auto auto auto}
  .chat-history{position:fixed;z-index:130;inset:0 auto 0 0;width:min(86vw,320px);height:100dvh;transform:translateX(-105%);transition:transform .24s ease;background:#fafbf9;box-shadow:none}
  .chat-history.open{transform:translateX(0);box-shadow:20px 0 60px rgba(20,28,23,.18)}
  .chat-history-toggle{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:50%}
  .chat-header{height:auto;min-height:62px;padding:10px 10px;gap:8px}.agent-chip{min-width:0;flex:1}.agent-chip>span:last-child{min-width:0}.agent-chip b,.agent-chip small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:42vw;display:block}.agent-avatar{width:38px;height:38px;flex:0 0 38px}
  .chat-head-actions{gap:5px}.chat-head-actions .btn.mini{display:none}.mode-badge{font-size:8px;padding:6px 7px;white-space:nowrap}
  .chat-context{padding:8px 12px;font-size:9px}.chat-continuity{margin:0 10px;padding:7px 0}.chat-continuity span{font-size:10px}
  .messages{padding:14px 10px 10px;gap:10px}.message{max-width:88%;padding:11px 12px;font-size:13px;border-radius:15px}.message .meta{font-size:8px}
  .message-actions{gap:4px}.message-actions button{font-size:8px;padding:5px 7px}
  .starter-row{padding:5px 10px;gap:6px}.starter{font-size:9px;padding:7px 9px}
  .composer{margin:5px 8px 3px;padding:5px;border-radius:17px;grid-template-columns:minmax(0,1fr) 42px}.composer textarea{font-size:16px;padding:9px;min-height:42px}.composer button{width:40px;height:40px}
  .safety-note{font-size:8px;padding:3px 12px max(7px,env(safe-area-inset-bottom))}
}

/* EXTRA SMALL PHONE */
@media(max-width:420px){
  .main{padding-left:8px;padding-right:8px}.topbar{gap:6px}.mobile-menu,.topbar>.icon-btn{width:40px;height:40px;flex-basis:40px}.search-box input{height:40px;font-size:12px}
  .hero-copy{padding:21px 17px}.hero h1{font-size:30px}.hero p{font-size:12px}
  #view-home>.content-section:last-child #homeStats{grid-template-columns:1fr 1fr}.stat-card small{font-size:10px}.stat-card strong{font-size:20px}
  .rail,.rail.compact{grid-auto-columns:90vw}.page-head h1{font-size:26px}.section-title h2{font-size:19px}
  .studio-item .studio-actions{grid-template-columns:1fr}.studio-item .studio-actions .btn.danger{grid-column:auto}
  .dialog-actions{grid-template-columns:1fr}.chat-header{padding-left:8px;padding-right:8px}.mode-badge{display:none}.agent-chip b,.agent-chip small{max-width:52vw}.message{max-width:92%}
}

/* =========================================================
   DIÁRIO EMOCIONAL · CALENDÁRIO DE PROGRESSO
   ========================================================= */
.journal-head-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.mood-journal-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(290px,.62fr);gap:14px;align-items:start}
.mood-calendar-panel{padding:20px}
.mood-calendar-head{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:12px;margin-bottom:18px}
.mood-calendar-head>div{text-align:center}.mood-calendar-head h2{margin:3px 0 0;font-size:24px;letter-spacing:-.7px}.mood-calendar-head .icon-btn:disabled{opacity:.3;cursor:not-allowed}
.mood-weekdays,.mood-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}
.mood-weekdays{margin-bottom:7px}.mood-weekdays span{text-align:center;color:#969d98;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.55px;padding:4px 0}
.mood-day{appearance:none;min-width:0;min-height:96px;border:1px solid #e7e9e6;background:#fafbf9;color:#29302b;border-radius:15px;padding:9px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;position:relative;overflow:hidden;transition:.18s}
.mood-day:not(:disabled):hover{transform:translateY(-2px);border-color:#cfd5d0;box-shadow:0 10px 24px rgba(25,35,29,.06)}
.mood-day:disabled{opacity:.38;cursor:default}.mood-day-empty{border:0;background:transparent;pointer-events:none}
.mood-day-number{font-size:11px;font-weight:800;color:#7d8580}.mood-day.today{box-shadow:inset 0 0 0 2px #202522}.mood-day.today .mood-day-number:after{content:' hoje';font-size:8px;font-weight:700;color:#58615b}
.mood-day-score{font-size:27px;line-height:1;font-weight:790;letter-spacing:-1px}.mood-day small{font-size:9px;line-height:1.25;color:rgba(35,43,38,.68);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:100%}
.mood-day-plus{margin:auto;align-self:center;color:#c2c8c3;font-size:18px}
.mood-band-0{background:#f9dfdc!important;border-color:#f0cbc7!important;color:#8d3c35!important}.mood-band-1{background:#f7e8d6!important;border-color:#ecdbc5!important;color:#8b612f!important}.mood-band-2{background:#f1edd6!important;border-color:#e7e1c2!important;color:#756c34!important}.mood-band-3{background:#e4eee5!important;border-color:#d4e2d7!important;color:#43684f!important}.mood-band-4{background:#d9ebdf!important;border-color:#c7dfcf!important;color:#276442!important}
.mood-legend{display:flex;flex-wrap:wrap;gap:8px 13px;margin-top:13px;padding-top:13px;border-top:1px solid #eceeeb}.mood-legend span{display:flex;align-items:center;gap:5px;color:#858d88;font-size:9px}.mood-swatch{width:10px;height:10px;border-radius:3px;display:inline-block}.mood-swatch.mood-band-0{background:#f9dfdc!important}.mood-swatch.mood-band-1{background:#f7e8d6!important}.mood-swatch.mood-band-2{background:#f1edd6!important}.mood-swatch.mood-band-3{background:#e4eee5!important}.mood-swatch.mood-band-4{background:#d9ebdf!important}
.mood-summary-panel{display:grid;gap:16px}.mood-summary-panel h2{margin:2px 0 0;font-size:24px;letter-spacing:-.7px}.mood-summary-copy{margin:-8px 0 0;color:#7f8882;font-size:11px;line-height:1.55}
.mood-month-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mood-month-stats>div{border:1px solid #e8ebe7;background:#fafbf9;border-radius:15px;padding:12px;display:grid;gap:5px}.mood-month-stats small{color:#8b938e;font-size:9px;text-transform:uppercase;letter-spacing:.4px}.mood-month-stats strong{font-size:17px;color:#2d332f}.mood-month-stats .mood-trend{grid-column:1/-1;background:#f1f4ef}.mood-month-stats .mood-trend strong{font-size:13px;color:#59645d}
.mood-question-card{background:#171a19;color:#fff;border-radius:19px;padding:16px;display:grid;gap:9px}.mood-question-card>b{font-size:14px}.mood-question-card span{font-size:10px;color:#d1d6d2;line-height:1.4}.mood-question-card span strong{display:inline-grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#fff;color:#171a19;margin-right:5px}.mood-question-card small{color:#aeb6b0;font-size:9px;padding-top:3px;border-top:1px solid rgba(255,255,255,.1)}
.journal-reflections{margin-top:20px}.journal-reflections .section-title{margin-bottom:12px}
.mood-dialog-card{max-width:610px;margin:auto}.mood-scale-copy{display:grid;grid-template-columns:1fr 1fr;gap:9px}.mood-scale-copy span{border:1px solid #e5e8e4;background:#fafbf9;border-radius:13px;padding:10px;font-size:10px;line-height:1.4;color:#69716c}.mood-scale-copy b{display:inline-grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#171a19;color:#fff;margin-right:4px}
.mood-score-picker{display:grid;grid-template-columns:repeat(11,1fr);gap:5px}.mood-score{height:43px;border-radius:12px;border:1px solid #e0e4e0;font-weight:850;font-size:12px;cursor:pointer;opacity:.7;transition:.14s}.mood-score:hover{transform:translateY(-1px);opacity:1}.mood-score.selected{opacity:1;box-shadow:0 0 0 3px #fff,0 0 0 5px #222;transform:translateY(-2px)}
.word-count{float:right;color:#929a95;font-size:9px;font-weight:600}.word-count.over{color:#b8473d}.mood-low-support{border:1px solid #f1cfcb;background:#fff4f2;color:#6f423d;border-radius:15px;padding:12px;display:grid;gap:4px}.mood-low-support b{font-size:12px}.mood-low-support span{font-size:10px;line-height:1.5}.mood-dialog-actions{align-items:center}.dialog-spacer{flex:1}
@media(max-width:980px){.mood-journal-layout{grid-template-columns:1fr}.mood-summary-panel{grid-template-columns:minmax(0,1fr) minmax(260px,.7fr)}.mood-summary-panel>.eyebrow,.mood-summary-panel>h2,.mood-summary-copy{grid-column:1/-1}.mood-month-stats{align-self:start}.mood-question-card{align-self:stretch}}
@media(max-width:700px){.journal-head-actions{width:100%;justify-content:flex-start}.mood-summary-panel{grid-template-columns:1fr}.mood-month-stats{grid-template-columns:1fr 1fr}.mood-day{min-height:78px;border-radius:11px;padding:7px;gap:4px}.mood-day-score{font-size:21px}.mood-calendar-panel{padding:13px}.mood-weekdays,.mood-calendar-grid{gap:4px}.mood-calendar-head h2{font-size:20px}.mood-score-picker{grid-template-columns:repeat(6,1fr)}.mood-score{height:42px}.mood-scale-copy{grid-template-columns:1fr}}
@media(max-width:520px){.mood-calendar-panel{margin-left:-5px;margin-right:-5px}.mood-day{min-height:60px;padding:5px;border-radius:9px}.mood-day-number{font-size:9px}.mood-day.today .mood-day-number:after{content:''}.mood-day-score{font-size:18px}.mood-day small{display:none}.mood-day-plus{font-size:14px}.mood-weekdays span{font-size:8px}.mood-legend{gap:6px 9px}.mood-legend span{font-size:8px}.mood-month-stats>div{padding:10px}.mood-month-stats strong{font-size:15px}.mood-dialog-card{border-radius:20px;padding:16px}.mood-dialog-actions{display:grid;grid-template-columns:1fr 1fr}.mood-dialog-actions .dialog-spacer{display:none}.mood-dialog-actions #deleteDailyMood{grid-column:1/-1}.journal-head-actions .btn{flex:1;min-width:145px}}

/* =========================================================
   RESPONSIVE HARDENING · ZERO HORIZONTAL OVERFLOW
   ========================================================= */
html,body{width:100%;max-width:100%;overflow-x:hidden}
*,*::before,*::after{max-width:100%}
img,svg,video,canvas{max-width:100%;height:auto}
.app-shell,.main,.view,.content-section,.hero,.panel,.page-head,.section-title,.rail,.agents-grid,.stats-grid,.journey-layout,.specialist-layout,.whatsapp-layout,.studio-grid,.library-grid,.mood-journal-layout,.mood-calendar-panel,.mood-summary-panel,.knowledge-layout,.dialog-card,.chat-main{min-width:0}
.main,.view{width:100%;max-width:100%}
input,textarea,select,button{min-width:0}
.page-head>*,.section-title>*,.topbar>*,.panel-head>*,.studio-item>*,.journey-record>*,.specialist-hero>*{min-width:0}
.stack-item,.continue-card,.specialist-conversation,.knowledge-item,.version-item,.studio-item{max-width:100%;overflow:hidden}
.stack-item h3,.stack-item p,.continue-card b,.continue-card small,.specialist-conversation b,.specialist-conversation p,.knowledge-item p,.studio-item small{overflow-wrap:anywhere;word-break:break-word}

@media(max-width:900px){
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #view-home>.content-section:last-child #homeStats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-head,.section-title{width:100%}
  .journal-head-actions{max-width:100%}
  .mood-calendar-panel,.mood-summary-panel{width:100%;max-width:100%}
}

@media(max-width:640px){
  body{min-width:0}
  .main{width:100vw;max-width:100vw;padding-left:10px;padding-right:10px}
  .view,.content-section,#categoryRails{width:100%;max-width:100%}
  .topbar{width:100%;max-width:100%}.search-box{min-width:0;overflow:hidden}.search-box input{width:100%}
  .page-head,.section-title{gap:10px}.page-head>div,.section-title>div{width:100%;min-width:0}
  .journal-head-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:7px}.journal-head-actions .btn{min-width:0;width:100%}
  .rail,.rail.compact{width:100%;max-width:100%;grid-auto-columns:min(82vw,330px)}
  .agents-grid,.library-grid,.journey-layout,.specialist-layout,.whatsapp-layout,.mood-journal-layout{width:100%}
  .panel,.agent-card,.library-card,.specialist-hero,.studio-item{width:100%;max-width:100%}
  .mood-calendar-panel{padding:10px;border-radius:18px;overflow:hidden}
  .mood-calendar-head{grid-template-columns:38px minmax(0,1fr) 38px;gap:6px;margin-bottom:10px}.mood-calendar-head .icon-btn{width:38px;height:38px}.mood-calendar-head h2{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mood-weekdays,.mood-calendar-grid{width:100%;max-width:100%;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
  .mood-weekdays span{font-size:7px;letter-spacing:0;padding:2px 0;white-space:nowrap;overflow:hidden}
  .mood-day{width:100%;min-width:0;min-height:55px;padding:4px;border-radius:8px;gap:2px}.mood-day-number{font-size:8px}.mood-day-score{font-size:16px;letter-spacing:-.5px}.mood-day small{display:none}.mood-day-plus{font-size:13px}
  .mood-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px}.mood-legend span{font-size:8px;min-width:0}
  .mood-summary-panel{padding:14px}.mood-month-stats{grid-template-columns:1fr 1fr}.mood-month-stats>div{min-width:0}.mood-month-stats strong{overflow-wrap:anywhere}
  .journal-reflections .section-title{flex-direction:column;align-items:flex-start}.journal-reflections .section-title .btn{width:100%}
  .mood-score-picker{grid-template-columns:repeat(6,minmax(0,1fr));width:100%}.mood-score{width:100%;min-width:0}
  .mood-scale-copy{grid-template-columns:1fr}
  .mood-dialog-actions{grid-template-columns:1fr}.mood-dialog-actions #deleteDailyMood{grid-column:auto}
}

@media(max-width:380px){
  .main{padding-left:6px;padding-right:6px}
  .mobile-menu,.topbar>.icon-btn{width:38px;height:38px;flex-basis:38px}.search-box input{height:38px;padding-left:34px;font-size:11px}.search-box span{left:11px;top:9px}
  .journal-head-actions{grid-template-columns:1fr}.hero h1{font-size:28px}.page-head h1{font-size:24px}
  .stats-grid,#view-home>.content-section:last-child #homeStats{grid-template-columns:1fr 1fr}
  .mood-calendar-panel{padding:7px;margin-left:0;margin-right:0}.mood-calendar-head{grid-template-columns:34px minmax(0,1fr) 34px}.mood-calendar-head .icon-btn{width:34px;height:34px}.mood-calendar-head h2{font-size:16px}
  .mood-weekdays,.mood-calendar-grid{gap:2px}.mood-day{min-height:49px;padding:3px}.mood-day-score{font-size:15px}.mood-day-number{font-size:7px}
  .mood-legend{grid-template-columns:1fr 1fr}.mood-month-stats{grid-template-columns:1fr}.mood-month-stats .mood-trend{grid-column:auto}
  .rail,.rail.compact{grid-auto-columns:88vw}
}


/* Biblioteca visual de skills */
.agent-skill-section{display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid rgba(120,138,160,.22);border-radius:18px;background:rgba(255,255,255,.55)}
.skill-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.skill-picker-head>div{display:flex;flex-direction:column;gap:4px}.skill-picker-head b{font-size:15px}.skill-picker-head small{color:var(--muted,#6b7788);line-height:1.35}
.skill-picker-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.skill-count-badge{white-space:nowrap;border:1px solid rgba(120,138,160,.22);border-radius:999px;padding:8px 12px;font-size:12px;font-weight:700}
.selected-skills{display:flex;flex-wrap:wrap;gap:8px;min-height:32px;align-items:center}.selected-skill-pill{border:0;border-radius:999px;padding:8px 11px;font:inherit;font-size:12px;font-weight:700;background:rgba(106,83,220,.12);cursor:pointer}.selected-skill-pill span{margin-left:5px;opacity:.65}.skill-empty-inline{font-size:12px;color:var(--muted,#6b7788)}
.skill-catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:360px;overflow:auto;padding:2px}.skill-choice{position:relative;display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;align-items:start;padding:13px;border:1px solid rgba(120,138,160,.22);border-radius:15px;background:rgba(255,255,255,.78);cursor:pointer;transition:.16s ease}.skill-choice:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(16,28,48,.07)}.skill-choice.selected{border-color:rgba(106,83,220,.58);box-shadow:inset 0 0 0 1px rgba(106,83,220,.2)}.skill-choice.inactive{opacity:.52}.skill-choice-check{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:rgba(106,83,220,.10);font-weight:800}.skill-choice-copy{min-width:0}.skill-choice-top{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.skill-choice-top b{font-size:13px}.skill-choice-top span{font-size:10px;text-transform:uppercase;letter-spacing:.06em;border-radius:999px;padding:3px 6px;background:rgba(120,138,160,.12)}.skill-choice-copy p{font-size:12px;line-height:1.4;margin:6px 0;color:var(--muted,#6b7788)}.skill-choice-copy small{font-size:10px;color:var(--muted,#6b7788)}.skill-edit-btn{border:0;background:transparent;font:inherit;font-size:11px;font-weight:700;text-decoration:underline;cursor:pointer;padding:3px}
@media(max-width:760px){.skill-catalog-grid{grid-template-columns:1fr}.skill-picker-toolbar{grid-template-columns:1fr}.skill-picker-head{flex-direction:column}.skill-picker-head .btn{width:100%}}


/* === AUTH RESPONSIVE MOBILE/TABLET v2 === */
@media (max-width: 980px) {
  .auth-screen {
    display: flex !important;
    width: 100% !important;
    min-height: 100dvh !important;
    grid-template-columns: none !important;
    background: #f5f6f4 !important;
  }
  .auth-art { display: none !important; }
  .auth-panel {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 100dvh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 32px 24px !important;
    background: #f5f6f4 !important;
    box-sizing: border-box !important;
  }
  .auth-card {
    width: min(100%, 480px) !important;
    max-width: 480px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 34px 30px !important;
    border-radius: 30px !important;
    box-sizing: border-box !important;
  }
  .auth-card h2 {
    font-size: clamp(34px, 6vw, 46px) !important;
    line-height: 1.04 !important;
    letter-spacing: -1.5px !important;
  }
  .auth-card label,
  .auth-card input,
  .auth-card .input,
  .auth-card .btn.wide {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .auth-card input,
  .auth-card .input { min-height: 54px !important; }
  .auth-card .btn.wide { min-height: 54px !important; }
  .auth-card .text-btn {
    width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
  }
}
@media (max-width: 600px) {
  .auth-panel {
    padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom)) !important;
  }
  .auth-card {
    width: 100% !important;
    max-width: 430px !important;
    padding: 28px 22px !important;
    border-radius: 26px !important;
  }
  .auth-card h2 { font-size: clamp(34px, 10vw, 42px) !important; }
  .auth-card p { font-size: 16px !important; line-height: 1.45 !important; }
  .auth-card label { font-size: 14px !important; }
  .auth-card input,
  .auth-card .input { min-height: 52px !important; font-size: 16px !important; }
}
@media (max-width: 380px) {
  .auth-panel { padding-left: 12px !important; padding-right: 12px !important; }
  .auth-card { padding: 24px 18px !important; border-radius: 24px !important; }
}


/* Coração do agente */
.heart-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border:1px solid #e0e5df;background:#f8faf7;border-radius:18px}.heart-section-head>div{display:grid;gap:4px}.heart-section-head b{font-size:14px}.heart-section-head small{color:var(--muted);line-height:1.45}.heart-section-head .btn{white-space:nowrap}
.brain-dialog-card{width:min(1080px,96vw)}.brain-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.brain-summary>div{border:1px solid var(--line);background:#fafbf9;border-radius:15px;padding:13px;display:grid;gap:5px}.brain-summary small{font-size:9px;letter-spacing:.65px;color:var(--muted)}.brain-summary b{font-size:22px}.brain-layers{display:grid;gap:11px}.brain-layer{border:1px solid var(--line);border-radius:18px;background:#fff;padding:15px;display:grid;gap:12px}.brain-layer-head{display:grid;grid-template-columns:32px 1fr;gap:10px;align-items:start}.brain-layer-head>span{width:30px;height:30px;border-radius:10px;background:#eff2ed;display:grid;place-items:center;font-size:11px;font-weight:800}.brain-layer-head>div{display:grid;gap:3px}.brain-layer-head b{font-size:13px}.brain-layer-head small{color:var(--muted);font-size:10px}.brain-layer>pre,.brain-skill pre,.brain-prompt-box pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;background:#f7f8f6;border:1px solid #e7eae6;border-radius:13px;padding:12px;font:11px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#39413c;max-height:360px;overflow:auto}.brain-layer ul{margin:0;padding-left:20px;display:grid;gap:7px}.brain-layer p{margin:0;color:#667069;line-height:1.55;font-size:11px}.brain-skills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.brain-skill{border:1px solid #e5e8e4;background:#fafbf9;border-radius:14px;padding:12px;display:grid;gap:6px}.brain-skill>b{font-size:12px}.brain-skill>small{font-size:9px;color:var(--muted);text-transform:uppercase}.brain-skill>p{font-size:10px}.brain-skill>em{font-size:10px;color:#9a8172}.brain-skill details summary{cursor:pointer;font-size:10px;font-weight:700;margin-bottom:7px}.brain-tags{display:flex;flex-wrap:wrap;gap:6px}.brain-tags span{border:1px solid #e0e4df;background:#f7f9f6;border-radius:999px;padding:6px 8px;font-size:9px;color:#657069}.brain-prompt-box{border:1px solid #d9ded8;background:#f6f8f5;border-radius:18px;padding:15px}.brain-prompt-box>summary{cursor:pointer;font-weight:800;font-size:13px}.brain-prompt-box>p{color:var(--muted);font-size:10px;line-height:1.5}.brain-prompt-box pre{max-height:520px;background:#fff}@media(max-width:800px){.brain-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.brain-skills{grid-template-columns:1fr}.heart-section-head{align-items:flex-start;flex-direction:column}.heart-section-head .btn{width:100%}.brain-dialog-card{width:100%;border-radius:20px}}@media(max-width:480px){.brain-summary{grid-template-columns:1fr 1fr}.brain-layer{padding:12px}.brain-layer-head{grid-template-columns:28px 1fr}.brain-layer-head>span{width:28px;height:28px}.brain-dialog-card{padding:14px}.brain-layer>pre,.brain-skill pre,.brain-prompt-box pre{font-size:10px}}
