@font-face{font-family:Manrope;src:url('/assets/manrope.woff2');font-display:swap}
:root{font-family:Manrope,system-ui,sans-serif;color:#172c45;background:#f6f8fc;--blue:#174dcd;--ink:#172c45;--line:#e0e6ef;--muted:#44546a;--surface:#fff;--ease:cubic-bezier(.16,1,.3,1);--panel-shadow:0 16px 40px -28px #233c6950,0 3px 8px -6px #233c6924}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,select,input[type=color],input[type=file]{cursor:pointer}button{border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 12px;font-size:13px;font-weight:650;min-height:40px;transition:background .18s var(--ease),border-color .18s var(--ease),box-shadow .18s var(--ease)}button:hover{background:#f2f6ff;border-color:#b9cbe9}button:active:not(:disabled){background:#e7efff}button:disabled{opacity:.4;cursor:default}button[aria-pressed=true]{background:#edf3ff;color:#174dcd;border-color:#c6d5f5}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}::selection{background:#d3e0ff;color:#142e67}input,textarea{caret-color:var(--blue)}a{color:var(--blue);text-underline-offset:3px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}p{line-height:1.65}h1,h2,p{margin:0}select,textarea{border:1px solid #cbd5e3;border-radius:10px;background:#fff;padding:10px 12px;width:100%;font-size:14px;min-height:42px}select:hover,textarea:hover{border-color:#a8bcd8}textarea{resize:vertical;line-height:1.6}textarea::placeholder{color:#637086}label{display:block;font-size:12px;font-weight:650;margin:12px 0 6px}input[type=color]{display:block;width:100%;height:42px;border:1px solid #cbd5e3;border-radius:10px;padding:6px;background:#fff}input[type=color]::-webkit-color-swatch-wrapper{padding:0}input[type=color]::-webkit-color-swatch{border:0;border-radius:5px}input[type=file]{font-size:12px;max-width:100%;width:100%}input::file-selector-button{padding:9px;border:1px solid var(--line);background:#fff;border-radius:8px;margin-right:8px}
/* Linud chrome: a restrained frame around the customer's own design. */
.app-header{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;gap:20px}.brand{display:flex;align-items:center;gap:24px;min-width:0}.brand img{width:88px;height:40px;object-fit:contain}.brand span{font-size:14px;font-weight:600;border-left:1px solid var(--line);padding-left:24px}.header-actions{display:flex;align-items:center;gap:20px}.header-actions button{display:flex;align-items:center;gap:8px}.header-actions svg{width:16px;height:16px}.demo{font-size:12px;color:var(--muted)}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 16px var(--assistant-width,390px);gap:0;height:calc(100dvh - 72px);padding:22px 24px 20px}.site-workspace{display:flex;flex-direction:column;min-height:0;min-width:0;background:#edf4fc;border:1px solid #cbd9eb;border-radius:20px;padding:0 12px 12px;box-shadow:var(--panel-shadow)}.preview-toolbar{display:flex;align-items:center;gap:14px;padding:12px 2px;min-height:68px}.page-control{display:flex;align-items:center;gap:9px}.page-control label{margin:0;color:var(--muted)}.page-control select{width:136px;font-size:13px;background:#fff;min-height:38px;padding:8px 10px;border-color:#d4deeb}.view-controls{display:flex;gap:2px;margin:auto;padding:3px;background:#dde5f0;border:1px solid #d4deeb;border-radius:10px}.view-controls button{display:flex;gap:7px;align-items:center;border-color:transparent;background:transparent;min-height:32px;padding:6px 9px;border-radius:7px;font-size:12px;color:var(--muted)}.view-controls svg{width:17px;height:17px}.view-controls button[aria-pressed=true]{background:#fff;border-color:#d4deeb;color:var(--blue);box-shadow:0 2px 4px #233c6910}.history-controls{display:flex;gap:3px}.history-controls button{background:transparent;border-color:transparent;width:34px;min-height:36px;padding:7px}.history-controls button:not(:disabled):hover{background:#fff}.history-controls svg{width:18px;height:18px}.canvas{flex:1;min-height:0;display:flex;flex-direction:column;background:#fff;border:1px solid #d2dceb;border-radius:12px;overflow:hidden;box-shadow:0 8px 18px -12px #203b6840;align-self:stretch}.canvas-top{min-height:40px;display:flex;align-items:center;gap:12px;padding:9px 14px;border-bottom:1px solid var(--line);background:#fff;font-size:12px;color:var(--muted)}#site-name{font-weight:700;color:var(--ink)}#save-state{margin-left:auto;font-size:12px}.preview-mark{display:flex;gap:4px}.preview-mark i{display:block;width:5px;height:5px;background:#c6d0df;border-radius:50%}.canvas iframe{width:100%;flex:1;min-height:0;border:0;background:#fff}.canvas.phone{max-width:390px;width:100%;align-self:center;border-radius:20px}.canvas-caption{display:flex;justify-content:space-between;gap:14px;padding:12px 3px 0;font-size:12px;color:#56647b;line-height:1.5}
/* Assistant: portrait, conversation, contextual tools, anchored composer. */
.angelo{position:relative;isolation:isolate;display:flex;flex-direction:column;min-height:0;border:1px solid #d4deed;border-radius:20px;background:#fff;box-shadow:var(--panel-shadow);overflow:hidden}.angelo-heading{position:relative;display:flex;flex-shrink:0;align-items:center;gap:14px;padding:0 20px 0 8px;min-height:158px;border-bottom:1px solid #e0e9f6;background:linear-gradient(145deg,#fff 20%,#edf4fc 80%,#dceff7)}.angelo-heading h1{font-size:26px;font-weight:750;letter-spacing:-.035em;line-height:1.2}.angelo-heading p{font-size:12px;color:var(--muted);margin-top:5px}.angelo-identity{min-width:0}.angelo-heading .avatar-status{font-size:12px;line-height:1.45;margin-top:12px;min-height:18px;color:#456183}.avatar-pause{font-size:12px;min-height:30px;border:0;padding:4px 0;background:transparent;color:#53657f;text-decoration:underline;text-underline-offset:3px}.avatar-pause:hover{background:transparent;color:var(--blue)}.angelo-character{position:relative;display:block;width:148px;height:158px;flex-shrink:0;padding:0;border:0;border-radius:0;background:transparent;overflow:hidden;touch-action:manipulation;align-self:end}.angelo-character:hover{background:transparent}.angelo-character:active:not(:disabled){background:transparent}.angelo-character canvas{display:block;width:100%;height:100%;pointer-events:none}.angelo-character:focus-visible{outline-offset:-5px}.portrait-follow,.portrait-gesture{display:block;position:relative;width:100%;height:100%;pointer-events:none}.portrait-base,.angelo-character canvas.portrait-sequence{position:absolute;bottom:0;left:50%;width:166px;height:166px;max-width:none;transform:translateX(-50%);object-fit:contain;user-select:none;pointer-events:none}.portrait-pose,.portrait-blink{display:none}.portrait-follow{mask-image:linear-gradient(to bottom,transparent 0%,#000 7%,#000 65%,rgba(0,0,0,.92) 76%,transparent 99%);padding:0 2px}.portrait-gesture{mask-image:linear-gradient(to right,transparent 0%,#000 14%,#000 86%,transparent 100%)}.portrait-gesture.sequence-ready>img,.portrait-gesture.rig-ready>img{visibility:hidden}.angelo-character canvas.portrait-rig{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.avatar-fallback{display:block;width:84px;height:84px;margin:auto}.avatar-fallback svg{display:block;width:100%;height:100%;stroke:none}
.conversation-label{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:18px 22px 0;font-size:12px;font-weight:650;color:#52617a;flex-shrink:0}.local-label{font-size:12px;font-weight:500;color:#596578}.local-label::before{content:'';display:inline-block;width:5px;height:5px;background:#7388a8;border-radius:50%;margin-right:6px;vertical-align:2px}#conversation{flex:1;min-height:80px;overflow:auto;padding:18px 22px 4px;scrollbar-width:thin;scrollbar-color:#bacbe5 transparent}.message{font-size:14px;margin-bottom:20px;overflow-wrap:anywhere;white-space:pre-wrap;max-width:65ch}.message.user{margin-left:30px;background:#edf3ff;color:#243e70;padding:12px 15px;border-radius:14px 14px 4px 14px}.message.assistant{padding-right:4px}.message p+p{margin-top:8px}.message.is-new{animation:response-in .24s var(--ease)}.secondary,.small{color:var(--muted)}.small{font-size:12px;line-height:1.6;margin-top:10px}.inspector{flex:0 0 auto;border-top:1px solid var(--line);padding:12px 20px;max-height:min(30vh,calc(100dvh - 510px));overflow:auto;background:#f8fafd;scrollbar-width:thin;scrollbar-color:#bacbe5 transparent}.selection-heading{display:flex;align-items:center;gap:8px;justify-content:space-between}.selection-heading h2{font-size:12px;font-weight:750;overflow-wrap:anywhere}.selection-heading button{font-size:12px;min-height:32px;padding:5px 9px;border-radius:8px;background:transparent}.inspector:has(#selection-tools[hidden]) .selection-heading:has(#clear-selection[hidden]){display:none}.control-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.control-row label{min-width:0}.control-row select,.control-row input{margin-top:6px}.apply{background:var(--blue);border-color:var(--blue);color:#fff;margin-top:8px;width:100%;min-height:38px}.apply:hover,.send:hover{background:#103998;border-color:#103998}.apply:active:not(:disabled),.send:active:not(:disabled){background:#0c2f82}summary{cursor:pointer;font-size:12px;line-height:1.5;padding:8px 0;min-height:36px}#site-style{margin-top:10px}#site-style summary{display:flex;align-items:center;gap:10px;list-style:none;font-weight:650}#site-style summary::-webkit-details-marker{display:none}#site-style summary>svg:first-child{color:#506a92;width:17px;height:17px}#site-style .chevron{margin-left:auto;width:16px;height:16px;transition:transform .18s var(--ease)}#site-style[open] .chevron{transform:rotate(180deg)}.inspector:has(#selection-tools[hidden]) #site-style{margin-top:0}
.composer-area{flex-shrink:0;padding:14px 16px 10px;border-top:1px solid var(--line);background:#fff}.prompt-shell{border:1px solid #bdcde6;border-radius:14px;background:#fff;box-shadow:0 5px 12px -9px #174dcd50;transition:box-shadow .2s var(--ease),border-color .2s var(--ease)}.prompt-shell:focus-within{border-color:var(--blue);box-shadow:0 5px 16px -10px #174dcd70}#chat-form{position:relative;border:0;border-radius:14px;padding:12px 14px 36px;background:#fff;overflow:hidden}.composer-title{font-size:12px;font-weight:750;color:#314666}#chat-input{border:0;box-shadow:none;padding:7px 0 0;min-height:52px;max-height:120px;resize:none;font-size:14px;background:transparent}#chat-input:focus-visible{outline:none}.prompt-shell:has(#chat-input:focus-visible){outline:2px solid var(--blue);outline-offset:3px}.keyboard-hint{position:absolute;left:14px;bottom:14px;font-size:12px;color:#5a6b84}.send{position:absolute;bottom:9px;right:10px;width:34px;min-height:34px;border:1px solid #1645bd;background:var(--blue);color:#fff;padding:6px;border-radius:9px;box-shadow:0 3px 6px -3px #174dcd60}#context{font-size:12px;color:#214b96;background:#eef4ff;border-bottom:1px solid #dce7fa;border-radius:13px 13px 0 0;padding:9px 13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#context::before{content:'';display:inline-block;width:6px;height:6px;border:1px solid #174dcd;border-radius:2px;margin-right:8px;vertical-align:1px}.prompt-shell:has(#context:not([hidden])) #chat-form{border-radius:0 0 14px 14px}.composer-area>.small{font-size:12px;margin-top:10px;text-align:center}.routing{margin-top:2px}.routing summary{font-size:12px;color:var(--muted);min-height:24px;padding:4px 0;text-align:center;list-style-position:inside}.routing p{font-size:12px;color:#4b5360;overflow-wrap:anywhere;padding:6px 2px}.notice{position:fixed;bottom:22px;left:28px;max-width:min(520px,calc(100% - 48px));background:#202c42;color:#fff;border-radius:12px;padding:12px 18px;font-size:13px;box-shadow:0 8px 30px #0002;z-index:4}.mobile-tabs{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
@keyframes response-in{from{transform:translateY(4px);opacity:.65}to{transform:translateY(0);opacity:1}}
@media(max-width:1150px){.workspace{grid-template-columns:minmax(0,1fr) 14px var(--assistant-width,350px);gap:0;padding:16px}.view-controls span{display:none}.preview-toolbar{gap:7px}.page-control label{display:none}.page-control select{width:125px}.canvas-caption span:last-child{display:none}.brand span{font-size:12px}.app-header{padding:0 20px}.angelo-heading{gap:8px;padding-right:12px}.angelo-character{width:136px}.inspector{padding:10px 18px}}
@media(max-width:760px){.app-header{height:62px;padding:0 14px;gap:10px}.brand img{width:72px}.brand span{display:none}.header-actions{gap:10px}.header-actions button{font-size:12px;padding:7px}.header-actions svg{display:none}.demo{max-width:120px;font-size:12px;line-height:1.5}.mobile-tabs{display:flex;gap:5px;padding:8px 12px;height:56px}.mobile-tabs button{flex:1;border-color:transparent;background:transparent;border-radius:10px}.mobile-tabs button[aria-pressed=true]{background:#fff;color:var(--blue);border-color:#cdd9ea;box-shadow:0 2px 5px #243d6810}.workspace{display:block;height:calc(100dvh - 118px);padding:0 10px 10px}.site-workspace,.angelo{height:100%}.site-workspace{padding:0 8px 10px;border-radius:16px}.workspace[data-view=site] .angelo,.workspace[data-view=angelo] .site-workspace{display:none}.angelo{border-radius:16px}.preview-toolbar{padding:8px 2px;min-height:56px}.page-control label,.view-controls{display:none}.history-controls{margin-left:auto}.canvas{border-radius:10px}.canvas.phone{width:100%;max-width:none}.canvas-caption{padding:10px 2px 0;font-size:12px}.canvas-top{padding:8px 10px;flex-wrap:wrap;gap:3px 10px}#save-state{font-size:12px}.preview-mark{display:none}.angelo-heading{padding:0 16px 0 6px;min-height:146px;gap:16px}.angelo-character{width:136px;height:146px}.angelo-heading h1{font-size:24px}.conversation-label{padding:14px 18px 0}.inspector{max-height:min(30vh,calc(100dvh - 510px));padding:10px 16px}#conversation{padding:16px 18px 4px;min-height:80px}.composer-area{padding:12px;padding-bottom:max(10px,env(safe-area-inset-bottom))}textarea,select{font-size:16px}.message{font-size:14px}#chat-input{font-size:16px;min-height:55px}.keyboard-hint{display:none}#chat-form{padding-bottom:34px}.notice{bottom:18px;left:16px}.canvas iframe{min-height:180px}}
@media(max-height:700px) and (min-width:761px){.angelo-heading{min-height:134px}.angelo-character{height:134px;width:126px}.angelo-heading h1{font-size:22px}.conversation-label{padding-top:12px}.composer-area{padding-top:10px}#chat-form{padding-top:9px}#chat-input{min-height:44px}.inspector{max-height:30vh}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Make room for the task when editing; the portrait and input stay available. */



.angelo:has(#tools-panel[open]) .avatar-status,
.angelo:has(#tools-panel[open]) .conversation-label{display:none}
.angelo:has(#tools-panel[open]) #conversation{min-height:64px}
.composer-title{margin:0}
@media(max-height:600px){.workspace{min-height:470px}.inspector{max-height:150px}.app-header{position:relative}}

/* Patterns referenced from 21st: assistant quick actions and adjustable panes.
   Original native implementation; no third-party component source imported. */
.quick-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.quick-actions button{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:7px 10px;border-radius:9px;background:#f7faff;border-color:#cbd9eb;color:#174dcd;font-size:12px;font-weight:600}
.quick-actions button:hover{background:#dceff7;border-color:#a8cbdc}
.quick-actions svg{width:16px;height:16px}
#panel-resizer{display:flex;align-items:center;justify-content:center;cursor:col-resize;touch-action:none;outline-offset:-3px;border-radius:8px}
#panel-resizer span{display:block;width:3px;height:38px;border-radius:3px;background:#c4d4e9;transition:background .18s,transform .18s}
#panel-resizer:hover span,#panel-resizer:focus-visible span,.is-resizing #panel-resizer span{background:#174dcd;transform:scaleX(1.33)}
#panel-resizer:focus-visible{outline:2px solid #174dcd}
.workspace.is-resizing{user-select:none;cursor:col-resize}.is-resizing iframe{pointer-events:none}
::selection{background:#b8e6f3;color:#143c89}
.selection-heading{position:sticky;top:-12px;z-index:1;background:#f8fafd;padding:4px 0 8px}
.prompt-shell:focus-within{border-color:#174dcd;box-shadow:0 5px 16px -10px #174dcd70}
.view-controls button[aria-pressed=true]{background:#fff;color:#174dcd}
@media(max-width:760px){#panel-resizer{display:none}.quick-actions button{min-height:40px}.selection-heading{top:-10px}}

/* Reply indicator lives outside the scrolling log, so it stays visible. */
.typing-bar{display:flex;align-items:center;gap:10px;flex-shrink:0;margin:0 18px 10px;padding:9px 12px;border:1px solid #d2e2f1;border-radius:10px;background:#edf4fc;color:#345581;font-size:12px;line-height:1.4}
.typing-dots{display:flex;align-items:center;gap:4px;height:14px}
.typing-dots i{width:5px;height:5px;border-radius:50%;background:#174dcd;animation:angelo-typing 1s ease-in-out infinite}
.typing-dots i:nth-child(2){animation-delay:.14s}.typing-dots i:nth-child(3){animation-delay:.28s}
@keyframes angelo-typing{0%,60%,100%{opacity:.45;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.typing-dots i{animation:none;opacity:1}}
/* A single conversation frame encloses messages and activity. */
.chat-frame{display:flex;flex-direction:column;flex:1;min-height:110px;margin:12px 12px 0;border:1px solid #cbd9eb;border-radius:14px;background:#fff;overflow:hidden}
.chat-frame .conversation-label{padding:12px 14px 0}.chat-frame #conversation{padding:16px 14px 4px;min-height:58px}
.chat-frame .typing-bar{margin:0 14px 12px;padding:3px 0;min-height:24px;border:0;background:transparent;border-radius:0;color:#516580;gap:9px}
.thinking-dot{width:8px;height:8px;border-radius:50%;background:#174dcd;flex-shrink:0;animation:angelo-breathe 1s ease-in-out infinite}
#angelo-activity{animation:angelo-status 1.4s ease-in-out infinite}
@keyframes angelo-breathe{50%{transform:scale(.7);opacity:.5}}
@keyframes angelo-status{50%{opacity:.5}}
.inspector{margin-top:10px}.selection-heading{top:-12px}
#geometry-tools{border-bottom:1px solid #dce5f1;padding-bottom:12px;margin-bottom:12px}
#geometry-tools summary{display:flex;justify-content:space-between;gap:8px;font-weight:650}
#geometry-device{font-size:12px;font-weight:500;color:#52617a}
input[type=number]{width:100%;min-height:40px;padding:8px 10px;border:1px solid #cbd5e3;border-radius:9px;background:#fff;font-size:14px}
.control-row input[type=number]{margin-top:6px}
#reset-geometry{font-size:12px;width:100%;margin-top:12px}
#geometry-tools .small{font-size:12px}
@media(max-width:760px){.chat-frame{margin:10px 10px 0}input[type=number]{font-size:16px}.canvas-caption{font-size:12px}}
@media(prefers-reduced-motion:reduce){.thinking-dot,#angelo-activity{animation:none;opacity:1;transform:none}}

.chat-frame{min-height:76px}.chat-frame #conversation{min-height:28px}
.angelo:has(#tools-panel[open]) #conversation{min-height:28px}
.inspector{max-height:min(30vh,calc(100dvh - 570px))}
@media(max-width:760px){.inspector{max-height:min(32vh,calc(100dvh - 570px))}}
@media(max-height:620px){.workspace{min-height:530px}.inspector{max-height:120px}}
#geometry-tools>summary{list-style:disclosure-closed}#geometry-tools[open]>summary{list-style:disclosure-open}

/* Editor-only alignment aid: never part of the site state or export. */
.grid-toggle{display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:7px 9px;background:transparent;border-color:#cbd9eb;font-size:12px;white-space:nowrap}.grid-toggle svg{width:17px;height:17px;flex-shrink:0}.grid-toggle[aria-pressed=true]{background:#dceaff;border-color:#174dcd;color:#174dcd}.grid-toggle:hover{background:#e0eaff}@media(max-width:760px){.grid-toggle{margin-left:auto}.history-controls{margin-left:0}}

/* Conversation structure adapted to native HTML from the 21st chat-02 reference. */
.angelo-heading{min-height:126px}.angelo-character{height:126px;width:132px}.angelo-heading h1{font-size:26px}.avatar-status{display:none}
.assistant-tabs{display:flex;gap:18px;padding:0 20px;border-bottom:1px solid #cbd9eb;flex-shrink:0;background:#fff}
.assistant-tabs button{position:relative;border:0;border-radius:0;background:transparent;color:#52617a;padding:12px 0;min-height:44px;font-size:13px;font-weight:600}
.assistant-tabs button[aria-selected=true]{color:#174dcd}.assistant-tabs button[aria-selected=true]:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#174dcd}
#tools-count{display:inline-flex;margin-left:6px;align-items:center;justify-content:center;width:18px;height:18px;font-size:11px;border-radius:50%;background:#dceaff;color:#174dcd}
.chat-frame{position:relative;margin:0;border:0;border-radius:0;background:#fff;min-height:110px}
.chat-frame .conversation-label{padding:16px 20px 8px;font-size:11px;color:#536982}.chat-frame .local-label{font-size:11px}
.chat-frame #conversation{padding:12px 20px 8px;min-height:48px}
.message{line-height:1.65;margin-bottom:24px;white-space:normal}.message>p{white-space:pre-wrap}.message-author{display:block;font-size:11px;font-weight:700;color:#536982;margin-bottom:7px}
.message.user{margin-left:38px;background:transparent;padding:0;border-radius:0}.message.user>p{padding:10px 14px;background:#edf3ff;border:1px solid #dce7fa;border-radius:16px 16px 4px 16px}.message.user .message-author{text-align:right}
.message-actions{display:flex;gap:10px;margin-top:5px}.message.user .message-actions{justify-content:flex-end}.message-actions button{background:transparent;border:0;padding:4px 0;min-height:28px;font-size:11px;color:#536982}.message-actions button:hover{color:#174dcd;text-decoration:underline}
.welcome h2{font-size:23px;line-height:1.2;font-weight:650;letter-spacing:-.025em;margin:5px 0 12px;color:#172c45;max-width:240px}.welcome>p{color:#52617a;font-size:13px}
.quick-actions{gap:6px;margin-top:18px}.quick-actions button{background:#fff;border-radius:8px;box-shadow:none;padding:7px 9px}
.latest-message{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);font-size:12px;padding:6px 12px;min-height:32px;border-radius:20px;white-space:nowrap;background:#fff;border-color:#cbd9eb;box-shadow:0 4px 12px #172c451a;z-index:2}
#tools-panel.inspector{flex:1;max-height:none;min-height:0;margin:0;border:0;padding:16px 20px;background:#f8fafd}#tools-panel .selection-heading{top:-16px}
.composer-area{padding:12px 14px 8px;background:#f8fafd}.prompt-shell{border-radius:18px;border-color:#c1cfe3;box-shadow:0 4px 10px -8px #172c4550}#chat-form{border-radius:18px;padding:12px 14px 46px}.composer-title{font-size:12px;font-weight:600}#chat-input{min-height:48px;padding-top:8px;line-height:1.5}
.composer-options{position:absolute;left:10px;bottom:9px;display:flex;align-items:center;gap:12px}.composer-options button{display:flex;align-items:center;gap:6px;min-height:30px;padding:5px 7px;border:0;background:#edf3ff;color:#36547d;border-radius:7px;font-size:11px}.composer-options svg{width:14px;height:14px}.composer-options .keyboard-hint{position:static;font-size:11px}.send{border-radius:50%;width:34px;height:34px}
.composer-area>.small{font-size:11px;margin-top:8px}.routing summary{font-size:11px;min-height:20px}.chat-frame .typing-bar{margin:0 20px 10px}.angelo:has(#tools-panel[open]) .conversation-label{display:flex}
@media(max-width:760px){.angelo-heading{min-height:120px}.angelo-character{height:120px;width:126px}.assistant-tabs{padding:0 18px}.chat-frame{margin:0}.chat-frame #conversation{padding:14px 18px 8px}.composer-area{padding-bottom:max(8px,env(safe-area-inset-bottom))}#chat-input{font-size:16px}.composer-options .keyboard-hint{display:none}}

/* One conversation, using the supplied React ChatBubble components. */
#assistant-panel .chat-frame{min-height:120px;flex:1}.conversation-label{border-bottom:1px solid #e0e6ef}.chat-frame .conversation-label{padding:12px 18px}
#conversation-messages{min-width:0}.chat-welcome{padding:12px 0 20px}.chat-welcome h2{font-size:22px;line-height:1.25;letter-spacing:-.02em;margin:0 0 10px;font-weight:650}.chat-welcome p{font-size:13px;color:#52617a}
.linud-bubble{display:flex;align-items:flex-start;gap:9px;margin-bottom:22px;min-width:0}.linud-bubble.user{flex-direction:row-reverse}.linud-bubble>[data-slot],.linud-bubble>span{width:30px;height:30px;flex-shrink:0;overflow:hidden;border-radius:50%;background:#e5eefb;color:#36547d;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center}.linud-bubble>span img{width:100%;height:100%;object-fit:cover;object-position:center 30%}
.bubble-content{min-width:0;max-width:calc(100% - 39px);flex:1}.bubble-author{display:block;font-size:11px;font-weight:650;color:#52617a;margin:0 0 6px}.user .bubble-author{text-align:right}.bubble-text{padding:11px 13px;border-radius:4px 14px 14px 14px;background:#edf3fb;font-size:14px;line-height:1.65;overflow-wrap:anywhere;white-space:pre-wrap}.user .bubble-text{background:#174dcd;color:white;border-radius:14px 4px 14px 14px}.bubble-content button{width:28px;height:28px;min-height:28px;border:0;padding:5px;background:transparent;color:#536982}.bubble-content button:hover{background:#edf3fb;color:#174dcd}.bubble-content svg{width:14px;height:14px}.bubble-content>div:last-child:not(.bubble-text){display:flex;gap:3px;margin-top:4px}.user .bubble-content>div:last-child:not(.bubble-text){justify-content:flex-end}
.bubble-loading{display:inline-flex;align-items:center;gap:4px;height:20px}.bubble-loading i{width:5px;height:5px;border-radius:50%;background:#174dcd;animation:bubble-dot 1.2s ease-in-out infinite}.bubble-loading i:nth-child(2){animation-delay:.15s}.bubble-loading i:nth-child(3){animation-delay:.3s}@keyframes bubble-dot{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}@media(prefers-reduced-motion:reduce){.bubble-loading i{animation:none;opacity:1}}
#tools-panel.inspector{flex:0 0 auto;min-height:0;max-height:35%;margin:0;border-top:1px solid #dce5f1;padding:0 18px;background:#f8fafd;overflow:auto}#tools-panel>.tools-summary{font-size:12px;font-weight:650;min-height:42px;padding:12px 0;cursor:pointer}#tools-panel .tools-body{padding-bottom:14px}#tools-panel .selection-heading{position:static}.chat-frame .sr-only{margin:0;padding:0;border:0}
@media(max-width:760px){#tools-panel.inspector{max-height:30%}.linud-bubble{gap:8px}.bubble-text{font-size:14px}}

#assistant-panel .linud-bubble{margin-bottom:14px}#assistant-panel .chat-frame #conversation{padding-top:12px;padding-bottom:0}

/* Reversible tools disclosure; height motion is coordinated by native WAAPI. */
#tools-panel>.tools-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none}
#tools-panel>.tools-summary::-webkit-details-marker{display:none}
#tools-panel>.tools-summary:after{content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-right:3px;transition:transform 260ms cubic-bezier(.22,1,.36,1);flex-shrink:0}
#tools-panel[data-expanded=true]>.tools-summary:after{transform:rotate(225deg)}
#tools-panel>.tools-summary:hover{color:#174dcd}
@media(prefers-reduced-motion:reduce){#tools-panel>.tools-summary:after{transition:none}}

/* Shared motion and chevrons for all four editor/chat disclosures. */
.animated-disclosure>summary{list-style:none!important;display:flex;align-items:center;gap:10px}
.animated-disclosure>summary::-webkit-details-marker{display:none}
.animated-disclosure>summary:after{content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-left:auto;margin-right:3px;transition:transform 260ms cubic-bezier(.22,1,.36,1);flex-shrink:0}
.animated-disclosure[data-expanded=true]>summary:after{transform:rotate(225deg)}
.animated-disclosure>summary>.chevron{display:none}
#geometry-tools>summary #geometry-device{margin-left:auto}
#geometry-tools>summary:after{margin-left:0}
.routing.animated-disclosure>summary{justify-content:center}
.routing.animated-disclosure>summary:after{margin-left:2px}
#geometry-tools .disclosure-body{padding-top:4px}
@media(prefers-reduced-motion:reduce){.animated-disclosure>summary:after{transition:none}}
/* Keep the composer reachable when nested controls expand. */
#tools-panel.inspector{max-height:min(35%,max(90px,calc(100dvh - 610px)))}
#tools-panel>.tools-summary{position:sticky;top:0;z-index:2;background:#f8fafd}
@media(max-width:760px){#tools-panel.inspector{max-height:min(30%,max(90px,calc(100dvh - 590px)))}}

/* Same approved logo and crop as the main Linud website. */
.brand-mark{position:relative;flex:none;width:112px;aspect-ratio:1290/430;overflow:hidden}
.brand .brand-mark img{position:absolute;width:139.534884%;height:auto;max-width:none;left:-20.155039%;top:-53.488372%}
@media(max-width:760px){.brand-mark{width:88px}}

/* Match the solid-blue treatment published on linudstudio.com. */
.brand .brand-mark img{filter:url("#linud-solid-blue")}

.assistant-proposal{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.assistant-proposal button{font-size:12px;padding:7px 10px}.assistant-proposal button:first-child{background:var(--blue);color:white}
.header-actions{flex-wrap:wrap}.header-actions a{font-size:12px;color:var(--blue)}

/* Floating workspace — selected 21st Chat Widget Panel pattern, Linud adaptation. */
.floating-editor .mobile-tabs,.floating-editor #panel-resizer{display:none}
.floating-editor .workspace{display:block;grid-template-columns:none;height:calc(100dvh - 76px);min-height:0}
.floating-editor .site-workspace{display:flex;height:100%;width:100%}
.floating-editor .canvas-caption{padding-right:145px}
.floating-editor #assistant-panel{position:fixed;z-index:30;display:flex;flex-direction:column;margin:0;min-height:0;min-width:0;border:1px solid #b9cbe6;border-radius:20px;background:#fff;box-shadow:0 18px 60px -16px #16345b55,0 4px 14px -8px #16345b40;overflow:hidden;transform-origin:bottom right;isolation:isolate}
.floating-bar{display:flex;align-items:center;justify-content:space-between;flex:0 0 48px;background:var(--blue);color:white;padding:0 4px 0 8px}
.floating-bar button{border:0;background:transparent;color:inherit;min-height:44px;box-shadow:none;border-radius:10px}
.floating-bar button:hover{background:#ffffff20}
.floating-bar button:focus-visible{outline:2px solid white;outline-offset:-4px}
.floating-drag{display:flex;align-items:center;gap:6px;flex:1;align-self:stretch;text-align:left;touch-action:none;cursor:grab;font-size:14px;font-weight:650;user-select:none}
.floating-drag:active{cursor:grabbing}
.floating-drag svg{width:20px;height:20px}
.floating-actions{display:flex;gap:2px}.floating-actions button{width:44px;padding:12px}.floating-actions svg{width:19px;height:19px}
.floating-tabs{display:flex;flex:0 0 auto;padding:0 16px;gap:20px;border-bottom:1px solid var(--line);order:2;background:#fff}
.floating-tabs button{min-height:44px;border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 12px;background:transparent;box-shadow:none;color:var(--muted)}
.floating-tabs button[aria-selected=true]{color:var(--blue);border-bottom-color:var(--blue);font-weight:650}
.floating-editor .angelo-heading{order:1;flex:0 0 94px;min-height:94px;padding:0 16px 0 10px;gap:10px;border-bottom:0}
.floating-editor .angelo-character{width:90px;height:94px;min-width:90px}
.floating-editor .angelo-identity h1{font-size:22px;line-height:1.2}
.floating-editor .angelo-identity p{font-size:12px;margin:4px 0}
.floating-editor .avatar-status{display:none}
.floating-editor .avatar-pause{font-size:12px;min-height:28px}
.floating-editor .chat-frame{order:3;flex:1 1 auto;min-height:0;border:0;border-radius:0;box-shadow:none;margin:0}
.floating-editor #conversation{min-height:0;padding:14px 16px 4px}
.floating-editor .composer-area{order:4;padding:10px 12px 16px;min-height:0;flex:0 0 auto}
.floating-editor #chat-form{padding:8px 12px 42px}
.floating-editor #chat-input{min-height:40px;max-height:90px;font-size:16px}
.floating-editor .composer-area>.small{font-size:11px;margin-top:6px}
.floating-editor .routing{margin-top:0}
.floating-editor #tools-panel.inspector{order:3;flex:1 1 auto;max-height:none;min-height:0;overflow:auto;overscroll-behavior:contain;margin:0;padding:16px;background:#f8fafd;border:0}
.floating-editor #tools-panel>.tools-summary{display:none}
.floating-editor #tools-panel .tools-body{padding-bottom:20px}
.floating-editor #tools-panel .selection-heading{position:static}
.floating-editor #tools-panel input:not([type=color]),.floating-editor #tools-panel select,.floating-editor #tools-panel button{min-height:44px}
.floating-editor #tools-panel input[type=color]{height:44px}
.floating-editor #tools-panel label{font-size:13px}
.floating-editor .floating-resize{position:absolute;right:1px;bottom:1px;z-index:4;min-height:24px;width:26px;height:26px;padding:3px;border:0;border-radius:0 0 18px 0;background:transparent;color:#687f9c;cursor:nwse-resize;touch-action:none;box-shadow:none}
.floating-resize svg{width:18px;height:18px}
.floating-editor #assistant-panel[data-expanded=true] .floating-resize{display:none}
.angelo-dock{position:fixed;bottom:max(18px,env(safe-area-inset-bottom));right:max(18px,env(safe-area-inset-right));z-index:29;display:flex;gap:8px;align-items:center}
#angelo-launcher{display:flex;align-items:center;gap:8px;height:64px;padding:0 16px 0 3px;border:1px solid #b9cbe6;border-radius:40px;background:#fff;color:#163d80;box-shadow:0 8px 24px -8px #16345b55;font-weight:650}
#angelo-launcher:hover{border-color:var(--blue);background:#f3f7ff}
#angelo-launcher img{width:58px;height:58px;object-fit:cover;border-radius:50%;background:#edf4ff}
#angelo-launcher svg{width:20px;height:20px}
#selection-edit{display:flex;align-items:center;gap:6px;min-height:44px;padding:10px 14px;border-radius:24px;border-color:#b9cbe6;background:white;color:var(--blue);box-shadow:0 6px 18px -8px #16345b44}
#selection-edit svg{width:16px;height:16px}
.floating-gesture{cursor:grabbing;user-select:none}.floating-gesture iframe{pointer-events:none}
.floating-editor .notice{z-index:40;bottom:90px}
@media(max-width:760px){
 .floating-editor .workspace{height:calc(100dvh - 62px);padding:6px 10px 10px}
 .floating-editor .site-workspace{display:flex!important}
 .floating-editor .canvas-caption{padding-right:0;padding-bottom:70px}
 .floating-editor #assistant-panel{border-radius:18px}
 .floating-editor .angelo-heading{min-height:80px;flex-basis:80px}
 .floating-editor .angelo-character{height:80px;width:80px;min-width:80px}
 .floating-editor .angelo-identity h1{font-size:20px}
 .floating-editor #conversation{padding:12px 12px 4px}
 .floating-editor .composer-area{padding:8px 10px 14px}
 .floating-editor .linud-bubble{gap:8px}
 .floating-editor #tools-panel input:not([type=color]),.floating-editor #tools-panel select,.floating-editor #tools-panel textarea{font-size:16px}
 #angelo-launcher{height:58px}#angelo-launcher img{width:52px;height:52px}
}
@media(max-height:600px){.floating-editor .angelo-heading{display:none}.floating-editor .composer-area>.small,.floating-editor .routing{display:none}.floating-editor #chat-input{min-height:34px}}
.floating-editor #assistant-panel .chat-frame{min-height:0}
.floating-editor #assistant-panel .send{width:44px;height:44px;min-height:44px;padding:10px}
.floating-editor #assistant-panel .composer-options button{min-height:40px}
.floating-editor #assistant-panel #chat-form{padding-bottom:52px}
.floating-editor #assistant-panel .composer-area>.small,.floating-editor #assistant-panel .routing summary,.floating-editor #assistant-panel .composer-options button{font-size:12px}

/* The compact launcher moves independently from the open panel. */
#angelo-launcher{position:relative;gap:6px;padding-right:14px;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
#angelo-launcher.is-dragging{cursor:grabbing;background:#edf4ff;box-shadow:0 12px 28px -10px #16345b66}
#angelo-launcher img{pointer-events:none;-webkit-user-drag:none}
.angelo-connection{position:absolute;left:44px;bottom:3px;width:13px;height:13px;border:2px solid #fff;border-radius:50%;background:#64748b;pointer-events:none}
.angelo-connection[data-online=true]{background:#168544}
@media(max-width:760px){.angelo-connection{left:39px}}

/* Effects live beside the selected element's existing tools. */
.effect-tools{border:1px solid #c9d9f3;border-radius:14px;background:#f5f8ff;padding:0 12px;margin:0 0 16px}
.effect-tools summary{display:flex;align-items:center;gap:8px;min-height:48px;font-weight:650;color:#17449b;cursor:pointer}
#effect-summary{margin-left:auto;font-size:11px;font-weight:500;background:#e5edff;border-radius:20px;padding:3px 8px}
.effect-tools label{font-size:12px}.effect-tools select{margin:6px 0 12px;width:100%}
.effect-tools .control-row{grid-template-columns:1fr 1.35fr;gap:10px}
.effect-actions{display:flex;gap:8px}.effect-actions button{min-height:40px;font-size:12px}
#preview-effect{flex:1;color:#fff;background:#174dcd;border-color:#174dcd}
.effect-actions button:disabled{opacity:.45;cursor:default}
@media(max-width:760px){.app-header .header-actions{min-width:0;gap:6px;flex-wrap:nowrap}.app-header .demo{display:none}.app-header .brand{flex-shrink:0}.app-header .header-actions button{min-height:40px;font-size:11px}}

.effect-category{border-top:1px solid #dce5f5;margin-top:12px;padding-bottom:4px}
.effect-category>summary{font-size:12px;min-height:44px;color:#283c60;font-weight:600}
.effect-tools .effect-actions{margin:10px 0 14px}.effect-tools input[type=number]{width:100%;margin:6px 0 12px;min-height:42px}
.effect-tools input[type=color]{display:block;width:100%;height:36px;margin:6px 0 12px}
.effect-category[hidden]{display:none!important}

/* Contextual toolbar: progressive controls, movable as one surface. */
.quick-editor{position:fixed;z-index:90;width:480px;max-width:calc(100vw - 24px);display:flex;flex-direction:column;background:#fff;color:#142744;border:1px solid #cbdafa;border-radius:16px;box-shadow:0 6px 16px #16397b10,0 22px 60px -18px #173b8360;font:13px/1.45 Manrope,system-ui,sans-serif;overflow:hidden;isolation:isolate}
.quick-editor[hidden],.quick-editor [hidden]{display:none!important}.quick-editor *{box-sizing:border-box}.quick-editor button{font:inherit;cursor:pointer;border:1px solid #dce5f5;background:#fff;color:#23416c;border-radius:8px;padding:7px 10px;min-height:36px}.quick-header{display:flex;align-items:center;gap:8px;padding:5px 8px;background:#f3f7ff;flex-shrink:0}.quick-header button{border:0;background:transparent;min-height:28px}.quick-header>button[data-action=close]{font-size:22px;line-height:1;padding:0 7px}.quick-header #quick-drag{display:flex;align-items:center;gap:7px;flex:1;min-width:0;cursor:grab;touch-action:none;user-select:none;text-align:left;padding:3px 4px}.quick-dragging #quick-drag{cursor:grabbing}.quick-editor svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.quick-header #quick-drag svg{stroke-width:3}.quick-header #quick-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:650}.quick-toolbar{display:flex;gap:3px;padding:6px;overflow-x:auto;flex-shrink:0;scrollbar-width:thin;scrollbar-color:#a6b9dd transparent}.quick-toolbar button{border:0;background:transparent;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:7px 8px;min-width:58px;font-size:11px;line-height:1.3}.quick-toolbar button[aria-expanded=true]{color:#123fd0;background:#eaf1ff}.quick-toolbar button[data-tool=angelo]{color:#1746d0}.quick-expanded .quick-toolbar{border-bottom:1px solid #e5edfb}#quick-controls{display:flex;flex-direction:column;min-height:0;overflow:auto;overscroll-behavior:contain}.quick-detail-heading{display:flex;align-items:center;justify-content:space-between;padding:9px 16px 0;gap:12px}.quick-detail-heading strong{font-size:14px}.quick-detail-heading button{border:0;background:transparent;font-size:12px;color:#4c648c;min-height:30px;padding:3px 0}.quick-body{padding:12px 16px 16px;display:grid;gap:12px}.quick-editor label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:650;color:#4e6381;margin:0;min-width:0}.quick-row{display:flex;gap:10px}.quick-row>label{flex:1}.quick-row>.quick-font{flex:2}.quick-editor input,.quick-editor select,.quick-editor textarea{font:500 13px/1.4 Manrope,system-ui,sans-serif;border:1px solid #d7e2f4;border-radius:8px;color:#183358;background:#f8faff;min-width:0;width:100%;margin:0;padding:9px;box-shadow:none;caret-color:#1746d0}.quick-editor textarea{resize:vertical;min-height:86px;max-height:190px;font-size:14px}.quick-editor input[type=color]{height:39px;padding:4px;cursor:pointer}.quick-editor input[type=number]{height:39px}.quick-editor input[type=file]{font-size:12px;background:white;border-style:dashed}.quick-upload{margin-bottom:12px!important}.quick-editor :is(input,select,textarea,button):focus-visible{outline:2px solid #1e50ed;outline-offset:-2px}.quick-editor button:hover{background:#eef4ff}.quick-editor button:disabled{opacity:.4;cursor:default}.quick-editor ::selection{background:#dbe7ff;color:#142744}.quick-footer{border-top:1px solid #e5edfb;padding:9px 16px;background:#fafcff}.quick-free{font-size:11px;color:#526a8a;display:flex;align-items:center;gap:6px}.quick-free i{width:5px;height:5px;background:#25845c;border-radius:50%}
@media(max-width:639px){.quick-editor{max-height:65dvh!important}.quick-toolbar button{min-width:54px;padding:8px 6px;min-height:48px}.quick-editor input,.quick-editor select,.quick-editor textarea{font-size:16px}.quick-header button{min-height:36px}.quick-body{padding:10px 14px}.quick-detail-heading{padding:8px 14px 0}}

/* Angelo activity and guided editing — original 21st-inspired feedback. */
.prompt-suggestions{display:flex;gap:6px;overflow:auto;padding:1px 1px 8px;scrollbar-width:thin;scrollbar-color:#b7c9e7 transparent}.prompt-suggestions button{flex-shrink:0;border:1px solid #dce6f6;background:#fff;color:#355583;border-radius:9px;padding:7px 10px;min-height:32px;font:500 11px/1.4 Manrope,system-ui,sans-serif;transition:background .16s,border-color .16s,transform .16s}.prompt-suggestions button:hover{background:#edf4ff;border-color:#9ab6ed;transform:translateY(-1px)}.prompt-suggestions button:disabled{opacity:.5;transform:none;cursor:wait}.prompt-suggestions button:focus-visible{outline:2px solid #174dcd;outline-offset:-2px}
#context{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px}#context-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:12px}#chat-general{flex-shrink:0;padding:3px 6px;min-height:27px;font-size:10px;background:white;border:1px solid #c9d9f5;color:#36547d;border-radius:6px}.chat-welcome h2{font-size:20px}.chat-welcome p{line-height:1.65;margin-bottom:14px}
.angelo-processing{display:flex;align-items:center;gap:12px;margin:8px 0 18px;padding:12px 13px;border:1px solid #dbe6f8;background:#f5f8ff;border-radius:12px;min-width:0}.angelo-processing>div{flex:1;min-width:0}.processing-label{display:block;font-size:12px;font-weight:600;line-height:1.5;color:#365989}.processing-orb{width:32px;height:32px;flex-shrink:0;display:grid;place-items:center;color:#2357db}.processing-orb svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.1;animation:angelo-orbit 4s linear infinite}.processing-orb circle{fill:#2154df;stroke:0}.processing-track{height:3px;border-radius:3px;background:#dce8fa;margin-top:8px;overflow:hidden;max-width:180px}.processing-track span{display:block;height:100%;width:50%;background:linear-gradient(90deg,transparent,#2154df,transparent);animation:angelo-sweep 1.8s ease-in-out infinite}.is-working .prompt-shell{border-color:#8aabea}.is-working .floating-bar{border-bottom-color:#89aeed}.response-stream:after{content:'';display:inline-block;width:5px;height:14px;border-radius:2px;background:#2154df;margin-left:4px;vertical-align:-2px;animation:angelo-caret 1s ease-in-out infinite}
#save-state{display:inline-flex;align-items:center;gap:6px}#save-state:before{content:'';width:6px;height:6px;border-radius:50%;background:#778aa7;flex-shrink:0}#save-state[data-phase=saved]:before{background:#298464}#save-state[data-phase=saving]:before{width:10px;height:10px;border:1.5px solid #cad9f2;border-top-color:#2357db;background:transparent;animation:angelo-orbit .8s linear infinite}#save-state[data-phase=error]:before{background:#ba5b28}
.edit-confirmation{position:fixed;z-index:95;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;max-width:calc(100vw - 32px);padding:9px 12px;background:#fff;border:1px solid #cbdcf4;box-shadow:0 6px 22px #12346624;border-radius:12px;color:#234366;font:500 12px/1.4 Manrope,system-ui,sans-serif}.edit-check{color:#298464;width:18px;height:18px}.edit-check svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.edit-confirmation button{border:0;background:#edf3ff;color:#1746d0;border-radius:6px;font:600 12px Manrope,system-ui,sans-serif;padding:6px 9px}.edit-confirmation button:focus-visible{outline:2px solid #174dcd;outline-offset:2px}
@keyframes angelo-orbit{to{transform:rotate(360deg)}}@keyframes angelo-sweep{from{transform:translateX(-100%)}to{transform:translateX(200%)}}@keyframes angelo-caret{50%{opacity:.35}}
@media(max-width:639px){.prompt-suggestions button{min-height:36px}.edit-confirmation{bottom:98px;white-space:nowrap}#chat-general{min-height:32px}}
@media(prefers-reduced-motion:reduce){.processing-orb svg,.processing-track span,.response-stream:after,#save-state[data-phase=saving]:before{animation:none}.prompt-suggestions button{transition:none}.prompt-suggestions button:hover{transform:none}.processing-track span{width:100%;background:#829ed5}}
/* Give the conversation room; technical detail remains in the disclosure. */
.floating-editor #chat-form .composer-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.floating-editor #assistant-panel #chat-form{padding-top:9px}.floating-editor #assistant-panel #chat-input{min-height:46px;height:46px;padding-top:4px}.floating-editor .routing{margin-top:7px}.floating-editor .routing p{text-align:left;line-height:1.6}.prompt-suggestions{min-height:40px}

.image-proposal{display:flex;flex-wrap:wrap;gap:8px;max-height:45vh;overflow:auto}.image-proposal img{display:block;width:100%;height:160px;object-fit:contain;border-radius:12px;background:#fff}.image-proposal a{align-self:center;padding:8px;color:#174dcd}

/* File retouch: protected preview and explicit apply, using the editor palette. */
.image-retouch{box-sizing:border-box;width:min(860px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #c4d4ed;border-radius:20px;background:#fff;color:#162b48;box-shadow:0 24px 70px #142c4b33;font:inherit;overflow:auto}
.image-retouch::backdrop{background:#11234066}
.image-retouch[open]{animation:retouch-in .2s ease-out}
.retouch-header,.image-retouch footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;background:#f4f7fc}
.retouch-header{border-bottom:1px solid #dce5f3}.retouch-drag{display:flex;align-items:center;gap:8px;cursor:move;touch-action:none}.retouch-drag svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:3}.retouch-drag strong{font-size:18px}
.retouch-body{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;padding:20px}.retouch-visual{min-width:0}.retouch-stage{height:310px;display:grid;place-items:center;overflow:hidden;border:1px solid #dce5f3;border-radius:12px;background:repeating-conic-gradient(#e2e8f0 0% 25%,#fff 0% 50%) 0/18px 18px}
.retouch-stage canvas{display:block;max-width:100%;max-height:310px;object-fit:contain;width:auto;height:auto}.retouch-visual>button{margin-top:12px}.image-retouch p{font-size:13px;line-height:1.6;color:#435a78;margin:12px 0}.image-retouch h3{font-size:16px;margin:20px 0 16px}.retouch-tabs{display:flex;gap:4px;flex-wrap:wrap}.image-retouch button{font:inherit;font-size:13px;border:1px solid #c4d4ed;padding:9px 12px;border-radius:9px;background:#fff;color:#173c80;cursor:pointer;min-height:38px}.image-retouch button:hover{background:#edf3ff}.image-retouch button[aria-pressed=true]{background:#e4edff;border-color:#174dcd;color:#123b9f}.image-retouch button:disabled{opacity:.5;cursor:wait}.image-retouch .retouch-primary{background:#174dcd;color:white;border-color:#174dcd}.image-retouch .retouch-primary:hover{background:#103ca7}.image-retouch :focus-visible{outline:2px solid #174dcd;outline-offset:3px}.retouch-settings label{display:flex;justify-content:space-between;gap:10px;font-size:13px;margin-top:14px}.retouch-settings output{color:#435a78;font-variant-numeric:tabular-nums}.retouch-settings input[type=range]{width:100%;accent-color:#174dcd;margin:10px 0;min-height:24px}.retouch-settings input[type=color]{height:38px;width:64px;margin-top:8px;border:1px solid #c4d4ed;border-radius:8px}.retouch-check{justify-content:flex-start!important;align-items:center}.retouch-check input{accent-color:#174dcd;width:18px;height:18px}.retouch-actions{display:flex;gap:8px;margin-top:12px}.image-retouch footer{border-top:1px solid #dce5f3;font-size:12px;color:#435a78}.image-retouch footer>div{display:flex;gap:8px}
@keyframes retouch-in{from{opacity:.5;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:640px){.retouch-body{grid-template-columns:1fr;gap:10px;padding:14px}.retouch-stage{height:210px}.retouch-stage canvas{max-height:210px}.retouch-header,.image-retouch footer{padding:12px}.image-retouch footer{flex-wrap:wrap}.image-retouch footer>div{width:100%}.image-retouch footer .retouch-primary{flex:1}.retouch-tabs button{flex:1}.retouch-drag strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){.image-retouch[open]{animation:none}}
.retouch-stage.retouch-dark{background:repeating-conic-gradient(#25344b 0% 25%,#394a63 0% 50%) 0/18px 18px}
.retouch-visual>button{margin-right:6px}

/* Template choice stays beside the page selector, outside the assistant. */
.preview-toolbar{flex-wrap:wrap}
.template-control{display:flex;align-items:center;gap:9px;min-width:0}
.template-control label{margin:0;color:var(--muted);font-size:13px}
.template-control select{width:190px;min-height:38px;padding:8px 10px;font-size:13px;background:#fff;border-color:#d4deeb}
@media(max-width:760px){
 .preview-toolbar .page-control,.preview-toolbar .template-control{flex:1 1 calc(50% - 8px);min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:4px}
 .preview-toolbar .page-control label,.preview-toolbar .template-control label{display:block;font-size:11px;margin:0}
 .preview-toolbar .page-control select,.preview-toolbar .template-control select{width:100%;font-size:16px;min-height:42px}
 .preview-toolbar .view-controls{margin-right:auto}
}

/* Unified Linud studio: the customer's canvas leads; tools share one visual grammar. */
:root{--blue:#174dcd;--ink:#172c45;--line:#d7e3ee;--muted:#465b72;--surface:#fff;--ease:cubic-bezier(.16,1,.3,1);background:#f6f9fd}
.app-header{height:72px;padding-inline:26px;box-shadow:0 5px 16px -14px #28456755}
.app-header .brand span{font-size:13px;color:#344e6b}
.header-actions button{border-radius:999px;padding-inline:18px;min-height:44px}
.floating-editor .site-workspace{background:#f0f5fb;border-color:#d0dfed;border-radius:20px;padding:0 12px 12px;box-shadow:0 15px 40px -32px #264e7955}
.preview-toolbar{gap:16px;padding:14px 3px;min-height:76px}
.preview-toolbar label{font-size:12px;color:#46617b}
.preview-toolbar select{border-radius:10px;min-height:42px;border-color:#c8d7e6;font-weight:600;background:#fff}
.view-controls{background:#e5edf6;border:0;border-radius:12px;padding:4px;gap:3px}
.view-controls button{min-height:36px;border-radius:9px;font-size:12px}
.view-controls button[aria-pressed=true]{box-shadow:0 3px 9px -5px #264e7955;border-color:transparent}
.canvas{border-color:#c8d7e6;border-radius:14px;box-shadow:0 10px 24px -18px #234c7955}
.canvas-top{min-height:42px;background:#fff;padding-inline:16px;gap:10px}
.canvas-caption{font-size:12px;color:#46617b;padding-top:10px}
.floating-editor #assistant-panel{border:1px solid #b9cce2;border-radius:22px;background:#fff;box-shadow:0 24px 64px -24px #14386566,0 6px 18px -10px #14386540}
.floating-editor .floating-bar{background:#fff!important;color:#172c45!important;min-height:44px;padding:4px 10px;border-bottom:1px solid #e1e9f2}
.floating-editor .floating-bar button{color:#344e6b!important;border-radius:8px;min-height:34px}
.floating-editor .floating-bar button:hover{background:#edf4ff!important}
.floating-editor .floating-drag span{font-size:12px;font-weight:650}
.floating-editor .angelo-heading{background:linear-gradient(115deg,#fff 45%,#eaf6fa);border-bottom:0;padding-inline:14px;gap:12px}
.floating-editor .angelo-heading h1{font-size:25px;letter-spacing:-.035em;color:#172c45}
.floating-editor .angelo-heading p{font-size:12px;color:#465b72}
.floating-editor .avatar-pause{font-size:11px;min-height:30px;color:#48647f;text-underline-offset:3px}
.floating-editor .floating-tabs{margin:0 14px 10px;padding:4px;gap:4px;border:0;background:#eff4fa;border-radius:11px;display:grid;grid-template-columns:1fr 1fr;flex-shrink:0}
.floating-editor .floating-tabs button{border:0;border-radius:8px;min-height:36px;margin:0;color:#46617b;font-size:13px;padding:8px 14px}
.floating-editor .floating-tabs button[aria-selected=true]{background:#fff;color:#174dcd;box-shadow:0 3px 8px -5px #254b7955}
.floating-editor .floating-tabs button::after{display:none}
.floating-editor #conversation{padding:10px 18px 18px;scroll-padding-block:18px}
.chat-welcome{padding:12px 0 20px}.chat-welcome h2{font-size:22px;line-height:1.25;letter-spacing:-.03em;max-width:19ch;color:#172c45}.chat-welcome p{font-size:14px;line-height:1.65;color:#46617b;margin-top:12px;max-width:38ch}
.chat-welcome .quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:18px}
.chat-welcome .quick-actions button{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:12px 10px;border:1px solid #d7e3ee;border-radius:12px;min-height:70px;background:#f8fbff;color:#174dcd;font-size:12px}
.chat-welcome .quick-actions button:hover{background:#edf4ff;border-color:#9ebae2}
.linud-bubble{gap:9px;margin-block:10px 18px}.linud-bubble .bubble-author{font-size:11px;color:#465b72;font-weight:650;margin-bottom:5px}.linud-bubble .bubble-text{font-size:14px;line-height:1.7;border-radius:15px;padding:12px 14px;overflow-wrap:anywhere}
.linud-bubble.assistant .bubble-text{background:#f0f5fc;color:#172c45;border:1px solid #e3ebf6;border-top-left-radius:4px}
.linud-bubble.user .bubble-text{background:#174dcd;color:#fff;border-top-right-radius:4px}
.floating-editor .composer-area{background:#fff;padding:12px 14px 10px;border-top:1px solid #e2eaf3}
.floating-editor .prompt-shell{border:1px solid #bfcfe3;border-radius:17px;box-shadow:0 4px 12px -9px #264b7955;transition:border-color 180ms,box-shadow 180ms;background:#fff;overflow:hidden}
.floating-editor .prompt-shell:focus-within{border-color:#174dcd;box-shadow:0 4px 18px -9px #174dcd55}
.floating-editor #assistant-panel #chat-form{padding:12px 12px 54px}
.floating-editor #assistant-panel #chat-input{font-size:14px;line-height:1.6;padding:0;min-height:48px;background:transparent;box-shadow:none;outline:none;border:0}
.floating-editor #assistant-panel #chat-input::placeholder{color:#526c85}
.floating-editor #assistant-panel .send{background:#174dcd;box-shadow:0 4px 10px -5px #174dcd66;border-radius:50%;right:10px;bottom:10px}
.floating-editor .composer-options{left:12px;bottom:10px}
.floating-editor #assistant-panel .composer-options button{min-height:34px;border-radius:8px;background:#f0f5fc;color:#385b84;font-size:12px}
.prompt-suggestions{gap:7px;min-height:38px;padding-bottom:8px}
.prompt-suggestions button{min-height:32px;border-radius:999px;padding:6px 11px;font-size:12px;background:#fff;color:#385b84;border-color:#d7e3ee}
.floating-editor #context{background:#eff5ff;color:#174dcd;border-bottom:1px solid #dae6f6;padding:9px 12px;font-size:12px}
.floating-editor #chat-general{font-size:11px;min-height:32px}
.floating-editor .routing summary{font-size:11px;color:#465b72;min-height:28px}
.angelo-processing{border:0;background:transparent;padding:8px 0;gap:10px}.processing-label{color:#385b84;font-size:12px}.processing-track{height:2px;max-width:120px;background:#e4edf8}.processing-orb{width:24px;height:24px}.processing-orb svg{width:24px;height:24px}
.quick-editor{border-color:#b9cce2;border-radius:18px;box-shadow:0 18px 48px -18px #173e6960;background:#fff}
.quick-editor .quick-header{background:#f7faff;border-bottom:1px solid #dce7f1;padding:7px 10px}
.quick-editor .quick-toolbar{gap:4px;padding:9px;background:#fff}
.quick-editor .quick-toolbar button{border-radius:10px;min-height:54px;font-size:11px;padding:8px;color:#385b84}
.quick-editor .quick-toolbar button[aria-expanded=true]{background:#eaf2ff;color:#174dcd}
.quick-editor :is(input,select,textarea){border-color:#bfcede;border-radius:10px;font-size:14px;background:#fbfcff}
.quick-editor .quick-footer{background:#f7faff;border-top:1px solid #e0e9f2;padding:10px 14px}
.floating-editor #tools-panel{padding:0 14px 14px}
.floating-editor #tools-panel :is(input:not([type=color]),select,textarea){border-color:#bfcede;border-radius:10px;background:#fbfcfe;min-height:44px;font-size:14px}
.floating-editor #tools-panel details{border-color:#d7e3ee;border-radius:12px}
.floating-editor #tools-panel summary{font-size:13px;min-height:46px;color:#344e6b}
.floating-editor #tools-panel .small{font-size:12px;line-height:1.6;color:#465b72}
#angelo-launcher{border:1px solid #93b6e5!important;box-shadow:0 12px 30px -14px #174dcd66!important;background:#fff!important}
#angelo-launcher:hover{box-shadow:0 15px 36px -14px #174dcd88!important}
#notice{border-radius:12px;box-shadow:0 12px 32px -16px #1c426760;font-size:13px}
@media(max-width:639px){
 .app-header{padding-inline:16px}.app-header .brand span{display:none}
 .floating-editor .site-workspace{border-radius:14px;padding-inline:8px}.preview-toolbar{gap:8px;padding-block:10px}
 .floating-editor #assistant-panel{border-radius:20px}.floating-editor #assistant-panel #chat-input{font-size:16px}
 .quick-editor :is(input,select,textarea){font-size:16px}.floating-editor #tools-panel :is(input:not([type=color]),select,textarea){font-size:16px}
 .floating-editor #conversation{padding-inline:14px}.chat-welcome h2{font-size:21px}
 .canvas-caption{font-size:11px}.prompt-suggestions button{min-height:36px}
}
@media(prefers-reduced-motion:no-preference){.quick-editor .quick-toolbar button,.chat-welcome .quick-actions button{transition:background 160ms,border-color 160ms,transform 160ms}.chat-welcome .quick-actions button:hover{transform:translateY(-2px)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}
/* Keep the complete welcome and actions visible in the normal floating size. */
.chat-welcome h2{max-width:none;font-size:20px}
.chat-welcome .quick-actions button{flex-direction:row;align-items:center;gap:7px;min-height:44px;padding:10px 8px}
.chat-welcome{padding:8px 0 12px}
.chat-welcome p{margin-top:10px}

/* Persistent image messages share the chat's existing Linud tokens. */
.chat-image{margin:12px 0 0;min-width:0}.chat-image>img{display:block;width:100%;max-height:290px;object-fit:contain;border:1px solid #cbd8ed;border-radius:12px;background:#f2f5fb}.chat-image figcaption{font-size:13px;font-weight:650;color:#173765;margin:10px 0}.chat-image figcaption span{display:block;font-weight:400;color:#4b6080;margin-top:3px}.chat-image-actions{display:flex;flex-wrap:wrap;gap:8px}.chat-image-actions button,.chat-image-actions a,.chat-older,#chat-save-retry{font:inherit;font-size:13px;min-height:40px;padding:8px 11px;border:1px solid #c7d5eb;border-radius:8px;background:#fff;color:#173765;text-decoration:none;cursor:pointer}.chat-image-actions button:hover,.chat-image-actions a:hover{background:#eaf0ff;border-color:#174dcd}.chat-image-actions :focus-visible,.chat-image-reference button:focus-visible{outline:2px solid #174dcd;outline-offset:3px}.chat-image-reference{display:flex;align-items:center;gap:10px;padding:10px;border-bottom:1px solid #cbd8ed;color:#173765;font-size:13px}.chat-image-reference img{width:42px;height:42px;object-fit:contain;border-radius:6px;background:#fff}.chat-image-reference span{flex:1}.chat-image-reference button{font:inherit;padding:8px;background:none;border:0;color:#174dcd;text-decoration:underline;cursor:pointer}.chat-older{display:block;margin:12px auto}.chat-older[hidden]{display:none}.bubble-content{min-width:0}#chat-save-retry{color:#852d14;margin:8px}
.linud-bubble .chat-image-actions button{width:auto;height:auto;min-height:40px;max-width:100%;white-space:normal;line-height:1.35;flex:0 1 auto;padding:8px 11px;text-align:center}.linud-bubble .chat-image-actions button:first-child{flex-basis:100%}.chat-image>img{max-height:210px}

/* Operative polish · 4 October 2026. Controls stay in place during work. */
.app-header{height:76px;min-height:76px;gap:24px;overflow:visible}
.header-actions{flex-wrap:nowrap;gap:10px;flex-shrink:0}
.header-actions button{white-space:nowrap}
.header-actions .project-return{background:var(--blue);border-color:var(--blue);color:#fff}
.header-actions .project-return:hover{background:#123da6}
.header-actions #download{background:transparent;border-color:transparent}
.brand span{white-space:nowrap}
.preview-toolbar{display:flex;gap:14px;align-items:flex-end;flex-wrap:nowrap;padding:12px 3px}
.preview-toolbar :is(.page-control,.template-control,.language-control){display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0;flex:1}
.preview-toolbar :is(.page-control,.template-control,.language-control) label{display:block;margin:0;font-size:12px}
.preview-toolbar :is(.page-control,.template-control,.language-control) select{width:100%;min-height:44px;font-size:13px}
.preview-toolbar .template-control{flex:1.5}.preview-toolbar .language-control{flex:0 0 72px}
.preview-toolbar .view-controls{margin:0 auto 0 10px;flex-shrink:0}
.preview-toolbar .view-controls button{min-height:36px}
.preview-toolbar .history-controls{flex-shrink:0;margin:0}
.preview-toolbar .history-controls button{width:42px;min-height:44px}
.preview-toolbar .grid-toggle{min-height:44px;flex-shrink:0}
.canvas-top{min-height:44px}.canvas-top #site-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.floating-editor .floating-tabs{position:relative;gap:4px;overflow:visible}
.floating-editor .floating-tabs button{position:relative;min-height:44px;padding:10px 12px;background:transparent;isolation:isolate}
.floating-editor .floating-tabs button[aria-selected=true]{background:transparent;box-shadow:none}
.tab-selection{position:absolute;inset:0;border:1px solid #cfdded;border-radius:8px;background:#fff;box-shadow:0 3px 7px -5px #27456755;z-index:-1}
.tab-content{display:flex;align-items:center;justify-content:center;gap:8px;position:relative}
.floating-editor .floating-tabs button:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.floating-editor .composer-title{position:static!important;width:auto!important;height:auto!important;clip:auto!important;clip-path:none!important;overflow:visible!important;display:block;margin:0 0 7px;font-size:12px;color:#344e6b;font-weight:650}
.floating-editor #assistant-panel #chat-input{min-height:42px}
.prompt-suggestions{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding:0 0 9px;min-height:0;gap:7px}
.prompt-suggestions button{flex-shrink:0;min-height:38px;font-size:12px;border-radius:8px}
.floating-editor .floating-actions button{min-width:44px;min-height:44px}
.floating-editor .avatar-pause{font-size:12px;min-height:36px}
.floating-editor .routing summary{font-size:12px;min-height:32px}
.floating-editor .linud-bubble .bubble-author{font-size:12px}
.floating-editor .composer-options .keyboard-hint{font-size:12px}
#assistant-panel :is(.send,.prompt-suggestions button):active:not(:disabled){transform:scale(.97)}
@media(max-width:1100px){.header-actions .demo{display:none}.app-header{padding-inline:20px}.brand span{font-size:13px}.preview-toolbar{gap:8px}.preview-toolbar .view-controls{margin-left:0}.preview-toolbar .page-control{flex:.85}}
@media(max-width:900px){.brand span{display:none}.preview-toolbar{display:grid;grid-template-columns:minmax(100px,1fr) minmax(150px,1.4fr) 72px;align-items:end}.preview-toolbar .view-controls{display:flex;margin:0;justify-self:start;grid-row:2;grid-column:1}.preview-toolbar .grid-toggle{justify-self:center;grid-row:2;grid-column:2}.preview-toolbar .history-controls{justify-self:end;grid-row:2;grid-column:3}.preview-toolbar .language-control{grid-row:1;grid-column:3}.preview-toolbar .page-control,.preview-toolbar .template-control{flex:initial}.canvas-caption{font-size:12px}.header-actions button{padding-inline:14px}}
@media(max-width:600px){.app-header{height:68px;min-height:68px;padding-inline:12px;gap:8px}.app-header .brand-mark{width:92px}.app-header .header-actions button{min-height:44px;font-size:12px;padding-inline:10px}.app-header .header-actions{gap:3px}.floating-editor .workspace{height:calc(100dvh - 68px);padding:8px}.preview-toolbar{grid-template-columns:minmax(78px,1fr) minmax(110px,1.35fr) 88px;padding-block:10px;gap:8px}.preview-toolbar :is(.page-control,.template-control,.language-control) select{font-size:16px;padding-inline:7px}.preview-toolbar .history-controls button{width:40px}.floating-editor .canvas-caption{padding-right:76px}.canvas-caption span{font-size:11px}.canvas-top{gap:5px;padding-inline:10px;flex-wrap:nowrap}.canvas-top #save-state{max-width:45%;line-height:1.3;text-align:right}.floating-editor .prompt-suggestions button{min-height:44px}.floating-editor #assistant-panel #chat-input{font-size:16px}}
@media(prefers-reduced-motion:reduce){#assistant-panel .tab-selection,#assistant-panel [role=tabpanel]{animation:none!important;transition:none!important}#assistant-panel :is(.send,.prompt-suggestions button):active:not(:disabled){transform:none}}

/* Page presets: native top-layer popover, with automatic focus/escape behavior. */
.preview-toolbar .add-page{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;color:#124bea;background:#fff;border:1px solid #cbd9ef;min-height:44px;padding:10px 13px;border-radius:12px;font:600 13px Manrope,sans-serif}
.add-page svg,.page-presets svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
.page-presets{position:fixed;inset:100px auto auto 28px;margin:0;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 125px);overflow:auto;border:1px solid #cbd9ef;border-radius:20px;background:#fff;color:#112641;padding:22px;box-shadow:0 18px 60px #11264126;font-family:Manrope,sans-serif}
.page-presets:popover-open{animation:page-presets-enter .18s cubic-bezier(.16,1,.3,1)}
.page-presets-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.page-presets h2{font-size:21px;margin:0}.page-presets-heading button{display:grid;place-items:center;min-width:44px;min-height:44px;background:#f0f5ff;border:0;border-radius:10px;color:#112641;cursor:pointer}
.page-presets p{font-size:13px;line-height:1.6;color:#435777;margin:8px 0 18px}#page-preset-list{display:grid;gap:4px}#page-preset-list button{display:flex;align-items:center;text-align:left;gap:18px;justify-content:space-between;background:#fff;border:0;border-top:1px solid #e1e8f2;padding:16px 8px;cursor:pointer;font:inherit;color:inherit;border-radius:6px}#page-preset-list button:hover:not(:disabled){background:#eef4ff}#page-preset-list strong{display:block;font-size:15px;margin-bottom:4px}#page-preset-list button>span>span{display:block;font-size:12px;line-height:1.5;color:#435777}.preset-action{font-size:12px;font-weight:700;color:#124bea;white-space:nowrap}#page-preset-list button:disabled{cursor:default;background:#f6f8fc;color:#58677e}#page-preset-list button:disabled .preset-action{color:#58677e}.page-presets .page-presets-note{font-size:12px;margin:16px 0 0}.page-presets :focus-visible{outline:2px solid #124bea;outline-offset:3px}@keyframes page-presets-enter{from{opacity:.5;transform:translateY(-6px)}to{opacity:1;transform:none}}@media(max-width:700px){.page-presets{inset:85px auto auto 16px;padding:18px}.preview-toolbar .add-page{font-size:12px;padding:8px 10px}}@media(prefers-reduced-motion:reduce){.page-presets:popover-open{animation:none}}

#page-preset-list button:disabled{opacity:1}
@media(max-width:900px){.preview-toolbar .page-control{grid-row:1;grid-column:1}.preview-toolbar .add-page{grid-row:1;grid-column:2/4;justify-content:center}.preview-toolbar .template-control{grid-row:2;grid-column:1/3}.preview-toolbar .language-control{grid-row:2;grid-column:3}.preview-toolbar .view-controls,.preview-toolbar .grid-toggle,.preview-toolbar .history-controls{grid-row:3}}

.preview-toolbar .manage-site{font:600 12px Manrope,sans-serif;padding:10px;border:1px solid #cbd9ef;border-radius:10px;min-height:44px;background:#fff;color:#124bea;white-space:nowrap}
.site-builder{position:fixed;inset:88px 16px 16px auto;margin:0;width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 104px);overflow:auto;padding:22px;border:1px solid #cbd9ef;border-radius:20px;background:#fff;color:#112641;box-shadow:0 18px 60px #11264126;font:14px Manrope,sans-serif;scrollbar-color:#abbdd8 #f5f8ff;scrollbar-width:thin}
.site-builder:popover-open{animation:page-presets-enter .18s cubic-bezier(.16,1,.3,1)}.builder-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.builder-heading h2{font-size:20px;margin:0}.site-builder button{min-height:42px;padding:10px 12px;border:1px solid #cbd9ef;border-radius:9px;color:#124bea;background:#fff;font:600 12px Manrope,sans-serif;cursor:pointer}.site-builder button:hover:not(:disabled){background:#edf3ff}.site-builder button:disabled{opacity:.5;cursor:default}.builder-tabs{display:flex;gap:6px;margin:20px 0 16px;padding:4px;background:#f0f4fa;border-radius:12px}.builder-tabs button{flex:1;border-color:transparent;background:transparent;color:#435777}.builder-tabs button[aria-pressed=true]{background:#fff;color:#124bea;border-color:#cbd9ef}.builder-help{font-size:12px;line-height:1.65;color:#435777}.builder-page{border-top:1px solid #dce5f1;padding:18px 0}.builder-page>button{font-size:15px;color:#112641}.builder-page.is-current>button{color:#124bea;background:#edf3ff}.builder-field{display:grid;gap:6px;margin:14px 0;color:#435777;font-size:12px}.builder-field input,.builder-field textarea{width:100%;border:1px solid #b9cbe3;border-radius:8px;padding:10px;font:14px Manrope,sans-serif;color:#112641;background:white;min-height:42px;resize:vertical}.builder-check{display:flex;align-items:center;gap:8px;font-size:12px;min-height:36px}.builder-check input{accent-color:#124bea;width:18px;height:18px}.builder-actions{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.builder-item{border:1px solid #dce5f1;border-radius:10px;margin:16px 0;padding:12px}.builder-item legend{padding:0 6px;font-size:12px;color:#435777}.builder-block{padding:16px 0;border-top:1px solid #dce5f1}.builder-block>summary,.site-builder>div>details>summary{cursor:pointer;font-weight:650;min-height:40px;align-content:center}.builder-presets{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.builder-presets h3{width:100%;font-size:16px}.site-builder :focus-visible{outline:2px solid #124bea;outline-offset:3px}.site-builder input,.site-builder textarea{caret-color:#124bea}.site-builder ::selection{background:#dce8ff;color:#112641}@media(max-width:1100px){.preview-toolbar{flex-wrap:wrap}.preview-toolbar .manage-site{flex:1}}@media(max-width:900px){.preview-toolbar .manage-site{grid-row:4;grid-column:1/-1}.site-builder{inset:78px 12px 12px auto;width:calc(100vw - 24px);max-height:calc(100dvh - 90px);padding:18px}}@media(prefers-reduced-motion:reduce){.site-builder:popover-open{animation:none}}

/* Isolated effects audition: no edits are persisted until Apply. */
.effects-preview{width:min(1000px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #c5d4ed;border-radius:22px;color:#162d4a;background:#fff;box-shadow:0 24px 80px #162d4a40;overflow:auto;font-family:inherit}
.effects-preview::backdrop{background:#10264480}
.effects-preview header,.effects-preview footer{display:flex;align-items:center;gap:12px;padding:20px 24px}
.effects-preview header{justify-content:space-between;border-bottom:1px solid #dce5f2}.effects-preview h2{font-size:23px;margin:0 0 4px}.effects-preview header p{margin:0;color:#536782;font-size:14px;max-width:60ch;overflow-wrap:anywhere}
.effects-preview button,.effects-preview select{font:inherit;font-size:14px;min-height:44px;border:1px solid #c6d5eb;border-radius:10px;padding:10px 14px;background:#fff;color:#193455;cursor:pointer}.effects-preview button:hover{background:#edf3ff;border-color:#174dcd}.effects-preview :focus-visible{outline:3px solid #174dcd;outline-offset:3px}.effects-preview button:disabled{opacity:.5;cursor:default}
.effects-preview-body{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px;padding:24px}.effects-preview-stage{position:relative;height:350px;overflow:hidden;background:#f4f7fc;border:1px solid #dce5f2;border-radius:12px}.effects-preview-stage iframe{border:0;transform-origin:0 0;pointer-events:none;display:block;max-width:none!important}
.effects-preview-playback{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}.effects-preview [data-status]{font-size:13px;line-height:1.5;color:#536782;margin:12px 0 0;min-height:3em}
.effects-preview-controls label{font-size:13px;font-weight:650;display:block;margin-bottom:7px}.effects-preview-controls select{width:100%}.effects-preview-options{display:flex;flex-wrap:wrap;gap:7px;max-height:220px;overflow:auto;margin:14px 0 18px;padding:3px}.effects-preview-options button{font-size:13px;padding:8px 10px}.effects-preview-options button[aria-pressed=true]{background:#e9f0ff;border-color:#174dcd;color:#123fa9;box-shadow:inset 0 0 0 1px #174dcd}
.effects-preview [data-motion-settings]{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:center}.effects-preview [data-motion-settings] label{margin:0}.effects-preview [data-motion-settings][hidden],.effects-preview [hidden]{display:none}.effects-preview input[type=color]{display:block;width:100%;height:44px;border:1px solid #c6d5eb;border-radius:8px;background:#fff;margin-top:7px}
.effects-preview footer{border-top:1px solid #dce5f2;justify-content:flex-end;background:#f7faff}.effects-preview footer span{margin-right:auto;font-size:13px;color:#536782}.effects-preview [data-apply]{background:#174dcd;color:#fff;border-color:#174dcd}.effects-preview [data-apply]:hover{background:#123fa9}
@media(max-width:700px){.effects-preview{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:16px}.effects-preview header,.effects-preview footer{padding:14px}.effects-preview-body{grid-template-columns:1fr;padding:14px;gap:12px}.effects-preview-stage{height:230px}.effects-preview-options{max-height:130px;margin-bottom:12px}.effects-preview footer{position:sticky;bottom:0;flex-wrap:wrap}.effects-preview footer span{width:100%}.effects-preview h2{font-size:20px}.effects-preview [data-status]{min-height:0}}
@media(prefers-reduced-motion:no-preference){.effects-preview[open]{animation:effects-preview-enter 180ms cubic-bezier(.22,1,.36,1)}@keyframes effects-preview-enter{from{opacity:.5;translate:0 8px}to{opacity:1;translate:0 0}}}

.effects-preview-visual,.effects-preview-controls{min-width:0}.effects-preview{max-width:calc(100vw - 16px);overflow-x:hidden}
@media(max-width:700px){.effects-preview-body{grid-template-columns:minmax(0,1fr)}}

/* Linud shared finish: quiet canvas chrome and a single clear conversation. */
.editor-journey .site-workspace{border:1px solid #d3dfed;border-radius:18px;background:#edf2f8;box-shadow:0 10px 28px -24px #16345c55}
.editor-journey .preview-toolbar{gap:10px;padding-block:4px 16px}
.editor-journey .preview-toolbar :is(button,select){border-radius:10px;min-height:44px;font-size:13px}
.editor-journey .preview-toolbar :is(label,.page-control label,.template-control label){font-size:11px;font-weight:650;color:#4f6580;letter-spacing:.015em}
.editor-journey .canvas{border:1px solid #ccd9e9;border-radius:12px;box-shadow:0 4px 12px #19355608}
.editor-journey .canvas-top{background:#fff;border-bottom-color:#e2e9f1;min-height:42px}
.editor-journey .canvas-caption{color:#526780;font-size:12px;line-height:1.6}
.editor-journey .view-controls{border-radius:11px;background:#e3ebf6;padding:4px}
.editor-journey .view-controls button[aria-pressed=true]{color:#174dcd;background:white;box-shadow:0 1px 4px #1a33591a}
.editor-journey.floating-editor #assistant-panel{border:1px solid #c9d8eb;border-radius:18px;box-shadow:0 6px 12px -8px #142e5040,0 26px 70px -24px #142e5050}
.editor-journey.floating-editor .floating-tabs{background:#f6f9fd;border-bottom:1px solid #e0e8f1;padding:5px 10px;gap:6px}
.editor-journey.floating-editor .floating-tabs button{border-radius:8px;font-size:13px;min-height:38px}
.editor-journey.floating-editor .floating-tabs button[aria-selected=true]{background:#e8f0ff;color:#174dcd;box-shadow:none}
.editor-journey.floating-editor .composer-area{background:#f8fafd;padding:12px;border-top:1px solid #dde6f1}
.editor-journey.floating-editor #chat-form{border-color:#cad9ee;border-radius:13px;box-shadow:0 2px 4px #1a335908}
.editor-journey.floating-editor #chat-form:focus-within{border-color:#7e9edb;box-shadow:0 0 0 3px #174dcd0c}
.editor-journey.floating-editor .floating-bar button{min-height:40px}
.editor-journey .editor-help{background:transparent;border-color:#dce5ef;border-radius:10px;color:#526780}
.editor-journey .editor-help summary{min-height:36px;align-content:center}
@media(max-width:700px){.editor-journey .site-workspace{border-radius:12px}.editor-journey .preview-toolbar{gap:8px}.editor-journey .preview-toolbar :is(button,select){min-height:44px}.editor-journey.floating-editor #assistant-panel{border-radius:16px}}
/* Keep the phone toolbar to three rows so the editable site stays visible. */
@media(max-width:700px){
 .editor-journey .preview-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}
 .editor-journey .preview-toolbar .page-control{grid-row:1;grid-column:1/3}
 .editor-journey .preview-toolbar .template-control{grid-row:1;grid-column:3/5}
 .editor-journey .preview-toolbar .add-page{grid-row:2;grid-column:1/3;min-width:0;padding-inline:7px;font-size:12px}
 .editor-journey .preview-toolbar .manage-site{grid-row:2;grid-column:3/5;min-width:0;padding-inline:7px;font-size:12px}
 .editor-journey .preview-toolbar .view-controls{grid-row:3;grid-column:1/3;justify-self:start}
 .editor-journey .preview-toolbar .grid-toggle{grid-row:3;grid-column:3;min-width:0;padding-inline:6px;font-size:12px}
 .editor-journey .preview-toolbar .history-controls{grid-row:3;grid-column:4;gap:0}
 .editor-journey .preview-toolbar .history-controls button{width:36px;padding-inline:6px}
 .editor-journey .preview-toolbar :is(.page-control,.template-control) select{font-size:16px}
 .editor-journey .preview-toolbar:has(.language-control) .language-control{grid-row:4;grid-column:1/3}
}

/* Upper editor controls live in a compact dropdown. */
.editor-journey .app-header{position:relative;z-index:80;flex-shrink:0}
.editor-journey .header-actions .demo{display:none}
#editor-menu-toggle{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;color:#174dcd}
#editor-menu-toggle svg{display:block;width:18px;height:18px;transition:transform .18s ease}
#editor-menu-toggle[aria-expanded=true]{background:#edf3ff;border-color:#96afe0}
#editor-menu-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
.editor-controls-menu{position:absolute;z-index:79;top:var(--editor-header-bottom,76px);inset-inline:20px;background:#fff;border:1px solid #d6e1ef;border-radius:0 0 18px 18px;padding:20px;max-height:calc(100dvh - var(--editor-header-bottom,76px) - 24px);overflow:auto;overscroll-behavior:contain;box-shadow:0 18px 40px #15345c24;transform-origin:top}
.editor-controls-menu[hidden]{display:none}
.editor-controls-menu .preview-toolbar{margin:0;padding:0 0 16px;min-height:0;flex-wrap:wrap}
.editor-controls-menu #journey-overview{border-top:1px solid #e3eaf3;padding-top:12px}
.editor-controls-menu .journey-overview{margin:0;padding:8px 0}
.editor-controls-menu .editor-help{margin:12px 0 0;padding:0 12px;font-size:13px}
.journey-surface.editor-journey>.workspace{min-height:0;padding:10px 14px 14px}
.editor-journey .site-workspace{padding:0;border:0;background:transparent;box-shadow:none}
.editor-journey .canvas-caption{display:none}
@media(max-width:700px){
 .editor-controls-menu{inset-inline:8px;padding:14px;border-radius:0 0 14px 14px}
 .editor-journey .app-header .brand-mark{width:88px}
 .editor-journey .header-actions{gap:6px}
 .editor-journey .header-actions button{min-height:42px}
 .journey-surface.editor-journey>.workspace{padding:6px}
}
@media(prefers-reduced-motion:reduce){#editor-menu-toggle svg{transition:none}}

/* Floating controls stay reachable above the dropdown and below the app header. */
.floating-editor #assistant-panel{z-index:85}
.floating-editor .angelo-dock{z-index:84}
.floating-editor #assistant-panel[data-compact=true] .angelo-heading{display:none}
.floating-editor #assistant-panel[data-compact=true] .routing{display:none}
.floating-editor #assistant-panel[data-tight=true] .prompt-suggestions{display:none}
.floating-editor #assistant-panel[data-tight=true] #chat-form{padding:8px 10px 48px}
.floating-editor #assistant-panel[data-tight=true] #chat-input{height:36px;min-height:36px;max-height:48px}
.floating-editor #assistant-panel[data-tight=true] .composer-area{padding:6px 10px}

/* Upgrade stays over the current editor; the modal makes its canvas inert. */
.editor-upgrade{width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:28px;border:1px solid var(--line);border-radius:18px;color:var(--ink);background:var(--surface);overflow:auto}
.editor-upgrade::backdrop{background:#172c4570}.editor-upgrade h2{font-size:24px;line-height:1.25;margin-bottom:16px}.editor-upgrade p{margin:12px 0}.editor-upgrade .upgrade-price{font-size:28px;font-weight:700;color:var(--blue)}.upgrade-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.upgrade-primary{background:var(--blue);color:white;border-color:var(--blue)}.upgrade-primary:hover:not(:disabled){background:#103ca6;color:white}.upgrade-chat-link{width:100%;margin:8px 0;color:var(--blue)}.editor-upgrade iframe{width:100%;height:65dvh;border:1px solid var(--line);margin-top:20px;border-radius:10px}.editor-upgrade [role=alert]{color:#a11919}.editor-upgrade [hidden]{display:none}
@media(max-width:700px){#editor-upgrade-button{font-size:12px;padding:8px 10px;max-width:140px}.editor-upgrade{padding:20px}.upgrade-actions button{width:100%}}

.editor-upgrade.upgrade-checkout{width:min(960px,calc(100vw - 32px))}

/* Persistent essentials; advanced controls remain in Strumenti. */
.editor-quickbar{display:flex;align-items:center;gap:12px;flex-shrink:0;padding:8px 2px 12px;flex-wrap:wrap}
.editor-start-hint{flex:1 1 260px;color:var(--muted);font-size:13px;line-height:1.5}
.editor-quickbar .view-controls{display:flex;margin:0}
.editor-quickbar .view-controls span{display:inline}
.editor-quickbar .history-controls{display:flex;margin:0;gap:4px}
.editor-quickbar button{min-height:44px}
.editor-quickbar .history-controls button{width:44px;padding:10px}
.editor-quickbar #manage-site{font-size:13px;color:var(--blue)}
@media(max-width:700px){
 .editor-quickbar{gap:6px;padding:4px 2px 8px}
 .editor-start-hint{flex-basis:100%;font-size:12px}
 .editor-quickbar .view-controls span{display:none}
 .editor-quickbar .view-controls button{width:44px;padding:10px}
 .editor-quickbar #manage-site{margin-left:auto;font-size:12px;padding-inline:8px}
}

@media(max-width:900px){
 .editor-controls-menu .preview-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .editor-controls-menu .preview-toolbar .page-control{grid-area:1/1}
 .editor-controls-menu .preview-toolbar .template-control{grid-area:1/2}
 .editor-controls-menu .preview-toolbar .add-page{grid-area:2/1}
 .editor-controls-menu .preview-toolbar .grid-toggle{grid-area:2/2;justify-self:start}
 .editor-controls-menu .preview-toolbar .language-control{grid-area:3/1/4/3}
 .editor-controls-menu .preview-toolbar :is(.page-control,.template-control){min-width:0}
 .editor-controls-menu .preview-toolbar select{width:100%;min-width:0}
}

/* The assisted contact is a link with the same hit area as dialog actions. */
.editor-upgrade .upgrade-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:10px 16px;border:1px solid var(--blue);border-radius:10px;font:inherit;font-size:13px;font-weight:600;text-decoration:none}
.editor-upgrade .upgrade-actions a:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
@media(max-width:700px){.editor-upgrade .upgrade-actions a{width:100%}}
