/* Shared interface corrections, 2026-11-03. */
html,body{font-family:"SEBL Inter",system-ui,-apple-system,"Segoe UI",sans-serif}
body :is(h1,h2,h3,h4,h5,h6,p,td,th,button,input,select,textarea){font-family:"SEBL Inter",system-ui,-apple-system,"Segoe UI",sans-serif}
body .pagination .page-numbers,body .nav-links .page-numbers,body .page-numbers{border-radius:12px!important;overflow:hidden}
body #szai.szai-launcher{filter:none!important;transform:none!important;perspective:none!important;contain:none!important;transition:none!important;pointer-events:none!important}
body #szai #szai-toggle{pointer-events:auto!important;filter:none!important;transform:none!important}
body #szai-panel{display:flex;flex-direction:column;overflow:hidden!important;box-sizing:border-box!important;border:1px solid #dce2e5!important;border-radius:22px!important;background:#fff!important;box-shadow:0 18px 60px rgba(32,39,45,.16)!important}
body #szai-panel[hidden]{display:none!important}
body #szai-panel .szai-head{flex:0 0 auto!important;align-items:center!important;min-height:70px!important;padding:14px 18px!important;border-bottom:1px solid #edf0f2!important;gap:10px!important}
body #szai-panel .szai-id{min-width:0!important;flex:1!important}
body #szai-panel .szai-id strong{font-size:14px!important;line-height:1.3!important}
body #szai-panel .szai-id small{font-size:11px!important;line-height:1.4!important;color:#738087!important}
body #szai-panel .szai-manager{flex:0 0 auto!important;padding:9px 11px!important;font-size:11px!important;line-height:1.2!important;min-height:36px!important;border-radius:10px!important}
body #szai-panel .szai-x{display:grid!important;place-items:center!important;flex:0 0 34px!important;width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;border:0!important;border-radius:10px!important;background:#f1f3f4!important;color:#20272d!important;font-size:23px!important}
body #szai-panel .szai-body{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-width:thin;background:#fff!important;padding:20px!important}
body #szai-panel .szai-body--welcome{display:flex!important;align-items:stretch!important;justify-content:flex-start!important;gap:22px!important}
body #szai-panel .szai-welcome{display:block!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;border-radius:0!important;text-align:left!important}
body #szai-panel .szai-welcome-orb{display:none!important}
body #szai-panel .szai-welcome h3{font-size:26px!important;line-height:1.15!important;letter-spacing:-.04em!important;text-align:left!important;margin:0 0 10px!important}
body #szai-panel .szai-welcome p{font-size:13px!important;line-height:1.6!important;color:#6c767c!important;text-align:left!important;max-width:34ch!important;margin:0!important}
body #szai-panel .szai-start-marquee{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;align-content:start!important;width:100%!important;overflow:visible!important;mask-image:none!important;-webkit-mask-image:none!important}
body #szai-panel :is(.szai-start-row,.szai-start-track,.szai-start-group){display:contents!important}
body #szai-panel .szai-start-group[aria-hidden="true"]{display:none!important}
body #szai-panel .szai-start-message{display:flex!important;align-items:center!important;min-height:44px!important;height:auto!important;padding:11px 12px!important;border:1px solid #e6eaed!important;border-radius:12px!important;background:#f5f6f7!important;font-size:12px!important;line-height:1.4!important;font-weight:500!important;color:#20272d!important;white-space:normal!important;text-align:left!important;box-shadow:none!important;transition:background .18s,border-color .18s!important}
body #szai-panel .szai-start-message:hover,body #szai-panel .szai-start-message:focus-visible{background:#fcf0f0!important;border-color:#c6383d!important}
body #szai-panel .szai-foot{display:flex!important;align-items:flex-end!important;flex:0 0 auto!important;padding:14px!important;gap:8px!important;background:#fff!important;border-top:1px solid #edf0f2!important}
body #szai-panel #szai-input{flex:1!important;min-width:0!important;min-height:46px!important;max-height:110px!important;padding:12px!important;font-size:16px!important;line-height:1.4!important;border:1px solid #dce2e5!important;border-radius:12px!important;background:#fff!important;resize:none!important;box-shadow:none!important}
body #szai-panel :is(#szai-attach,#szai-send){display:grid!important;place-items:center!important;flex:0 0 42px!important;width:42px!important;height:46px!important;min-height:46px!important;border-radius:12px!important;padding:10px!important}
body #szai-panel #szai-attach{background:#f1f3f4!important;border:0!important;color:#20272d!important}
body #szai-panel #szai-send{background:#c6383d!important;color:#fff!important;border:0!important}
@media(min-width:1101px){
 body #szai #szai-toggle{position:fixed!important;inset:calc(50% + 8px) 0 auto auto!important;width:56px!important;height:56px!important;min-height:56px!important;border-radius:14px 0 0 14px!important}
 body #szai-panel.szai-brand--sebl{inset:auto 76px 24px auto!important;width:420px!important;height:min(620px,calc(100dvh - 48px))!important;max-height:calc(100dvh - 48px)!important}
 body #szai-backdrop{inset:0!important;width:auto!important;background:rgba(23,31,36,.14)!important;backdrop-filter:blur(2px)!important;-webkit-backdrop-filter:blur(2px)!important}
}
@media(max-width:1100px){
 body #szai-panel.szai-brand--sebl{inset:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom)) 10px!important;width:auto!important;height:auto!important;max-height:none!important;border-radius:20px!important}
 body #szai-panel .szai-head{padding:12px!important;gap:8px!important;min-height:64px!important}
 body #szai-panel .szai-manager{max-width:92px!important;font-size:10px!important;padding:8px!important}
 body #szai-panel .szai-body{padding:20px 16px!important}
 body #szai-panel .szai-welcome h3{font-size:25px!important}
 body #szai-panel .szai-start-message{font-size:12px!important}
 body #szai-panel .szai-foot{padding:12px!important}
}

