/* Update 41: theme-safe gallery controls and compact selection. */
html.ax37 body #sk-v39-root .sk39-bulkbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:36px!important;padding:4px 8px!important;margin:6px 0!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:8px!important}
html.ax37 body #sk-v39-root .sk39-bulkbar button{width:auto!important;min-width:0!important;height:28px!important;min-height:28px!important;padding:3px 10px!important;font-size:12px!important;line-height:20px!important;border:1px solid currentColor!important;border-radius:8px!important;background:transparent!important;color:#c44354!important;-webkit-text-fill-color:currentColor!important;box-shadow:none!important}
html.ax37 body #sk-v39-root .sk39-chat-check{display:inline-flex!important;flex:0 0 18px!important;width:18px!important;height:18px!important;min-width:18px!important;align-items:center!important;justify-content:center!important;border:1.5px solid var(--ax37-muted)!important;border-radius:5px!important;background:var(--ax37-panel)!important;color:var(--ax37-text)!important;animation:none!important;transform:none!important;opacity:1!important;margin-right:8px!important}
html.ax37 body #sk-v39-root .sk39-chat-check.checked{background:var(--ax37-accent)!important;border-color:var(--ax37-accent)!important;color:var(--ax37-accent-text)!important}
html.ax37 body #sk-v39-root .sk39-chat-check svg{display:block!important;width:14px!important;height:14px!important;stroke:currentColor!important;fill:none!important;opacity:1!important}
html.ax37 body .ax41-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-height:min(600px,85dvh);padding:28px;border:1px solid var(--ax37-border);border-radius:22px;background:var(--ax37-panel)!important;color:var(--ax37-text)!important;box-shadow:0 24px 90px #0006;overflow:auto;font:inherit}
.ax41-dialog::backdrop{background:#0008;backdrop-filter:blur(5px)}
html.ax37 body .ax41-dialog :is(h2,p,span,button){color:inherit!important;-webkit-text-fill-color:currentColor!important;text-shadow:none!important}
.ax41-dialog h2{font-size:20px;line-height:1.35;margin:0 28px 20px 0}.ax41-dialog p{line-height:1.65}
html.ax37 body .ax41-dialog button{font:inherit;cursor:pointer;box-shadow:none!important;background:transparent;border:1px solid var(--ax37-border);border-radius:12px;padding:10px 16px}
html.ax37 body .ax41-dialog .ax41-close{position:absolute;right:12px;top:12px;width:32px;height:32px;padding:0;border:0;font-size:23px}
html.ax37 body .ax41-dialog .ax41-primary{background:var(--ax37-accent)!important;color:var(--ax37-accent-text)!important;border:0;margin-top:8px;font-weight:600}
.ax41-select-list{display:grid;gap:6px}.ax41-select-list button{display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;min-height:46px;width:100%;flex-shrink:0}
html.ax37 body .ax41-select-list button:is(:hover,.selected){background:var(--ax37-hover)!important;border-color:var(--ax37-accent)!important}
.ax41-dialog button:focus-visible{outline:2px solid var(--ax37-accent);outline-offset:3px}
html.ax37 body #sk-v39-root .ax41-native-select{display:none!important}
html.ax37 body #sk-v39-root .ax41-select-trigger{display:inline-flex;align-items:center;justify-content:space-between;gap:7px;min-width:0;max-width:100%;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;color:var(--ax37-text)!important;-webkit-text-fill-color:currentColor!important;font:inherit;cursor:pointer}
.ax41-select-trigger>svg{width:12px!important;height:12px!important;flex-shrink:0}.ax38-select{max-width:100%}.ax41-select-trigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ax41-jobs:empty{display:none!important}.ax41-jobs{margin-bottom:16px}
html.ax37 body .ax41-job{display:flex;flex-direction:column;min-height:260px;padding:20px;box-sizing:border-box;gap:10px;border-radius:18px;background:var(--ax37-panel);color:var(--ax37-text);border:1px solid var(--ax37-border);overflow:hidden}
.ax41-job-visual{display:grid;place-items:center;min-height:130px;flex:1;background:radial-gradient(ellipse at center,color-mix(in srgb,var(--ax37-accent) 14%,transparent),transparent 70%);border-radius:14px;font-size:30px}.ax41-orbit{width:40px;height:40px;border:2px solid var(--ax37-border);border-top-color:var(--ax37-accent);border-radius:50%;animation:ax41-spin 1s linear infinite}
.ax41-job p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0;line-height:1.5;overflow-wrap:anywhere}.ax41-job small{color:var(--ax37-muted);line-height:1.5}.ax41-job>div:last-child{display:flex;gap:6px;flex-wrap:wrap}
html.ax37 body .ax41-job button{font:inherit;padding:6px 10px;border:1px solid var(--ax37-border);border-radius:9px;background:var(--ax37-hover);color:var(--ax37-text);cursor:pointer;-webkit-text-fill-color:currentColor}
@keyframes ax41-spin{to{transform:rotate(360deg)}}
.ax41-sound{position:relative;display:flex;align-items:center;gap:6px}.axc38-tile>.ax41-sound{position:absolute;right:10px;top:10px;z-index:3;background:#101217bf;border:1px solid #ffffff30;border-radius:12px;padding:3px;backdrop-filter:blur(10px)}
html.ax37 body .ax41-sound button,html.ax37 body .ax41-player-controls button{display:grid;place-items:center;width:32px;height:32px;min-width:32px;padding:5px;border:0;border-radius:8px;background:transparent!important;color:#fff!important;-webkit-text-fill-color:currentColor!important;cursor:pointer;box-shadow:none!important}
.ax41-sound svg,.ax41-player-controls svg{width:21px;height:21px;stroke:currentColor;fill:none}.ax41-volume{width:0;overflow:hidden;opacity:0;transition:width .16s,opacity .16s;display:flex;align-items:center}.ax41-sound:is(:hover,:focus-within) .ax41-volume{width:80px;opacity:1}.ax41-volume input{width:72px!important;min-width:0!important;margin:0!important;accent-color:#d8bd91}.axc38-tile .ax41-sound{flex-direction:row-reverse}.axc38-tile .axc38-play{pointer-events:none}.axc38-tile:hover .axc38-play{opacity:0}
.ax41-player{position:relative;display:flex;flex-direction:column;align-items:stretch;width:100%;max-height:100%;min-height:0;background:#080909;overflow:hidden;border-radius:10px;outline:none}
html.ax37 .axc38-original .ax41-player video{display:block;object-fit:contain;width:100%;max-height:calc(100dvh - 132px);min-height:0;flex:1;background:#080909}
.ax41-player-controls{flex-shrink:0;background:#17191c;color:#fff;padding:10px 14px}.ax41-player-controls>div{display:flex;gap:12px;align-items:center}.ax41-player-controls [data-time]{font-size:12px;font-variant-numeric:tabular-nums;color:#fff!important;-webkit-text-fill-color:currentColor!important;white-space:nowrap}.ax41-player-controls .ax41-sound{margin-left:auto}
html.ax37 .ax41-player-controls input[type=range]{appearance:auto!important;background:transparent!important;padding:0!important;min-height:18px!important;height:18px!important;border:0!important;box-shadow:none!important;accent-color:#d8bd91}.ax41-player-controls>[data-seek]{width:100%!important;margin:0 0 8px!important;cursor:pointer}.ax41-player:fullscreen{height:100vh;max-height:100vh;border-radius:0}.ax41-player:fullscreen video{max-height:calc(100vh - 82px)!important}.ax41-video-error{color:#fff!important;padding:12px;background:#333;margin:0;font-size:13px}.ax41-video-unavailable::after{content:'Предпросмотр недоступен';position:absolute;top:45%;left:12px;right:12px;text-align:center;color:#fff;pointer-events:none;background:#0008;padding:8px}
@media(max-width:640px){.ax41-job{min-height:210px}.ax41-dialog{padding:22px}.axc38-original .ax41-player video{max-height:55dvh!important}.ax41-player-controls{padding:8px}.ax41-player-controls>div{gap:5px}.ax41-player-controls .ax41-sound:is(:hover,:focus-within) .ax41-volume{width:60px}.ax41-player-controls .ax41-volume input{width:55px!important}}
@media(prefers-reduced-motion:reduce){.ax41-orbit{animation:none}.ax41-volume{transition:none}}
html.ax37 body #sk-v39-root .ax38-compose .ax38-select select.ax41-native-select{display:none!important}
html.ax37 body .ax41-dialog,html.ax37 body #sk-v39-root .ax41-select-trigger,html.ax37 body #sk-v39-root .ax38-compose textarea{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}

/* Update42: popovers share model picker surfaces without opening a modal. */
html.ax37 body .ax42-select-popover{position:fixed;inset:auto;margin:0;padding:6px;box-sizing:border-box;overflow:auto;border:1px solid var(--ax37-border);border-radius:15px;background:var(--ax37-panel);color:var(--ax37-text);box-shadow:0 14px 45px #0003;z-index:2147483000;font:14px Inter,system-ui,sans-serif}
html.ax37 body .ax42-select-popover::backdrop{background:transparent;pointer-events:none}
html.ax37 body .ax42-select-popover button{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:40px;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:var(--ax37-text);-webkit-text-fill-color:currentColor;font:inherit;text-align:left;cursor:pointer}
html.ax37 body .ax42-select-popover button:is(:hover,:focus-visible,.selected){background:var(--ax37-hover,var(--ax37-bg));outline:0}
html.ax37 body .ax42-select-popover button.selected{color:var(--ax37-accent);font-weight:600}
html.ax37 body #sk-v39-root .sk39-compose-model-btn{border:0!important;box-shadow:none!important;background:transparent!important}
html.ax37 body #sk-v39-root .sk39-compose-model-btn img,html.ax37 body .sk39-brand-logo img,html.ax37 body .axorai-media-logo{filter:none!important;opacity:1!important;animation:none!important;mix-blend-mode:normal!important}
html.ax37 body #sk-v39-root .sk39-main::before,html.ax37 body #sk-v39-root .sk39-main::after{content:none!important;display:none!important}
html.ax37 body #sk-v39-root .sk39-note{text-align:center!important;width:100%!important;justify-content:center!important;margin-inline:auto!important}
html.ax37 body .axc38-withdraw{color:#c53d4c!important;-webkit-text-fill-color:currentColor!important;font:inherit}
html.ax37[data-sk-theme="darkgray"] body .axc38-withdraw{color:#ff8490!important}
html.ax37 body .ax37-tools button span{flex:1;text-align:left}html.ax37 body .ax37-tools button svg:last-child:not(:first-child){margin-left:auto;flex-shrink:0}

html.ax37 body #sk-v39-root .ax38-compose button,html.ax37 body #sk-v39-root .ax38-compose textarea{font-family:Inter,system-ui,sans-serif!important}
/* Update43: neutral settings hover, high-contrast feedback, no message shadow. */
html.ax37[data-sk-theme="darkgray"]{--ax43-caret:#d8bd91;--ax43-settings-hover:#34312b}
html.ax37[data-sk-theme="light"]{--ax43-caret:#000;--ax43-settings-hover:#eeeae1}
html.ax37 body :is(textarea,input,[contenteditable="true"]){caret-color:var(--ax43-caret)!important}
html.ax37 body #sk39-modal-portal .ax37-settings :is(button,.ax37-card):hover{background-color:var(--ax43-settings-hover)!important;box-shadow:none!important}
html.ax37 body #sk-v39-root .ax38-compose .sk39-tools-menu.ax37-tools>button[aria-checked="true"]>svg:last-child{color:var(--ax37-accent)!important;stroke-width:2.5!important;display:block!important;opacity:1!important}
html.ax37[data-sk-theme="light"] body #sk-v39-root .sk39-stopBtn{background:#202124!important;color:#fff!important}
html.ax37[data-sk-theme="light"] body #sk-v39-root .sk39-stopBtn svg,html.ax37[data-sk-theme="light"] body #sk-v39-root .sk39-stopBtn rect{fill:#fff!important;color:#fff!important;stroke:none!important}
html.ax37 body #sk-v39-root :is(.sk39-msg,.sk39-msg-body,.sk39-msg-bubble,.sk39-bubble,.sk39-msg-actions,.sk39-msgs){box-shadow:none!important;filter:none!important}
html.ax37 body #sk-v39-root :is(.sk39-msg,.sk39-msgs)::after{box-shadow:none!important;background:none!important}
html.ax37[data-sk-theme="light"] body #sk-v39-root .sk39-msg-info-popover{background:#fff!important;color:#000!important;border-color:#d5d5d5!important;box-shadow:none!important}
html.ax37[data-sk-theme="darkgray"] body #sk-v39-root .sk39-msg-info-popover{background:#111!important;color:#fff!important;border-color:#444!important;box-shadow:none!important}
html.ax37 body #sk-v39-root .sk39-msg-info-popover *{color:inherit!important;-webkit-text-fill-color:currentColor!important}
html.ax37 body .ax43-pdf-download,html.ax37 body .ax43-pdf-mode{font:inherit;color:var(--ax37-text);background:var(--ax37-panel);border:1px solid var(--ax37-border);border-radius:12px;padding:10px 14px;margin:8px 0}
html.ax37 body .ax43-pdf-mode{display:flex;align-items:center;gap:12px;padding:5px 10px;width:max-content;font-size:13px}
html.ax37 body .ax43-pdf-mode button{font:inherit;color:inherit;background:transparent;border:0;cursor:pointer}
.ax43-caret{position:fixed;z-index:2147483646;width:2px;background:var(--ax43-caret,#d8bd91);pointer-events:none;border-radius:1px;animation:ax43-blink 1.1s steps(1) infinite}
html.ax37 body .ax43-native-caret{caret-color:transparent!important}
@keyframes ax43-blink{0%,49%{opacity:1}50%,100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.ax43-caret{animation:none}}

html.ax37 body #sk-v39-root :is(.sk39-chat,.sk39-compose,.ax38-compose){box-shadow:none!important}html.ax37 body #sk-v39-root .ax38-compose::before{box-shadow:none!important;background:none!important}

/* Update44: restore pasted text inside its attachment card, in both themes. */
html.ax37 body.sk-v39-mounted #sk-v39-root .sk39-attach-copy button.ax44-paste-restore{display:block!important;width:max-content!important;margin-top:5px!important;padding:4px 11px!important;border:1px solid #f5a64f!important;border-radius:8px!important;background:#ffad55!important;color:#2c1700!important;font-family:inherit!important;font-size:12px!important;font-weight:600!important;line-height:1.3!important;box-shadow:none!important;cursor:pointer!important;opacity:1!important}
html.ax37 body.sk-v39-mounted #sk-v39-root .sk39-attach-copy button.ax44-paste-restore:hover{background:#ffc077!important;color:#2c1700!important;border-color:#ffc077!important}
html.ax37 body.sk-v39-mounted #sk-v39-root .sk39-attach-copy button.ax44-paste-restore:focus-visible{outline:2px solid var(--sk-text,#fff)!important;outline-offset:2px!important}
html.ax37 body.sk-v39-mounted #sk-v39-root .sk39-attach-copy button.ax44-paste-restore:disabled{opacity:.7!important;cursor:progress!important}
html.ax37 body.sk-v39-mounted .sk39-attach-card:has(.ax44-paste-restore){min-height:82px!important}
html.ax37 body.sk-v39-mounted #sk-v39-root .sk39-attach-card{background:var(--ax37-panel)!important;border-color:var(--ax37-border)!important;color:var(--ax37-text)!important}
html.ax37 body.sk-v39-mounted #sk-v39-root .sk39-attach-copy>span,html.ax37 body.sk-v39-mounted #sk-v39-root .sk39-attach-thumb,html.ax37 body.sk-v39-mounted #sk-v39-root .sk39-attach-thumb svg{color:var(--ax37-text)!important;-webkit-text-fill-color:currentColor!important}
html.ax37 body.sk-v39-mounted #sk-v39-root .sk39-attach-copy>small{color:var(--ax37-muted)!important;-webkit-text-fill-color:currentColor!important}

/* 304: independent accessible preview controls; do not overlay publication actions. */
.axc38-tile>.ax41-sound{opacity:0;transition:opacity .15s}.axc38-tile:is(:hover,:focus-within)>.ax41-sound{opacity:1}.axc38-tile>.ax41-sound:focus-within .ax41-volume{width:80px;opacity:1}
.ax304-preview-toggle{position:absolute;left:10px;bottom:44px;z-index:3;width:34px;height:34px;border:1px solid #ffffff50;border-radius:10px;background:#101217cc;color:white;cursor:pointer}.ax304-preview-toggle svg{width:20px;height:20px}.ax304-preview-error{position:absolute;inset:40% 12px auto;pointer-events:none;background:#202329ee;color:white;padding:10px;border-radius:8px;font-size:12px}
@media(hover:none){.axc38-tile>.ax41-sound{opacity:1}.axc38-tile>.ax41-sound:focus-within .ax41-volume{width:80px;opacity:1}}
