:root{--bg:#100d0c;--panel:#1d1715;--text:#f7f2eb;--muted:#c0b5ae;--red:#f5121e;--line:#ffffff15;--radius:24px;--font:-apple-system,BlinkMacSystemFont,'SF Pro Display','Helvetica Neue',sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.5 var(--font);letter-spacing:-.02em}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:wait;opacity:.55}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ff947e;outline-offset:4px}button{border:0;background:none}svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sidebar{width:240px;position:fixed;inset:0 auto 0 0;padding:34px 22px 24px;background:#171311;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:5}.identity{display:flex;align-items:center;gap:15px;margin:0 0 48px}.identity img{width:48px;height:48px;object-fit:contain}.identity span{font-weight:650;font-size:27px;letter-spacing:-1px}.identity small{display:block;font-size:12px;font-weight:400;color:var(--muted);letter-spacing:0;margin-top:3px}nav{display:grid;gap:8px}nav button{display:flex;align-items:center;gap:14px;padding:14px;border-radius:16px;font-weight:520;font-size:17px;text-align:left;color:#d5cbc5;transition:.2s}nav button:hover{background:#ffffff09}nav button.active{background:#f5121e;color:white;box-shadow:0 7px 22px #f5121e24}.sidebar-bottom{display:flex;gap:10px;align-items:center;margin-top:auto;font-size:14px;padding:20px 5px}.sidebar-bottom small,.profile small{display:block;font-size:12px;color:var(--muted)}.mac-dot{height:8px;width:8px;border-radius:50%;background:#ffa779;box-shadow:0 0 14px #ff5a2c55}.profile{border-top:1px solid var(--line);padding-top:22px;display:flex;gap:13px;align-items:center;font-size:14px}.profile>span{font-weight:500}main{margin-left:240px;padding:0 40px;max-width:1900px}.topbar{height:90px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);font-size:15px;font-weight:500}.topbar>div{display:flex;align-items:center;gap:14px}#sync-state{color:var(--muted);font-size:13px}.icon-button{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:50%;background:#ffffff06}#view{padding:36px 0 20px}h1,h2,h3,p{margin:0}h1{font-size:clamp(38px,4.1vw,64px);line-height:1.05;letter-spacing:-.055em;font-weight:650}h2{font-size:27px;letter-spacing:-.04em;line-height:1.2}h3{font-size:19px;font-weight:600}.sub{color:var(--muted);margin-top:12px;font-size:17px}.hello{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}.hello h1 span{color:#ffa891}.eyebrow{font-size:14px;font-weight:550;color:#ffaf98;margin-bottom:10px}.primary,.secondary{border-radius:14px;padding:12px 20px;font-weight:570;font-size:15px;display:inline-flex;align-items:center;justify-content:center;gap:10px}.primary{background:var(--red);color:white;box-shadow:0 5px 20px #f5121e1a}.secondary{background:#ffffff0c;border:1px solid #ffffff15}.world{height:420px;position:relative;border-radius:32px;overflow:hidden;background:radial-gradient(ellipse at 50% 115%,#95362a3d,transparent 65%),linear-gradient(145deg,#272020,#161418 60%,#211c24);border:1px solid #ffffff12;isolation:isolate}.world:before{content:'';position:absolute;width:570px;height:570px;left:50%;top:50%;transform:translate(-50%,-50%) rotateX(55deg) rotate(-17deg);border:1px solid #dfb2ff23;border-radius:50%;box-shadow:0 0 0 70px #d6b3ff04,0 0 0 71px #d6b3ff0c,0 0 0 145px #d6b3ff03}.world svg.connections{position:absolute;inset:0;width:100%;height:100%;stroke:#e5b7a9;stroke-width:1;stroke-dasharray:3 7;opacity:.3}.world .star{position:absolute;width:5px;height:5px;border-radius:50%;background:#ffe5c9;opacity:.5;box-shadow:0 0 12px #ffd5b2}.planet{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);width:138px;height:138px;border-radius:44%;display:grid;place-content:center;text-align:center;background:radial-gradient(circle at 32% 20%,#ffbd8e,#f95c40 45%,#a9212d 85%);box-shadow:inset 5px 8px 20px #ffedc755,inset -10px -14px 30px #640e3455,0 24px 55px #d52c3433;animation:breathe 6s ease-in-out infinite}.planet strong{font-size:39px;line-height:1}.planet span{font-size:14px;margin-top:7px;color:#fff2e8}.satellite{position:absolute;display:flex;align-items:center;text-align:left;gap:15px;border-radius:25px;background:linear-gradient(145deg,#fff8ee,#e7ddd6);color:#312724;padding:16px 21px;min-width:212px;box-shadow:0 16px 28px #0004,inset 0 1px 1px white;transition:transform .3s}.satellite:hover{transform:translateY(-7px)}.satellite .orb{width:51px;height:51px;display:grid;place-items:center;border-radius:18px;box-shadow:inset 0 3px 5px #fff8,0 4px 8px #0001}.satellite .orb svg{width:28px;height:28px}.satellite strong{font-size:18px;display:block}.satellite small{display:block;font-size:12px;color:#6b5a52;margin-top:2px;max-width:165px}.sat-metricool{left:9%;top:18%;transform:rotate(-4deg)}.sat-metricool .orb{background:#ffc198;color:#9b4027}.sat-memo{right:7%;top:15%;transform:rotate(4deg)}.sat-memo .orb{background:#c2b9ff;color:#51439d}.sat-yac{right:12%;bottom:12%;transform:rotate(-3deg)}.sat-yac .orb{background:#ffe98c;color:#8f6a0d}.sat-jarvis{left:13%;bottom:13%;transform:rotate(3deg)}.sat-jarvis .orb{background:#bcdcff;color:#3a6496}.world-caption{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);color:#cfbcb0;font-size:13px;white-space:nowrap}.section-head{display:flex;justify-content:space-between;align-items:center;margin:32px 0 20px;gap:15px}.section-head p{font-size:15px;color:var(--muted)}.team{display:grid;grid-template-columns:repeat(6,1fr);gap:13px}.agent-tile{background:linear-gradient(155deg,#332927,#211b19);border:1px solid var(--line);border-radius:24px;padding:9px 10px 17px;text-align:center;transition:.25s;overflow:hidden;min-width:0}.agent-tile:hover{transform:translateY(-6px);border-color:var(--tint);box-shadow:0 12px 35px #0003}.agent-tile img{width:100%;height:125px;object-fit:cover;border-radius:18px;object-position:50% 32%;mix-blend-mode:lighten}.agent-tile strong{display:block;font-size:18px;letter-spacing:-.025em;color:var(--tint);margin-top:9px}.agent-tile small{display:block;font-size:12px;color:#d1c4ba;margin-top:4px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:24px}.card{padding:25px;background:var(--panel);border:1px solid var(--line);border-radius:24px}.card p{color:var(--muted);margin-top:10px}.card.big-number strong{font-size:38px;letter-spacing:-2px;display:block;color:#ffd2ad}.card.big-number:nth-child(2) strong{color:#c9b8ff}.card.big-number:nth-child(3) strong{color:#ffd47c}.muted{color:var(--muted)}.toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:26px 0}.toolbar label{display:flex;flex-direction:column;gap:7px;font-size:14px;color:var(--muted)}select,input,textarea{border:1px solid #ffffff23;background:#211b19;color:var(--text);border-radius:12px;padding:12px;min-width:0}select{max-width:350px}textarea{resize:vertical;width:100%;min-height:110px}.list{display:grid;gap:12px}.list-item{padding:20px 24px;border-radius:19px;border:1px solid var(--line);background:#211a17;text-align:left;width:100%}.list-item h3{margin-bottom:8px}.list-item p{color:var(--muted);white-space:pre-wrap;font-size:15px}.list-item .meta{display:flex;gap:15px;flex-wrap:wrap;font-size:13px;color:#f4bda2;margin-top:12px}.notice{padding:20px 24px;border-radius:20px;background:#ffb66a0a;border:1px solid #ffb66a30;color:#f8d2ad;margin:22px 0}.notice a{text-decoration:underline}.badge{display:inline-block;font-size:12px;line-height:1.2;padding:7px 10px;border:1px solid #ffffff20;border-radius:20px;color:#ffc5a6}.fine{font-size:13px;color:var(--muted)}.full-team{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:30px}.full-team button{border:1px solid var(--line);border-radius:28px;overflow:hidden;background:#211a17;text-align:left;padding:0;transition:transform .2s}.full-team button:hover{transform:translateY(-5px)}.full-team img{width:100%;aspect-ratio:1;object-fit:cover}.full-team .copy{padding:24px}.full-team h2{color:var(--tint)}.full-team p{margin-top:9px;color:var(--muted);font-size:15px}footer{padding:25px 0;border-top:1px solid var(--line);display:flex;gap:25px;align-items:center;color:var(--muted);font-size:13px}footer span{margin-right:auto}footer button{font-size:13px}dialog{width:min(1000px,95vw);max-height:90dvh;padding:0;border:1px solid #ffffff20;border-radius:30px;background:#201916;color:var(--text);box-shadow:0 40px 120px #0009}dialog::backdrop{background:#080504bb;backdrop-filter:blur(12px)}.chat{display:grid;grid-template-columns:34% 66%;min-height:610px}.portrait{background:#100c0a;display:flex;flex-direction:column;justify-content:center;padding-bottom:32px}.portrait img{width:100%;object-fit:cover}.portrait h2{padding:0 28px;font-size:37px;color:var(--tint)}.portrait p{padding:0 28px;margin-top:10px;font-size:15px;color:var(--muted)}.chat-side{display:flex;flex-direction:column;min-width:0;padding:25px}.chat-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:15px}.chat-head strong{font-size:17px}.close{width:35px;height:35px;border-radius:50%;background:#ffffff0b;display:grid;place-items:center}.chat-context{display:flex;gap:8px;align-items:center;font-size:13px;margin-bottom:14px;flex-wrap:wrap}.chat-context select{padding:7px 10px;font-size:13px;max-width:100%}.history{height:310px;overflow:auto;display:flex;flex-direction:column;gap:16px;padding:5px 5px 18px;scroll-behavior:smooth}.bubble{white-space:pre-wrap;padding:15px 17px;font-size:15px;line-height:1.6;border-radius:18px;background:#ffffff09;max-width:96%;overflow-wrap:anywhere}.bubble.user{background:#7a2e2f;align-self:flex-end}.bubble .source{display:block;font-size:11px;color:#d3b29d;border-top:1px solid #ffffff15;margin-top:10px;padding-top:8px}.chat-form{display:flex;gap:9px;margin-top:auto;padding-top:16px}.chat-form input{flex:1;width:100%}.chat-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:12px;gap:10px;font-size:12px;color:var(--muted)}.chat-bottom button{font-size:13px;color:#ffc7a8}.suggestions{display:flex;gap:10px;margin-bottom:10px;flex-wrap:wrap}.suggestions button{border:1px solid #ffffff20;border-radius:20px;padding:7px 10px;font-size:12px}.dialog-simple{padding:30px}.dialog-simple p{margin:14px 0;color:var(--muted)}.mission-step{margin-top:18px;border-left:3px solid #f87a65;padding-left:18px}.mission-step h3{display:flex;gap:12px;align-items:center}.mission-step img{width:42px;height:42px;object-fit:cover;border-radius:50%}.mission-step p{white-space:pre-wrap;font-size:15px;color:#ded0c6;margin-top:10px}.mission-form{margin:25px 0}.mission-form .toolbar{margin:12px 0}.empty{padding:35px;border:1px dashed #ffffff24;border-radius:24px;color:var(--muted);margin-top:24px}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);border-radius:16px;background:#fff1df;color:#3b2520;padding:15px 24px;z-index:100;display:none;box-shadow:0 10px 35px #0007;max-width:90vw}#toast.show{display:block}.busy-indicator{color:#ffb292;font-size:14px;padding:12px}.loading{background:linear-gradient(90deg,#ffffff06,#ffffff10,#ffffff06);border-radius:18px;padding:28px;animation:breathe 2s infinite}.source-stamp{font-size:13px;color:#c8b2a1;margin-top:16px}.pulse{animation:breathe 2s infinite}@keyframes breathe{50%{filter:brightness(1.12)}}@media(min-width:1550px){main{padding:0 60px}.world{height:460px}.team img{height:155px}}@media(max-width:1150px){.sidebar{width:200px;padding:28px 15px}.identity span{font-size:24px}.identity small{font-size:10px}main{margin-left:200px;padding:0 25px}.team{grid-template-columns:repeat(3,1fr)}.agent-tile img{height:155px}.satellite{min-width:175px;padding:13px;gap:9px}.satellite strong{font-size:16px}.satellite .orb{width:40px;height:40px}.sat-metricool{left:4%}.sat-memo{right:4%}.sat-jarvis{left:6%}.sat-yac{right:6%}.full-team{grid-template-columns:repeat(2,1fr)}.planet{width:112px;height:112px}.world-caption{font-size:11px}}@media(max-width:760px){.sidebar{position:relative;width:100%;padding:18px;background:#171311;border-right:0;border-bottom:1px solid var(--line)}.identity{margin:0 0 18px}.identity img{width:34px;height:34px}.identity small{font-size:12px}.identity span{font-size:24px}.sidebar nav{display:flex;overflow:auto;gap:6px;padding:2px}.sidebar nav button{padding:10px 14px;white-space:nowrap;font-size:15px;gap:7px;border-radius:12px}.sidebar nav svg{width:19px;height:19px}.sidebar-bottom,.profile{display:none}main{margin:0;padding:0 18px}.topbar{height:62px;font-size:14px}#sync-state{font-size:11px;max-width:155px;text-align:right}#view{padding-top:25px}h1{font-size:39px}.hello{align-items:start}.hello .secondary{display:none}.sub{font-size:15px}.world{height:410px;border-radius:25px}.satellite{min-width:0;padding:11px;gap:8px;width:43%;border-radius:18px}.satellite strong{font-size:14px}.satellite small{font-size:10px}.satellite .orb{width:32px;height:36px;border-radius:11px}.satellite .orb svg{width:22px;height:22px}.sat-metricool{left:4%;top:10%}.sat-memo{right:4%;top:13%}.sat-jarvis{left:4%;bottom:16%}.sat-yac{right:4%;bottom:12%}.planet{width:103px;height:103px;top:49%}.planet strong{font-size:30px}.planet span{font-size:12px}.world-caption{bottom:18px;font-size:10px}.section-head{align-items:start}.section-head p{font-size:12px;max-width:125px;text-align:right}h2{font-size:25px}.team{gap:9px}.agent-tile{border-radius:17px;padding:4px 5px 14px}.agent-tile img{height:104px;border-radius:13px}.agent-tile strong{font-size:15px}.agent-tile small{font-size:10px}.cards{grid-template-columns:1fr}.full-team{gap:12px}.full-team .copy{padding:16px}.full-team h2{font-size:25px}.full-team p{font-size:13px}.chat{display:flex;flex-direction:column;min-height:0}.portrait{flex-direction:row;align-items:center;justify-content:start;padding:0;max-height:135px;gap:12px}.portrait img{width:130px;height:135px;object-fit:cover}.portrait h2{padding:0;font-size:29px}.portrait p{padding:0;font-size:12px;margin-top:7px}.portrait .portrait-copy{padding-right:16px}.chat-side{padding:18px}.history{height:240px}.chat-form .primary{padding:10px 14px}.chat-bottom{font-size:10px}dialog{width:94vw;max-height:94dvh;border-radius:24px}.toolbar{gap:10px}.toolbar select{max-width:100%}.toolbar label{max-width:100%}footer{gap:15px;font-size:11px}footer button{font-size:11px}.list-item{padding:18px}.card{padding:22px}.mission-step p{font-size:14px}}@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.sidebar nav{overflow-y:auto;flex:1;min-height:0;scrollbar-width:thin;scrollbar-color:#6e4b44 transparent;padding-right:4px}.sidebar .identity{margin-bottom:25px}.sidebar-bottom{margin-top:10px;flex-shrink:0}.profile{flex-shrink:0;text-align:left}.nav-group{font-size:12px;color:#b39c8d;letter-spacing:.02em;margin:20px 12px 2px}.sidebar nav button{font-size:16px;padding:11px 13px}.legacy-frame{width:100%;height:calc(100dvh - 150px);border:0;background:#100d0c;border-radius:20px;display:block}.world{margin-top:12px}.hello{margin-bottom:28px}.topbar{height:78px}@media(max-width:760px){.sidebar nav{flex:initial;max-height:unset;overflow:auto}.nav-group{display:none}.sidebar .identity{margin-bottom:15px}.legacy-frame{height:calc(100dvh - 235px)}}

.captain{position:absolute;left:50%;top:49%;transform:translate(-50%,-50%);height:310px;width:280px;filter:drop-shadow(0 20px 22px #0006);pointer-events:none}.captain img{width:100%;height:100%;object-fit:contain}.world:after{content:'';position:absolute;left:50%;top:80%;transform:translateX(-50%);width:150px;height:20px;filter:blur(16px);background:#f77d5e25;border-radius:50%;z-index:-1}@media(max-width:1150px){.captain{height:250px;width:220px}}@media(max-width:760px){.captain{height:200px;width:170px;top:48%}}

.home-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px;align-items:start}.home-main{min-width:0}.today-agenda{position:sticky;top:20px;margin-top:12px;border:1px solid #ffffff1c;background:linear-gradient(155deg,#302322,#201917);border-radius:28px;overflow:hidden}.agenda-head{padding:24px 22px 20px;display:flex;align-items:start;justify-content:space-between;gap:10px}.agenda-head .eyebrow{display:block;margin:0 0 8px;font-size:14px}.agenda-head h2{font-size:24px;line-height:1.2;text-transform:capitalize}.agenda-head .icon-button{flex-shrink:0}.day-events{max-height:calc(100dvh - 240px);overflow:auto;padding:0 18px 18px}.day-event{display:block;width:100%;text-align:left;background:#ffffff05;border-left:3px solid var(--event-color);border-radius:3px 14px 14px 3px;padding:14px 15px;margin-bottom:12px}.day-event time{display:block;color:var(--event-color);font-size:13px;font-weight:600}.day-event strong{display:block;margin:6px 0;font-size:16px;line-height:1.35}.day-event small,.day-event span{display:block;font-size:12px;color:#cdbdb4}.day-event.current{background:#fb925c16}.day-event.past{opacity:.6}.agenda-empty{padding:22px 4px 35px;color:#cdbdb4;font-size:15px}.agenda-open{display:flex;align-items:center;justify-content:space-between;width:100%;padding:18px 22px;background:#ffffff04;border-top:1px solid #ffffff0c;font-size:14px}.home-grid .team{grid-template-columns:repeat(3,1fr)}.home-grid .agent-tile img{height:140px}.home-grid .satellite{min-width:175px;padding:14px;gap:9px}.home-grid .satellite strong{font-size:16px}.home-grid .satellite .orb{width:38px;height:42px}.home-grid .sat-metricool{left:4%}.home-grid .sat-memo{right:4%}.home-grid .sat-jarvis{left:5%}.home-grid .sat-yac{right:5%}.home-grid .captain{height:270px;width:235px}.home-grid .cards{grid-template-columns:1fr}.home-grid .world{height:430px}@media(max-width:1200px){.home-grid{grid-template-columns:minmax(0,1fr) 270px;gap:16px}.home-grid .satellite{width:43%;min-width:0;padding:10px}.home-grid .satellite .orb{display:none}.home-grid .satellite strong{font-size:14px}.home-grid .captain{height:220px;width:185px}.home-grid .agent-tile img{height:105px}}@media(max-width:1000px){.home-grid{display:flex;flex-direction:column}.home-main{display:contents}.home-grid .world{width:100%;order:0}.today-agenda{position:static;width:100%;order:1}.home-grid .section-head{order:2;width:100%}.home-grid .team{order:3;width:100%}.home-grid .cards{order:4;width:100%}.day-events{max-height:340px}.home-grid .satellite .orb{display:grid}.home-grid .satellite{width:auto;min-width:180px}.home-grid .captain{height:260px;width:220px}}@media(max-width:760px){.home-grid .satellite{width:43%;min-width:0}.home-grid .satellite .orb{width:28px;height:32px}.home-grid .captain{height:200px;width:170px}.home-grid .world{height:370px}.today-agenda{margin-top:0}.agenda-head h2{font-size:24px}.home-grid .agent-tile img{height:104px}}

.flow-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.flow-fields label{display:flex;flex-direction:column;gap:8px;font-size:15px}.flow-fields input,.flow-fields select,.flow-fields textarea{width:100%;padding:13px;border-radius:12px;border:1px solid #ffffff25;background:#171311;color:#fff}.flow-fields textarea{min-height:110px;resize:vertical}.flow-editor{margin-top:22px}.flow-config{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;max-height:65vh;overflow:auto}.yac-frame{height:78vh;min-height:550px;background:#f3f1ec;margin:15px 0 24px}.yac-shortcuts{flex-wrap:wrap}.yac-shortcuts button{font-size:14px;padding:10px 14px}@media(max-width:760px){.flow-fields{grid-template-columns:1fr}.yac-frame{height:75vh;min-height:420px}}
/* Workspace: account connections, separated inboxes and voice composer. */
.connections-board{margin:26px 0 34px}.connections-board h3{margin:25px 0 12px;font-size:19px}.connection-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.connection-card{min-width:0;padding:18px;border:1px solid #59483d;border-radius:20px;background:linear-gradient(140deg,#35251e,#211916);color:#f8eee4;text-align:left;display:flex;flex-direction:column;gap:10px;overflow-wrap:anywhere}.connection-card:nth-child(3n+2){background:linear-gradient(140deg,#312b40,#211b29)}.connection-card.social{border-color:#775a72}.connection-card small{color:#cebdb2}.connection-card button,.composer-tools button,.attachment button{padding:9px 12px;border:1px solid #735549;border-radius:12px;background:#3c2a25;color:#fff2e8;cursor:pointer}.connection-card a{font-size:14px}.notification-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}.notification-grid .card:nth-child(2n){background:#2c253b}.notification-grid .card:nth-child(3n){background:#40251e}.composer-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 22px}.composer-tools span{font-size:13px;color:#eec5ab}.attachment{padding:10px 14px;margin:6px 20px;border:1px solid #775649;border-radius:12px;display:flex;flex-wrap:wrap;gap:9px;align-items:center;font-size:14px}.attachment a{color:#ffd4b7}.attachment small{color:#cbbcb4}.bubble .attachment{margin:10px 0}.topbar>div{gap:14px;display:flex;align-items:center}.topbar .primary{white-space:nowrap}.list-item p{white-space:pre-wrap;overflow-wrap:anywhere}#attachment-tray{max-height:180px;overflow:auto}.chat-form{flex-shrink:0}.chat-side{min-height:0}.history{min-height:120px}.connection-card:hover{border-color:#ffbda1;transform:translateY(-2px)}
@media(max-width:700px){#sync-state{display:none}.connection-grid{grid-template-columns:1fr 1fr}.connection-card{padding:12px}.topbar .primary{font-size:14px}.composer-tools{padding:8px}}
/* Full-body cast: real alpha cutouts, never crop or blend the characters. */
.home-squad{margin:30px 0 34px;min-width:0}.home-squad .section-head{margin:0 0 22px;align-items:center}.home-squad h2{font-size:30px}.home-grid .team,.team{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.agent-tile{position:relative;isolation:isolate;overflow:visible;border:1px solid #ffffff18;border-radius:28px;padding:0;text-align:left;background:linear-gradient(155deg,#f8ecdf,#e4d0c2);color:#342420;box-shadow:0 12px 30px #0002;transition:transform .24s ease,box-shadow .24s ease}.agent-tile:nth-child(2){background:linear-gradient(145deg,#ffe9c4,#edc59c)}.agent-tile:nth-child(3){background:linear-gradient(145deg,#ffd8cf,#e8afa7)}.agent-tile:nth-child(4){background:linear-gradient(145deg,#dce6fa,#bac9e5)}.agent-tile:nth-child(5){background:linear-gradient(145deg,#f9dce7,#e3b4ca)}.agent-tile:nth-child(6){background:linear-gradient(145deg,#fbeac3,#e2c48e)}.agent-stage{position:relative;display:grid;place-items:center;height:258px;margin:0 8px;isolation:isolate}.agent-stage:before{content:'';position:absolute;inset:30px 22px 25px;border-radius:50%;background:radial-gradient(ellipse,#fff9,#fff0 72%);z-index:-1}.agent-stage:after{content:'';position:absolute;bottom:11px;left:22%;right:22%;height:13px;border-radius:50%;background:#42281828;filter:blur(7px);z-index:-1}.home-grid .agent-tile img,.team .agent-tile img{width:100%;height:100%;max-height:258px;object-fit:contain;object-position:center;mix-blend-mode:normal;border-radius:0;filter:drop-shadow(0 9px 5px #36221b20);transform:translateY(-7px);transition:transform .3s ease}.agent-caption{display:block;padding:2px 22px 22px;position:relative}.agent-tile strong{font-size:24px;letter-spacing:-.04em;color:#35231f;margin:0;line-height:1.2}.agent-tile small{font-size:14px;line-height:1.5;color:#705449;margin-top:5px}.agent-enter{position:absolute;right:6px;top:14px;width:34px;height:34px;display:grid;place-items:center;background:#ffffff90;border:1px solid #fff8;border-radius:50%;color:#543a30;transition:background .2s,transform .2s}.agent-enter svg{width:18px;height:18px}.agent-tile:hover{transform:translateY(-5px);border-color:#ffdfc8;box-shadow:0 20px 36px #0004}.agent-tile:hover img{transform:translateY(-13px) rotate(-2deg)}.agent-tile:nth-child(even):hover img{transform:translateY(-13px) rotate(2deg)}.agent-tile:hover .agent-enter{background:white;transform:rotate(-35deg)}.agent-tile:focus-visible{outline:3px solid #ffb99e;outline-offset:5px}.full-team button{background:radial-gradient(ellipse at 50% 30%,#6b4b44,#30221e 70%);border-radius:30px}.full-team img{object-fit:contain;padding:20px 22px 0;aspect-ratio:1;filter:drop-shadow(0 16px 12px #0004)}.portrait{background:radial-gradient(ellipse at 50% 30%,#62433a,#231916 75%)}.portrait img{object-fit:contain;padding:20px;max-height:390px;filter:drop-shadow(0 18px 14px #0005)}.mission-step img{object-fit:contain;background:#f2dfcb}.home-grid .world{height:350px}.home-grid .captain{height:255px;width:230px}
@media(min-width:1550px){.agent-stage{height:290px}.home-grid .agent-tile img,.team .agent-tile img{max-height:290px}}
@media(max-width:1200px){.home-grid{grid-template-columns:minmax(0,1fr) 250px}.home-grid .team{grid-template-columns:repeat(2,minmax(0,1fr))}.agent-stage{height:250px}.home-grid .agent-tile img{max-height:250px}.agent-caption{padding:0 18px 20px}}
@media(max-width:1000px){.home-squad{order:2;width:100%;margin:20px 0}.connections-board{order:3;width:100%}.home-grid .cards{order:4}.home-grid .team{grid-template-columns:repeat(3,minmax(0,1fr))}.home-squad .section-head{margin-bottom:22px}.home-squad .section-head .secondary{font-size:14px}.agent-stage{height:230px}.home-grid .agent-tile img{max-height:230px}}
@media(max-width:760px){.home-grid .team,.team{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.agent-stage{height:220px;margin:0 5px}.home-grid .agent-tile img{height:100%;max-height:220px}.agent-caption{padding:0 16px 18px}.agent-tile strong{font-size:23px}.agent-tile small{font-size:13px}.agent-tile{border-radius:23px}.home-squad h2{font-size:27px}.home-grid .world{height:340px}.home-grid .captain{height:210px;width:180px}.portrait img{width:125px;height:130px;padding:8px}.home-squad .section-head .secondary{padding:9px 12px}.agent-enter{width:28px;height:28px;right:2px;top:10px}}
@media(max-width:390px){.agent-stage{height:185px}.home-grid .agent-tile img{max-height:185px}.agent-caption{padding:0 12px 17px}.agent-tile strong{font-size:21px}}
@media(prefers-reduced-motion:reduce){.agent-tile,.agent-tile img,.agent-enter{transition:none!important}}
@media(min-width:1550px){.agent-stage{height:270px}.home-grid .agent-tile img,.team .agent-tile img{max-height:270px}}
/* Three different visual grammars: launcher, mailbox, social profiles. */
.world-links,.world-mail,.world-social{margin:38px 0 46px}.connections-board .section-head h2{display:flex;align-items:center;gap:13px}.connections-board .section-head h2 svg{width:26px;height:26px}.launcher-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.launcher{display:flex;flex-direction:column;align-items:start;gap:14px;background:#211c18;border:1px solid #6c5940;border-radius:22px;padding:22px}.app-monogram{display:grid;place-items:center;width:56px;height:56px;border-radius:15px;background:linear-gradient(135deg,#ffe8a9,#c4964e);color:#382719;font-size:21px;font-weight:700}.launcher strong{font-size:19px}.launcher a,.launcher button{padding:0;background:transparent;border:0;font-size:14px;color:#e8c68f}.mailbox-list{background:#edf2fb;border-radius:24px;overflow:hidden;padding:6px 20px}.mailbox-row{display:flex;width:100%;align-items:center;gap:15px;padding:17px 0;border-bottom:1px solid #c9d5e8;text-align:left;color:#20344e}.mailbox-row:last-child{border-bottom:0}.mailbox-icon{width:43px;height:43px;border-radius:13px;display:grid;place-items:center;background:#d3e2f7;color:#3569a9;flex-shrink:0}.mailbox-icon svg{width:24px;height:24px}.mailbox-row strong{font-size:16px;overflow-wrap:anywhere}.mailbox-row small{display:block;font-size:13px;color:#60758d;margin-top:4px}.row-arrow{margin-left:auto;color:#5679a7}.world-mail h2{color:#bcd9ff}.world-social h2{color:#f1b6de}.social-account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.social-account{display:flex;flex-direction:column;align-items:center;text-align:center;gap:9px;padding:23px 15px;border-radius:26px;background:linear-gradient(145deg,#41233b,#271c30);border:1px solid #76466b}.social-avatar{height:68px;width:68px;display:grid;place-items:center;border:3px solid #f49abb;box-shadow:0 0 0 4px #713560;border-radius:50%;background:linear-gradient(135deg,#ef9d76,#9b6ad1);color:white;font-size:23px;font-weight:650;margin-bottom:7px}.social-account.is-messenger .social-avatar{background:linear-gradient(135deg,#8b94ff,#af64c9);border-color:#b5bcff;box-shadow:0 0 0 4px #484370}.social-account strong{font-size:18px}.social-account small{font-size:12px;color:#e5b8d7;border:1px solid #b578a159;border-radius:20px;padding:3px 10px}.social-account-action{display:flex;align-items:center;justify-content:center;gap:9px;font-size:12px;color:#cfa9d1;margin-top:12px}.social-account-action svg{width:16px}.social-account:hover{border-color:#f4aad2;transform:translateY(-3px)}.channel-hero{display:flex;gap:22px;align-items:center;padding:28px;border-radius:28px;margin-bottom:24px}.channel-symbol{display:grid;place-items:center;width:80px;height:80px;border-radius:22px;background:#ffffff90;flex-shrink:0}.channel-symbol svg{width:41px;height:41px}.channel-kicker{display:block;font-size:12px;font-weight:650;letter-spacing:.12em;margin-bottom:8px}.email-space .channel-hero{background:linear-gradient(120deg,#dfedff,#b3ccea);color:#203a59}.social-space .channel-hero{background:linear-gradient(120deg,#634066,#2c2446);color:#ffe4f7}.social-space .channel-symbol{background:linear-gradient(145deg,#f2a684,#b07bd3);color:#fff}.social-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 20px}.social-tabs button{padding:12px 19px;border-radius:30px;border:1px solid #895578;background:#312136;color:#e6c3df}.social-tabs button.selected{background:#eac0df;color:#3e2040;border-color:#eac0df}.social-tabs svg{width:17px;height:17px;vertical-align:middle}.message-entry{display:flex;gap:18px}.message-avatar{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:50%;background:#704969;color:#ffe0f5;font-weight:650}.message-copy{min-width:0;flex:1}.message-avatar svg{width:23px;height:23px}.email-space .list{gap:0;background:#f1f5fc;border-radius:23px;overflow:hidden}.email-space .message-entry{background:transparent;border:0;border-bottom:1px solid #d1ddeb;border-radius:0;color:#21354d}.email-space .message-entry h3{margin-top:8px;font-size:18px}.email-space .message-entry p{color:#53677e;white-space:normal;line-height:1.6}.email-space .message-entry .meta{color:#5f7691;margin-top:0}.email-space .message-avatar{border-radius:13px;background:#dce8f9;color:#476e9d}.email-space .message-entry .secondary{background:#dfe9f6;border-color:#c6d4e6;color:#365a84;margin-top:12px;padding:8px 12px;font-size:13px}.email-space .message-entry .badge{color:#234e83;border-color:#9dbce4;background:#dce9fb}.social-space .message-entry{border-radius:25px 25px 25px 6px;background:linear-gradient(130deg,#38283e,#241e30);border-color:#795269;max-width:920px}.social-space .message-entry .meta{margin-top:0;color:#d2a8d1}.social-space .message-entry h3{margin-top:10px}.social-space .message-entry p{line-height:1.65}.social-space .message-entry .secondary{margin-top:15px;border-radius:30px;color:#f1bddc}.social-space .toolbar .primary{background:#a462a0}.email-space .toolbar .primary{background:#3e6eab}.world-mail .secondary{border-color:#6385ad;color:#c4ddff}.world-social .secondary{border-color:#916583;color:#e9bbdd}
@media(max-width:760px){.launcher-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.social-account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.channel-hero{padding:22px;gap:15px}.channel-symbol{width:60px;height:60px}.channel-kicker{font-size:10px}.mailbox-list{padding:4px 14px}.mailbox-row strong{font-size:14px}.message-entry{gap:12px}.message-avatar{width:34px;height:34px}.social-tabs button{padding:11px 13px;font-size:14px}}
.flow-entrypoints{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:24px}.flow-entrypoints article{border:1px solid #71506d;border-radius:23px;padding:23px;background:linear-gradient(140deg,#352536,#211b29)}.flow-entrypoints h3{font-size:23px;margin:15px 0 10px}.flow-entrypoints p{font-size:15px;color:#d6bdcf;line-height:1.6}.flow-entrypoints a{margin-top:15px}@media(max-width:760px){.flow-entrypoints{grid-template-columns:1fr}}

/* Loghi originali dei brand, senza ricostruzioni o filtri. */
.brand-logo,.brand-personal{display:inline-flex;align-items:center;justify-content:center;width:94px;height:80px;border-radius:20px;background:#fff;overflow:hidden;flex-shrink:0;padding:12px;box-sizing:border-box}.brand-logo img{width:100%;height:100%;object-fit:contain}.brand-hairchangers{background:#171419}.brand-hairchangers img{transform:scale(1.55)}.brand-popzilla{width:140px}.brand-personal{background:#f2ddd0;padding:0}.brand-personal img{height:100%;width:100%;object-fit:contain}.social-account .brand-logo{width:136px;height:102px;border-radius:24px;align-self:center}.social-account .brand-personal{align-self:center}.mailbox-row .brand-logo,.mailbox-row .brand-personal{width:58px;height:48px;border-radius:12px;padding:7px}.launcher .brand-logo,.launcher .brand-personal{margin-bottom:8px}

/* Galleria tag per brand */
.tag-space .channel-hero{background:linear-gradient(115deg,#ecd8ef,#c7b9ec);color:#302039}.tag-brands{display:flex;gap:12px;overflow:auto;padding:8px 0 20px}.tag-brands button{min-width:150px;display:flex;flex-direction:column;align-items:center;gap:10px;border:1px solid #49404d;border-radius:22px;padding:16px;background:#231f27;color:#fff}.tag-brands button[aria-pressed=true]{border-color:#ddbae9;background:#49324e;box-shadow:inset 0 0 0 1px #ddbae9}.tag-brands .brand-logo{width:78px;height:60px;padding:8px}.tag-status button span{padding:3px 9px;border-radius:20px;background:#ffffff12;margin-left:6px}.tag-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:24px 0}.tag-card{border:1px solid #4c3c50;border-radius:25px;overflow:hidden;background:#241e29}.tag-cover{height:320px;position:relative;background:linear-gradient(145deg,#493952,#261b30);display:flex;align-items:center;justify-content:center}.tag-cover img{width:100%;height:100%;object-fit:cover}.tag-cover [hidden]{display:none}.preview-fallback{text-align:center;padding:28px;color:#d8c5df;line-height:1.6}.tag-type,.tag-state{position:absolute;padding:7px 11px;border-radius:12px;background:#201725e8;color:white;font-size:12px;backdrop-filter:blur(12px)}.tag-type{top:12px;left:12px}.tag-state{bottom:12px;left:12px;background:#faf0d9;color:#5d4120}.tag-state.is-done{background:#dbcaf4;color:#3b2559}.tag-copy{padding:19px}.tag-copy .meta{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}.tag-caption{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;line-height:1.55;color:#ddd0e2;min-height:74px}.tag-actions{display:flex;flex-direction:column;gap:10px}.tag-actions .primary,.tag-actions .secondary{text-align:center;justify-content:center;font-size:14px}.tag-copy small{display:block;margin-top:14px;color:#d3bce1}.tag-space .fine{line-height:1.5}@media(max-width:1150px){.tag-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.tag-gallery{grid-template-columns:1fr}.tag-cover{height:390px}.tag-brands button{min-width:125px}}

.tag-kind{margin-bottom:16px}.tag-kind button{border-radius:12px}.tag-kind span{opacity:.7;margin-left:8px}.story-notice{padding:22px;background:#33253e;border:1px solid #735582;border-radius:20px;margin:18px 0}.story-notice p{line-height:1.5}.story-notice small{display:block;margin-top:14px;color:#d4bedc}.story-age{color:#f5cb91;font-size:13px}

.tag-cover video{height:100%;width:100%;object-fit:contain}.tag-cover:has(video) .tag-state{bottom:auto;top:48px;pointer-events:none}
/* Social: keep the brand and the first previews in view. */
.tag-space .channel-hero{padding:16px 22px;margin-bottom:16px;border-radius:22px;gap:16px}.tag-space .channel-hero h1{font-size:36px;margin:0}.tag-space .channel-symbol{width:48px;height:48px;border-radius:15px}.tag-space .channel-symbol svg{width:28px;height:28px}.tag-space .channel-kicker{margin-bottom:4px}.tag-space .tag-brands{padding:0 0 16px}.tag-space .tag-brands button{flex-direction:row;min-width:160px;padding:12px;gap:12px;border-radius:18px}.tag-space .tag-brands .brand-logo{width:48px;height:44px;padding:5px}.tag-space .social-tabs{margin-bottom:14px}.tag-space #social-progress{padding:14px 18px;margin:0 0 14px;font-size:14px}.tag-space .section-head{margin-top:20px;margin-bottom:14px}.tag-space .section-head h2{font-size:24px}.tag-space .message-avatar .brand-logo{width:44px;height:44px;padding:5px}.tag-space .message-entry{border-radius:22px;background:#241e29}.tag-space .message-copy p{white-space:pre-wrap}.tag-space #social-new{margin-bottom:12px}
#dialog-body:has(#social-send),#dialog-body:has([data-close]):not(:has(.chat)):not(:has(.dialog-simple)){padding:28px}#social-reply-text{margin:14px 0;padding:16px;border-radius:16px;line-height:1.5}#social-reply-confirm{min-width:250px;margin:12px 10px 0 0}

.social-context{margin:14px 0;width:min(100%,300px)}.social-context .tag-cover{height:300px;aspect-ratio:auto;background:#13141c;border-radius:16px;overflow:hidden}.social-context .tag-cover img,.social-context .tag-cover video{width:100%;height:100%;object-fit:contain}.social-context figcaption{font-size:13px;color:#c7bfb8;margin-top:7px}#dialog-body:has(.social-context){max-height:85vh;overflow:auto}.social-context .tag-cover video[hidden]{display:none}
.flow-steps{margin:0 0 18px;padding:18px 22px 18px 40px;display:grid;gap:8px;line-height:1.45}.flow-steps strong{color:#ffd1b6}

.chat-context{display:flex;gap:12px;flex-wrap:wrap;align-items:end}.chat-context label{display:grid;gap:6px;font-size:14px}.chat-context select{max-width:260px;font-size:16px}.mission-step p{white-space:pre-wrap}
.legacy-frame.fade{opacity:0;transition:opacity .18s}.legacy-frame.fade.ready{opacity:1}

.flow-panel{min-height:calc(100dvh - 130px);border-radius:0;background:#171210}
/* Voice stays in the current page, with an explicit microphone state. */
#voice-panel{position:fixed;bottom:24px;left:calc(50% + 100px);transform:translateX(-50%);width:min(640px,calc(100vw - 40px));z-index:90;padding:20px 24px;border:1px solid #ffa37b77;border-radius:24px;background:#251c18f5;box-shadow:0 16px 70px #0008;backdrop-filter:blur(20px)}
#voice-panel[hidden]{display:none}#voice-status{font-size:18px;font-weight:650}#voice-stop{float:right}#voice-caption{margin:16px 0 0;max-height:180px;overflow:auto;line-height:1.5;white-space:pre-wrap}#voice-always[aria-pressed=true]{background:#8f342d;color:#fff;border-color:#ffb18c}
body[data-voice=listening] .captain img{animation:captain-listen 1.8s ease-in-out infinite;filter:drop-shadow(0 0 20px #ffb18c77)}
body[data-voice=thinking] .captain img{animation:captain-listen 3s ease-in-out infinite}
body[data-voice=speaking] .captain img{animation:captain-talk .65s ease-in-out infinite}
@keyframes captain-listen{50%{transform:translateY(-7px) rotate(2deg)}}@keyframes captain-talk{50%{transform:translateY(-4px) rotate(-2deg) scale(1.025)}}
@media(max-width:800px){#voice-panel{left:50%;bottom:12px}.topbar>div{flex-wrap:wrap}#voice-always,#voice-start{font-size:14px}}
@media(prefers-reduced-motion:reduce){body[data-voice] .captain img{animation:none}}
.flow-native{max-width:1100px}.flow-native h1{font-size:30px}.flow-native p{line-height:1.5;color:#c9bcb5}.flow-native ul{list-style:none;padding:0}.flow-native li,.flow-native details{padding:22px;margin:16px 0;border:1px solid #ffffff18;border-radius:20px;background:#251d18}.flow-native li li{padding:4px;border:0;background:none}.flow-native form{display:flex;flex-wrap:wrap;gap:14px;align-items:start}.flow-native form>label{display:flex;flex-direction:column;gap:8px;flex:1 1 300px}.flow-native input:not([type=checkbox]),.flow-native textarea,.flow-native select{width:100%;background:#191411;color:#f8eee8;border:1px solid #ffffff30;border-radius:12px;padding:12px;font:inherit}.flow-native textarea{min-height:100px}.flow-native button{padding:11px 18px;border-radius:12px;border:1px solid #ffaf8760;background:#5e3025;color:#fff;font:inherit;cursor:pointer}.flow-native button:disabled{opacity:.5}.flow-native summary{font-size:18px;cursor:pointer}.flow-native a{color:#ffbb99}.flow-native .text-xs{font-size:14px}.flow-native form div{max-width:100%}.flow-native fieldset{border:0;padding:0}.flow-native input[type=checkbox]{margin-right:8px}

/* Grounded 3D captain; fallback remains still while the model loads. */
.captain-scene{position:relative;width:100%;height:100%;isolation:isolate}
.captain-scene model-viewer{display:block;position:absolute;inset:0;width:100%;height:100%;opacity:0;--progress-bar-color:transparent;--poster-color:transparent;transition:opacity .3s}
.captain-scene .captain-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:0;transition:opacity .3s}
.captain-scene[data-loaded=true] model-viewer{opacity:1}
.captain-scene[data-loaded=true] .captain-fallback{opacity:0}
body[data-voice] .captain .captain-fallback{animation:none;transform:none;filter:none}
.portrait>.captain-scene{height:390px;flex-shrink:0}
body[data-voice=listening] .captain-scene{filter:drop-shadow(0 0 18px #ffb18c55)}
body[data-voice=speaking] .captain-scene{filter:drop-shadow(0 0 12px #ff705044)}
@media(max-width:760px){.portrait>.captain-scene{width:125px;height:150px}}
@media(prefers-reduced-motion:reduce){.captain-scene model-viewer,.captain-fallback{transition:none}}

#voice-conversation{margin-top:18px;padding:16px 22px;border-left:3px solid #ffad91;background:#ffffff05;border-radius:0 16px 16px 0;max-height:210px;overflow:auto}
#voice-conversation[hidden]{display:none}#voice-conversation p:first-child{color:var(--muted);font-size:14px}#voice-conversation p+p{margin-top:8px;white-space:pre-wrap}
body[data-voice=listening] #voice-start{box-shadow:0 0 calc(8px + var(--voice-level,0)*25px) #ff907d99}
body[data-voice=thinking] #voice-start{background:#8e4536}body[data-voice=speaking] #voice-start{background:#ad342b}

/* 18 novembre 2026: agenti e missioni spenti (src/lib/studio/switches.ts) */
body[data-missioni="spente"] [data-page="missions"],body[data-missioni="spente"] [data-page="agents"],body[data-missioni="spente"] [data-create-mission]{display:none!important}