body #szai-panel .szai-start-marquee{margin:0!important;padding:0!important;min-width:0!important}
body #szai-panel .szai-welcome :is(h3,p){width:100%!important;max-width:none!important;min-width:0!important;justify-self:start!important;align-self:start!important;text-align:left!important}
body #szai #szai-toggle .szai-blob{position:static!important;inset:auto!important;display:block!important;width:38px!important;height:32px!important;margin:auto!important;padding:0!important}
body #szai #szai-toggle .sebl-assistant-mark{max-width:38px!important;max-height:32px!important}

body #szai #szai-toggle{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important}
body #szai #szai-toggle .szai-orb__label{display:none!important}
body #szai #szai-toggle .szai-blob{position:absolute!important;inset:0!important;margin:auto!important;transform:none!important;align-self:center!important;justify-self:center!important}

@media(max-width:1100px){
 body #szai-panel.szai-brand--sebl{min-height:0!important;height:calc(100dvh - max(10px,env(safe-area-inset-top)) - max(10px,env(safe-area-inset-bottom)))!important;max-height:calc(100dvh - 20px)!important}
 body #szai-panel .szai-manager,body #szai-panel .szai-manager span{white-space:normal!important;text-overflow:clip!important;text-align:center!important;overflow:visible!important;line-height:1.25!important}
 body #szai-panel .szai-foot{min-height:0!important}
}

body #szai-panel #szai-input{height:46px!important;overflow-y:auto!important}

/* Load the actual Cyrillic webfont instead of keeping a late system fallback. */
@font-face{font-family:"SEBL Inter";src:url('/wp-content/mu-plugins/assets/fonts/InterLatinCyrillic-20261026.woff2?rev=20261103') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}

body #szai-panel #szai-input{height:48px!important;min-height:48px!important;padding:10px 12px!important;line-height:22px!important;box-sizing:border-box!important}

