@import url('/kb-license-form.css');
.support-panel .kb-license-form input[type="number"] {color-scheme:dark;}

.support-launcher,.support-help-fallback {position:fixed;right:24px;bottom:24px;width:96px;height:96px;padding:0;border:0;background:none;z-index:75;cursor:pointer;border-radius:16px;}
.support-launcher img,.support-help-fallback img {display:block;width:96px;height:96px;image-rendering:pixelated;filter:brightness(1.16) saturate(1.08) drop-shadow(0 0 12px rgba(83,226,209,.5)) drop-shadow(0 0 28px rgba(83,226,209,.25));}
.support-launcher:hover img {filter:brightness(1.24) saturate(1.08) drop-shadow(0 0 14px rgba(83,226,209,.65)) drop-shadow(0 0 30px rgba(83,226,209,.3));}
.support-launcher:focus-visible,.support-panel :is(button,a,textarea,summary,[tabindex]):focus-visible {outline:2px solid var(--cyan);outline-offset:4px;}
.support-launcher[hidden],.support-panel[hidden],.support-panel [hidden] {display:none;}
.support-panel {--font-min:14px;position:fixed;right:24px;bottom:24px;width:min(440px,calc(100vw - 48px));height:min(680px,calc(100dvh - 48px));display:flex;flex-direction:column;z-index:100;min-width:0;border:1px solid var(--line-bright);border-radius:20px;background:#101b2a;color:var(--text);box-shadow:0 20px 60px rgba(0,0,0,.45);font-family:var(--font-sans);font-size:var(--font-min);line-height:1.5;overflow:hidden;}
.support-panel * {box-sizing:border-box;min-width:0;}
.support-header {display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:start;gap:12px;padding:16px;border-bottom:1px solid var(--line);flex:none;}
.support-header h2 {margin:0;font-family:var(--font-heading);font-size:18px;font-weight:400;line-height:1.3;}
.support-icon-button {display:grid;place-items:center;min-width:44px;width:44px;height:44px;border:1px solid var(--line);border-radius:10px;background:rgba(83,226,209,.05);color:var(--text-soft);cursor:pointer;}
.support-icon-button svg {width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.support-icon-button:hover:not(:disabled) {background:rgba(83,226,209,.13);color:var(--cyan);}
.support-icon-button:disabled,.support-question:disabled,.support-retry:disabled {opacity:.45;cursor:default;}
.support-messages {flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px;scrollbar-width:thin;}
.support-welcome p {margin:0 0 20px;color:var(--text-soft);}
.support-question {display:block;width:100%;min-height:44px;padding:12px;margin-top:10px;border:1px solid var(--line);border-radius:12px;background:rgba(83,226,209,.06);color:var(--text);font:inherit;text-align:left;cursor:pointer;}
.support-question:hover:not(:disabled) {border-color:var(--cyan);}
.support-message {margin:0 0 16px;padding:12px;border-radius:12px;overflow-wrap:anywhere;}
.support-message-user {margin-left:24px;background:rgba(108,185,255,.13);}
.support-message-assistant {margin-right:12px;background:rgba(83,226,209,.035);}
.support-message-copy p {margin:0 0 12px;white-space:pre-wrap;}
.support-message-copy p:last-child {margin-bottom:0;}
.support-message-copy :is(ul,ol) {margin:8px 0 12px;padding-left:24px;}
.support-message-copy li+li {margin-top:8px;}
.support-sources {margin-top:16px;border-top:1px solid var(--line);padding-top:6px;}
.support-sources summary {min-height:44px;padding:8px 0;cursor:pointer;color:var(--cyan);}
.support-sources a {display:block;min-height:44px;padding:8px 0;color:var(--blue-bright);text-decoration:underline;overflow-wrap:anywhere;}
.support-form {padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line);flex:none;}
.support-form textarea {display:block;width:100%;min-height:64px;max-height:120px;padding:10px 12px;resize:vertical;border:1px solid var(--line-bright);border-radius:10px;background:#0b1421;color:var(--text);font:inherit;font-size:16px;line-height:1.35;}
.support-form textarea::placeholder {color:var(--text-muted);}
.support-actions {display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;margin-top:10px;}
.support-status {margin:0;color:var(--text-soft);font-size:13px;line-height:1.25;}
.support-send {color:var(--cyan);}
.support-error {padding:12px 16px;border-top:1px solid var(--line);flex:none;max-height:35%;overflow-y:auto;}
.support-error p {margin:0 0 8px;color:#ffd19f;}
.support-retry {min-height:44px;padding:8px 12px;margin-right:12px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--text);font:inherit;cursor:pointer;}
.support-error a {display:inline-block;min-height:44px;padding-block:8px;color:var(--blue-bright);}
@media(max-width:700px){
 .support-launcher,.support-help-fallback {right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));}
 .support-panel {left:0;right:0;top:var(--support-top,0);bottom:auto;width:100%;height:var(--support-height,100dvh);border:0;border-radius:0;}
 .support-header {padding:calc(12px + env(safe-area-inset-top)) 16px 12px;}
 .support-messages {padding:12px;}
}
@media(forced-colors:active){.support-launcher img,.support-help-fallback img{filter:none}.support-panel{border:1px solid CanvasText}.support-icon-button{color:ButtonText}.support-sources a,.support-error a{color:LinkText}}

