/* AI Razum editor. Shared blue/black tokens; reference geometry and density.
   Preview documents keep their own styles. */
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url('/assets/fonts/inter/inter-cyrillic-variable.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url('/assets/fonts/inter/inter-latin-variable.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
body.file-workspace-mode{overflow:hidden}
body.file-workspace-mode>#main-content,body.file-workspace-mode>header,body.file-workspace-mode>footer,body.file-workspace-mode>.skip-link{display:none!important}
.workspace-shell[hidden],.workspace-shell [hidden]{display:none!important}
.workspace-shell{--ws-chat-width:min(450px,52vw);--ws-header-height:50px;--ws-line:var(--razum-border,#303036);--ws-muted:var(--razum-muted,#b8b8c1);--ws-ink:var(--razum-text,#f7f7f8);--ws-surface:var(--razum-bg,#101012);display:flex;flex-direction:column;position:relative;width:100%;height:100dvh;max-width:none;margin:0;border:0;border-radius:0;overflow:hidden;background:var(--ws-surface);color:var(--ws-ink);font:400 14px/24px Inter,Arial,sans-serif;font-feature-settings:'cv01','ss03'}
.workspace-shell *{box-sizing:border-box}
.workspace-shell{--razum-bg:#171619;--razum-surface:#1e1d20;--razum-raised:#1f1e21;--razum-sunken:#111013;--razum-border:#2c2b30;--ws-muted:#a5a4ab}
.workspace-shell :is(button,input,textarea,select){font-family:inherit}
.workspace-shell :is(button,input,textarea,select,summary,a):focus-visible{outline:2px solid var(--razum-focus,#79bcff);outline-offset:3px}
.workspace-shell :is(input,textarea)::placeholder{color:var(--ws-muted);opacity:1}
.workspace-shell :is(button,summary){min-height:32px;cursor:pointer}
.workspace-shell button:disabled{cursor:not-allowed;opacity:.48}
.workspace-shell h1,.workspace-shell h2,.workspace-shell h3,.workspace-shell p{margin:0}
.workspace-shell svg{display:block;flex:none;width:16px;height:16px}
.workspace-visually-hidden,.workspace-selection-status,.workspace-execution-announcement,.workspace-shell #workspace-ai-hint,.workspace-shell #workspace-composer-label,.workspace-shell .workspace-chat-heading,.workspace-shell #workspace-chat-title,.workspace-shell .workspace-preview-toolbar,.workspace-shell #workspace-feedback{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.workspace-shell #workspace-feedback[data-error=true]:not(:empty){z-index:35;top:58px;left:16px;width:calc(var(--ws-chat-width) - 32px);height:auto;max-height:160px;margin:0;padding:10px 12px;clip-path:none;white-space:normal;overflow:auto;border:1px solid #b97c77;border-radius:8px;background:var(--razum-raised,#222225);color:#ffbdb8;font-size:13px;line-height:20px;box-shadow:0 6px 24px #0005}
.workspace-skip-link{position:absolute;left:12px;top:-100px;z-index:80;padding:8px 14px;background:var(--razum-action,#0874dd);color:#fff;border-radius:5px}
.workspace-skip-link:focus{top:8px}

/* One row, aligned with chat and preview. */
.workspace-shell .application-heading{display:grid;grid-template-columns:var(--ws-chat-width) minmax(0,1fr);align-items:center;gap:0;flex:none;height:var(--ws-header-height);min-height:var(--ws-header-height);padding:0;border:0;background:var(--ws-surface)}
.workspace-header-project,.workspace-header-preview{display:flex;align-items:center;min-width:0;height:100%;gap:8px}
.workspace-header-project{padding:0 14px 0 16px}.workspace-header-preview{padding:0 14px 0 0;gap:10px}
.workspace-shell .application-heading :is(button,summary){display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:30px;padding:5px 7px;border-radius:6px;background:transparent;color:var(--ws-muted);font-size:12px;line-height:20px;white-space:nowrap}
.workspace-shell .application-heading :is(button,summary):hover:not(:disabled){background:var(--razum-raised,#222225);color:var(--ws-ink)}
.workspace-shell #workspace-dashboard{min-width:24px;padding:2px;color:var(--ws-ink);font-size:22px;font-weight:700;line-height:24px}
.workspace-shell #workspace-dashboard .workspace-brand-mark{display:inline;font-size:23px;font-weight:800;font-style:italic}
.workspace-shell #workspace-dashboard .workspace-control-label{display:none}
.workspace-header-slash{color:var(--razum-control-border,#73737f);font-size:17px}
.workspace-shell .application-heading .workspace-account-avatar{display:grid;place-items:center;flex:none;width:23px;height:23px;min-height:23px;padding:0;border-radius:50%;background:var(--razum-selection,#142944);color:var(--razum-accent-text,#91c1ff);font-size:11px;line-height:1}
.workspace-shell .workspace-project-heading{flex:1;min-width:0}
.workspace-shell h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:20px;font-weight:600}
.workspace-shell #workspace-chat-expand{flex:none;min-width:28px;padding:4px;font-size:0}
.workspace-shell #workspace-chat-expand svg{width:17px;height:17px}
.workspace-header-preview>[role=tablist]{display:flex;flex:none;align-items:center;flex-wrap:nowrap;gap:0;padding:3px;border:1px solid var(--ws-line);border-radius:18px;background:var(--razum-sunken,#0b0b0d)}
.workspace-shell .workspace-header-preview [role=tab]{min-width:28px;min-height:26px;padding:3px 7px;border-radius:14px;font-size:0;line-height:20px}
.workspace-shell .workspace-header-preview [role=tab][aria-selected=true]{gap:6px;background:var(--razum-selection,#142944);color:var(--razum-accent-text,#91c1ff);font-size:12px}
.workspace-shell .workspace-header-preview [role=tab] svg{width:15px;height:15px}
.workspace-preview-address{display:flex;align-items:center;gap:3px;position:relative;flex:1;min-width:70px;max-width:400px;height:32px;margin:auto;padding:0 6px 0 12px;border:1px solid var(--ws-line);border-radius:17px;background:var(--razum-sunken,#0b0b0d);color:var(--ws-muted);font-size:12px;line-height:20px}
.workspace-preview-path{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.workspace-shell .workspace-preview-address :is(button,summary){min-width:25px;min-height:26px;padding:3px;border-radius:50%;font-size:0}
.workspace-device-menu{position:relative}.workspace-device-menu>summary{list-style:none}.workspace-device-menu>summary::-webkit-details-marker{display:none}
.workspace-device-menu>[role=group]{position:absolute;right:0;top:calc(100% + 8px);z-index:50;display:flex;gap:5px;min-width:180px;padding:8px;border:1px solid var(--razum-control-border,#73737f);border-radius:8px;background:var(--razum-raised,#222225);box-shadow:0 8px 30px #0006}
.workspace-shell .workspace-preview-address [data-workspace-device]{min-height:32px;padding:5px 7px;border-radius:5px;font-size:12px}
.workspace-shell .workspace-preview-address [data-workspace-device][aria-pressed=true]{background:var(--razum-selection,#142944);color:var(--razum-accent-text,#91c1ff)}
.workspace-header-actions{display:flex;align-items:center;flex:none;gap:7px}
.workspace-shell .workspace-header-actions #workspace-export{background:transparent;color:var(--ws-muted);padding:5px}
.workspace-shell .workspace-header-actions #workspace-account-open{background:#f7f7f8;color:#18181b;padding:5px 12px;font-size:13px}
.workspace-shell .workspace-header-actions #workspace-account-open:hover{background:#e6e6eb}
.workspace-shell .workspace-header-actions #workspace-share{border:1px solid var(--ws-line);padding:5px 12px;color:var(--ws-ink);font-size:13px}
.workspace-shell .workspace-header-actions #workspace-publish{background:var(--razum-action,#0874dd);color:#fff;padding:5px 12px;font-size:13px}
.workspace-shell .workspace-header-actions #workspace-publish:hover{background:var(--razum-action-hover,#086cca)}
.workspace-shell .workspace-header-actions #workspace-save:disabled{display:none}
.workspace-conversations{position:relative;flex:none}.workspace-conversations>summary{list-style:none}.workspace-conversations>summary::-webkit-details-marker{display:none}
.workspace-conversations-list{position:absolute;top:calc(100% + 8px);right:0;width:300px;max-width:calc(100vw - 24px);max-height:60dvh;overflow:auto;z-index:30;padding:12px;border:1px solid var(--ws-line);border-radius:8px;background:var(--razum-surface,#18181b);box-shadow:0 8px 24px #0005;font-size:12px}
.workspace-shell .workspace-conversations-list>button{display:block;white-space:normal;width:100%;text-align:left;padding:9px 6px;font-size:12px;line-height:18px}
.workspace-shell .workspace-header-preview [role=tab][aria-selected=true]:hover{background:var(--razum-selection,#142944);color:var(--razum-accent-text,#91c1ff)}
.workspace-shell .workspace-project-dialog{width:min(500px,calc(100vw - 24px));max-height:calc(100dvh - 32px);margin:auto;padding:24px;border:1px solid var(--ws-line);border-radius:12px;background:var(--ws-surface);color:var(--ws-ink);box-shadow:0 18px 70px #0008;overflow:auto;font-size:14px;line-height:22px}
.workspace-project-dialog::backdrop{background:#0009;backdrop-filter:none}
.workspace-project-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.workspace-shell .workspace-project-dialog h2{font-size:20px;line-height:28px;font-weight:600}
.workspace-shell .workspace-project-dialog p{margin:12px 0;color:var(--ws-muted);line-height:22px}
.workspace-shell .workspace-project-dialog label{display:block;margin:16px 0 6px;color:var(--ws-ink);font-size:12px}
.workspace-shell .workspace-project-dialog input{display:block;width:100%;min-height:40px;padding:9px 12px;border:1px solid var(--razum-control-border,#73737f);border-radius:7px;background:var(--razum-sunken,#0b0b0d);color:var(--ws-ink);font-size:13px}
.workspace-shell .workspace-project-dialog button{min-height:36px;padding:7px 12px;border:1px solid var(--ws-line);border-radius:6px;background:var(--razum-raised,#222225);color:var(--ws-ink);font-size:13px;line-height:20px}
.workspace-shell .workspace-project-dialog .workspace-project-dialog-close{display:grid;place-items:center;flex:none;width:32px;height:32px;min-height:32px;padding:0;background:transparent;border:0;font-size:23px}
.workspace-project-dialog-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.workspace-publication-form{margin-top:20px;padding-top:16px;border-top:1px solid var(--ws-line)}
.workspace-shell .workspace-publication-form #workspace-publication-launch{margin-top:14px;width:100%;background:var(--razum-action,#0874dd);color:#fff}
.workspace-shell .workspace-publication-form button:disabled{opacity:.55;cursor:not-allowed}
.workspace-shell .workspace-project-publication-link{display:inline-block;max-width:100%;overflow-wrap:anywhere;color:var(--razum-accent-text,#91c1ff);text-decoration:underline;text-underline-offset:3px}
.workspace-shell .workspace-project-dialog #workspace-share-copy{background:var(--razum-action,#0874dd);color:#fff}
.workspace-shell .workspace-project-dialog .workspace-project-dialog-status{font-size:12px;color:var(--razum-accent-text,#91c1ff)}
.workspace-project-publication-state{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px 12px;margin:16px 0;padding:12px;border:1px solid var(--ws-line);border-radius:7px;font-size:12px;line-height:18px}.workspace-project-publication-state dt{color:var(--ws-muted)}.workspace-project-publication-state dd{margin:0;color:var(--ws-ink)}
.workspace-shell .workspace-project-dialog .workspace-project-dialog-project{font-weight:600;color:var(--ws-ink)}
.workspace-shell .workspace-project-dialog .workspace-project-local-note{font-size:12px;line-height:18px}
@media(min-width:1101px){.workspace-shell .workspace-header-actions :is(#workspace-share,#workspace-publish)>svg{display:none}}
@media(max-width:1100px){.workspace-shell .workspace-header-actions #workspace-account-open{display:none}.workspace-shell .workspace-header-actions :is(#workspace-share,#workspace-publish){min-width:30px;padding:5px 7px}.workspace-shell .workspace-header-actions :is(#workspace-share,#workspace-publish)>span{display:none}.workspace-header-actions{gap:4px}}
@media(max-width:1100px){.workspace-shell .workspace-header-preview [role=tab][aria-selected=true] .workspace-control-label{max-width:85px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
.workspace-project-menu,.workspace-shell .workspace-history{position:relative;flex:none;font-size:12px;color:var(--ws-muted)}
.workspace-project-menu>summary,.workspace-shell .workspace-history>summary{list-style:none;min-width:28px}
.workspace-project-menu>summary::-webkit-details-marker,.workspace-shell .workspace-history>summary::-webkit-details-marker{display:none}
.workspace-project-menu>div,.workspace-shell .workspace-history-content{position:absolute;right:0;top:calc(100% + 8px);z-index:50;width:280px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 74px);overflow:auto;padding:14px;border:1px solid var(--razum-control-border,#73737f);border-radius:8px;background:var(--razum-raised,#222225);box-shadow:0 12px 32px #0006}
.workspace-shell .workspace-history-content>label{display:block;margin-bottom:7px;color:var(--ws-ink);font-size:12px}
.workspace-shell .workspace-history-content .text-button,.workspace-shell .workspace-project-menu>div>button{display:flex;justify-content:flex-start;width:100%;min-height:36px;padding:7px 5px;white-space:normal;text-align:left;font-size:13px}
.workspace-shell #workspace-state{font-size:12px;color:var(--ws-muted);line-height:20px;margin-bottom:8px}

/* Preview begins directly beneath the 50px header. */
.workspace-shell .application-grid{display:grid;grid-template-columns:var(--ws-chat-width) minmax(0,1fr);flex:1;min-height:0;overflow:hidden;gap:0}
.workspace-shell .application-chat{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative;gap:0;padding:0;border:0;overflow:hidden;background:var(--ws-surface)}
.workspace-shell .application-main{display:flex;flex-direction:column;position:relative;min-width:0;min-height:0;margin:0 14px 14px 0;border:1px solid var(--ws-line);border-radius:12px;overflow:hidden;background:var(--razum-sunken,#0b0b0d)}
.workspace-shell .application-toolbar{display:none}
.workspace-shell .application-preview{display:flex;flex:1;flex-direction:column;position:relative;width:100%;height:100%;min-height:0;padding:0;overflow:hidden;background:var(--razum-sunken,#0b0b0d)}
.workspace-shell #workspace-runtime-host{display:flex;justify-content:center;flex:1;width:100%;height:100%;min-height:0;max-width:100%;margin:0 auto;overflow:hidden}
.workspace-shell #workspace-runtime-host[data-device=mobile]{max-width:390px;border-inline:1px solid var(--ws-line)}
.workspace-shell #workspace-runtime-host iframe{display:block;flex:1;width:100%;height:100%;min-width:0;min-height:0;border:0;border-radius:0;background:#fff}
.workspace-shell #workspace-runtime-empty{align-self:center;max-width:480px;margin:auto;padding:28px;font-size:14px;line-height:24px;color:var(--ws-muted);text-align:center}
.workspace-shell .workspace-runtime-status{font-size:12px;color:var(--ws-muted)}
.workspace-shell #workspace-repair-runtime{margin:0 0 12px 8px;border:1px solid var(--razum-control-border,#73737f);border-radius:7px;padding:7px 11px;background:var(--razum-selection,#142944);color:var(--ws-ink)}

/* Conversation typography: plain wordmark, 14px body and compact bubbles. */
.workspace-conversation{position:relative;flex:1;min-height:0;overflow:hidden}
.workspace-shell #workspace-chat-log{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:var(--razum-control-border,#73737f) transparent;padding:14px 20px 8px;scroll-padding:18px;overflow-anchor:none}
.workspace-shell #workspace-chat-log::-webkit-scrollbar{width:8px;height:8px}
.workspace-shell #workspace-chat-log::-webkit-scrollbar-track{background:transparent}
.workspace-shell #workspace-chat-log::-webkit-scrollbar-thumb{border-radius:8px;background:var(--razum-control-border,#73737f)}
.workspace-shell #workspace-chat-empty{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;max-width:500px;margin:auto;padding:24px}
.workspace-empty-star,.workspace-chat-avatar{display:none}
.workspace-shell #workspace-chat-empty h3{font-size:24px;line-height:30px;font-weight:600;margin:0 0 12px}
.workspace-shell #workspace-chat-empty p{font-size:14px;line-height:24px;color:var(--ws-muted)}
.workspace-start-prompts{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.workspace-start-prompts button{padding:7px 10px;border:1px solid var(--razum-control-border,#73737f);border-radius:7px;color:var(--ws-muted);background:var(--razum-surface,#18181b);font-size:12px;line-height:20px}
.workspace-shell .workspace-job{margin:0 0 24px;padding:0;min-width:0;border:0;border-radius:0;background:transparent;font-size:14px;line-height:24px;white-space:normal;overflow-wrap:anywhere}
.workspace-shell .workspace-message{min-width:0;margin:0 0 20px}
.workspace-shell .workspace-message-user{width:fit-content;max-width:100%;margin:0 0 24px auto;padding:9px 12px;border-radius:8px;background:var(--razum-raised,#222225);color:var(--ws-ink)}
.workspace-shell .workspace-message-user>p{white-space:pre-wrap;font-size:14px;line-height:24px}
.workspace-message-author{display:flex;align-items:center;margin-bottom:12px;color:var(--ws-ink);font-size:15px;font-weight:700;line-height:22px;letter-spacing:-.2px}
.workspace-shell .workspace-markdown{color:var(--ws-ink);font-size:14px;line-height:24px}
.workspace-shell .workspace-markdown p{white-space:pre-wrap;margin:0 0 14px}.workspace-shell .workspace-markdown p:last-child{margin-bottom:0}
.workspace-shell .workspace-markdown strong{display:inline;margin:0;color:inherit;font-size:inherit;font-weight:600}
.workspace-shell .workspace-markdown h3{margin:20px 0 10px;font-size:16px;line-height:24px;font-weight:600}
.workspace-shell .workspace-markdown ul,.workspace-shell .workspace-markdown ol{margin:8px 0 16px;padding-left:20px}.workspace-shell .workspace-markdown li{margin:7px 0}
.workspace-shell .workspace-markdown a{color:var(--razum-accent-text,#91c1ff);text-decoration:underline;text-underline-offset:3px}
.workspace-shell .workspace-markdown code{font:12px/20px Consolas,monospace;padding:2px 4px;background:var(--razum-raised,#222225);border-radius:3px}
.workspace-shell .workspace-markdown pre{margin:14px 0;padding:12px;overflow:auto;border:1px solid var(--ws-line);border-radius:7px;background:var(--razum-sunken,#0b0b0d);white-space:pre}.workspace-shell .workspace-markdown pre code{padding:0;background:none}
.workspace-shell .workspace-markdown blockquote{margin:14px 0;padding:4px 12px;border-left:2px solid var(--razum-blue,#1688ff);color:var(--ws-muted)}
.workspace-shell .workspace-commentary{margin:0 0 14px}.workspace-shell .workspace-commentary:last-child{margin-bottom:0}
.workspace-shell .workspace-response-status,.workspace-shell .workspace-response-stage{margin:8px 0;color:var(--ws-muted);font-size:12px;line-height:20px}
.workspace-shell .workspace-message-assistant:has(.workspace-execution):has(>.workspace-response-status:is([data-status=queued],[data-status=running],[data-status=waiting_input]))>.workspace-response-status,.workspace-shell .workspace-message-assistant:has(.workspace-execution):has(>.workspace-response-status:is([data-status=queued],[data-status=running]))>.workspace-response-stage{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.workspace-response-status[data-status=running]::before,.workspace-response-status[data-status=queued]::before{content:'';display:inline-block;width:8px;height:8px;border:1px solid var(--razum-focus,#79bcff);border-radius:50%;margin-right:7px}
.workspace-shell .workspace-response-error{margin:12px 0;color:#ffbdb8;white-space:pre-wrap;line-height:24px}
.workspace-shell .workspace-recovery-details{margin:12px 0;color:var(--ws-muted);font-size:12px;overflow-wrap:anywhere}
.workspace-shell .workspace-recovery-details>summary{cursor:pointer;padding:8px 0;min-height:36px}
.workspace-shell .workspace-composer-mode-hint{margin:8px 12px 0;color:var(--ws-muted);font-size:12px;line-height:18px}
.workspace-shell .workspace-starter-notice{flex:none;margin:0;padding:10px 14px;color:var(--ws-ink);background:var(--razum-raised,#222225);border-bottom:1px solid var(--ws-line);font-size:13px;line-height:20px}
.workspace-shell .workspace-starter-notice[hidden]{display:none}
.workspace-shell .workspace-response-copy{margin:9px 0 0 -5px;padding:4px 5px;min-height:28px;border-radius:5px;background:transparent;color:var(--ws-muted);font-size:12px}
.workspace-shell .workspace-response-copy:hover{background:var(--razum-raised,#222225);color:var(--ws-ink)}
.workspace-message-actions{display:flex;align-items:center;gap:4px;margin:12px 0 18px}.workspace-shell .workspace-message-actions :is(button,summary){display:grid;place-items:center;min-width:26px;min-height:28px;margin:0;padding:5px;border:0;border-radius:5px;background:transparent;color:var(--ws-muted);cursor:pointer}
.workspace-shell .workspace-message-actions :is(button,summary):hover,.workspace-shell .workspace-message-actions button[aria-pressed=true]{background:var(--razum-selection,#142944);color:var(--razum-accent-text,#91c1ff)}
.workspace-message-actions svg{width:15px;height:15px}.workspace-response-rating[data-rating=negative] svg{transform:rotate(180deg)}
.workspace-message-menu{position:relative}.workspace-message-menu>summary{list-style:none}.workspace-message-menu>summary::-webkit-details-marker{display:none}
.workspace-message-menu>div{position:absolute;bottom:calc(100% + 6px);left:0;width:160px;padding:6px;z-index:6;border:1px solid var(--ws-line);border-radius:8px;background:var(--razum-raised,#222225);box-shadow:0 8px 24px #0005}
.workspace-shell .workspace-message-menu>div>button{width:100%;font-size:12px}
.workspace-shell #workspace-chat-bottom{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);z-index:2;min-height:32px;padding:4px 11px;border:1px solid var(--razum-control-border,#73737f);border-radius:18px;background:var(--razum-raised,#222225);color:var(--ws-ink);font-size:12px;box-shadow:0 4px 14px #0005}

/* One fixed composer surface with no separate footer/help strip. */
.workspace-shell #workspace-ai-form{display:flex;flex-direction:column;flex:none;min-height:136px;margin:8px 16px 14px;padding:0;border:1px solid var(--ws-line);border-radius:9px;background:var(--razum-surface,#18181b);overflow:visible;position:relative}
.workspace-shell #workspace-ai-form:focus-within{border-color:var(--razum-focus,#79bcff);box-shadow:0 0 0 1px var(--razum-focus,#79bcff)}
.workspace-shell #workspace-ai-form label{display:block;margin:0;color:var(--ws-muted);font-size:11px;line-height:16px}
.workspace-shell #workspace-ai-prompt{display:block;width:100%;resize:none;flex:1;min-height:84px;max-height:160px;height:84px;padding:18px 18px 10px;border:0;border-radius:9px;background:transparent;color:var(--ws-ink);font:400 14px/22px Inter,Arial,sans-serif;outline-offset:-3px}
.workspace-shell #workspace-ai-form:focus-within #workspace-ai-prompt:focus-visible{outline:none!important}
.workspace-site-library-row{display:flex;flex:none;align-items:center;padding:4px 12px 0}
.workspace-site-library-row button{min-height:36px;padding:6px 0;font-size:12px;color:var(--razum-accent-text,#91c1ff)}
.workspace-composer-actions{display:flex;align-items:center;flex:none;justify-content:flex-start;flex-wrap:wrap;gap:5px;min-height:49px;padding:6px 10px 8px}
.workspace-composer-send{display:flex;align-items:center;flex:none;gap:5px;margin-left:auto}
.workspace-shell .workspace-composer-actions button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;padding:4px 6px;border-radius:16px;background:transparent;color:var(--ws-muted);font-size:12px;line-height:20px;white-space:nowrap}
.workspace-shell .workspace-composer-actions button:hover:not(:disabled){background:var(--razum-raised,#222225);color:var(--ws-ink)}
.workspace-shell #workspace-mode-toggle{gap:3px;padding:4px 5px;font-size:12px}
.workspace-shell #workspace-mode-toggle>span{margin-left:2px}
.workspace-shell #workspace-mode-toggle[aria-pressed=true]{background:var(--razum-selection,#142944);color:var(--razum-accent-text,#91c1ff)}
.workspace-shell #workspace-annotate .workspace-control-label{display:none}
.workspace-agent-menu{position:relative;flex:none;font-size:12px;line-height:20px}
.workspace-shell .workspace-agent-trigger{display:flex;align-items:center;gap:3px;min-height:30px;padding:4px 5px;list-style:none;border-radius:6px;cursor:pointer;color:var(--ws-muted);font-size:12px;white-space:nowrap}
.workspace-agent-trigger::-webkit-details-marker{display:none}.workspace-agent-trigger svg{width:12px;height:12px}
.workspace-agent-menu[open]>.workspace-agent-trigger{background:var(--razum-raised,#222225);color:var(--ws-ink)}
.workspace-agent-popover{position:absolute;bottom:calc(100% + 10px);left:-4px;z-index:30;width:250px;max-width:calc(100vw - 32px);padding:8px;border:1px solid var(--ws-line);border-radius:8px;background:var(--razum-surface,#18181b);box-shadow:0 8px 24px #0005;color:var(--ws-ink);font-size:12px;line-height:18px}
.workspace-shell .workspace-agent-heading{padding:0 2px 8px;color:var(--ws-muted);font-size:12px;font-weight:600}
.workspace-agent-option{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:5px;background:var(--razum-raised,#222225)}
.workspace-agent-dot{width:8px;height:8px;flex:none;border-radius:50%;background:#47c1ff}.workspace-agent-badge{margin-left:auto;padding:1px 5px;border-radius:10px;background:var(--razum-selection,#142944);color:var(--razum-accent-text,#91c1ff);font-size:9px;text-transform:uppercase}
.workspace-shell .workspace-agent-model-name{padding:9px 8px 4px;color:var(--ws-ink);font-size:12px}.workspace-shell .workspace-agent-description,.workspace-shell .workspace-agent-unavailable{padding:4px 8px;color:var(--ws-muted);font-size:11px;line-height:16px}
.workspace-shell .workspace-agent-unavailable{border-top:1px solid var(--ws-line);margin-top:7px;padding-top:8px}
.workspace-shell .workspace-voice-status{margin:0;padding:7px 12px;border-top:1px solid var(--ws-line);color:var(--razum-accent-text,#91c1ff);font-size:11px;line-height:16px}.workspace-shell .workspace-voice-status:empty{display:none}.workspace-shell .workspace-voice-status[data-error=true]{color:#ffbdb8}
.workspace-shell #workspace-mic{width:28px;padding:5px}.workspace-shell #workspace-mic[data-listening=true]{background:var(--razum-selection,#142944);color:var(--razum-accent-text,#91c1ff)}
.workspace-shell #workspace-ai-submit{display:grid;place-items:center;width:30px;height:30px;min-height:30px;padding:0;border-radius:50%;background:var(--razum-action,#0874dd);color:#fff;font-size:20px;line-height:1}
.workspace-shell #workspace-ai-submit:hover:not(:disabled){background:var(--razum-action-hover,#086cca)}
.workspace-shell #workspace-ai-cancel{gap:5px;min-height:30px;padding:4px 7px;background:var(--razum-raised,#222225);color:var(--ws-ink);font-size:11px}
.workspace-shell #workspace-ai-cancel>span{font-size:9px}
.workspace-composer-actions .workspace-preview-selection{display:flex;align-items:center;gap:1px}
.workspace-shell .workspace-composer-actions .workspace-preview-selection button[aria-pressed=true]{background:var(--razum-selection,#142944);color:var(--razum-accent-text,#91c1ff)}
.workspace-shell .workspace-composer-add{display:grid;place-items:center;flex:none;width:30px;height:30px;min-width:30px;padding:3px;border:1px solid var(--ws-line);border-radius:50%}
.workspace-shell #workspace-composer-question{flex:none;margin:0;padding:10px 14px;border-bottom:1px solid var(--ws-line);color:var(--razum-accent-text,#91c1ff);font-size:12px;line-height:18px;max-height:72px;overflow:auto}
.workspace-shell #workspace-selection-chip{display:flex;align-items:center;flex:none;gap:8px;min-height:48px;margin:0;padding:8px 10px;border:0;border-bottom:1px solid var(--ws-line);background:var(--razum-raised,#222225);color:var(--ws-ink);font-size:12px;line-height:18px}
.workspace-shell #workspace-selection-label{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.workspace-shell .workspace-selection-type{flex:none;padding:1px 5px;border-radius:4px;background:#163044;color:#85c7ff;font:11px/18px Consolas,monospace}
.workspace-shell #workspace-selection-chip #workspace-selection-clear{flex:none;width:auto;min-width:24px;padding:2px 3px;color:#85c7ff;font-size:12px}
.workspace-shell #workspace-selection-help{display:grid;place-items:center;flex:none;width:24px;min-width:24px;height:28px;min-height:28px;padding:0;border:0;border-radius:4px;background:transparent;color:var(--ws-muted);font-size:0}
.workspace-shell #workspace-selection-help::before{content:'?';display:grid;place-items:center;width:13px;height:13px;border:1px solid currentColor;border-radius:50%;font-size:10px;line-height:1}
.workspace-shell #workspace-selection-help:hover{background:#ffffff0b;color:var(--ws-ink)}
.workspace-shell #workspace-selection-clear{flex:none;min-width:28px;min-height:28px;padding:2px 6px;background:transparent;color:var(--ws-muted);font-size:19px}
.workspace-shell #workspace-annotation-hint{flex:none;max-height:90px;margin:0;padding:8px 12px;overflow:auto;border-top:1px solid var(--ws-line);background:var(--razum-raised,#222225);color:var(--ws-muted);font-size:11px;line-height:17px}
.workspace-shell .workspace-selection-tutorial{position:relative;flex:none;overflow:hidden;margin:0 16px 8px;padding:0;border:1px solid var(--ws-line);border-radius:16px;background:var(--razum-bg);color:var(--ws-ink);font-size:12px;line-height:17px}
.workspace-guide-header{position:absolute;z-index:1;top:8px;right:8px}
.workspace-shell #workspace-selection-help-close{display:grid;place-items:center;flex:none;width:28px;height:28px;min-height:28px;padding:0;border:1px solid #b4bbc4;border-radius:50%;background:transparent;color:#e1e6eb;font-size:21px;line-height:1}
.workspace-guide-illustration{display:grid;place-items:center;height:234px;background:linear-gradient(135deg,#1d3d5c,#1c2027);overflow:hidden}
.workspace-guide-canvas{position:relative;width:218px;height:130px;border:1px solid #ffffff16;border-radius:7px;background:#151b2470;box-shadow:0 15px 30px #0002;transform:perspective(500px) rotateY(-6deg);opacity:.65}
.workspace-guide-window-bar{display:flex;gap:4px;height:20px;padding:8px;border-bottom:1px solid #ffffff12}.workspace-guide-window-bar span{width:4px;height:4px;border-radius:50%;background:#698099}
.workspace-guide-lines{display:grid;gap:7px;padding:20px 16px}.workspace-guide-lines span{height:4px;width:64%;border-radius:3px;background:#9bb2c93b}.workspace-guide-lines span:nth-child(2){width:85%}.workspace-guide-lines span:nth-child(3){width:75%}
.workspace-guide-selection{position:absolute;top:39px;left:12px;right:12px;height:23px;border:1px solid #249dff;background:#2089d21c}.workspace-guide-selection-label{position:absolute;left:-1px;bottom:100%;padding:0 4px;background:#168cff;color:#fff;font-size:8px;line-height:14px}.workspace-guide-selection-line{display:block;width:62%;height:4px;margin:8px;background:#c7e3ff88}
.workspace-guide-cursor{position:absolute;top:54px;right:49px;width:14px;height:20px;clip-path:polygon(0 0,100% 70%,55% 70%,40% 100%);background:#e0edff;transform:rotate(-14deg)}
.workspace-guide-toolbar{position:absolute;display:flex;align-items:center;gap:10px;top:69px;left:16px;padding:7px 10px;border:1px solid #ffffff1a;border-radius:18px;background:#202125;box-shadow:0 7px 14px #0003;color:#dce7f0;font-size:10px}
.workspace-guide-toolbar span:nth-child(4){font-weight:700;color:#75bbff}.workspace-guide-change{position:absolute;display:flex;align-items:center;gap:5px;bottom:10px;right:-16px;padding:6px 10px;border-radius:14px;background:#0874dd;color:#fff;font-size:9px;box-shadow:0 6px 12px #0002}
.workspace-guide-illustration[data-illustration=select] :is(.workspace-guide-toolbar,.workspace-guide-change){visibility:hidden}
.workspace-guide-illustration[data-illustration=edit] .workspace-guide-change{visibility:hidden}
.workspace-guide-illustration[data-illustration=apply] .workspace-guide-cursor{top:100px;right:6px}
.workspace-shell .workspace-guide-title{margin:12px 12px 2px;color:var(--ws-ink);font-size:14px;font-weight:600;line-height:20px}
.workspace-shell .workspace-guide-copy{min-height:32px;margin:0 12px;color:var(--ws-muted);font-size:12px;line-height:16px}
.workspace-guide-footer{display:flex;align-items:center;justify-content:space-between;padding:8px 12px}
.workspace-guide-nav,.workspace-guide-dots{display:flex;align-items:center;gap:2px}
.workspace-shell .workspace-guide-arrow,.workspace-shell .workspace-guide-dot{display:grid;place-items:center;width:24px;height:24px;min-height:24px;padding:0;border:0;border-radius:4px;background:transparent;color:var(--ws-muted);font-size:21px;line-height:1}
.workspace-shell .workspace-guide-arrow:disabled{opacity:.35}.workspace-shell .workspace-guide-dot{width:18px;font-size:0}.workspace-guide-dot::before{content:'';width:6px;height:6px;border-radius:3px;background:#4c4a50}.workspace-guide-dot[aria-current=step]::before{width:16px;background:#168cff}
.workspace-shell .workspace-guide-arrow:hover:not(:disabled),.workspace-shell .workspace-guide-dot:hover{background:#ffffff0b}
.workspace-selection-waiting{display:flex;align-items:center;flex:none;gap:8px;min-height:48px;margin:0 16px;padding:8px 10px;border:1px solid var(--ws-line);border-bottom:0;border-radius:8px 8px 0 0;background:var(--razum-surface);color:var(--ws-ink);font-size:12px;line-height:16px}
.workspace-selection-waiting-icon{color:#168cff;font-size:21px}.workspace-selection-waiting-text{flex:1;min-width:0}
.workspace-shell #workspace-selection-exit{flex:none;min-height:28px;padding:3px;border:0;border-radius:4px;background:transparent;color:#85c7ff;font-size:12px}
.workspace-shell .workspace-selection-waiting:not([hidden])+#workspace-ai-form{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}

/* Bare feature plan and compact action journal. */
.workspace-shell .workspace-execution{margin-top:14px}
.workspace-shell .workspace-message-source,.workspace-shell .workspace-evidence-label{color:var(--ws-muted);font-size:11px;line-height:18px;font-weight:400}
.workspace-shell .workspace-message-source{margin-left:9px}
.workspace-shell .workspace-evidence-label{margin:0 0 4px}
.workspace-shell .workspace-activity-now{display:flex;align-items:center;gap:9px;margin:10px 0;color:var(--ws-muted);font-size:13px;line-height:22px;overflow-wrap:anywhere}
.workspace-shell .workspace-execution:has(.workspace-execution-plan[open])>.workspace-activity-now{display:none}
.workspace-activity-indicator{display:inline-grid;place-items:center;flex:none;width:14px;height:14px;border:1px solid var(--razum-control-border,#73737f);border-radius:50%;font-size:10px;line-height:12px}
.workspace-activity-now[data-activity-status=running]>.workspace-activity-indicator{border-width:2px;border-top-color:var(--razum-focus,#79bcff);border-right-color:var(--razum-focus,#79bcff);animation:workspace-spin .9s linear infinite}
.workspace-shell .workspace-commentary-history{margin:10px 0;color:var(--ws-muted);font-size:13px;line-height:22px}
.workspace-shell .workspace-commentary-history>summary{min-height:32px;padding:4px 0;cursor:pointer}
.workspace-shell .workspace-commentary-history .workspace-commentary{border-left:1px solid var(--ws-line);padding-left:12px}
.workspace-shell .workspace-execution-plan{margin:12px 0;padding:0;border:0;border-radius:0;background:transparent;color:var(--ws-muted)}
.workspace-shell .workspace-execution-plan>summary{display:flex;align-items:center;gap:8px;list-style:none;min-height:32px;padding:4px 12px;font-size:14px;line-height:24px;cursor:pointer}
.workspace-shell .workspace-execution-plan>summary::-webkit-details-marker{display:none}
.workspace-shell .workspace-execution-plan>summary::before{content:'';flex:none;width:14px;height:11px;border-block:1px solid currentColor;background:linear-gradient(currentColor,currentColor) center/100% 1px no-repeat;opacity:.85}
.workspace-shell .workspace-execution-plan>summary::after{content:'⌄';margin-left:auto;color:var(--ws-muted);font-size:13px}
.workspace-shell .workspace-execution-plan[open]>summary::after{transform:rotate(180deg)}
.workspace-shell .workspace-execution-progress{margin-left:auto;color:var(--ws-muted);font-size:12px;line-height:20px}
.workspace-shell .workspace-execution .workspace-execution-steps{display:grid;gap:3px;list-style:none;margin:6px 0 0;padding:0 0 0 14px}
.workspace-shell .workspace-execution-step{min-width:0;padding:4px 0;border:0;border-radius:0;background:transparent;overflow-wrap:anywhere}
.workspace-execution-step-heading{display:flex;align-items:flex-start;gap:10px}
.workspace-shell .workspace-execution-step-heading h4{margin:0;color:var(--ws-ink);font-size:14px;line-height:20px;font-weight:400}
.workspace-shell .workspace-execution-step[data-step-status=pending] .workspace-execution-step-heading h4{color:var(--ws-muted)}
.workspace-shell .workspace-execution-step-icon{display:inline-grid;place-items:center;flex:none;width:14px;height:14px;margin-top:3px;border:1px solid var(--razum-control-border,#73737f);border-radius:50%;color:var(--ws-muted);font-size:10px;line-height:12px}
.workspace-shell .workspace-execution-step[data-step-status=completed] .workspace-execution-step-icon{border-color:var(--razum-accent-text,#91c1ff);border-radius:50%;background:transparent;color:var(--razum-accent-text,#91c1ff);font-size:10px;line-height:12px}
.workspace-shell .workspace-execution-plan[data-completed=true] .workspace-execution-progress::after{content:'✓';display:inline-grid;place-items:center;width:14px;height:14px;margin-left:8px;border:1px solid var(--razum-accent-text,#91c1ff);border-radius:50%;color:var(--razum-accent-text,#91c1ff);font-size:10px;line-height:12px}
.workspace-shell .workspace-execution-step[data-step-status=failed] .workspace-execution-step-icon{border-color:#ffbdb8;color:#ffbdb8}
.workspace-shell .workspace-execution-step-status{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.workspace-shell .workspace-execution-step[data-prepared=true]>.workspace-execution-step-status{display:block;position:static;width:auto;height:auto;margin-left:24px;overflow:visible;clip-path:none;white-space:normal;color:var(--ws-muted);font-size:11px;line-height:18px}
.workspace-shell .workspace-execution-step[data-prepared=true] .workspace-execution-step-icon{border-color:var(--razum-control-border,#73737f);color:var(--ws-muted)}
.workspace-shell .workspace-execution-step>p{margin:5px 0 0 24px;font-size:13px;line-height:20px;white-space:pre-wrap;color:var(--ws-muted)}
.workspace-shell .workspace-current-action{margin-left:5px!important;padding:8px 0 4px 19px;border-left:1px solid var(--ws-line);color:var(--ws-muted)!important;font-size:12px!important;line-height:20px}
.workspace-shell .workspace-execution-details{margin:3px 0 0 24px;color:var(--ws-muted);font-size:12px;line-height:20px}
.workspace-execution-details summary{min-height:28px;padding:3px 0;cursor:pointer}.workspace-execution-details p{padding:4px 0;white-space:pre-wrap}
.workspace-shell .workspace-execution-answer{color:var(--razum-accent-text,#91c1ff)}
.workspace-shell .workspace-clarification-button{display:inline-flex;align-items:center;gap:6px;margin:7px 0 0 24px;min-height:32px;padding:3px 7px;border:1px solid var(--razum-control-border,#73737f);border-radius:16px;background:transparent;color:var(--razum-accent-text,#91c1ff);font-size:12px}
.workspace-clarification-circle{display:grid;place-items:center;width:19px;height:19px;border:1px solid currentColor;border-radius:50%;font-weight:600;line-height:1}
.workspace-shell .workspace-inline-question{margin:14px 0;padding:12px 13px;border:1px solid var(--ws-line);border-radius:8px;background:var(--razum-surface,#18181b);color:var(--ws-ink)}
.workspace-shell .workspace-inline-question p{font-size:14px;line-height:24px;white-space:pre-wrap}.workspace-shell .workspace-question-label{display:block;margin-bottom:5px;color:var(--razum-accent-text,#91c1ff);font-size:12px;line-height:18px}
.workspace-question-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.workspace-shell .workspace-question-actions button{min-height:32px;padding:5px 9px;border:1px solid var(--razum-control-border,#73737f);border-radius:6px;background:var(--razum-raised,#222225);color:var(--ws-ink);font-size:12px}
.workspace-shell .workspace-action-journal{margin:12px 0;color:var(--ws-muted);font-size:13px;line-height:22px}
.workspace-shell .workspace-action-journal>summary{min-height:30px;padding:4px 0;cursor:pointer}
.workspace-shell .workspace-action-list{display:grid;gap:2px;list-style:none;padding:0;margin:6px 0}
.workspace-shell .workspace-action-event{display:flex;min-width:0;gap:9px;padding:6px 0;border:0}
.workspace-shell .workspace-action-icon{display:inline-grid;place-items:center;flex:none;width:15px;height:15px;margin-top:3px;border:1px solid var(--razum-control-border,#73737f);border-radius:50%;color:var(--ws-muted);font-size:11px;line-height:13px}
.workspace-shell .workspace-action-event[data-event-status=completed] .workspace-action-icon{border-color:transparent;border-radius:0;font-size:15px}
.workspace-shell .workspace-action-event[data-event-status=failed] .workspace-action-icon{border-color:#ffbdb8;color:#ffbdb8}
.workspace-action-body{min-width:0;flex:1}.workspace-shell .workspace-action-body strong{display:inline;margin:0;color:var(--ws-ink);font-weight:400;font-size:14px;line-height:22px;overflow-wrap:anywhere}
.workspace-action-state{display:block;color:var(--ws-muted);font-size:11px;line-height:18px}
.workspace-shell .workspace-action-journal .workspace-action-paths{margin:4px 0 2px}
.workspace-shell .workspace-action-journal .workspace-action-paths button{border:1px solid var(--ws-line);border-radius:4px;background:transparent;color:var(--ws-muted);min-height:28px}
.workspace-action-candidate-note{display:block;color:var(--ws-muted);font-size:11px;line-height:18px}
.workspace-shell .workspace-action-body p{margin:9px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:22px}
.workspace-action-body time{color:var(--ws-muted);font-size:11px;line-height:18px}
.workspace-action-dialog .workspace-action-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px}
.workspace-action-dialog .workspace-action-heading .workspace-action-state{display:inline;white-space:nowrap}
.workspace-shell .workspace-action-dialog .workspace-action-detail{margin:4px 0;font-size:13px;line-height:21px}
.workspace-action-dialog .workspace-action-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 10px;margin-top:3px}
.workspace-action-dialog .workspace-action-meta .workspace-action-paths{display:contents}
.workspace-shell .workspace-action-dialog .workspace-action-paths button{min-height:24px;padding:1px 5px;font:11px/20px Consolas,monospace}
.workspace-action-dialog .workspace-action-time{margin-left:auto}
.workspace-action-paths{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0}.workspace-shell .workspace-action-paths button{max-width:100%;min-height:28px;padding:3px 6px;text-align:left;overflow-wrap:anywhere;font:12px/20px Consolas,monospace}
.workspace-shell .workspace-action-details{min-height:28px;padding:3px 6px;border:0;border-radius:5px;background:transparent;color:var(--ws-muted);font-size:12px;line-height:20px;text-decoration:underline;text-underline-offset:3px}
.workspace-shell .workspace-execution-step[data-step-status=running]:not([data-stopped=true]) .workspace-execution-step-icon,.workspace-shell .workspace-action-event[data-event-status=running]:not([data-stopped=true]) .workspace-action-icon{font-size:0;border:2px solid var(--ws-line);border-top-color:var(--razum-focus,#79bcff);border-right-color:var(--razum-focus,#79bcff);background:transparent;animation:workspace-spin .9s linear infinite}
@keyframes workspace-spin{to{transform:rotate(360deg)}}
.workspace-shell .workspace-proposed-plan{margin:12px 0;padding:0;border:0}.workspace-proposed-plan summary{min-height:30px;font-size:14px;cursor:pointer}.workspace-proposed-plan ol{padding-left:20px}.workspace-proposed-plan li{margin:9px 0}.workspace-proposed-plan strong{display:inline;color:var(--ws-ink);font-size:14px}.workspace-proposed-plan p{font-size:13px;line-height:22px;color:var(--ws-muted)}
.workspace-shell .workspace-result-card{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:64px;margin:18px 0 22px;padding:10px 38px 10px 12px;border:1px solid #245374;border-radius:7px;background:#12212c;color:var(--ws-ink)}
.workspace-shell .workspace-return-version{align-self:flex-start;margin-top:8px;min-height:36px;padding:6px 8px;border:1px solid var(--razum-control-border,#73737f);border-radius:6px;background:transparent;color:var(--ws-ink);font-size:12px}
.workspace-shell .workspace-result-description>strong{display:block;margin:0;color:var(--ws-ink);font-size:14px;line-height:20px;font-weight:600}
.workspace-shell .workspace-result-eyebrow{display:block;color:var(--ws-muted);font-size:12px;line-height:18px}
.workspace-result-menu{position:absolute;right:9px;top:16px}.workspace-result-menu>summary{list-style:none;display:grid;place-items:center;min-width:28px;min-height:28px;cursor:pointer}
.workspace-result-menu>.workspace-result-actions{position:absolute;right:0;bottom:calc(100% + 6px);z-index:8;display:grid;min-width:170px;padding:6px;border:1px solid var(--razum-control-border,#73737f);border-radius:7px;background:var(--razum-raised,#222225);box-shadow:0 8px 24px #0006}
.workspace-shell .workspace-result-actions button{justify-content:flex-start;min-height:30px;padding:5px 7px;border:0;border-radius:4px;background:transparent;color:var(--ws-ink);font-size:12px;line-height:20px;text-align:left}

/* Selection tools float within the preview rather than enlarging the composer. */
.workspace-shell #workspace-visual-editor{position:absolute;z-index:15;top:8px;left:8px;transform:none;width:max-content;max-width:calc(100% - 16px);max-height:calc(100% - 16px);margin:0;padding:8px;border:1px solid var(--ws-line);border-radius:25px;background:var(--razum-raised,#222225);color:var(--ws-ink);overflow:visible;box-shadow:0 8px 30px #0005;font-size:11px;line-height:16px}
.workspace-shell #workspace-visual-editor[open]{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px}
.workspace-shell #workspace-visual-editor[open]::details-content{display:contents}
.workspace-shell #workspace-visual-editor>summary{display:grid;place-items:center;flex:none;width:18px;min-height:30px;padding:0;list-style:none;cursor:pointer;color:var(--ws-muted);font-size:0;line-height:0}
.workspace-shell #workspace-visual-editor>summary::-webkit-details-marker{display:none}
.workspace-shell #workspace-visual-editor>summary svg{width:14px;height:18px}
.workspace-shell #workspace-visual-editor>p{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.workspace-shell #workspace-visual-editor>.workspace-visual-operation-status{position:static;flex-basis:100%;width:auto;height:auto;margin:3px 6px 0;padding:6px 0 0;overflow:visible;clip-path:none;white-space:normal;color:var(--ws-ink);border-top:1px solid var(--ws-line);font-size:12px;line-height:18px}
.workspace-visual-fields{display:contents}
.workspace-shell #workspace-visual-editor[data-target-type=text]{width:662px;justify-content:space-between}
.workspace-shell #workspace-visual-editor[data-target-type=container]{width:403px;justify-content:space-between}
.workspace-shell .workspace-visual-fields label{display:block;flex:none;width:auto;margin:0;padding:0;font-size:12px;line-height:18px;color:var(--ws-muted)}
.workspace-shell .workspace-visual-fields label:has(#workspace-visual-size){width:42px}
.workspace-shell .workspace-visual-fields label:has(input[type=color]){position:relative;display:grid;place-items:center;width:32px;height:30px;cursor:pointer}
.workspace-shell .workspace-visual-fields label:has(input[type=range]){width:140px}
.workspace-shell .workspace-visual-fields input,.workspace-shell .workspace-visual-fields select{width:100%;min-width:0;height:30px;margin:0;padding:3px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--ws-ink);font-size:12px;line-height:20px}
.workspace-shell .workspace-visual-fields select option{background:var(--razum-raised,#222225);color:var(--ws-ink)}
.workspace-shell .workspace-visual-fields input:hover,.workspace-shell .workspace-visual-fields select:hover{border-color:var(--razum-control-border,#73737f)}
.workspace-shell .workspace-visual-fields input[type=color]{position:absolute;inset:0;opacity:0;padding:0;cursor:pointer}.workspace-shell .workspace-visual-fields input[type=range]{padding:0;accent-color:var(--razum-blue,#1688ff)}
.workspace-visual-color::after{content:'';position:absolute;bottom:1px;left:8px;right:8px;height:2px;background:var(--visual-color);border:1px solid #ffffff80}
.workspace-visual-color:focus-within{outline:2px solid var(--razum-focus,#79bcff);outline-offset:2px;border-radius:5px}
.workspace-shell .workspace-visual-size-group{display:flex;align-items:center;gap:0}
.workspace-shell #workspace-visual-size{text-align:center;appearance:textfield;-moz-appearance:textfield}
.workspace-shell #workspace-visual-size::-webkit-inner-spin-button,.workspace-shell #workspace-visual-size::-webkit-outer-spin-button{appearance:none;margin:0}
.workspace-shell .workspace-visual-icon-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:30px;min-height:30px;padding:5px;border:0;border-radius:6px;background:transparent;color:var(--ws-ink);cursor:pointer}
.workspace-shell .workspace-visual-icon-button:hover,.workspace-shell .workspace-visual-icon-button[aria-pressed=true]{background:var(--razum-selection,#142944);color:var(--razum-accent-text,#91c1ff)}
.workspace-visual-popover{position:relative}.workspace-visual-popover>summary{list-style:none}.workspace-visual-popover>summary::-webkit-details-marker{display:none}
.workspace-visual-popup{position:absolute;z-index:2;bottom:calc(100% + 14px);left:50%;transform:translateX(-50%);display:grid;gap:6px;width:max-content;min-width:130px;max-width:min(240px,calc(100vw - 48px));padding:10px;border:1px solid var(--ws-line);border-radius:9px;background:var(--razum-raised,#222225);box-shadow:0 8px 24px #0005;color:var(--ws-ink)}
.workspace-shell #workspace-visual-editor[data-popup-direction=below] .workspace-visual-popup{top:calc(100% + 14px);bottom:auto}
.workspace-shell .workspace-visual-popup .workspace-visual-choice{display:block;width:100%;padding:7px 9px;min-height:32px;border:0;border-radius:5px;background:transparent;color:var(--ws-ink);text-align:left;font-size:12px;line-height:18px}
.workspace-shell .workspace-visual-popup .workspace-visual-choice:hover,.workspace-shell .workspace-visual-popup .workspace-visual-choice[aria-pressed=true]{background:var(--razum-selection,#142944)}
.workspace-shell .workspace-visual-link-form{display:grid;gap:7px;max-width:210px}
.workspace-shell .workspace-visual-link-form input{width:210px;max-width:100%;border-color:var(--razum-control-border,#73737f)}
.workspace-visual-opacity-value{text-align:center;font-size:12px}
.workspace-visual-actions{display:flex;flex:none;justify-content:flex-end;align-items:center;gap:4px;margin:0;padding-left:4px;border-left:1px solid var(--ws-line)}
.workspace-shell .workspace-visual-actions button{display:flex;align-items:center;justify-content:center;gap:5px;width:32px;height:30px;min-height:30px;padding:5px;border:0;border-radius:50%;background:transparent;color:var(--ws-ink);font-size:12px;line-height:20px}
.workspace-shell #workspace-visual-reset:disabled{display:none}
.workspace-shell #workspace-visual-apply{width:auto;padding:5px 12px;border-radius:18px;background:var(--razum-action,#0874dd);color:#fff;white-space:nowrap}
.workspace-shell #workspace-visual-delete[aria-pressed=true]{background:#61363b;color:#ffd4d8}
.workspace-shell #workspace-visual-editor>.workspace-visual-error:not([hidden]){position:absolute;top:calc(100% + 8px);left:8px;width:min(300px,calc(100vw - 48px));height:auto;padding:9px;border:1px solid #b97c77;border-radius:8px;background:var(--razum-raised,#222225);color:#ffbdb8;clip-path:none;white-space:normal;font-size:12px;line-height:18px}

/* Existing source, data, context and library surfaces. */
.workspace-shell .application-code{display:grid;grid-template-columns:210px minmax(0,1fr);overflow:hidden;min-height:0}
.workspace-shell .application-files{display:block;padding:15px 12px;border-right:1px solid var(--ws-line);background:var(--razum-surface,#18181b);overflow:auto;min-height:0}
.workspace-shell .application-files h2{font-size:11px;color:var(--ws-muted);text-transform:uppercase;letter-spacing:.08em;margin:0 4px 14px}
.workspace-shell .application-files label{padding:0;font-size:11px;color:var(--ws-muted)}
.workspace-shell .workspace-file{font-size:12px;min-height:34px}
.workspace-shell .workspace-file-actions{gap:5px}
.workspace-shell .workspace-file-actions button{font-size:10px;padding:7px}
.workspace-code-editor{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
.workspace-shell .workspace-code-editor>label{border-bottom:1px solid var(--ws-line);background:var(--razum-surface,#18181b);flex:none}
.workspace-shell #workspace-file-editor{min-height:0;flex:1;line-height:1.7;background:var(--razum-sunken,#0b0b0d)}
.workspace-shell #workspace-editor-help{font-size:10px;color:var(--ws-muted);padding:9px 14px;border-top:1px solid var(--ws-line);flex:none}
.workspace-shell .application-data,.workspace-shell .application-console{padding:24px;min-height:0}
.workspace-shell .application-data h2{font-size:20px;margin-bottom:10px}
.workspace-shell .application-data>p{color:var(--ws-muted);margin-bottom:12px}
.workspace-shell #workspace-setup{padding:48px;overflow:auto;max-width:740px}
.workspace-shell #workspace-setup h2{font-size:27px}
.workspace-shell #workspace-setup p{font-size:14px;color:var(--ws-muted);line-height:1.8;margin:20px 0}
.workspace-shell #workspace-setup label{width:100%;font-size:12px;color:var(--ws-muted)}
.workspace-shell .workspace-context-dialog{margin:0 0 0 auto;height:100dvh;max-height:100dvh;width:min(540px,100vw);max-width:100vw;border:0;border-left:1px solid var(--razum-control-border,#73737f);border-radius:0;padding:24px;background:var(--razum-surface,#18181b);color:var(--ws-ink);overflow:auto;overscroll-behavior:contain;box-shadow:-20px 0 70px #0008}.workspace-context-dialog::backdrop{background:#0009}.workspace-context-heading{display:flex;justify-content:space-between;gap:20px;margin-bottom:26px}.workspace-context-heading h2{font-size:23px}.workspace-context-heading p{font-size:13px;color:var(--ws-muted);line-height:1.7;margin-top:8px!important}.workspace-shell #workspace-context-close{background:var(--razum-raised,#222225);color:var(--ws-ink);border:1px solid var(--razum-control-border,#73737f);border-radius:10px;min-width:40px;height:40px;font-size:24px}.workspace-shell #workspace-project-tools{max-height:none;overflow:visible}
.workspace-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.workspace-shell .workspace-execution-dialogs>dialog{box-sizing:border-box;margin:auto;padding:24px;max-height:calc(100dvh - 40px);width:min(620px,calc(100vw - 40px));max-width:none;border:1px solid var(--razum-control-border,#73737f);border-radius:14px;background:var(--razum-surface,#18181b);color:var(--razum-text,#f7f7f8);overflow:auto;overscroll-behavior:contain;box-shadow:0 20px 80px #0008;color-scheme:dark}
.workspace-shell .workspace-execution-dialogs>dialog::backdrop{background:#050508cc}
.workspace-shell .workspace-execution-dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}
.workspace-shell .workspace-execution-dialog-heading h2{font-size:23px;line-height:1.3;overflow-wrap:anywhere}
.workspace-shell .workspace-execution-eyebrow{font-size:11px;color:var(--razum-muted,#b8b8c1);margin-bottom:7px}
.workspace-shell .workspace-execution-dialogs button{padding:8px 12px;min-height:40px;border:1px solid var(--razum-control-border,#73737f);border-radius:7px;color:var(--razum-text,#f7f7f8);background:var(--razum-raised,#222225);font-size:13px}
.workspace-shell .workspace-execution-dialogs button:hover:not(:disabled){background:#303036}
.workspace-shell .workspace-execution-dialogs .button-primary{background:var(--razum-action,#0874dd);color:#ffffff;border-color:var(--razum-action,#0874dd)}
.workspace-shell .workspace-execution-dialogs .button-primary:hover:not(:disabled){background:var(--razum-action-hover,#086cca)}
.workspace-shell #workspace-question-prompt,.workspace-shell #workspace-design-question{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.65;margin-bottom:20px}
.workspace-shell #workspace-question-form{display:grid;gap:12px}
.workspace-shell #workspace-question-form label{font-size:14px;color:var(--razum-text,#f7f7f8)}
.workspace-shell #workspace-question-answer{box-sizing:border-box;width:100%;min-height:150px;resize:vertical;padding:12px;background:var(--razum-bg,#101012);color:var(--razum-text,#f7f7f8);border:1px solid var(--razum-control-border,#73737f);border-radius:7px;font:15px/1.6 inherit}
.workspace-shell #workspace-question-help{font-size:12px;color:var(--razum-muted,#b8b8c1)}
.workspace-shell #workspace-question-status,.workspace-shell #workspace-design-status{font-size:13px;line-height:1.5;overflow-wrap:anywhere;min-height:1.5em}
.workspace-shell .workspace-execution-dialogs [data-error=true]{color:#ffbdb8}
.workspace-shell .workspace-execution-dialogs>.workspace-design-library{width:min(1180px,calc(100vw - 48px));height:min(840px,calc(100dvh - 48px))}
.workspace-shell .workspace-design-filters{display:flex;gap:8px;margin:0 0 16px}
.workspace-shell .workspace-design-filters [aria-pressed=true]{background:var(--razum-action,#0874dd);color:#ffffff;border-color:var(--razum-action,#0874dd)}
.workspace-shell .workspace-execution-dialogs .workspace-design-filters button[aria-pressed=true]:hover:not(:disabled){background:var(--razum-action-hover,#086cca);color:#ffffff}
.workspace-shell .workspace-design-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:18px}
.workspace-shell .workspace-design-card{min-width:0;border:1px solid var(--razum-border,#303036);border-radius:10px;overflow:hidden;background:var(--razum-raised,#222225)}
.workspace-shell .workspace-design-card>iframe{display:block;width:100%;height:225px;border:0;background:white;pointer-events:none}
.workspace-shell .workspace-design-card-content{display:grid;gap:10px;padding:16px;overflow-wrap:anywhere}
.workspace-shell .workspace-design-access{color:var(--razum-accent-text,#91c1ff);font-size:11px}
.workspace-shell .workspace-design-card h3{font-size:18px;line-height:1.35}
.workspace-shell .workspace-design-card p{font-size:13px;line-height:1.65;color:var(--razum-muted,#b8b8c1)}
.workspace-shell .workspace-design-card-actions{display:flex;justify-content:space-between;gap:10px;margin-top:5px;flex-wrap:wrap}
.workspace-shell #workspace-design-empty{padding:32px 0;color:var(--razum-muted,#b8b8c1);font-size:16px;line-height:1.7;max-width:620px}
.workspace-shell .workspace-execution-dialogs>.workspace-design-preview{width:min(1100px,calc(100vw - 40px));height:calc(100dvh - 40px)}
.workspace-shell #workspace-design-preview-frame{display:block;width:100%;height:calc(100% - 132px);min-height:200px;border:0;background:white;margin-bottom:16px}

.workspace-shell .workspace-execution-dialogs>.workspace-action-dialog{width:min(500px,calc(100vw - 32px));max-height:min(680px,calc(100dvh - 48px));padding:24px;border-color:var(--ws-line);border-radius:12px;background:var(--razum-bg,#101012)}
.workspace-shell .workspace-execution-dialogs>.workspace-action-dialog::backdrop{background:#0009;backdrop-filter:none;-webkit-backdrop-filter:none}
.workspace-shell .workspace-action-dialog .workspace-execution-dialog-heading{align-items:center;min-height:78px;margin:-24px -24px 18px;padding:24px;border-bottom:1px solid var(--ws-line);gap:12px}
.workspace-shell .workspace-action-dialog .workspace-execution-dialog-heading h2{font-size:18px;line-height:26px;font-weight:600}
.workspace-shell #workspace-action-dialog-title:focus{outline:none}
.workspace-shell #workspace-action-dialog-close{width:28px;height:28px;min-height:28px;flex:none;padding:0;border:0;border-radius:5px;background:transparent;color:var(--ws-muted);font-size:23px;line-height:28px}
.workspace-shell #workspace-action-dialog-close:hover{background:var(--razum-raised,#222225);color:var(--ws-ink)}
.workspace-shell .workspace-action-dialog .workspace-execution-eyebrow{display:none}
.workspace-shell .workspace-action-dialog .workspace-action-body{line-height:24px}
.workspace-shell[data-chat-expanded=true] .application-grid,.workspace-shell[data-chat-expanded=true] .application-heading{grid-template-columns:minmax(0,1fr)}
.workspace-shell[data-chat-expanded=true] .application-main,.workspace-shell[data-chat-expanded=true] .workspace-header-preview{display:none}
.workspace-shell[data-chat-expanded=true] .workspace-header-project{width:100%}
.workspace-shell[data-chat-expanded=true] #workspace-chat-log{padding-inline:max(20px,calc((100% - 800px)/2))}
.workspace-shell[data-chat-expanded=true] #workspace-ai-form{width:min(800px,calc(100% - 32px));margin-inline:auto}
.workspace-shell[data-chat-expanded=true] .workspace-selection-tutorial{width:min(800px,calc(100% - 32px));margin-inline:auto}
@media(min-width:801px) and (max-width:1100px){
 .workspace-header-preview{gap:5px}.workspace-header-actions{gap:3px}
 .workspace-shell .workspace-header-actions #workspace-export{font-size:11px;padding:5px 7px}
 .workspace-shell .workspace-header-actions #workspace-export .workspace-control-label{display:none}
 .workspace-header-project{gap:5px}.workspace-shell .workspace-header-preview [role=tab][aria-selected=true]{font-size:11px}
 .workspace-shell .workspace-header-preview [role=tab]{padding-inline:5px}
 .workspace-preview-address{min-width:54px;padding-left:7px}
 .workspace-header-preview>#workspace-context-open{min-width:25px;padding:4px}
 .workspace-shell .application-code{grid-template-columns:150px minmax(0,1fr)}
}
@media(max-width:800px){
 .workspace-shell{--ws-chat-width:100%;--ws-header-height:50px}
 .workspace-shell .application-heading{display:flex;height:50px;min-height:50px}
 .workspace-header-project{flex:1;padding:0 12px;gap:7px}
 .workspace-header-preview{flex:none;width:auto;padding:0 10px 0 0;gap:4px}
 .workspace-header-preview>[role=tablist],.workspace-preview-address{display:none}
 .workspace-shell:is([data-mobile-panel=main],[data-mobile-panel=files]) .workspace-header-preview>[role=tablist]{display:flex;position:absolute;z-index:6;top:102px;left:10px;height:34px}
 .workspace-shell:is([data-mobile-panel=main],[data-mobile-panel=files]) .workspace-preview-address{display:flex;position:absolute;z-index:6;top:102px;right:10px;width:102px;min-width:0;height:34px}
 .workspace-shell:is([data-mobile-panel=main],[data-mobile-panel=files]) .workspace-header-preview [role=tab][aria-selected=true]{font-size:11px}
 .workspace-shell:is([data-mobile-panel=main],[data-mobile-panel=files]) .application-main{margin-top:46px}
 .workspace-header-actions{gap:4px}.workspace-shell .workspace-header-actions #workspace-export{font-size:11px;padding:5px 7px}
 .workspace-shell .workspace-header-actions #workspace-export .workspace-control-label{display:none}
 .workspace-shell h1{font-size:13px}.workspace-shell #workspace-chat-expand{display:none}
 .workspace-shell .application-mobile-nav{display:flex;flex:none;gap:5px;margin:0;padding:4px 12px;border:0;background:var(--ws-surface)}
 .workspace-shell .application-mobile-nav button{min-height:40px;padding:5px 8px;font-size:12px}
 .workspace-shell .application-grid{display:flex;flex-direction:column;min-height:0;overflow:hidden}
 .workspace-shell .application-chat{flex:1;border:0}
 .workspace-shell .application-main{flex:1;height:auto;min-height:0;margin:4px 10px 10px;border-radius:10px}
 .workspace-shell[data-mobile-panel=chat] .application-main,.workspace-shell[data-mobile-panel=main] .application-chat,.workspace-shell[data-mobile-panel=files] .application-chat{display:none}
 .workspace-shell[data-mobile-panel=files] .application-main{display:flex}
 .workspace-shell .application-preview{height:100%;min-height:0;flex:1}
 .workspace-shell #workspace-chat-log{padding:14px 16px 6px}.workspace-shell .workspace-message-user{max-width:100%}.workspace-shell .workspace-message{margin-bottom:20px}
 .workspace-shell #workspace-ai-form{margin:8px 12px 12px;min-height:136px}
 .workspace-shell #workspace-ai-prompt{font-size:16px;line-height:24px;padding:16px 14px 8px;min-height:82px}
 .workspace-composer-actions{padding:5px 7px 7px;gap:2px;row-gap:6px;min-height:51px;min-width:0;flex-wrap:wrap}
 .workspace-shell #workspace-select-element .workspace-control-label{display:none}
 .workspace-composer-actions .workspace-preview-selection,.workspace-composer-actions .workspace-composer-send{flex-shrink:0}
 .workspace-shell .workspace-composer-actions button{min-height:36px;padding:4px 5px;font-size:11px}
 .workspace-shell #workspace-ai-submit{width:36px;height:36px;min-height:36px}.workspace-shell #workspace-ai-cancel{font-size:10px;padding:4px 5px}
 .workspace-shell .workspace-selection-tutorial{margin-inline:12px;max-height:none}.workspace-guide-illustration{height:180px}.workspace-selection-waiting{margin-inline:12px}.workspace-shell #workspace-composer-question{max-height:64px}
 .workspace-shell #workspace-feedback[data-error=true]:not(:empty){left:12px;top:102px;width:calc(100% - 24px)}
 .workspace-shell .application-code{display:flex;flex:1;min-height:0}.workspace-shell .workspace-code-editor{flex:1}
 .workspace-shell .application-files{min-height:0;max-height:none;overflow:auto;border:0;flex:1;padding:14px}
 .workspace-shell[data-mobile-panel=main] .application-files,.workspace-shell[data-mobile-panel=files] .workspace-code-editor{display:none}
 .workspace-shell[data-mobile-panel=files] .application-files{display:block}
 .workspace-shell .application-data,.workspace-shell .application-console{min-height:0;padding:16px}.workspace-shell #workspace-setup{padding:22px}.workspace-shell #workspace-runtime-empty{padding:22px;font-size:13px}
 .workspace-shell .workspace-context-dialog{width:100vw;padding:20px}
 .workspace-shell[data-chat-expanded=true][data-mobile-panel=main] .application-main,.workspace-shell[data-chat-expanded=true][data-mobile-panel=files] .application-main{display:flex}
 .workspace-shell #workspace-visual-editor{max-width:calc(100% - 16px);max-height:calc(100% - 16px);border-radius:18px}
 .workspace-shell .workspace-visual-fields{gap:3px}
 .workspace-shell .workspace-visual-fields label:has(#workspace-visual-size){width:40px}
 .workspace-shell .workspace-visual-fields label:has(input[type=color]){width:32px}
 .workspace-shell .workspace-visual-fields input,.workspace-shell .workspace-visual-fields select,.workspace-shell .workspace-visual-actions button{min-height:32px}
 .workspace-shell .workspace-execution-dialogs>dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:18px;border-radius:10px}
 .workspace-shell .workspace-execution-dialog-heading{gap:12px;flex-wrap:wrap;margin-bottom:18px}
 .workspace-shell .workspace-execution-dialog-heading h2{font-size:21px}
 .workspace-shell .workspace-execution-dialogs button,.workspace-shell .workspace-clarification-button{min-height:40px}
 .workspace-shell .workspace-execution-dialogs>.workspace-design-library,.workspace-shell .workspace-execution-dialogs>.workspace-design-preview{width:calc(100vw - 20px);height:calc(100dvh - 20px)}
 .workspace-shell .workspace-design-list{grid-template-columns:minmax(0,1fr);gap:16px}.workspace-shell .workspace-design-card>iframe{height:200px}
 .workspace-shell #workspace-question-answer{font-size:16px}.workspace-shell #workspace-design-preview-frame{height:calc(100% - 172px)}
 .workspace-shell .workspace-execution-dialogs>.workspace-action-dialog{padding:18px;width:calc(100vw - 20px)}
 .workspace-shell .workspace-action-dialog .workspace-execution-dialog-heading{margin:-18px -18px 14px;padding:18px}
}
@media(prefers-reduced-motion:reduce){.workspace-shell *{animation-duration:.01ms!important;transition-duration:.01ms!important}.workspace-shell .workspace-execution-step-icon,.workspace-shell .workspace-action-icon,.workspace-shell .workspace-activity-indicator{animation:none!important}}
@media(prefers-contrast:more){.workspace-shell{--ws-muted:var(--razum-text,#f7f7f8);--ws-line:#90909b}.workspace-shell :is(input,textarea,select),.workspace-shell .workspace-execution-dialogs>dialog{border-width:2px}}
@media(forced-colors:active){
 .workspace-shell :is(button,input,textarea,select,summary){border:1px solid ButtonText}
 .workspace-shell [aria-selected=true],.workspace-shell [aria-pressed=true]{outline:2px solid Highlight}
 .workspace-shell .workspace-execution-step[aria-current=step]{outline:1px solid Highlight}
 .workspace-shell .workspace-execution-step-icon,.workspace-shell .workspace-action-icon,.workspace-shell .workspace-result-card,.workspace-shell #workspace-visual-editor{border-color:ButtonText}
 .workspace-shell .workspace-execution-step[data-step-status=running] .workspace-execution-step-icon,.workspace-shell .workspace-action-event[data-event-status=running] .workspace-action-icon{border-top-color:Highlight;border-right-color:Highlight}
 .workspace-shell .workspace-execution-dialogs>dialog{border:2px solid CanvasText}
}

.workspace-shell .workspace-project-dialog .workspace-publication-field-error{color:var(--razum-danger-text,#ffb4b4);font-size:12px;line-height:18px}
.workspace-shell .workspace-project-dialog .workspace-publication-field-error:empty{margin:0}
.workspace-publication-domains,.workspace-publication-seo{margin-top:20px;padding-top:16px;border-top:1px solid var(--ws-line)}
.workspace-shell #workspace-publish-dialog>.workspace-project-dialog-heading{position:sticky;top:0;z-index:2;background:var(--ws-surface);padding:8px 0}
.workspace-shell #workspace-publish-dialog>.workspace-project-dialog-heading::before{content:"";position:absolute;inset:-28px calc(-1 * var(--publication-panel-padding,24px)) 0;background:var(--ws-surface);z-index:-1}
.workspace-shell .workspace-project-dialog :is(.workspace-publication-domains,.workspace-publication-seo) h3{font-size:14px;line-height:22px;margin:0;font-weight:600;overflow-wrap:anywhere}
.workspace-shell .workspace-project-dialog .workspace-publication-domains summary,.workspace-shell .workspace-project-dialog .workspace-publication-seo summary{min-height:36px;padding:7px 0;cursor:pointer;line-height:22px;color:var(--ws-ink)}
.workspace-publication-domain{margin:16px 0;padding:14px;border:1px solid var(--razum-control-border,#73737f);border-radius:8px;overflow-wrap:anywhere}
.workspace-publication-domain .workspace-project-dialog-actions{margin-top:12px}
.workspace-publication-domain-dns .workspace-project-publication-state{grid-template-columns:88px minmax(0,1fr);padding:10px;margin:8px 0}
.workspace-publication-domain-dns dd,.workspace-publication-seo li{overflow-wrap:anywhere;word-break:break-word}
.workspace-publication-domain-removal{padding:14px;border:1px solid var(--razum-control-border,#73737f);border-radius:8px;background:var(--razum-sunken,#0b0b0d)}
.workspace-shell #workspace-publication-domains-retry{margin-top:14px}
.workspace-shell .workspace-project-dialog :is(.workspace-publication-domains,.workspace-publication-seo) :is(button,summary,input):focus-visible{outline:3px solid var(--razum-accent-text,#91c1ff);outline-offset:3px}
.workspace-shell .workspace-project-dialog :is(.workspace-publication-domains,.workspace-publication-seo) button{border-color:var(--razum-control-border,#73737f)}
.workspace-shell #workspace-publication-primary-address{overflow-wrap:anywhere;color:var(--ws-ink)}
@media(max-width:480px){.workspace-shell .workspace-project-dialog:has(.workspace-publication-domains){padding:18px;--publication-panel-padding:18px}.workspace-publication-domain{padding:10px}.workspace-publication-domain-dns .workspace-project-publication-state{grid-template-columns:1fr;gap:3px}.workspace-publication-domain-dns dd{margin-bottom:9px}}