/* Conversation uses the same compact surfaces and spacing as the site. */
body #szai-panel .szai-body:not(.szai-body--welcome){display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:14px!important;overflow-x:hidden!important;padding:18px!important}
body #szai-panel .szai-msg{box-sizing:border-box!important;flex:0 0 auto!important;min-width:0!important;min-height:0!important;height:auto!important;margin:0!important;padding:13px 15px!important;font-size:13px!important;line-height:1.65!important;text-align:left!important;overflow-wrap:anywhere!important;box-shadow:none!important;transform:none!important}
body #szai-panel .szai-me{align-self:flex-end!important;max-width:87%!important;width:fit-content!important;border:0!important;border-radius:16px 16px 4px 16px!important;background:#20272d!important;color:#fff!important;font-weight:500!important}
body #szai-panel .szai-bot{align-self:flex-start!important;width:100%!important;max-width:100%!important;border:0!important;border-radius:16px 16px 16px 4px!important;background:#f3f5f6!important;color:#20272d!important;font-weight:400!important}
body #szai-panel .szai-bot::before,body #szai-panel .szai-reply-avatar{display:none!important;content:none!important}
body #szai-panel .szai-msg p{margin:0 0 10px!important;font-size:inherit!important;line-height:inherit!important}
body #szai-panel .szai-msg p:last-of-type{margin-bottom:0!important}
body #szai-panel .szai-msg :is(h3,h4){font-size:15px!important;line-height:1.35!important;letter-spacing:-.02em!important;margin:14px 0 8px!important;text-align:left!important}
body #szai-panel .szai-msg :is(h3,h4):first-child{margin-top:0!important}
body #szai-panel .szai-msg strong{font-weight:600!important}
body #szai-panel .szai-msg :is(ul,ol){margin:10px 0!important;padding-left:19px!important}
body #szai-panel .szai-msg .szai-list{display:grid!important;gap:7px!important;margin:10px 0!important;padding:0!important}
body #szai-panel .szai-msg .szai-list li{padding-left:15px!important;line-height:1.55!important}
body #szai-panel .szai-msg a{color:#bd3038!important;text-decoration:underline!important;text-underline-offset:3px!important;text-decoration-thickness:1px!important;overflow-wrap:anywhere!important}
body #szai-panel .szai-msg blockquote{margin:12px 0 0!important;padding:10px 12px!important;border-left:2px solid #c6383d!important;border-radius:0 10px 10px 0!important;background:#fff!important;color:#4f5b63!important;font-size:12px!important;line-height:1.6!important}
body #szai-panel .szai-msg pre{max-width:100%!important;overflow:auto!important;padding:10px!important;border-radius:10px!important;background:#fff!important;white-space:pre-wrap!important}
body #szai-panel .szai-msg table{display:block!important;max-width:100%!important;overflow-x:auto!important;border-collapse:collapse!important;font-size:11px!important}
body #szai-panel .szai-msg :is(td,th){padding:7px 9px!important;border:1px solid #dce2e5!important;font-size:11px!important;line-height:1.4!important}
body #szai-panel .szai-typing{display:inline-flex!important;flex:0 0 auto!important;align-self:flex-start!important;align-items:center!important;gap:5px!important;width:fit-content!important;max-width:100%!important;min-height:40px!important;padding:11px 13px!important;border:0!important;border-radius:14px 14px 14px 4px!important;background:#f3f5f6!important}
body #szai-panel .szai-typing i{display:block!important;flex:0 0 5px!important;width:5px!important;height:5px!important;border-radius:50%!important;background:#c6383d!important;animation:sebl-chat-dot 1.2s ease-in-out infinite!important}
body #szai-panel .szai-typing i:nth-child(2){animation-delay:.15s!important}
body #szai-panel .szai-typing i:nth-child(3){animation-delay:.3s!important}
body #szai-panel .szai-typing>span:not(.szai-reply-avatar){margin:0 0 0 6px!important;font-size:11px!important;line-height:1.4!important;color:#748088!important}
@keyframes sebl-chat-dot{0%,70%,100%{opacity:.35}35%{opacity:1}}
body #szai-panel .szai-feedback{display:flex!important;align-items:center!important;justify-content:flex-start!important;flex:0 0 auto!important;gap:7px!important;margin:0!important;padding:0 2px!important;font-size:10px!important;line-height:1.4!important;color:#879097!important}
body #szai-panel .szai-feedback button{min-width:34px!important;min-height:28px!important;height:28px!important;padding:4px 10px!important;border:1px solid #e1e6e9!important;border-radius:9px!important;background:#fff!important;color:#53616a!important;font-size:10px!important;line-height:1.3!important;box-shadow:none!important}
body #szai-panel .szai-feedback.is-complete{opacity:.65!important}
body #szai-panel .szai-results{flex:0 0 auto!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important}
body #szai-panel .szai-results__head{display:flex!important;justify-content:space-between!important;align-items:center!important;margin:0 0 9px!important;font-size:12px!important;line-height:1.4!important}
body #szai-panel .szai-results__head span{font-size:11px!important;color:#879097!important}
body #szai-panel .szai-cards{display:flex!important;width:100%!important;min-width:0!important;gap:10px!important;margin:0!important;padding:1px 0 8px!important;overflow:auto hidden!important;scroll-snap-type:x proximity!important;scrollbar-width:none!important}
body #szai-panel .szai-cards::-webkit-scrollbar{display:none!important}
body #szai-panel .szai-card{display:flex!important;flex:0 0 228px!important;flex-direction:column!important;width:228px!important;min-width:0!important;max-width:85%!important;min-height:0!important;height:auto!important;padding:0!important;border:1px solid #e1e6e9!important;border-radius:14px!important;background:#fff!important;color:#20272d!important;box-shadow:none!important;transform:none!important;filter:none!important;opacity:1!important;scroll-snap-align:start!important;text-decoration:none!important}
body #szai-panel .szai-card__media{position:relative!important;flex:0 0 128px!important;width:100%!important;height:128px!important;min-height:128px!important;aspect-ratio:auto!important;background:#f4f6f7!important;overflow:hidden!important;border-bottom:1px solid #edf0f2!important}
body #szai-panel .szai-card__slide{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;padding:10px!important;background:none!important;transform:none!important}
body #szai-panel .szai-card__body{display:block!important;min-height:0!important;padding:12px!important}
body #szai-panel .szai-card__label,body #szai-panel .szai-card__corner,body #szai-panel .szai-card__meta:empty{display:none!important}
body #szai-panel .szai-card h3{font-size:13px!important;line-height:1.35!important;margin:0 0 6px!important;letter-spacing:-.02em!important;color:#20272d!important}
body #szai-panel .szai-card p{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;max-height:3em!important;overflow:hidden!important;font-size:11px!important;line-height:1.5!important;margin:0!important;color:#748088!important}
body #szai-panel .szai-actions{display:flex!important;flex-wrap:wrap!important;gap:7px!important;min-width:0!important}
body #szai-panel .szai-actions>*{min-height:36px!important;padding:9px 12px!important;border-radius:10px!important;font-size:12px!important;line-height:1.3!important}
body #szai-panel .szai-message-file{min-width:0!important;max-width:100%!important}
body #szai-panel .szai-message-file>img{border-radius:9px!important}
@media(max-width:1100px){body #szai-panel .szai-body:not(.szai-body--welcome){padding:16px!important;gap:12px!important}body #szai-panel .szai-msg{font-size:13px!important;padding:12px 14px!important}body #szai-panel .szai-card{flex-basis:210px!important;width:210px!important}}
@media(prefers-reduced-motion:reduce){body #szai-panel .szai-typing i{animation:none!important}}