.support-mascot {display:block;width:96px;height:96px;}
.support-mascot canvas {display:none;width:96px;height:96px;filter:brightness(1.16) saturate(1.08) drop-shadow(0 0 12px rgba(83,226,209,.5)) drop-shadow(0 0 28px rgba(83,226,209,.25));}
.support-mascot.film-computer-ready img {display:none;}
.support-mascot.film-computer-ready canvas {display:block;}
@media(forced-colors:active){.support-mascot canvas {filter:none;}}

.support-calculator {display:contents;}

.support-panel {right:auto;bottom:auto;box-sizing:border-box;z-index:200;}
.support-header {grid-template-columns:minmax(0,1fr) 44px 44px;align-items:center;gap:8px;cursor:move;touch-action:none;user-select:none;}
.support-drag-handle {align-self:stretch;display:flex;align-items:center;gap:8px;border-radius:8px;}
.support-header-mascot {flex:0 0 40px;pointer-events:none;}
.support-header-mascot,.support-header-mascot :is(img,canvas) {width:40px;height:40px;}
.support-header-mascot img {display:block;image-rendering:pixelated;filter:brightness(1.16) saturate(1.08) drop-shadow(0 0 8px rgba(83,226,209,.5));}
.support-drag-handle:focus-visible {outline:2px solid var(--cyan);outline-offset:3px;}
.support-moving {user-select:none;}
.support-moving :is(iframe,textarea) {pointer-events:none;}
.support-backdrop {position:fixed;inset:0;z-index:199;background:rgba(3,8,16,.55);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);}
.support-backdrop[hidden] {display:none;}
.support-panel.support-wide {border-radius:24px;}
.support-wide .support-header {padding:16px 24px;cursor:default;}
.support-wide .support-messages {padding:24px;}
.support-wide .support-message,.support-wide .support-welcome {width:100%;margin-left:0;margin-right:0;}
.support-wide .support-form {padding-inline:24px;}
.support-resize {position:absolute;z-index:5;touch-action:none;}
.support-resize-n,.support-resize-s {left:12px;right:12px;height:8px;cursor:ns-resize;}
.support-resize-n {top:0;}.support-resize-s {bottom:0;}
.support-resize-e,.support-resize-w {top:12px;bottom:12px;width:8px;cursor:ew-resize;}
.support-resize-e {right:0;}.support-resize-w {left:0;}
.support-resize-ne,.support-resize-nw,.support-resize-se,.support-resize-sw {width:14px;height:14px;}
.support-resize-ne {right:0;top:0;cursor:nesw-resize;}.support-resize-sw {left:0;bottom:0;cursor:nesw-resize;}
.support-resize-nw {left:0;top:0;cursor:nwse-resize;}.support-resize-se {right:0;bottom:0;cursor:nwse-resize;}
.support-resize-se::after {content:'';position:absolute;right:4px;bottom:4px;width:6px;height:6px;border-right:1px solid var(--cyan);border-bottom:1px solid var(--cyan);opacity:.6;}
.support-wide .support-resize,.support-mobile .support-resize {display:none;}
.support-wide .support-expand {background:rgba(83,226,209,.14);color:var(--cyan);}
@media(max-width:700px){
 .support-panel {right:auto;bottom:auto;border-radius:0;}
 .support-header {grid-template-columns:minmax(0,1fr) 44px;cursor:default;touch-action:auto;user-select:auto;}
}
@media(forced-colors:active){.support-backdrop{background:Canvas;opacity:.85;backdrop-filter:none;-webkit-backdrop-filter:none;}}

.support-expand .support-restore-icon,.support-expand[aria-pressed="true"] .support-expand-icon {display:none;}
.support-expand[aria-pressed="true"] .support-restore-icon {display:block;}

.support-wide .kb-license-form form {max-width:none;padding-inline:24px;}
