@font-face{font-family:Inter;src:url('/pro/voice-assets/fonts/InterVariable.woff2') format('woff2');font-weight:100 900;font-display:swap}
body.ush-enabled{--ush-history:248px;--ush-header:56px;--ush-rail:56px;--ush-offset:304px;--uho-paper:#fffef9;--ush-bg:#f5f4ef;--ush-side:#eeede6;--ush-ink:#17221f;--ush-muted:#68736f;--ush-line:#deddd5;--ush-accent:#d94d2f;--ush-icon:#46675f}
body.ush-enabled{margin:0;min-width:320px;font-family:Inter,'Segoe UI',Arial,sans-serif;background:var(--ush-bg);color:var(--ush-ink);height:100dvh;overflow:hidden;--accent:var(--ush-accent);--sg-accent:var(--ush-accent);--sg-bg:var(--ush-bg);--sg-paper:var(--uho-paper);--bg:var(--ush-bg);--paper:var(--uho-paper);--side:var(--ush-side);--un-coral:var(--ush-accent)}
body.ush-enabled.ush-collapsed{--ush-offset:56px}body.ush-enabled *{box-sizing:border-box}
body.ush-enabled>.voice-side,body.ush-enabled>.voice-side-backdrop,body.ush-enabled>.topbar,body.ush-enabled>.sg-header,body.ush-enabled>.video-shade,body.ush-enabled>.gemma-shade,body.ush-enabled .voice-work>.voice-header,body.ush-enabled .video-work>.voice-header,body.ush-enabled .app-shell>#sidebar,body.ush-enabled #sidebar-shade,body.ush-enabled .sg-label:has(#sg-history){display:none!important}
body.ush-enabled .voice-work,body.ush-enabled .video-work{position:relative!important;margin:0 0 0 var(--ush-offset)!important;width:calc(100% - var(--ush-offset))!important;max-width:none;min-width:0!important;height:100dvh!important;min-height:0!important;padding-top:var(--ush-header)!important;display:flex;flex-direction:column;overflow:hidden;left:auto!important;transform:none!important}
body.ush-enabled .voice-page{flex:1;min-height:0;overflow:auto;width:100%;max-width:none}
body.ush-enabled .voice-footer{flex:none}body.ush-enabled #image-workspace,body.ush-enabled #video-workspace{flex:1;min-height:0;height:auto!important}
body.ush-enabled .app-shell{margin-left:var(--ush-offset);padding-top:var(--ush-header);height:100dvh!important;min-width:0;display:block!important;grid-template-columns:unset!important}
body.ush-enabled .app-shell>.workspace{height:100%;width:100%;min-width:0;border-radius:0}
body.ush-enabled .sg-shell{margin:0 0 0 var(--ush-offset);width:calc(100% - var(--ush-offset));padding-top:var(--ush-header);height:100dvh;max-width:none;min-width:0;grid-template-columns:minmax(265px,32%) minmax(0,1fr)}
body.ush-enabled .gemma-main{height:100%;min-height:0}.ush-enabled .gemma-work{padding-top:var(--ush-header)!important}
.ush-glyph{display:block;flex:none;overflow:visible;color:var(--ush-icon);fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}
.ush-header{position:fixed;inset:0 0 auto 0;height:var(--ush-header);z-index:70;display:flex;align-items:center;gap:14px;padding:0 20px;background:var(--uho-paper);border-bottom:1px solid var(--ush-line);font:13px/1.3 Inter,'Segoe UI',Arial,sans-serif}
.ush-brandgroup{display:flex;align-items:center;gap:12px;min-width:0}.ush-brand{display:flex;gap:8px;align-items:center;text-decoration:none;color:var(--ush-ink);font-size:19px;font-weight:550}.ush-brand img{width:28px;height:28px;display:block;border-radius:7px}.ush-toolname{font-size:14px;font-weight:500;border:1px solid var(--ush-line);background:var(--ush-side);border-radius:7px;padding:6px 10px;max-width:280px;min-width:0;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.ush-head-toggle{display:flex;gap:7px;align-items:center;justify-content:center;border:0;border-radius:6px;background:none;min-height:38px;padding:6px 8px;font:12px Inter;color:var(--ush-muted);cursor:pointer;flex:none}.ush-head-toggle svg{width:18px;height:18px;color:var(--ush-muted)}.ush-head-toggle:hover{background:#e5e4db}.ush-header .ush-links{margin-left:auto;display:flex;gap:16px;align-items:center;flex:none}.ush-header a{color:inherit;text-decoration:none}.ush-header .ush-links a{color:var(--ush-muted);font-size:12px;white-space:nowrap}.ush-header .ush-links a:hover{text-decoration:underline}.ush-plan-credit{display:flex;align-items:center;gap:8px;flex:none}.ush-header .uho-plan-control,.ush-header .uho-credits-control{margin:0;min-height:34px;background:var(--uho-paper);border:1px solid var(--ush-line);border-radius:8px;padding:5px 9px;font:12px Inter;color:var(--ush-ink);display:flex;align-items:center;gap:6px;cursor:pointer}.ush-header .uho-plan-control{color:#407569;border-color:#cbdcd3;background:#f4f7f0}.ush-header .uho-plan-control svg,.ush-header .uho-credits-control svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}.ush-header .uho-avatar-control{border:0;border-radius:50%;padding:0;background:none;width:36px;height:36px;flex:none;cursor:pointer}.ush-header .uho-avatar-control img{width:36px;height:36px;border-radius:50%}
.ush-rail{position:fixed;left:0;top:var(--ush-header);bottom:0;width:var(--ush-rail);padding:8px 5px;display:flex;align-items:center;flex-direction:column;gap:8px;background:var(--uho-paper);border-right:1px solid var(--ush-line);z-index:60}.ush-tools{overflow:auto;scrollbar-width:thin;display:flex;flex-direction:column;gap:2px;min-height:0;flex:1;padding:1px}.ush-tool{display:flex;align-items:center;justify-content:center;width:43px;min-height:36px;flex:none;border:0;border-radius:7px;text-decoration:none;color:var(--ush-icon);position:relative;background:transparent}.ush-tool:hover,.ush-tool:focus-visible{background:#e5e4db}.ush-tool[aria-current=page]{background:#e0e5dc}.ush-tool .ush-glyph{width:24px;height:24px}.ush-tool .ush-lock{position:absolute;right:1px;bottom:1px;width:9px;height:10px;padding:0;background:var(--uho-paper);border-radius:2px;color:var(--ush-muted)}.ush-lock svg{width:9px;height:10px;stroke:currentColor;fill:none;stroke-width:1.3}.ush-rail-bottom{display:flex;flex-direction:column;align-items:center;border-top:1px solid var(--ush-line);padding-top:6px;gap:4px;flex:none}.ush-rail-bottom button{min-height:38px;cursor:pointer}.ush-tooltip{position:fixed;z-index:120;max-width:240px;background:var(--ush-ink);color:var(--uho-paper);padding:8px 10px;font:12px/1.4 Inter;border-radius:6px;pointer-events:none;box-shadow:0 4px 16px #17221f15}
.ush-history{position:fixed;left:var(--ush-rail);top:var(--ush-header);bottom:0;width:var(--ush-history);background:var(--ush-side);border-right:1px solid var(--ush-line);display:flex;flex-direction:column;gap:13px;padding:14px 8px 10px;z-index:59}.ush-collapsed .ush-history{display:none}.ush-new{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 5px;min-height:42px;background:var(--uho-paper);border:1px solid var(--ush-line);border-radius:8px;color:var(--ush-ink);text-decoration:none;font:12px Inter;flex:none}.ush-new svg{width:16px;height:16px}.ush-history-title{font:11px/1.4 Inter;color:var(--ush-muted);display:flex;align-items:center;justify-content:space-between;padding:0 7px}.ush-history-title button{border:0;background:none;cursor:pointer;min-width:28px;min-height:28px;padding:3px}.ush-history-title svg{width:16px;height:16px}.ush-history-scroll{overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;scrollbar-width:thin;padding:0 2px;overscroll-behavior-y:contain}.ush-day{font:10px Inter;color:var(--ush-muted);padding:8px 7px}.ush-row{position:relative;margin-bottom:2px;border-radius:7px;isolation:isolate}.ush-row[aria-current=true]{background:#e0e3d9}.ush-open{display:grid;min-width:0;grid-template-columns:16px minmax(0,1fr) 13px;gap:8px;align-items:center;text-decoration:none;color:var(--ush-ink);padding:10px 7px;min-height:57px;border-radius:7px;font-family:Inter}.ush-open:hover{background:#e5e4db}.ush-open svg{width:16px;height:16px}.ush-rowtext{min-width:0;display:flex;flex-direction:column;gap:4px}.ush-titleclip{display:block;overflow:hidden;min-width:0;font-size:12px;line-height:1.4;mask-image:linear-gradient(to right,#000 calc(100% - 9px),transparent)}.ush-tasktitle{display:inline-block;white-space:nowrap;min-width:100%}.ush-meta{display:block;color:var(--ush-muted);font-size:10px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ush-more{position:absolute;right:4px;top:4px;min-height:28px;height:28px;width:30px;border:0;background:var(--ush-side);color:var(--ush-ink);box-shadow:-7px 0 7px var(--ush-side);border-radius:4px;font:20px/1 Inter;padding:0;opacity:0;pointer-events:none;cursor:pointer}.ush-row[aria-current=true] .ush-more{background:#e0e3d9;box-shadow:-7px 0 7px #e0e3d9}.ush-row:hover .ush-more{background:#e5e4db;box-shadow:-7px 0 7px #e5e4db}.ush-row:hover .ush-more,.ush-row:focus-within .ush-more{opacity:1;pointer-events:auto}.ush-marquee .ush-tasktitle{animation:ush-marquee var(--ush-duration,7s) linear infinite alternate}.ush-state{display:inline-flex;align-items:center;justify-content:center;width:12px;height:12px;color:var(--ush-icon);font-size:10px;font-weight:650}.ush-state.running{border:1.7px solid #becac3;border-top-color:var(--ush-icon);border-right-color:var(--ush-icon);border-radius:50%;animation:ush-spin 1.5s linear infinite}.ush-state.unread{width:7px;height:7px;margin-left:2px;background:var(--ush-icon);border-radius:50%}.ush-state.failed{border:1.4px solid var(--ush-icon);border-radius:3px;line-height:10px}.ush-history-note{font:10px/1.6 Inter;color:var(--ush-muted);padding:0 7px}.ush-resize{position:absolute;right:-3px;top:0;bottom:0;width:6px;cursor:col-resize;touch-action:none}.ush-resize:hover,.ush-resize:focus-visible{background:#9cad9f}.ush-mobile-tools,.ush-drawer-heading,.ush-mobile-services{display:none}.ush-shade{position:fixed;inset:var(--ush-header) 0 0;background:#17221f55;border:0;border-radius:0;z-index:75}.ush-shade[hidden],.ush-sr{display:none}.ush-dialog{position:fixed;width:min(440px,calc(100vw - 28px));max-width:none;background:var(--uho-paper);color:var(--ush-ink);border:1px solid var(--ush-line);border-radius:12px;padding:24px;font:14px/1.6 Inter;box-shadow:0 20px 80px #17221f22}.ush-dialog::backdrop{background:#17221f55}.ush-dialog h2{font-size:19px;margin:0 30px 14px 0;line-height:1.3}.ush-dialog p{margin:10px 0;font-size:13px;line-height:1.6;color:var(--ush-muted)}.ush-dialog input,.ush-dialog textarea{font:14px/1.5 Inter;color:var(--ush-ink);background:var(--uho-paper);border:1px solid var(--ush-line);border-radius:7px;width:100%;padding:10px}.ush-dialog input{margin:12px 0}.ush-dialog .ush-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:20px}.ush-dialog button{font:12px Inter;padding:9px 12px;min-height:38px;background:var(--uho-paper);color:var(--ush-ink);border:1px solid var(--ush-line);border-radius:7px;cursor:pointer}.ush-dialog button.ush-primary{background:var(--ush-accent);color:#fff;border-color:var(--ush-accent)}.ush-dialog .ush-dclose{position:absolute;right:12px;top:12px;border:0;width:32px;height:32px;min-height:32px;padding:5px;font-size:22px}.ush-dialog .ush-list{display:flex;flex-direction:column;gap:8px}.ush-dialog .ush-list button{text-align:left}.ush-toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:150;background:var(--ush-ink);color:var(--uho-paper);padding:10px 16px;border-radius:8px;font:12px/1.5 Inter;max-width:calc(100vw - 30px)}.ush-toast[hidden]{display:none}.ush-header :focus-visible,.ush-rail :focus-visible,.ush-history :focus-visible,.ush-dialog :focus-visible{outline:2px solid #608c7f;outline-offset:2px}
@keyframes ush-spin{to{transform:rotate(360deg)}}@keyframes ush-marquee{0%,15%{transform:translateX(0)}85%,100%{transform:translateX(var(--ush-travel,0px))}}
@media(max-width:1100px){.ush-toolname{max-width:170px}.ush-header{gap:9px;padding:0 12px}.ush-header .ush-links{gap:10px}.ush-plan-credit{gap:5px}.ush-header .uho-plan-control,.ush-header .uho-credits-control{padding:5px 6px;font-size:11px}body.ush-enabled .sg-shell{grid-template-columns:minmax(245px,40%) minmax(0,1fr)}}
@media(max-width:720px){body.ush-enabled{--ush-header:96px;--ush-offset:0px;--ush-rail:0px}body.ush-enabled,body.ush-enabled.ush-collapsed{--ush-offset:0px}.ush-rail{display:none}.ush-header{display:grid;grid-template-columns:minmax(0,1fr) auto 40px;grid-template-rows:48px 38px;gap:0 7px;padding:5px 12px;height:var(--ush-header)}.ush-brandgroup{gap:8px;grid-column:1;grid-row:1}.ush-brand span{display:none}.ush-brand img{width:26px;height:26px}.ush-toolname{font-size:13px;line-height:1.25;padding:4px 7px;max-width:none}.ush-head-toggle{grid-column:2;grid-row:1;min-height:44px;padding:7px 6px;font-size:11px}.ush-header>.uho-avatar-control{grid-column:3;grid-row:1;min-width:40px;min-height:44px;display:flex;align-items:center;justify-content:center}.ush-header .ush-links{grid-column:1;grid-row:2;margin:0;gap:12px}.ush-header .ush-links a{font-size:11px;min-height:38px;display:flex;align-items:center}.ush-plan-credit{grid-column:2/4;grid-row:2;justify-content:flex-end}.ush-header .uho-plan-control,.ush-header .uho-credits-control{min-height:34px;font-size:10px;padding:5px}.ush-header .uho-plan-control svg,.ush-header .uho-credits-control svg{display:none}.ush-history,.ush-collapsed .ush-history{display:none}.ush-drawer-open .ush-history{display:flex;left:0;top:var(--ush-header);width:min(360px,calc(100vw - 28px));z-index:80;padding:9px 8px}.ush-drawer-heading{display:flex;justify-content:space-between;align-items:center;flex:none;padding:0 7px;font:12px Inter}.ush-drawer-heading button{width:44px;height:44px;border:0;background:none;font-size:25px;cursor:pointer}.ush-mobile-tools{display:grid;grid-template-columns:1fr 1fr;gap:3px;max-height:220px;overflow:auto;scrollbar-width:thin;padding:0 3px 10px;border-bottom:1px solid var(--ush-line);flex:none}.ush-mobile-tools .ush-tool{justify-content:flex-start;gap:8px;min-height:50px;height:auto;width:100%;padding:7px;font:11px/1.3 Inter}.ush-mobile-tools .ush-tool svg{width:24px;height:24px;flex:none}.ush-mobile-tools small{display:block;color:var(--ush-muted);font-size:10px;margin-top:3px}.ush-mobile-tools .ush-lock{display:none}.ush-history{gap:9px}.ush-history-note,.ush-history-title button,.ush-resize{display:none}.ush-new{min-height:44px}.ush-open{min-height:64px;padding:11px 8px;grid-template-columns:16px minmax(0,1fr) 13px}.ush-titleclip{font-size:13px}.ush-meta{font-size:11px;padding-right:0}.ush-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center}.ush-more{position:static;opacity:1;pointer-events:auto;width:44px;height:44px;min-height:44px;margin:0;background:transparent!important;box-shadow:none!important}.ush-mobile-services{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--ush-line);padding:5px 4px 0;flex:none}.ush-mobile-services button{border:0;background:none;display:flex;align-items:center;gap:6px;font:11px Inter;min-height:44px;color:var(--ush-muted);padding:4px}.ush-mobile-services svg{width:18px;height:18px}.ush-history-title{font-size:12px}.ush-day{font-size:11px}body.ush-enabled .voice-work,body.ush-enabled .video-work{width:100%!important;margin-left:0!important}body.ush-enabled .voice-page{padding:18px 14px}body.ush-enabled .app-shell{margin-left:0}body.ush-enabled .sg-shell{margin-left:0;width:100%;display:block;overflow:auto}body.ush-enabled .sg-input{overflow:visible;max-height:none;border-right:0}body.ush-enabled .sg-work{overflow:visible}body.ush-enabled .sg-demo-slide h3{font-size:32px}body.ush-enabled .workspace-heading{padding-top:0}body.ush-enabled #image-workspace{width:100%;min-width:0}}
@media(max-width:359px){body.ush-enabled{--ush-header:128px}.ush-header{grid-template-rows:44px 34px 36px;grid-template-columns:minmax(0,1fr) auto 40px}.ush-header .ush-links{grid-column:1/4;grid-row:2;justify-content:space-between}.ush-plan-credit{grid-column:1/4;grid-row:3;justify-content:space-between}.ush-header .uho-plan-control,.ush-header .uho-credits-control{font-size:11px;min-height:34px}.ush-mobile-tools .ush-tool{font-size:10px}.ush-mobile-tools small{font-size:10px}.ush-mobile-tools{max-height:192px}}
@media(prefers-reduced-motion:reduce){.ush-state.running,.ush-marquee .ush-tasktitle{animation:none}.ush-marquee .ush-titleclip{overflow-x:auto;mask-image:none;scrollbar-width:thin}}
@media(pointer:coarse){.ush-tool{min-height:44px}.ush-header .uho-plan-control,.ush-header .uho-credits-control{min-height:38px}}

body.ush-enabled #ush-history-list{display:block!important;flex-direction:column!important;width:100%;gap:0!important;align-items:stretch!important;justify-content:initial!important}body.ush-enabled .ush-open{display:grid!important;color:var(--ush-ink)!important;font-weight:400!important}body.ush-enabled .ush-tasktitle{color:var(--ush-ink)!important;font-weight:400!important}body.ush-enabled .ush-rowtext{display:flex;flex-direction:column;align-items:stretch;min-width:0}body.ush-enabled .ush-history-title{color:var(--ush-muted);display:flex}body.ush-enabled .ush-history nav a{font-family:Inter;text-decoration:none}body.ush-enabled .ush-history .ush-open span{margin-left:0}body.ush-enabled .ush-header .ush-head-toggle span{margin-left:0}body.ush-enabled .ush-tools{display:flex;flex-direction:column}body.ush-enabled .ush-new{color:var(--ush-ink)!important}body.ush-enabled .ush-history-scroll>.ush-day{display:block;width:auto}body.ush-enabled .ush-row{width:100%}body.ush-enabled .ush-open>.ush-glyph{display:block}body.ush-enabled .ush-history-scroll>p{white-space:normal}body.ush-enabled .ush-history-note{display:block;margin:0}body.ush-enabled .ush-header .ush-links{display:flex}body.ush-enabled .ush-header>.ush-brandgroup{display:flex}body.ush-enabled .ush-header .ush-brand{display:flex}body.ush-enabled .ush-header .ush-plan-credit{display:flex}body.ush-enabled .ov-page{margin-left:var(--ush-offset);width:calc(100% - var(--ush-offset));height:100dvh;overflow:auto;padding-top:var(--ush-header)}body.ush-enabled .ov-head{display:none}body.ush-enabled .ush-history .ush-new{display:flex!important;align-items:center;justify-content:center}body.ush-enabled .ush-mobile-tools .ush-tool{color:var(--ush-ink)}body.ush-enabled .ush-mobile-tools .ush-tool .ush-glyph{color:var(--ush-icon)}

body.ush-enabled.voice-detail-body .voice-page{padding:20px 24px}body.ush-enabled .sg-empty-caption{flex-wrap:wrap;gap:9px}body.ush-enabled .sg-empty-caption strong{white-space:normal;overflow-wrap:anywhere}body.ush-enabled .composer>nav[aria-label="Об апскейле"]{display:flex;gap:12px;flex-wrap:wrap;line-height:1.5;margin-bottom:10px}body.ush-enabled .composer>nav[aria-label="Об апскейле"] a{font-size:12px}
@media(max-width:720px){body.ush-enabled{--ush-header:104px}.ush-header{grid-template-rows:48px 44px;padding:6px 12px}.ush-header .ush-links a{min-height:44px;font-size:12px}.ush-header .uho-plan-control,.ush-header .uho-credits-control{min-height:44px;font-size:11px}.ush-header .uho-avatar-control{min-height:44px}.ush-mobile-tools small{font-size:11px}.ush-enabled main textarea,.ush-enabled main input[type=text],.ush-enabled main select{font-size:16px}.ush-enabled main button{min-height:44px}.ush-enabled main .voice-icon-button{min-width:44px}.ush-enabled .voice-detail-body .voice-page{padding:18px 14px}}
@media(max-width:359px){body.ush-enabled{--ush-header:144px}.ush-header{grid-template-rows:44px 44px 44px}.ush-header .ush-links{grid-row:2}.ush-plan-credit{grid-row:3}.ush-mobile-tools .ush-tool,.ush-mobile-tools small{font-size:11px}}
/* History edge and scrollbar are exclusive desktop pointer states. */
.ush-scrollbar{display:none}
.ush-scrollbar[hidden]{display:none!important}
@media(min-width:721px){
 .ush-open{padding-right:0}
 .ush-open>.ush-state{align-self:end;justify-self:end}
 .ush-history-scroll{scrollbar-gutter:auto;scrollbar-width:none}
 .ush-history-scroll::-webkit-scrollbar{width:0;height:0}
 .ush-scrollbar{display:block;position:absolute;width:6px;z-index:2;opacity:0;pointer-events:none;touch-action:none;user-select:none;cursor:default}
 .ush-scrollbar-thumb{position:absolute;left:1px;top:0;width:4px;border-radius:4px;background:rgba(70,103,95,.42);cursor:ns-resize}
 .ush-scrollbar-visible .ush-scrollbar{opacity:1;pointer-events:auto}
 .ush-edge-active .ush-scrollbar,.ush-resizing .ush-scrollbar{opacity:0!important;pointer-events:none!important}
 .ush-resize{right:-4px;width:8px;z-index:5;background:transparent!important;outline:none!important}
 .ush-resize::after{content:'';position:absolute;left:4px;top:0;bottom:0;width:1px;background:#608c7f;opacity:0;pointer-events:none}
 .ush-edge-active .ush-resize::after,.ush-resizing .ush-resize::after{opacity:1}
}
@media(max-width:359px){.ush-head-toggle{width:44px;padding:6px}.ush-head-toggle span{display:none}}


/* Shared warm neutral / coral palette. Original UI geometry and media retained. */
body.ush-enabled{--ush-accent:#c3462b;--ush-accent-hover:#ad3922;--ush-surface-tint:#f0efe8;--ush-selection:#f8e5dc}
body.ush-enabled{--un-paper:var(--ush-bg);--un-card:var(--uho-paper);--un-side:var(--ush-side);--un-ink:var(--ush-ink);--un-muted:var(--ush-muted);--un-line:var(--ush-line);--un-coral:var(--ush-accent);--un-accent:var(--ush-accent);--un-accent-dark:var(--ush-accent-hover);--un-soft:var(--ush-selection);--un-hover:#e5e4db;--bg:var(--ush-bg);--paper:var(--uho-paper);--card:var(--uho-paper);--ink:var(--ush-ink);--text:var(--ush-ink);--muted:var(--ush-muted);--line:var(--ush-line);--accent:var(--ush-accent);--soft:var(--ush-surface-tint);--sg-bg:var(--ush-bg);--sg-paper:var(--uho-paper);--sg-ink:var(--ush-ink);--sg-muted:var(--ush-muted);--sg-line:var(--ush-line);--sg-accent:var(--ush-accent);--sg-soft:var(--ush-selection);--vft-accent:var(--ush-accent);--vfp-accent:var(--ush-accent);--vft-soft:var(--ush-surface-tint);--vfp-soft:var(--ush-surface-tint);--vft-ink:var(--ush-ink);--vfp-ink:var(--ush-ink);--ppt-accent:var(--ush-accent);--ppt-soft:var(--ush-selection)}
body.ush-enabled .primary,body.ush-enabled .voice-primary,body.ush-enabled .sg-primary{background:var(--ush-accent);border-color:var(--ush-accent);color:#fffef9}
body.ush-enabled .primary:hover:not(:disabled),body.ush-enabled .voice-primary:hover:not(:disabled),body.ush-enabled .sg-primary:hover:not(:disabled){background:var(--ush-accent-hover)}
body.ush-enabled .upload-zone,body.ush-enabled .video-translation .upload-zone{background:var(--uho-paper);border-color:var(--ush-line)}
body.ush-enabled .ush-dialog .ush-primary{background:var(--ush-accent);border-color:var(--ush-accent);color:var(--uho-paper)}

/* Native UI: voice.css */
body.ush-enabled .voice-side-backdrop{background:var(--ush-accent)}
body.ush-enabled .voice-record-menu>div{box-shadow:0 8px 24px #17221f14}
body.ush-enabled.voice-ui .voice-dialog{box-shadow:0 12px 40px #17221f14}
body.ush-enabled .voice-dialog::backdrop{background:var(--ush-accent)}
body.ush-enabled.voice-ui .voice-yandex{color:var(--ush-ink)}
body.ush-enabled.voice-ui .voice-vk{background:var(--ush-accent)}
body.ush-enabled.voice-ui .voice-telegram{background:var(--ush-accent)}
body.ush-enabled.voice-ui .voice-max{background:var(--ush-accent)}
@media (max-width:600px){body.ush-enabled.voice-ui .voice-side{box-shadow:20px 8px 50px #17221f14}}
body.ush-enabled.voice-ui .voice-switch-track::before{box-shadow:0 1px 3px #17221f14}
body.ush-enabled.voice-ui .voice-history-row:hover,body.ush-enabled.voice-ui .voice-history-row:has([aria-current=page]),body.ush-enabled.voice-ui .voice-history-row:focus-within{background:var(--ush-accent)}
body.ush-enabled.voice-ui .voice-history-more:hover{background:var(--ush-accent)}
body.ush-enabled.voice-ui .voice-history-menu{box-shadow:0 8px 28px #17221f14}
body.ush-enabled.voice-ui .voice-history-menu button:hover,body.ush-enabled.voice-ui .voice-history-menu button:focus-visible{background:var(--ush-accent)}
body.ush-enabled.voice-ui .voice-title-input,body.ush-enabled.voice-ui .voice-history-input{outline:2px solid var(--ush-accent)}
body.ush-enabled.voice-ui .voice-title-input::selection,body.ush-enabled.voice-ui .voice-history-input::selection{background:var(--ush-selection);color:var(--ush-ink)}
body.ush-enabled.voice-ui .voice-progress{box-shadow:0 8px 30px #17221f14}
body.ush-enabled.voice-ui .voice-message{box-shadow:0 4px 18px #17221f14}
body.ush-enabled .voice-site-notice{border:1px solid var(--ush-line);background:var(--ush-surface-tint);color:var(--ush-ink)}
body.ush-enabled .voice-admin-service b{color:var(--ush-ink)}
body.ush-enabled .voice-admin-incident.is-resolved{border-color:var(--ush-accent);background:var(--ush-surface-tint)}
body.ush-enabled .voice-monitor-legend span:nth-child(2)::before{background:var(--ush-accent)}
body.ush-enabled .voice-monitor-legend span:nth-child(3)::before{background:var(--ush-accent)}
body.ush-enabled .voice-monitor-legend span:nth-child(4)::before{background:var(--ush-accent)}
body.ush-enabled.voice-ui .voice-access-status.is-active{color:var(--ush-ink)}
/* Native UI: conversation.css */
body.ush-enabled{color:var(--ush-ink);background:var(--uho-paper)}
body.ush-enabled button:focus-visible,body.ush-enabled a:focus-visible,body.ush-enabled select:focus-visible,body.ush-enabled textarea:focus-visible{outline:3px solid var(--ush-line)}
body.ush-enabled button:hover:not(:disabled){background:var(--uho-paper)}
body.ush-enabled .topbar{background:var(--uho-paper)}
body.ush-enabled #sidebar{background:var(--ush-surface-tint)}
body.ush-enabled .history-item.selected{background:var(--ush-surface-tint);color:var(--ush-muted)}
body.ush-enabled .conversation-room{box-shadow:0 3px 12px #17221f14}
body.ush-enabled .conversation-symbol{background:var(--uho-paper);color:var(--ush-muted)}
body.ush-enabled .turn{border:1px solid var(--ush-line);background:var(--uho-paper)}
body.ush-enabled .turn.from-right{background:var(--uho-paper);border-color:var(--ush-line)}
body.ush-enabled .turn-status.active:before{background:var(--ush-accent)}
body.ush-enabled .turn-actions button,body.ush-enabled .turn-actions a{border:1px solid var(--ush-line)}
body.ush-enabled .speak-left{background:var(--ush-accent);border-color:var(--ush-accent)}
body.ush-enabled .speak-left:hover:not(:disabled){background:var(--ush-accent)}
body.ush-enabled .speak-right{background:var(--ush-surface-tint);border-color:var(--ush-line);color:var(--ush-ink)}
body.ush-enabled .speak-right:hover:not(:disabled){background:var(--ush-surface-tint)}
body.ush-enabled dialog{color:var(--ush-ink);box-shadow:0 24px 100px #17221f14}
body.ush-enabled dialog::backdrop{background:var(--ush-accent)}
body.ush-enabled .primary:hover:not(:disabled){background:var(--ush-accent)}
@media (max-width:760px){body.ush-enabled #sidebar{box-shadow:10px 0 30px #17221f14}
body.ush-enabled #sidebar-shade{background:var(--ush-accent)}}
/* Native UI: video-translation.css */
body.ush-enabled .direction-arrow{color:var(--ush-muted)}
body.ush-enabled .upload-zone{border:1px dashed var(--ush-line);background:var(--uho-paper)}
body.ush-enabled .upload-zone.dragover{background:var(--ush-surface-tint)}
body.ush-enabled .video-symbol{background:var(--ush-surface-tint);color:var(--ush-muted)}
body.ush-enabled .scenario label:has(:checked){border-color:var(--ush-line);background:var(--uho-paper)}
body.ush-enabled .activity-dot{background:var(--ush-selection)}
body.ush-enabled #player{background:var(--ush-accent)}
body.ush-enabled .segment-meta .stamp{background:var(--uho-paper)}
body.ush-enabled .speech-editor textarea{color:var(--ush-ink)}
body.ush-enabled .speech-marks mark{background:var(--ush-surface-tint)}
body.ush-enabled .speech-marks mark.manual{background:var(--ush-surface-tint)}
body.ush-enabled #setup-video{background:var(--ush-accent)}
body.ush-enabled .translation-embed{background:var(--ush-accent)}
@media (min-width:1024px){body.ush-enabled.video-translation[data-translation-kind="video"][data-source-layout="desktop-1"] #setup[data-source-ready="true"] #source-preview{background:var(--ush-accent)}
body.ush-enabled.video-translation[data-translation-kind="video"][data-source-layout="desktop-1"] #setup[data-source-ready="true"] #setup-video{background:var(--ush-accent)}}
/* Native UI: image-generation.css */
body.ush-enabled.image-page{background:var(--uho-paper)}
body.ush-enabled.image-page main button:hover{background:var(--ush-surface-tint)}
body.ush-enabled.image-page .primary:hover{background:var(--ush-accent)}
body.ush-enabled.image-page main textarea,body.ush-enabled.image-page main input:not([type=checkbox]),body.ush-enabled.image-page main select{border:1px solid var(--ush-line)}
body.ush-enabled.image-page .prompt-tabs button[aria-selected=true]{background:var(--ush-surface-tint);color:var(--ush-ink)}
body.ush-enabled #results img{background:var(--ush-surface-tint)}
body.ush-enabled .empty{border:1px dashed var(--ush-line);color:var(--ush-muted)}
body.ush-enabled.image-page dialog{box-shadow:0 25px 100px #17221f14}
body.ush-enabled.image-page dialog::backdrop{background:var(--ush-accent)}
body.ush-enabled.image-page #image-preview::backdrop{background:var(--ush-accent)}
body.ush-enabled.image-page #image-preview .preview-tools button{background:var(--ush-accent)}
@media (max-width:850px){body.ush-enabled .mobile-tabs button[aria-pressed=true]{background:var(--ush-surface-tint)}}
body.ush-enabled.image-page .composer>.actions{background:var(--uho-paper)}
body.ush-enabled.image-page .mode-switch{background:var(--ush-surface-tint)}
body.ush-enabled.image-page .mode-switch button[aria-pressed=true]{color:var(--ush-ink);box-shadow:0 1px 4px #17221f14}
body.ush-enabled.image-page .model-badge{color:var(--ush-ink);background:var(--ush-surface-tint)}
body.ush-enabled.image-page #sources{background:var(--ush-surface-tint)}
body.ush-enabled.image-page .input-card img{background:var(--uho-paper)}
body.ush-enabled.image-page .input-tools button[aria-pressed=true]{background:var(--ush-surface-tint);color:var(--ush-ink)}
body.ush-enabled.image-page #run-data pre{background:var(--ush-surface-tint)}
body.ush-enabled.image-page button:focus-visible,body.ush-enabled.image-page select:focus-visible,body.ush-enabled.image-page textarea:focus-visible,body.ush-enabled.image-page input:focus-visible{outline:2px solid var(--ush-accent)}
body.ush-enabled .image-help-menu>div{box-shadow:0 10px 35px #17221f14}
body.ush-enabled .image-help-menu a:hover{background:var(--ush-surface-tint)}
body.ush-enabled.image-page main .prompt-mic{color:var(--ush-ink);background:var(--ush-surface-tint);border-color:var(--ush-line)}
body.ush-enabled.image-page .ratio-switch button[aria-pressed=true]{background:var(--ush-surface-tint);border-color:var(--ush-line);color:var(--ush-ink)}
body.ush-enabled.image-page .quality-switch button[aria-pressed=true]{background:var(--ush-surface-tint);border-color:var(--ush-line);color:var(--ush-ink)}
body.ush-enabled.image-page #quote-stages{background:var(--ush-surface-tint)}
/* Native UI: photo-upscale.css */

/* Native UI: video-upscale.css */
body.ush-enabled.video-upscale-page .video-screen{background: var(--ush-accent)}
body.ush-enabled.video-upscale-page .video-compare-stage{background: var(--ush-accent)}
body.ush-enabled.video-upscale-page .upscale-comparison:is(:fullscreen, .video-immersive){background: var(--ush-accent);color: var(--ush-muted)}
body.ush-enabled.video-upscale-page .upscale-comparison:is(:fullscreen, .video-immersive) :is(.muted,.voice-quiet){color: var(--ush-muted)}
body.ush-enabled.video-upscale-page .upscale-comparison:is(:fullscreen, .video-immersive) .voice-button{background: var(--ush-accent);color: var(--ush-muted)}
/* Native UI: slide-generation.css */

/* Native UI: gemma.css */
body.ush-enabled .gemma-history-menu{box-shadow:0 8px 28px #17221f14}
body.ush-enabled .gemma-dialog::backdrop{background:var(--ush-accent)}
body.ush-enabled.gemma-page #gemma-shade{background:var(--ush-accent)}
@media (max-width:600px){body.ush-enabled.gemma-page .voice-side{box-shadow:20px 8px 50px #17221f14}}
/* Native UI: video-from-photo.css */
body.ush-enabled.vfp-page .voice-primary:hover{background:var(--ush-accent);border-color:var(--ush-accent)}
body.ush-enabled .vfp-history-item:hover,body.ush-enabled .vfp-history-item[aria-current=true]{background:var(--ush-selection)}
body.ush-enabled .vfp-pilot{border:1px solid var(--ush-line);background:var(--ush-surface-tint);color:var(--ush-ink)}
body.ush-enabled .vfp-step{border:1px solid var(--ush-line);background:var(--ush-surface-tint)}
body.ush-enabled .vfp-drop{border:1px dashed var(--ush-line);background:var(--ush-surface-tint)}
body.ush-enabled.vfp-page textarea,body.ush-enabled.vfp-page select,body.ush-enabled.vfp-page #vfp-seed{border:1px solid var(--ush-line)}
body.ush-enabled .vfp-stage{border:1px solid var(--ush-line)}
body.ush-enabled .vfp-empty svg{stroke:var(--ush-muted)}
body.ush-enabled .vfp-empty svg .vfp-play-mark{fill:var(--ush-muted)}
body.ush-enabled .vfp-working-label{background:var(--ush-accent)}
body.ush-enabled .vfp-dot{background:var(--ush-selection)}
body.ush-enabled .vfp-quote{box-shadow:0 25px 90px #17221f14}
body.ush-enabled .vfp-quote::backdrop{background:var(--ush-accent)}
@media (max-width:1000px){body.ush-enabled .vfp-shade{background:var(--ush-accent)}}
/* Native UI: video-from-text.css */
body.ush-enabled.vft-page .voice-primary:hover{background:var(--ush-accent);border-color:var(--ush-accent)}
body.ush-enabled .vft-history-item:hover,body.ush-enabled .vft-history-item[aria-current=true]{background:var(--ush-selection)}
body.ush-enabled .vft-pilot{border:1px solid var(--ush-line);background:var(--ush-surface-tint);color:var(--ush-ink)}
body.ush-enabled .vft-step{border:1px solid var(--ush-line);background:var(--ush-surface-tint)}
body.ush-enabled.vft-page textarea,body.ush-enabled.vft-page select,body.ush-enabled.vft-page #vft-seed{border:1px solid var(--ush-line)}
body.ush-enabled .vft-stage{border:1px solid var(--ush-line)}
body.ush-enabled .vft-quote{box-shadow:0 25px 90px #17221f14}
body.ush-enabled .vft-quote::backdrop{background:var(--ush-accent)}
@media (max-width:1000px){body.ush-enabled .vft-shade{background:var(--ush-accent)}}
body.ush-enabled .vft-empty-stage{background:linear-gradient(145deg,var(--ush-surface-tint),var(--ush-surface-tint));border-color:var(--ush-line)}
body.ush-enabled .vft-empty>.vft-scene-mark{border:1px solid var(--ush-line);background:var(--uho-paper)}
body.ush-enabled .vft-video-stage>video{background:var(--ush-accent)}
/* Native UI: video-workspace.css */
body.ush-enabled .video-shade{background:var(--ush-accent)}
/* Native UI: dictation.css */
body.ush-enabled.voice-ui .dictation-switch input{background:var(--ush-selection)}
body.ush-enabled .dictation-switch input:checked{background:var(--ush-accent);border-color:var(--ush-accent)}
/* Native UI: dictation-text.css */
body.ush-enabled .dt-editor{color:var(--un-ink,var(--ush-ink))}
body.ush-enabled .dt-version:hover{background:var(--ush-surface-tint)}
body.ush-enabled .dt-version[aria-current="true"]{border-color:var(--ush-line);background:var(--ush-surface-tint)}
body.ush-enabled .dt-source strong{color:var(--un-ink,var(--ush-ink))}
body.ush-enabled .dt-editor button[aria-expanded="true"]{background:var(--ush-surface-tint);border-color:var(--ush-line)}
body.ush-enabled .dt-picker{border:1px solid var(--ush-line)}
body.ush-enabled .dt-style-buttons button,body.ush-enabled .dt-language-buttons button{border:1px solid var(--ush-line);background:var(--uho-paper);color:var(--ush-ink)}
body.ush-enabled .dt-style-buttons button:hover,body.ush-enabled .dt-language-buttons button:hover{background:var(--ush-surface-tint)}
body.ush-enabled .dt-picker input{border:1px solid var(--ush-line)}
body.ush-enabled .dt-splitter:hover,body.ush-enabled .dt-splitter:focus-visible,body.ush-enabled .dt-editor[data-resizing="1"] .dt-splitter{background:var(--ush-surface-tint)}
body.ush-enabled .dt-running{background:var(--ush-surface-tint);border:1px solid var(--ush-line)}
body.ush-enabled .dt-comparison textarea{color:var(--ush-ink)}
/* Native UI: studio.css */
body.ush-enabled.voice-studio .voice-brand small{color:var(--ush-muted)}
body.ush-enabled .voice-studio-link{color:var(--ush-muted)!important}
body.ush-enabled .tts-header-title span{color:var(--ush-muted)}
body.ush-enabled .tts-badge{color:var(--ush-muted);background:var(--ush-surface-tint)}
body.ush-enabled .tts-card{border:1px solid var(--ush-line)}
body.ush-enabled .tts-editor+.tts-editor{border-top:1px solid var(--ush-line)}
body.ush-enabled .tts-text-info{color:var(--ush-muted)}
body.ush-enabled .tts select,body.ush-enabled .tts textarea{border:1px solid var(--ush-line);color:var(--ush-ink)}
body.ush-enabled .tts input:focus,body.ush-enabled .tts textarea:focus,body.ush-enabled .tts select:focus{outline:2px solid var(--ush-line)}
body.ush-enabled .tts .tts-primary{background:var(--ush-accent)}
body.ush-enabled .tts-hint{color:var(--ush-muted)}
body.ush-enabled .tts-result{border-top:1px solid var(--ush-line)}
body.ush-enabled .tts #tts-status{color:var(--ush-muted)}
body.ush-enabled .tts-diagnostics summary{color:var(--ush-muted)}
body.ush-enabled .tts-legend{color:var(--ush-muted)}
body.ush-enabled .tts-manual-key:disabled{color:var(--ush-muted)}
body.ush-enabled .tts-job-row:hover,body.ush-enabled .tts-job-row.is-current{background:var(--ush-surface-tint)}
body.ush-enabled .tts-job-dot{color:var(--ush-muted)}
body.ush-enabled .tts-job-more{color:var(--ush-muted)}
body.ush-enabled .tts-job-row input{border:1px solid var(--ush-line)}
body.ush-enabled .tts-enrollment .tts-personal-primary{background:var(--ush-accent);border-color:var(--ush-accent)}
body.ush-enabled .tts-enrollment input[type=text],body.ush-enabled #my-voice-name{border:1px solid var(--ush-line)}
body.ush-enabled .tts-reading-text{background:var(--uho-paper);color:var(--ush-ink)}
body.ush-enabled .tts-recording-label{color:var(--ush-muted)}
body.ush-enabled .tts-personal-storage{color:var(--ush-muted)}
body.ush-enabled #my-voice-status{color:var(--ush-muted)}
/* Native UI: studio-workspace.css */
body.ush-enabled .tts-paragraph-text mark{background:var(--ush-surface-tint)}
body.ush-enabled .tts-paragraph-text mark.tts-edited{background:var(--ush-surface-tint)}
body.ush-enabled .tts-settings-popover{box-shadow:0 6px 22px #17221f14}
/* Native UI: tts-pro.css */
body.ush-enabled .tts-pro-kicker{color:var(--un-accent,var(--ush-ink))}
/* Native UI: presentations.css */
body.ush-enabled .ppt-spinner{border:2px solid var(--ush-line)}
body.ush-enabled .ppt-thumb img{background:var(--uho-paper)}
body.ush-enabled .ppt-thumb.is-ready small{color:var(--ush-ink)}
body.ush-enabled .ppt-image{background:var(--uho-paper)}
body.ush-enabled .ppt textarea:focus{outline:2px solid var(--ush-line)}
/* Рабочие компоненты владеют только добавленными узлами. */
html:not(.uho-account-open):has(body.ush-enabled){scrollbar-gutter:auto}
[data-uho-workspace-shell][hidden]{display:none!important}
.ush-account-slot{display:contents}.ush-account-slot>[data-catalog-account]{display:contents}
.ush-header .ush-account-slot .uho-header-controls{display:contents}
.ush-header .ush-account-slot .uho-plan-control{grid-column:2;grid-row:2}
.ush-header .ush-account-slot .uho-credits-control{grid-column:3;grid-row:2}
.ush-header .ush-account-slot .uho-avatar-control{grid-column:3;grid-row:1;justify-self:end;width:36px;height:36px;min-width:36px;min-height:36px;display:flex;align-items:center;justify-content:center}
.ush-account-slot>.uho-header-controls{margin:0}
.ush-header .ush-account-slot [data-catalog-account] a,.ush-header .ush-account-slot>a{font:12px Inter;min-height:34px;padding:7px;border:1px solid var(--ush-line);border-radius:7px;color:var(--ush-ink)}
.ush-history-status{padding:4px 7px;font:11px/1.5 Inter;color:var(--ush-muted);flex:none}.ush-history-status:empty{display:none}.ush-history-status button{margin-top:5px}
.ush-history-status button,.ush-load-more{border:1px solid var(--ush-line);border-radius:7px;background:var(--uho-paper);color:var(--ush-ink);font:11px/1.4 Inter;padding:7px 9px;min-height:34px;cursor:pointer}
.ush-history-scroll>.ush-empty{white-space:normal;padding:9px 7px;font:12px/1.6 Inter;color:var(--ush-muted)}
.ush-load-more{display:block;margin:8px auto}.ush-row .ush-open[aria-disabled=true]{cursor:default;opacity:.65}
.ush-open:not(a){width:100%;text-align:left;border:0;background:none;cursor:default}
.ush-no-actions{display:block;width:0;height:0}.ush-native-controls{display:flex;align-items:center;gap:5px;flex:none;flex-wrap:wrap;padding:0 5px}
.ush-native-controls>[data-voice-queue-open]{display:inline-flex;min-height:36px;margin:0;font:11px Inter;color:var(--ush-muted);background:none;border:0;padding:4px}
.ush-native-controls>[hidden]{display:none!important}.ush-native-help{margin:0 5px;font:11px/1.5 Inter;max-width:100%}.ush-native-help summary{cursor:pointer;min-height:30px;display:flex;align-items:center;color:var(--ush-muted)}
.ush-native-help>div{display:flex;flex-direction:column;gap:5px}.ush-native-help a,.ush-native-help button{font:11px/1.4 Inter;color:var(--ush-muted);background:transparent;border:0;min-height:30px;text-align:left}

.ush-history[data-busy=true] .ush-open{pointer-events:none;opacity:.65}
.ush-rail-bottom [aria-pressed=true]{background:#e0e5dc}
.ush-dialog .ush-error{color:#a33d29;font-size:12px}.ush-dialog input{width:100%;box-sizing:border-box}
.ush-new{font:12px Inter;cursor:pointer}.ush-new:disabled{opacity:.55;cursor:default}
@media(min-width:721px){.ush-header .ush-account-slot .uho-header-controls{display:flex;margin:0;gap:8px}.ush-header .ush-account-slot>[data-catalog-account]{display:flex;margin:0}.ush-header .ush-account-slot .uho-avatar-control{height:36px;min-height:36px}}
@media(max-width:720px){.ush-header .ush-account-slot .uho-avatar-control{width:40px;height:44px;min-width:40px;min-height:44px}.ush-history .ush-native-controls>[data-voice-queue-open]{min-height:44px}.ush-native-help summary,.ush-native-help a,.ush-native-help button{min-height:44px}.ush-history-status button,.ush-load-more{min-height:44px}.ush-header .ush-account-slot .header-registration{grid-column:3;grid-row:2}.ush-header .ush-account-slot [data-catalog-account] a,.ush-header .ush-account-slot>a{min-height:44px}}
@media(max-width:359px){.ush-header .ush-account-slot .uho-plan-control{grid-column:1;grid-row:3;justify-self:start}.ush-header .ush-account-slot .uho-credits-control{grid-column:2/4;grid-row:3;justify-self:end}.ush-header .ush-account-slot [data-catalog-account] a,.ush-header .ush-account-slot>a{grid-column:1;grid-row:3}.ush-header .ush-account-slot .header-registration{grid-column:2/4;grid-row:3}}
@media(max-width:720px){.ush-row.ush-without-actions{grid-template-columns:minmax(0,1fr)}}
@media(max-width:720px){.ush-mobile-tools{flex:0 1 auto;min-height:50px}.ush-history-scroll{min-height:72px}.ush-mobile-services{gap:6px}.ush-mobile-services button{flex:1;min-width:0;white-space:normal;text-align:left}}

/* Под баланс выделяется его естественная ширина, аватар остаётся у правого края. */
@media(max-width:720px){
 .ush-header{grid-template-columns:minmax(0,1fr) auto auto}
 .ush-header .ush-account-slot .uho-credits-control{min-width:max-content}
 .ush-header .ush-account-slot .uho-credits-control span{max-width:none}
}

/* Shared chrome is rendered before the editor. Desktop keeps both panes full height. */
[data-uho-workspace-shell]{display:contents}
[data-uho-workspace-shell] [hidden]{display:none!important}
.ush-history-brand{display:none}
@media(min-width:721px){
 body.ush-enabled{--ush-history:var(--ush-initial-history,248px);--ush-offset:calc(var(--ush-rail) + var(--ush-history))}
 body.ush-enabled.ush-collapsed,
 html[data-uho-history-collapsed] body.ush-enabled:not([data-ush-mounted]){--ush-offset:var(--ush-rail)}
 html[data-uho-history-collapsed] body.ush-enabled:not([data-ush-mounted]) .ush-history{display:none}
 body.ush-enabled .ush-header{left:var(--ush-offset)}
 body.ush-enabled:not(.ush-collapsed) .ush-header>.ush-brandgroup{display:none}
 html[data-uho-history-collapsed] body.ush-enabled:not([data-ush-mounted]) .ush-header>.ush-brandgroup{display:flex}
 body.ush-enabled .ush-header .ush-brand{display:none}
 .ush-header [data-ush-home]{display:none}
 .ush-rail,.ush-history{top:0}
 .ush-rail{padding-top:7px;gap:7px}
 .ush-rail-home{flex:none;margin:0 0 4px}
 .ush-rail-home img{display:block;width:28px;height:28px;border-radius:7px}
 .ush-tools{min-height:0}
 .ush-history{padding-top:0}
 .ush-history-brand{display:flex;gap:9px;align-items:center;flex:none;min-height:var(--ush-header);margin:0 -8px -1px;padding:0 15px;border-bottom: 1px solid rgb(0 0 0 / 0);min-width:0}
 .ush-history-wordmark{font:650 19px/1.2 Inter,'Segoe UI',Arial,sans-serif;color:var(--ush-ink);flex:none}
 .ush-history-brand .ush-toolname{min-width:0;max-width:none}
 .ush-history .ush-native-controls:empty{display:none}
}
@media(min-width:721px) and (max-width:920px){
 body.ush-enabled{--ush-header:84px}
 body.ush-enabled.ush-collapsed,
 html[data-uho-history-collapsed] body.ush-enabled:not([data-ush-mounted]){--ush-header:56px}
 body.ush-enabled:not(.ush-collapsed) .ush-header{flex-wrap:wrap;column-gap:10px;row-gap:0;padding:2px 10px;align-content:center}
 body.ush-enabled:not(.ush-collapsed) .ush-header .ush-account-slot{display:flex;flex:1 0 100%;min-width:0;justify-content:flex-end}
 html[data-uho-history-collapsed] body.ush-enabled:not([data-ush-mounted]) .ush-header .ush-account-slot{display:contents}
}

.ush-header .audio-mobile-link,
.audio-settings-toggle-label,
.audio-mobile-glyph {
  display: none;
}

@media (max-width: 720px) {
  body.ush-enabled:has(.ush-header .audio-mobile-link) {
    --ush-header: 58px;
  }

  .ush-header:has(.audio-mobile-link) {
    grid-template-columns: minmax(0, 1fr) auto 40px;
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    column-gap: 6px;
    padding: 4px 10px;
  }

  .ush-header .ush-brandgroup > :is(.ush-brand, .ush-toolname):not(.audio-mobile-link),
  body.ush-enabled .ush-header:has(.audio-mobile-link) :is(.ush-links, .ush-plan-credit, .uho-plan-control, .uho-credits-control) {
    display: none;
  }

  .ush-header .ush-brandgroup > .audio-mobile-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
  }

  .ush-header .ush-brand.audio-mobile-link {
    flex: none;
    min-width: 38px;
    min-height: 44px;
    justify-content: center;
    border-radius: 8px;
  }

  .ush-header .ush-toolname.audio-mobile-link {
    min-width: 0;
    min-height: 30px;
    white-space: normal;
    color: var(--ush-ink);
  }

  .ush-header .ush-toolname.audio-mobile-link:hover,
  .ush-header .ush-toolname.audio-mobile-link:active {
    background: var(--ush-side);
  }

  .ush-header:has(.audio-mobile-link) > :is(.ush-account-slot, .uho-avatar-control) {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 760px) {
  body.ush-enabled.voice-ui [data-audio-settings-layout] .voice-title-input:focus {
    border: 1px solid var(--ush-icon);
    outline: none;
    box-shadow: none;
  }

  .voice-ui [data-audio-settings-layout] .consult-compose textarea {
    scrollbar-width: none;
  }

  .voice-ui [data-audio-settings-layout] .consult-compose textarea::-webkit-scrollbar {
    display: none;
  }

  .voice-ui [data-audio-settings-layout][data-audio-settings-compact] .audio-settings {
    --audio-compact-hit: clamp(27px, calc((100vw - 44px) / 10), 34px);
    --audio-compact-icon-size: 19px;
    --audio-compact-gap: 2px;
    align-items: center;
    gap: var(--audio-compact-gap);
    padding: 4px;
  }

  .voice-ui [data-audio-settings-layout][data-audio-settings-compact] .audio-settings .voice-toolbar {
    flex-wrap: nowrap;
    padding: 0;
  }

  .audio-settings .voice-toolbar .voice-icon:has(> .audio-mobile-glyph) > :not(.audio-mobile-glyph) {
    display: none;
  }

  .audio-settings .voice-toolbar .audio-mobile-glyph {
    display: block;
    color: var(--ush-muted);
  }

  [data-audio-settings-layout] .audio-settings .voice-toolbar :is(.audio-mode-icon, .audio-timecodes-icon):has(.audio-mobile-glyph) {
    mask: none;
    background: transparent;
  }

  [data-audio-settings-layout]:not(:has(.voice-transcript.is-plain-mode)) [data-mode-glyph="speakers"],
  [data-audio-settings-layout]:has(.voice-transcript.is-plain-mode) [data-mode-glyph="text"] {
    display: none;
  }

  [data-audio-settings-layout] .audio-settings :is(.voice-toolbar svg, .voice-toolbar svg [stroke-width], .audio-settings-toggle svg) {
    stroke-width: 1.9;
  }

  [data-audio-settings-layout] .audio-settings:has(.audio-processing-status [data-job-type="diarization"]):has(.voice-toolbar > a[href*="stage=speakers"]) .audio-processing-status {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .voice-ui [data-audio-settings-layout] .audio-settings:has(.audio-processing-status [data-job-type="diarization"]):has(.voice-toolbar > a[href*="stage=speakers"]) .audio-processing-status + .voice-toolbar {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .audio-settings:has(.audio-processing-status [data-job-type="diarization"]) .voice-toolbar > a[href*="stage=speakers"] > .voice-icon {
    position: relative;
  }

  .audio-settings:has(.audio-processing-status [data-job-type="diarization"]) .voice-toolbar > a[href*="stage=speakers"] > .voice-icon::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1.5px solid var(--ush-line);
    border-top-color: var(--ush-icon);
    border-radius: 50%;
    animation: voice-spin .85s linear infinite;
    pointer-events: none;
  }

  .voice-ui [data-audio-settings-layout]:not([data-audio-settings-compact]) .audio-settings .audio-settings-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    min-height: 38px;
    padding: 0 6px;
  }

  [data-audio-settings-layout]:not([data-audio-settings-compact]) .audio-settings-toggle-label {
    display: inline;
    font-size: 13px;
    white-space: nowrap;
  }

  .audio-settings-stage > .consult-tab-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    padding-inline: 8px;
    border: 1px solid var(--ush-line);
    border-radius: 9px;
    background: var(--uho-paper);
  }

  .audio-settings-stage .consult-tab-bar > .consult-tabs {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .audio-settings-stage .consult-tab-bar .consult-tabs > button {
    padding-inline: 2px;
    font-size: clamp(11px, 3.35vw, 13px);
    white-space: nowrap;
  }

  .consult-tab-actions { margin-inline-start: auto; }
  .voice-ui .consult-tab-actions .consult-prompt-examples > button {
    padding-inline: 7px;
    font-size: clamp(10px, 3.1vw, 12px);
    white-space: nowrap;
  }

  .audio-settings-stage:has(> .consult-tab-bar .consult-tab-actions:not([hidden])) .consult-chat-heading {
    display: none;
  }

  [data-audio-settings-layout][data-recording=""] {
    grid-template-rows: minmax(0, 1fr);
  }

  [data-audio-settings-layout][data-recording=""] > .audio-settings {
    align-self: start;
    max-height: 100%;
    padding: 12px;
  }

  [data-audio-settings-layout][data-recording=""] .audio-settings-controls {
    padding-bottom: 0;
  }

  [data-audio-settings-layout][data-recording=""] .voice-recorder {
    margin-block-end: 0;
  }

  [data-audio-settings-layout][data-recording=""] > .audio-settings-stage,
  .voice-ui [data-audio-settings-layout][data-recording=""] .audio-settings .audio-settings-toggle {
    display: none;
  }

  [data-audio-settings-layout]:not(:has(> .audio-settings .voice-toolbar)) .audio-settings-stage :is(.consult-tab-bar, .consult-tabs, #dialogue-pane, .audio-transcript-empty) {
    display: none;
  }

  [data-audio-settings-layout]:not(:has(> .audio-settings .voice-toolbar)) .audio-settings-stage .consult-layout > #transcript-pane {
    display: block;
  }

  .voice-ui [data-audio-settings-layout]:not([data-audio-settings-compact]) .audio-settings .voice-processing-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  [data-audio-settings-layout]:not([data-audio-settings-compact]) .voice-processing-form > :not(.voice-quality, .voice-scope-row) {
    grid-column: 1 / -1;
  }

  .voice-ui [data-audio-settings-layout]:not([data-audio-settings-compact]) .audio-settings .voice-quality {
    display: grid;
    align-content: space-between;
  }

  .voice-ui [data-audio-settings-layout]:not([data-audio-settings-compact]) .audio-settings .voice-model-options {
    display: flex;
    gap: 4px;
    min-inline-size: 0;
  }

  .voice-ui [data-audio-settings-layout]:not([data-audio-settings-compact]) .audio-settings .voice-model-options label > span {
    padding: 6px 4px;
    font-size: 12px;
  }

  [data-audio-settings-layout][data-recording=""]:has([data-audio-uploading]:not(.is-recording, .voice-has-recording) > .audio-upload-indicator) > .audio-settings {
    position: relative;
    align-self: stretch;
    border-color: transparent;
    background: transparent;
  }

  .voice-ui .audio-settings [data-audio-uploading]:not(.is-recording, .voice-has-recording) > .audio-upload-indicator {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 0;
    pointer-events: none;
  }

  [data-audio-settings-layout]:has(> .audio-settings .audio-processing-status):not(:has(> .audio-settings .voice-toolbar)) {
    position: relative;
    grid-template-rows: minmax(0, 1fr);
  }

  .voice-ui [data-audio-settings-layout]:has(> .audio-settings .audio-processing-status):not(:has(> .audio-settings .voice-toolbar)) > .audio-settings {
    position: absolute;
    z-index: 1;
    inset-block-start: max(50%, 175px);
    inset-inline: 0;
    display: block;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translateY(-22px);
    pointer-events: none;
  }

  .voice-ui [data-audio-settings-layout]:has(> .audio-settings .audio-processing-status):not(:has(> .audio-settings .voice-toolbar)) .audio-settings :is(.audio-settings-toggle, .audio-settings-controls > :not(.audio-processing-status)) {
    display: none;
  }

  .voice-ui [data-audio-settings-layout]:has(> .audio-settings .audio-processing-status):not(:has(> .audio-settings .voice-toolbar)) .audio-settings .audio-processing-status {
    width: 100%;
    padding: 0;
  }

  .voice-ui .audio-settings .audio-upload-indicator .voice-spinner,
  .voice-ui [data-audio-settings-layout]:not(:has(> .audio-settings .voice-toolbar)) .audio-settings .audio-processing-status .voice-spinner {
    width: 44px;
    height: 44px;
    border-width: 3px;
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .audio-settings:has(.audio-processing-status [data-job-type="diarization"]) .voice-toolbar > a[href*="stage=speakers"] > .voice-icon::after {
    animation: none;
  }
}
