:root{font-family:Inter,"Segoe UI",system-ui,sans-serif;color:#332b3d;background:#faf9fc;font-size:15px;--ink:#30263b;--jade:#6842ac;--muted:#62576f;--line:#dbd5e3;--soft:#f2eef7;--paper:#fcfafd;--serif:"Instrument Serif","Iowan Old Style","Palatino Linotype",Georgia,serif}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none}a{color:var(--jade)}button:disabled,select:disabled{cursor:wait;opacity:.55}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #6842ac;outline-offset:2px}button:hover:not(:disabled){filter:brightness(.96)}[hidden]{display:none!important}.sr-only,.sr-label>span,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip:focus{position:fixed;padding:10px;z-index:100;background:white}.mobile{display:none!important}
#app{display:grid;grid-template-columns:274px minmax(0,1fr);height:100vh;height:100dvh;min-height:420px;overflow:hidden}#sidebar{background:#f3eff7;border-right:1px solid var(--line);padding:25px 18px max(15px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;min-height:0}.brand{height:35px;display:flex;align-items:center;gap:8px;margin:0 5px 12px;font-size:25px;letter-spacing:-1.6px;font-weight:650}.brand small{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.14em;border-left:1px solid #b4a3c5;padding-left:9px;margin-left:2px}.mark{display:inline-block;position:relative;width:32px;height:34px;flex:none}.mark i{position:absolute;left:15%;width:69%;height:33%;transform:skewY(-23deg);border-radius:0 24% 0 24%}.mark i:first-child{top:9%;left:26%;width:53%;background:#9770c8}.mark i:nth-child(2){top:33%;left:13%;background:#6842ac}.mark i:nth-child(3){top:56%;left:19%;width:52%;background:#53347f}
.primary,.submit{background:var(--jade);color:white;border-radius:9px;padding:11px 18px;font-weight:600}.sidebar-new{display:flex;align-items:center;gap:12px;text-align:left;min-height:43px}.sidebar-new span{font-size:21px;line-height:17px}.navigation{display:grid;gap:3px;margin:6px 0 10px}.navigation button,.account-foot>button,.thread-btn{display:flex;align-items:center;text-align:left;gap:12px;min-height:39px;padding:7px 11px;border-radius:7px;font-weight:500}.navigation button:hover,.account-foot>button:hover,.thread-btn:hover,.thread-row.active{background:#eee6f6}.navigation [aria-current]{background:#e9e0f5;color:#4c3271}.ico{display:inline-grid;place-items:center;font-style:normal;width:19px;height:19px;position:relative;flex:none;color:#60526f}.nodes-ico,.model-ico,.gear-ico{font-family:Arial,sans-serif;font-size:20px}.chat-ico:before{content:"";width:14px;height:10px;border:1.5px solid currentColor;border-radius:5px 5px 5px 1px}.chat-ico:after{content:"";width:4px;height:4px;border-left:1.5px solid;transform:skew(-20deg);position:absolute;bottom:1px;left:3px}.file-ico:before{content:"";width:14px;height:10px;border:1.5px solid;border-radius:2px;position:absolute;bottom:2px}.file-ico:after{content:"";width:7px;height:3px;border:1.5px solid;border-bottom:0;border-radius:2px 2px 0 0;position:absolute;top:2px;left:2px}.search-ico:before{content:"";border:1.4px solid;border-radius:50%;width:9px;height:9px;position:absolute;top:2px;left:2px}.search-ico:after{content:"";width:7px;border-top:1.4px solid;transform:rotate(45deg);position:absolute;bottom:4px;right:1px}
.history{min-height:0;flex:1;overflow:auto;border-top:1px solid var(--line);padding-top:15px}.history-head,.row,.section-head,.topbar,.composer-tools,.composer-meta,.list-item,.tile-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.history-head{margin:0 5px 5px 10px}.history-head h2{font-size:12px;color:var(--muted);font-weight:650;margin:0}.icon,.tool-ico{width:32px;height:32px;display:grid;place-items:center;border-radius:6px;font-size:22px}.icon:hover,.tool-ico:hover{background:var(--soft)}.sidebar-note{margin:10px 12px;font-size:12px;line-height:1.6;color:var(--muted)}.thread-row{display:flex;align-items:center;border-radius:7px}.thread-btn{min-width:0;flex:1;font-size:13px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thread-menu{opacity:0;margin-right:3px}.thread-row:hover .thread-menu,.thread-row:focus-within .thread-menu,.thread-row.active .thread-menu{opacity:1}.account-foot{border-top:1px solid var(--line);padding-top:10px;display:grid;gap:5px}.avatar{display:grid;place-items:center;width:29px;height:29px;border:1px solid #bbafc9;background:#e6def1;border-radius:50%;font-size:12px;font-weight:700}.out-arrow{margin-left:auto;color:var(--muted)}
#work{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--paper);position:relative}.topbar{min-height:64px;padding:0 clamp(18px,4vw,52px);border-bottom:1px solid #e9e3ec;flex:none}.crumb{display:flex;align-items:center;gap:12px;font-size:13px;color:#5c506a}.top-brand{font-weight:650;color:var(--ink)}.slash{color:#887a99}.pill,.quiet-btn,.chip,.tag-button,.secondary{border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px 12px;font-size:13px;line-height:1.35}.pill{border-radius:30px;font-weight:550}.pill span{padding-left:5px}.chat-view{flex:1;min-height:0;display:flex;flex-direction:column}.chat-view.empty{justify-content:center;padding-bottom:clamp(32px,7vh,65px)}#chat-scroll{min-height:0;overflow:auto;flex:1}.empty #chat-scroll{flex:0 1 auto}.welcome{text-align:center;margin:22px auto 25px}.hero-brand{position:relative;display:grid;place-items:center;width:116px;height:78px;margin:0 auto 18px}.hero-brand .mark{width:54px;height:59px}.orbit{position:absolute;left:2%;top:25%;width:96%;height:54%;border:1px solid #a18bbf70;border-radius:50%}.orbit.a{transform:rotate(-19deg)}.orbit.b{transform:rotate(-39deg) scale(.88,1.2)}.orbit.c{transform:rotate(12deg) scale(.83,.80)}h1,h2,h3,p{overflow-wrap:anywhere}.welcome h1,#area h1{font:500 clamp(39px,5.1vw,69px)/1.07 var(--serif);letter-spacing:-.047em;margin:0}.welcome p{margin:12px 0 0;font-size:15px;color:var(--muted)}
.compose-zone{flex:none;width:min(100% - 52px,790px);margin:0 auto;padding:12px 0 max(12px,env(safe-area-inset-bottom))}#composer{background:white;border:1px solid #c7b9d8;border-radius:20px;box-shadow:0 5px 19px #48265510;padding:16px 17px 12px}#composer:focus-within{border-color:#9267bf}#message{width:100%;resize:vertical;max-height:22vh;min-height:49px;border:0;padding:1px 3px;font-size:16px;line-height:1.45;background:transparent;color:var(--ink)}#message:focus{outline:none}#message::placeholder{color:#70667d}.tools-left,.chips,.suggestions,.actions,.meta-actions,.crumb{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.tool-ico{border:1px solid var(--line);border-radius:50%;width:34px;height:34px}.send{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:var(--jade);color:white;font-size:25px;line-height:1}.select-wrap{position:relative;display:inline-flex;align-items:center;max-width:100%}.select-wrap select{font-size:13px;appearance:auto;background:#f6f2fb;color:var(--ink);border:1px solid #e3d9ed;border-radius:16px;padding:5px 7px;max-width:155px}.quiet select{border:0;background:transparent;color:var(--muted);padding:0;max-width:210px}.composer-meta{font-size:11px;color:var(--muted);padding:8px 3px 0;justify-content:center}.composer-meta:has(#model-wrap:not([hidden])){justify-content:space-between}.suggestions{justify-content:center;margin-top:20px;gap:8px}.suggestions button{border-radius:18px;padding:8px 12px;background:#f3eff8;border:1px solid #dfd4e9;font-size:12px}.suggestions button span{color:var(--jade);margin-right:6px}.chips{margin-bottom:4px}.chip{font-size:12px;padding:4px 8px;border-radius:12px;background:#efe8f7}
#messages{width:min(100% - 52px,790px);margin:auto}.turn{margin:24px 0;line-height:1.58}.turn.user{display:flex;justify-content:flex-end}.turn.user .bubble{background:#eee7f7;border-radius:17px 17px 4px 17px;padding:10px 15px;max-width:84%;white-space:pre-wrap;overflow-wrap:anywhere}.byline{display:flex;gap:7px;align-items:center;font-weight:650;font-size:13px;margin-bottom:7px}.byline .mark{width:21px;height:22px}.message-body{overflow-wrap:anywhere}.message-body p,.message-body ul,.message-body ol{margin:.4em 0 .85em}.message-body pre{padding:12px 15px;background:#f3eff6;border-radius:8px;overflow:auto;white-space:pre-wrap}.message-body code{font:13px ui-monospace,monospace}.message-body h3{margin:15px 0 7px}.message-body blockquote{margin:8px 0;padding:2px 12px;border-left:3px solid #bba3ce}.sources,.downloads{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.sources a,.downloads a{font-size:13px;overflow-wrap:anywhere}.downloads img{display:block;max-width:min(100%,480px);max-height:420px;border-radius:10px;margin-bottom:7px}.downloads video{max-width:min(100%,520px);max-height:360px}.pending{color:var(--muted);font-size:14px;padding:10px 0}.hint,.subtle,#chat-note{color:var(--muted);font-size:12px;line-height:1.5}
#notice{position:absolute;z-index:5;top:70px;left:50%;transform:translateX(-50%);max-width:92%;min-width:200px;padding:10px 16px;border:1px solid #dbd0e5;border-radius:10px;background:#eef6f3;box-shadow:0 4px 15px #19312713;font-size:13px;text-align:center}.page{width:min(100% - 52px,900px);margin:38px auto 65px}#area{overflow:auto;flex:1}.section-head{align-items:flex-start;margin-bottom:25px}.section-head h1{font-size:clamp(38px,4vw,54px)!important}.section-head p{margin:8px 0;color:var(--muted)}.panel,.tile,.list-item{border:1px solid var(--line);background:#fff;border-radius:12px}.panel{padding:20px;margin:16px 0}.panel h2,.tile h2{font-weight:600;font-size:18px;margin:0 0 7px}.panel p,.tile p{line-height:1.5;color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(228px,100%),1fr));gap:12px}.tile{padding:18px;display:flex;flex-direction:column;align-items:flex-start;gap:7px}.tile p{margin:2px 0 10px;flex:1}.list-item{padding:12px 15px;margin:8px 0;flex-wrap:wrap}.file-name{font-weight:600;overflow-wrap:anywhere}.meta-actions{flex-wrap:wrap}.stack,.sr-label{display:grid;gap:6px}.stack{font-size:13px;font-weight:600}.stack input,.stack select,.stack textarea,.sr-label input,.search-input{background:white;border:1px solid #d2c8db;border-radius:7px;padding:9px 11px;color:var(--ink);width:100%;font-size:15px}.form-grid{display:grid;gap:13px}.form-grid fieldset{border:1px solid var(--line);border-radius:8px;max-height:180px;overflow:auto}.check{display:flex;gap:8px;align-items:baseline;margin:7px 0;font-size:13px}.actions{margin:12px 0}.danger{color:#8d342d}.modal .actions{margin:8px 0 0}.overlay,.shade{position:fixed;inset:0;background:#1e142a65;z-index:20}.overlay{display:grid;place-items:center;padding:18px}.modal{position:relative;border-radius:16px;width:min(100%,440px);max-height:85vh;overflow:auto;background:var(--paper);padding:29px;box-shadow:0 20px 80px #2e163930}.modal h2{font:500 34px/1.12 var(--serif);margin:2px 35px 12px 0}.modal-x{position:absolute;right:10px;top:10px}.modal-text{line-height:1.45;color:var(--muted);font-size:14px}.error{color:#92372b;font-size:13px}.auth-tabs{display:flex;gap:4px;margin:16px 0;background:#eee7f6;padding:4px;border-radius:9px}.auth-tabs button{flex:1;padding:7px;border-radius:7px}.auth-tabs [aria-selected=true]{background:white;box-shadow:0 1px 5px #39274416}.sr-label input{width:calc(100% - 12px);margin:4px 6px 6px;font-size:13px}.storage-meter{width:100%;height:9px;accent-color:var(--jade)}.shade{z-index:8}
@media(max-width:780px){#app{display:block;min-height:0}#work{height:100%;min-height:0}#sidebar{position:fixed;inset:0 auto 0 0;width:min(85vw,300px);z-index:10;transform:translateX(-105%);visibility:hidden;transition:transform .18s ease,visibility .18s}#app.menu-open #sidebar{visibility:visible;transform:translateX(0)}.mobile{display:grid!important}.brand #close-menu{margin-left:auto}.topbar{min-height:53px;padding:max(4px,env(safe-area-inset-top)) 14px 4px}.crumb{gap:8px}.topbar .icon{font-size:19px}.compose-zone,#messages,.page{width:calc(100% - 28px)}.compose-zone{padding-top:6px}.chat-view.empty{padding-bottom:9vh}.welcome{margin:15px auto 20px}.welcome h1{font-size:43px}.welcome p{font-size:14px}.suggestions{margin-top:12px}.thread-menu{opacity:1}.page{margin:24px auto}.composer-meta{font-size:11px}#composer{padding:12px 12px 10px;border-radius:16px}#message,.stack input,.stack textarea,.stack select{font-size:16px}.select-wrap select{font-size:12px;max-width:116px}.hero-brand{height:65px;width:92px;margin-bottom:12px}.hero-brand .mark{width:45px;height:48px}.section-head{flex-wrap:wrap}.topbar #top-account{white-space:nowrap}.turn{margin:18px 0}}
@media(max-width:420px){.suggestions{gap:5px}.suggestions button{padding:7px 9px;font-size:11px}.tools-left{gap:4px}.select-wrap select{max-width:106px}.welcome h1{font-size:39px}.turn.user .bubble{max-width:91%}.modal{padding:23px}.quiet select{max-width:124px}}
@media(max-height:580px){.chat-view.empty{padding-bottom:0}.hero-brand{display:none}.welcome{margin:8px auto}.welcome p{margin:5px}.suggestions{margin-top:5px}.welcome h1{font-size:32px}.compose-zone{padding-bottom:5px}.history{min-height:35px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.recovery-code{display:block;width:100%;margin:12px 0;font:15px/1.6 ui-monospace,monospace;padding:9px;border:1px solid var(--line);border-radius:7px;background:white}.modal .recovery-code~button{margin:4px 4px 4px 0}.turn.user:has(.downloads){flex-wrap:wrap;gap:6px}.turn.user .downloads{flex-basis:100%;justify-content:flex-end}
.training-tools .compact-head{align-items:center;margin:0 0 8px;flex-wrap:wrap}.compact-head .actions{margin:0}.compute-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-top:1px solid var(--line)}.compute-row>div{min-width:0}.compute-row strong,.compute-row small{display:block;overflow-wrap:anywhere}.compute-row strong{font-size:13px}.compute-row small{margin-top:2px}.training-job{border-top:1px solid var(--line);padding:9px 0}.training-job summary{cursor:pointer;overflow-wrap:anywhere;font-weight:550}.training-job .compute-row{margin-left:8px}.training-tools h3{font-size:15px;margin:15px 0 5px}.training-job p,.training-tools p{margin:6px 0}.modal .invite-secret~p{margin:16px 0 8px}.modal .invite-secret~a,.modal .invite-secret~button{display:inline-block;margin:4px}.tile .compute-row{width:100%}
.eval-detail{width:100%;font-size:13px}.eval-detail summary{cursor:pointer;color:var(--jade);padding:5px 0}.eval-detail .compute-row{margin-left:4px}

.voice-tools{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-top:.35rem}.voice-tools audio{max-width:100%;height:32px}.voice-tools a,.voice-tools button{font-size:.82rem}.voice-tools button{min-height:32px}.tools-left:has(#voice-input:not([hidden])){flex-wrap:wrap}

.code-review{width:min(820px,92vw);max-height:85vh;border:1px solid #88909b;border-radius:12px;padding:20px;color:inherit;background:var(--panel,#fff)}.code-review pre{max-height:48vh;overflow:auto;font:13px/1.5 monospace;white-space:pre;background:#f1f3f5;color:#18252d;padding:12px}.code-review button{margin-right:10px}.code-review::backdrop{background:#18252d70}
/* Nexsoon Genesis – contrassegno del marchio nel portale */
:root{--brand-purple:#6842ac;--brand-hover:#563491;--brand-mint:#abe4d7;--brand-lilac:#eee7f8;--brand-deep:#352348}
#sidebar{background:linear-gradient(165deg,#f5f0fa 0%,#f4f0f7 72%,#f1f5f3 100%)}
.brand{color:var(--brand-deep)}.brand small{letter-spacing:.13em}
.mark i:nth-child(1){background:linear-gradient(120deg,#ab87d7,#8058b8 66%,#6842ac)}
.mark i:nth-child(2){background:linear-gradient(120deg,#855abf,#6842ac 68%,#583591)}
.mark i:nth-child(3){background:linear-gradient(120deg,#69429f,#50327e)}
.topbar{background:#fff;position:relative;z-index:2}
.brand-actions{display:flex;align-items:center;gap:14px;flex:none}
.download-app{display:inline-flex;align-items:center;gap:9px;min-height:43px;text-decoration:none;color:#fff;background:var(--brand-purple);border:1px solid #603ca1;border-radius:12px;padding:5px 12px;line-height:1.1}
.download-app:hover{color:#fff;background:var(--brand-hover);text-decoration:none}
.download-symbol{display:grid;place-items:center;flex:none;width:24px;height:24px}
.download-symbol svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.download-copy{display:flex;flex-direction:column;gap:3px;white-space:nowrap}
.download-copy strong{font-size:13px;font-weight:650;letter-spacing:-.012em}
.download-copy small{font-size:10px;font-weight:500;line-height:1.05;color:#f4edff}
#top-account{min-height:38px;white-space:nowrap;color:#51346d;background:#fff}
#top-account:hover{background:#f6f2fb}
#top-account.account-entry{display:inline-flex;align-items:center;justify-content:center;gap:.45em}
#top-account.account-entry::after,.out-arrow{display:inline-block;box-sizing:border-box;flex:none;content:"";width:8px;height:8px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;background:linear-gradient(135deg,transparent 42%,currentColor 45%,currentColor 55%,transparent 58%)}
.send-symbol{width:19px;height:19px;display:block;margin:auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#chat.pane-empty,.chat-empty{background:transparent}
.welcome{isolation:isolate;position:relative}
.hero-brand{width:133px;height:90px;margin-bottom:20px}
.hero-brand::before{content:"";position:absolute;z-index:-1;inset:-14% -15%;border-radius:50%;background:radial-gradient(ellipse at 48% 46%,#eae0f6 0%,#f1eaf8 34%,transparent 70%);pointer-events:none}
.hero-brand .mark{filter:drop-shadow(0 7px 7px #56349130)}
.orbit.a{border-color:#aa8ac4}.orbit.b{border-color:#9fcfc6}.orbit.c{border-color:#b3a3cd}
#composer{box-shadow:0 4px 16px #4629620d}
#composer:focus-within{border-color:#8054b3;box-shadow:0 0 0 2px #6842ac24,0 5px 18px #4629620d}
.mark,.download-symbol{pointer-events:none}
@media(max-width:720px){
  .topbar{padding-right:12px;padding-left:12px;gap:7px;min-height:61px}
  .brand-actions{gap:7px}
  .download-app{padding:5px 9px;gap:5px;min-height:41px;border-radius:10px}
  .download-symbol{width:19px;height:19px}.download-symbol svg{width:17px;height:17px}
  .download-copy strong{font-size:12px}.download-copy small{font-size:9px}
  #top-account{padding:6px 9px;min-height:36px}
  .hero-brand{width:110px;height:76px}
}
@media(max-width:540px){
  .crumb .slash,.crumb #view-name{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .crumb{gap:5px;flex:none}.topbar .top-brand{font-size:13px}
}
@media(max-width:350px){
  .topbar{padding-left:7px;padding-right:7px}.brand-actions{gap:5px}
  .topbar .top-brand{display:none}
  #top-account{padding-inline:7px}.download-copy strong{font-size:11px}
}
@media(max-height:540px){.hero-brand{display:none}}
/* Genesis 1.5.1 — ingresso account */
.overlay,.shade{top:0;right:0;bottom:0;left:0}
.overlay{overflow-y:auto}
.modal{box-sizing:border-box;width:100%;max-width:440px;max-height:85vh}
.auth-form input{font-size:16px}
.auth-form .error{margin:0}
#top-account{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;border:1px solid #c7b9d8}
.auth-alternative{display:inline-block;color:#55328b;margin-top:14px}
.auth-actions{display:flex;align-items:center;gap:8px}
#top-register{display:inline-flex;justify-content:center;align-items:center;min-height:40px;padding:6px 14px;color:#55328b;border:1px solid #a18ab9;background:#f5effb;border-radius:22px;font-weight:600;text-decoration:none;white-space:nowrap}
#top-register:hover{background:#ebe1f5}
#top-register:focus-visible{outline:2px solid #6842ac;outline-offset:2px}
@media(max-width:570px){
  .topbar{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"nav download" "auth auth";align-items:center;row-gap:3px;padding:6px 12px}
  .topbar .brand-actions{display:contents}
  .topbar .crumb{grid-area:nav}
  .topbar .download-app{grid-area:download;justify-self:end}
  .topbar .auth-actions{grid-area:auth;justify-self:end;gap:7px}
  .topbar #top-account,.topbar #top-register{min-height:38px;padding:4px 12px}
  .topbar .top-brand{display:inline}
  .topbar.signed-in{grid-template-areas:"nav download" "nav auth"}
  .overlay{padding:10px}
  .modal{max-height:calc(100% - 4px);overflow:auto}
}

.accesso-genesis{display:block;min-height:100vh;height:auto;overflow-y:auto;background:#faf9fc;color:#30263b;padding:0 1.25rem 2rem}.accesso-genesis>header,.accesso-genesis>main{max-width:28rem;margin:0 auto}.accesso-genesis>header{padding:2rem 0 1.5rem}.accesso-genesis .brand{color:#30263b;text-decoration:none;min-width:0;padding:0}.accesso-genesis>main{background:white;border:1px solid #dbd5e3;border-radius:1rem;padding:clamp(1.2rem,5vw,2rem);overflow-wrap:anywhere}.accesso-genesis h1{font-size:1.65rem;margin:0 0 1rem}.accesso-genesis form{display:grid;gap:.45rem}.accesso-genesis label{margin-top:.5rem;font-weight:600}.accesso-genesis input:not([type=hidden]){width:100%;padding:.72rem;border:1px solid #8a7f97;border-radius:.45rem;background:#fff;font:inherit}.accesso-genesis .primary{display:inline-block;color:#fff;background:#6842ac;padding:.8rem 1rem;text-decoration:none;min-height:44px;margin-top:1rem}.accesso-genesis p{line-height:1.5}.accesso-genesis a:not(.primary):not(.brand){color:#5c3194;text-decoration:underline}.accesso-genesis :focus-visible{outline:3px solid #6842ac;outline-offset:3px}.accesso-errore{color:#8c2638}.accesso-codice{display:block;background:#f2eef7;padding:1rem;font-size:1rem;overflow-wrap:anywhere;user-select:all}

.admin-panel details{border-top:1px solid var(--line);padding:.75rem 0}
.admin-panel summary{cursor:pointer;font-weight:600}
.admin-panel ul{padding-inline-start:1.3rem;line-height:1.55;overflow-wrap:anywhere}
.admin-panel .actions{align-items:flex-end;margin:.65rem 0;gap:.5rem}
.admin-panel h3{font-size:1rem;margin:.75rem 0 .25rem}
.admin-panel small{color:var(--muted);overflow-wrap:anywhere}
.admin-topic{border-top:1px solid var(--line);padding:.45rem 0}
.admin-topic p{margin:.3rem 0}
.admin-result:not(:empty){padding:.8rem 1rem;margin:.75rem 0;background:var(--soft);border-radius:.6rem}
.admin-result dl{display:grid;grid-template-columns:auto 1fr;gap:.3rem .75rem;font-size:.9rem}
.admin-result dt{font-weight:600}
.admin-result dd{margin:0;overflow-wrap:anywhere}
.admin-digest{display:block;font-size:.78rem;overflow-wrap:anywhere;margin:.3rem 0 .65rem}

/* Workspace conversation, artifacts and accessible message actions. */
#work{background:#fff}
#sidebar{background:#f7f6f9;border-color:#e7e5eb}
.topbar{background:#fff;border-color:#eeedf0}
#messages,.compose-zone{width:min(calc(100% - 64px),810px)}
#chat-scroll{scrollbar-gutter:stable;overscroll-behavior:contain}
.turn{min-width:0;margin:30px 0}
.turn.assistant{color:#26242a}
.turn.user{display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.turn.user .bubble{background:#f1eff4;color:#29252e;max-width:min(85%,650px);border-radius:19px;padding:11px 17px}
.turn.user .downloads{flex-basis:auto}
.byline{letter-spacing:-.015em;color:#352b46}
.message-body{font-size:1.045rem;line-height:1.68}
.message-body p:last-child{margin-bottom:.45em}
.message-body :not(pre)>code{background:#f4f1f6;color:#453653;border-radius:4px;padding:.12em .32em}
.message-toolbar,.send-tools,.composer-shortcuts,.artifact-info,.code-heading,.queue-header,.queued-turn{display:flex;align-items:center}
.message-toolbar{gap:2px;flex-wrap:wrap;margin-top:4px}
.message-toolbar .voice-tools{margin:0;gap:4px}
.message-toolbar .voice-tools:has(audio){flex-basis:100%;padding:8px 0;gap:10px}
.message-action,.message-toolbar .voice-tools .message-action{
  display:inline-flex;align-items:center;justify-content:center;flex:none;border:0;background:transparent;
  border-radius:8px;padding:0;width:36px;height:36px;min-height:36px;color:#625a69;text-decoration:none
}
.message-action svg,.code-heading svg,.artifact-info>svg{width:18px;height:18px;flex:none}
.message-action:hover,.message-action:focus-visible,.message-toolbar .voice-tools .message-action:hover{background:#efedf2;color:#33283f}
.turn.user .message-toolbar{opacity:0}
.turn.user:hover .message-toolbar,.turn.user:focus-within .message-toolbar{opacity:1}
.engine-caption,.turn-activity,.turn>details.hint{font-size:.76rem;color:#716a78;overflow-wrap:anywhere}
.engine-caption{margin-top:8px}
.turn-activity{margin:3px 0}
.turn-activity summary,.turn>details.hint summary{cursor:pointer}
.turn-activity p,.turn>details.hint p{margin:4px 0}
.live-turn .pending{display:flex;align-items:center;gap:8px;margin:0;padding:4px 0}
.live-turn .pending::before{content:"";width:7px;height:7px;flex:none;border-radius:100%;background:#8157a5;animation:genesis-pulse 1.35s ease-in-out infinite alternate}
@keyframes genesis-pulse{from{opacity:.38}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.live-turn .pending::before{animation:none}}
.code-panel{border:1px solid #dad6df;border-radius:12px;overflow:hidden;margin:12px 0;background:#f8f7fa}
.code-heading{justify-content:space-between;color:#534c59;background:#eeecf1;padding:2px 8px 2px 13px;font-size:12px}
.code-heading span{font-family:ui-monospace,monospace}
.code-panel pre{margin:0;border-radius:0;background:transparent;overflow-x:auto;white-space:pre;line-height:1.55}
.code-panel pre code{white-space:pre;font-size:.9rem}
.turn.assistant.document-turn .message-body{padding:clamp(15px,3vw,30px);border:1px solid #dfdbe2;border-radius:12px;background:#fdfcfa;font-family:Georgia,serif;line-height:1.65}
.downloads{align-items:flex-start;gap:10px}
.artifact-card{border:1px solid #dcd8e1;border-radius:14px;overflow:hidden;min-width:0;max-width:100%;background:#fff}
.artifact-card:not(.visual-card){width:min(100%,320px)}
.artifact-card.visual-card{width:fit-content}
.artifact-info{gap:10px;padding:9px 9px 9px 13px;min-width:0}
.artifact-info>svg{color:#70538e;width:22px;height:22px}
.artifact-info>div{flex:1;min-width:0}
.artifact-info strong,.artifact-info small{display:block;overflow-wrap:anywhere}
.artifact-info strong{font-weight:600;font-size:.89rem}
.artifact-info small{color:#766e7c;font-size:.73rem;letter-spacing:.025em}
.artifact-card .image-open{padding:0;display:block;background:#f4f3f5;max-width:100%;cursor:zoom-in}
.artifact-card .image-open:hover{filter:none}
.artifact-card .image-open:focus-visible{outline-offset:-3px}
.artifact-card .image-open img,.artifact-card video{display:block;width:auto;max-width:min(100%,720px);max-height:min(60vh,560px);border-radius:0;margin:0}
.artifact-card audio{max-width:100%}
.modal:has(.image-full){width:min(94vw,860px);max-width:94vw}
.image-full{display:block;max-width:100%;max-height:68vh;margin:0 auto;object-fit:contain}
.export-ready{display:block;width:fit-content;margin-top:.9rem}
.compose-zone{position:relative;background:#fff}
#composer{border-radius:22px;border-color:#dad6df;box-shadow:0 3px 16px #21162d09;padding:12px 14px 10px}
#composer:focus-within{border-color:#b1a4c1;box-shadow:0 3px 16px #21162d0c}
#message{display:block;min-height:39px;resize:none;line-height:1.5}
.send-tools{gap:6px;flex:none}
#send,.stop-response{height:38px;width:38px;display:grid;place-items:center;border-radius:50%}
#send{background:#362743;color:#fff}
#send:disabled,#send[aria-disabled=true]{opacity:1;cursor:default;background:#e8e5eb;color:#8c8691}
.stop-response{background:#efebf2;color:#3c3146}
.stop-response svg{width:23px;height:23px}
.tool-ico{border-color:transparent;background:transparent}
.composer-meta{justify-content:flex-start;flex-wrap:wrap;gap:6px 12px}
.composer-meta #chat-note{margin-left:auto}
.composer-shortcuts{gap:8px}
.composer-shortcuts button{border-radius:6px;font-size:12px;color:#574764;padding:3px 4px}
.composer-shortcuts button:hover{background:#f3eff6}
.outbox{padding:8px 13px;margin-bottom:6px;background:#f6f4f8;border:1px solid #e9e4ed;border-radius:13px;max-height:20vh;overflow:auto}
.queue-header{gap:7px;color:#514657;font-size:12px}
.queue-header strong{font-weight:600}
.queue-count{font-size:11px}
.queue-resume{margin-left:auto;text-decoration:underline}
.queued-turn{justify-content:space-between;gap:8px;font-size:13px}
.queued-turn>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.queued-turn .message-action{width:30px;height:30px;min-height:30px}
.welcome h1{font-family:Inter,"Segoe UI",system-ui,sans-serif;font-weight:560;font-size:clamp(30px,4.5vw,54px);letter-spacing:-.05em;line-height:1.08}
.welcome .hero-brand{width:66px;height:58px;margin-bottom:18px}
.welcome .mark{width:40px;height:44px}
.welcome .orbit,.welcome .hero-brand::before{display:none}
@media(max-width:780px){#messages,.compose-zone{width:calc(100% - 28px)}.composer-meta{justify-content:center}.composer-meta #chat-note{margin-left:0}.turn{margin:22px 0}.turn.user .message-toolbar{opacity:1}.compose-zone{padding-bottom:max(4px,env(safe-area-inset-bottom))}.message-body{font-size:1rem}.artifact-card .image-open img,.artifact-card video{max-width:100%;height:auto}.message-action,.message-toolbar .voice-tools .message-action{width:40px;height:40px}.composer-meta .quiet select{max-width:min(42vw,210px)}}
@media(max-width:440px){.composer-tools,.tools-left{gap:4px}.tools-left{min-width:0}.tools-left select{max-width:96px}.tool-ico{width:31px;height:34px}.composer-meta #chat-note{display:none}.composer-meta{gap:4px}.turn.user .bubble{max-width:94%}.artifact-card.visual-card{max-width:100%}.composer-shortcuts button{padding-inline:3px}}
#app,#composer,.welcome h1,.tile,.artifact-info{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,"DejaVu Sans","Liberation Sans",sans-serif}
.message-body .table-scroll{max-width:100%;overflow-x:auto;margin:13px 0}
.message-body table{border-collapse:collapse;font-size:.94em;line-height:1.55;width:max-content;min-width:60%;max-width:100%}
.message-body th,.message-body td{text-align:left;padding:7px 12px;border-bottom:1px solid #e3dfe7}
.message-body th{background:#f7f5f8}
.message-body hr{height:1px;border:0;background:#e5e1e8;margin:1em 0}
@media(max-width:600px){
  .topbar,.topbar.signed-in{display:flex;justify-content:space-between;min-height:54px;padding:5px 12px}
  .topbar .brand-actions{display:flex;gap:5px}
  .topbar .download-app{position:relative;display:grid;place-items:center;width:37px;height:37px;min-height:37px;padding:0;border:0;border-radius:50%;background:#f5f3f7;color:#51415f}
  .topbar .download-copy{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .topbar .download-symbol svg{width:18px;height:18px}
  .topbar #top-account,.topbar #top-register{min-height:34px;font-size:12px;padding:4px 9px}
}
.file-filters{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:20px 0 12px}
.file-filter{display:inline-flex;align-items:center;gap:7px;border:1px solid #dcd6e2;border-radius:24px;padding:7px 12px;color:#514758;font-size:13px;background:#fff}
.file-filter small{font-size:11px;opacity:.8}
.file-filter[aria-pressed=true]{color:#fff;background:#453251;border-color:#453251}
.file-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(210px,100%),1fr));gap:15px;margin-top:12px}
.collection-tile{min-width:0;background:#fff;border:1px solid #dfdbe3;border-radius:13px;overflow:hidden;padding-bottom:12px}
.collection-tile .gallery-thumb,.collection-tile video{display:block;width:100%;height:165px;background:#f1eef3;border:0;padding:0}
.collection-tile .gallery-thumb{cursor:zoom-in}
.collection-tile .gallery-thumb img{display:block;width:100%;height:100%;object-fit:contain}
.collection-tile h3,.collection-tile>small,.collection-tile .meta-actions{margin:8px 12px;overflow-wrap:anywhere}
.collection-tile h3{font-size:.95rem;margin-bottom:3px}
.collection-tile .meta-actions{justify-content:flex-start;gap:5px}
.collection-tile .meta-actions a,.collection-tile .meta-actions button{font-size:12px;padding:5px 7px}

.evolution-content { overflow-wrap: anywhere; }
.evolution-content a.secondary { display:inline-flex; align-items:center; margin:.35rem .4rem .35rem 0; }
.evolution-content h3 { margin-block: 1.1rem .25rem; }
.evolution-content p { margin-block: .4rem; }
.evolution-content pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.evolution-content details { margin-block: .8rem; }
.evolution-content .actions { margin-top: 1rem; }

#chat-search-live[aria-pressed=true]{background:var(--ink,#312944);color:var(--paper,#fff);border-color:currentColor}

/* Activity is driven by the server's job events and remains available in chat history. */
.work-trace,.source-panel{font-size:.84rem;margin:.5rem 0 .85rem;color:#514a59}
.work-trace summary,.source-panel summary{display:flex;align-items:center;width:fit-content;max-width:100%;gap:.6rem;cursor:pointer;list-style:none;min-height:32px;line-height:1.4}
.work-trace summary::marker,.source-panel summary::marker{content:""}
.work-trace summary::-webkit-details-marker,.source-panel summary::-webkit-details-marker{display:none}
.work-trace summary::after,.source-panel summary::after{content:"";flex:none;width:6px;height:6px;border-right:1.4px solid currentColor;border-bottom:1.4px solid currentColor;transform:rotate(-45deg);transition:transform .15s}
.work-trace[open]>summary::after,.source-panel[open]>summary::after{transform:rotate(45deg)}
.work-trace summary small,.source-panel summary small,.live-clock,.work-steps small{font-variant-numeric:tabular-nums;color:#655e70}
.work-trace p{margin:.4rem 0 .4rem 1.25rem}
.work-steps{display:grid;gap:0;list-style:none;margin:.4rem 0 .65rem;padding:0;max-width:38rem}
.work-steps li{position:relative;display:flex;gap:.8rem;align-items:baseline;justify-content:space-between;padding:.33rem .2rem .33rem 1.35rem;line-height:1.45}
.work-steps li::before{content:"";width:6px;height:6px;border-radius:50%;background:#82738e;position:absolute;top:.77rem;left:.28rem}
.work-steps li:not(:last-child)::after{content:"";position:absolute;left:.43rem;top:1.15rem;bottom:-.59rem;border-left:1px solid #d7d1dd}
.work-steps small{font-size:.73rem;white-space:nowrap}
.progress-line{display:flex;align-items:center;gap:.85rem;justify-content:space-between;max-width:38rem}
.live-clock{font-size:.78rem;white-space:nowrap}
.live-trace{margin:.2rem 0 .7rem}
.message-body a.citation-marker{display:inline-flex;align-items:center;justify-content:center;min-width:1.4em;min-height:1.4em;vertical-align:.16em;border-radius:.45em;background:#efeaf2;color:#533a66;font-size:.71em;line-height:1;text-decoration:none;font-weight:650;padding:0 .25em}
.source-panel>summary{padding:.1rem .7rem;border:1px solid #d8d1da;border-radius:20px;color:#40364b}
.source-panel>summary strong{font-weight:600}
.source-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:.7rem 0}
.source-list li{min-width:0}
.source-list a{display:flex;gap:8px;text-decoration:none;height:100%;box-sizing:border-box;padding:.65rem .75rem;background:#fcfafc;border:1px solid #e3dfe5;border-radius:9px;color:inherit}
.source-list a:hover,.source-list a:focus-visible{border-color:#9277a7;background:#f8f4fa}
.source-list a span{min-width:0}
.source-list strong,.source-list small,.source-excerpt{display:block;line-height:1.4;overflow-wrap:anywhere}
.source-list small,.source-excerpt{margin-top:4px;color:#655c6a;font-size:.76rem}
.source-counter{flex:none;display:grid;place-content:center;width:20px;height:20px;background:#f0ecf3;border-radius:5px;font-size:.72rem}
.cycle-status{padding:14px 16px;margin:12px 0;border:1px solid #dfd9e3;border-radius:10px;background:#fcfafc}
.cycle-status p,.cycle-status small{margin:5px 0 0}.cycle-status small{display:block;color:#665d6a}
.cycle-status progress{display:block;margin-top:8px;accent-color:#745080;width:min(100%,28rem)}
@media(max-width:620px){.source-list{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.work-trace summary::after,.source-panel summary::after{transition:none}}

.camera-preview,.camera-frames canvas{display:block;max-width:100%;height:auto;border-radius:10px;background:#18151c}
.camera-preview{max-height:min(40vh,340px);width:100%;object-fit:contain}
.camera-frames{display:flex;gap:10px}.camera-frames figure{margin:0;min-width:0;flex:1}
.camera-frames figcaption{margin-top:4px;font-size:.78rem;color:#5b5562}
.reply-reading{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:5px 9px;font-size:.82rem}
.reply-reading [role=status]{margin-right:auto}.reply-reading audio{display:none}
#auto-read[aria-pressed=true]{background:#efe8f7;color:#502f70;box-shadow:inset 0 0 0 1px #a78bbe}
.camera-panel .actions{flex-wrap:wrap}.camera-preview[hidden],.reply-reading[hidden]{display:none}
