#wjtcEvaOverlay[hidden]{display:none!important}#wjtcEvaOverlay{position:fixed;inset:0;z-index:100010;background:#00111b66;display:flex;justify-content:flex-end;align-items:flex-end;padding:20px;box-sizing:border-box;pointer-events:auto}#wjtcEvaPanel{display:flex;flex-direction:column;width:420px;max-width:100%;max-height:min(700px,calc(100dvh - 40px));background:#092536;color:#eef9ff;border:1px solid #507b91;border-radius:18px;box-shadow:0 12px 40px #0008;overflow:hidden}#wjtcEvaPanel header{display:flex;align-items:center;justify-content:space-between;padding:14px;background:#123c51}#wjtcEvaPanel h2{font-size:18px;margin:0 0 4px}#wjtcEvaPanel small{font-size:12px;color:#c2d9e7}#wjtcEvaPanel button{color:#eef9ff;background:#164b66;border:1px solid #5388a3;border-radius:8px;padding:8px;cursor:pointer}#wjtcEvaPanel button:disabled{opacity:.65;cursor:wait}#wjtcEvaPanel :focus-visible{outline:3px solid #7ce6ff;outline-offset:2px}#evaClose{font-size:24px;min-width:38px}.evaScope{font-size:12px;margin:10px 14px;color:#c7e0eb}#evaHistory{min-height:100px;max-height:320px;flex:1;overflow:auto;overscroll-behavior:contain;padding:0 14px}.evaMessage{white-space:pre-wrap;overflow-wrap:anywhere;padding:10px;border-radius:10px;background:#163e53;font-size:14px;line-height:1.5}.evaMessage.user{background:#075273}.evaMessage b{display:block;font-size:11px;margin-bottom:5px}#evaSuggestions{display:flex;gap:6px;flex-wrap:wrap;padding:8px 14px}#evaSuggestions button{font-size:11px}#evaForm{padding:10px 14px}#evaForm label{display:block;font-size:12px;margin-bottom:6px}#evaQuestion{width:100%;box-sizing:border-box;max-height:100px;resize:vertical;background:#051a29;color:#eef9ff;border:1px solid #719db0;border-radius:8px;padding:10px;font:14px system-ui}.evaActions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:6px}#evaStatus{font-size:12px}#wjtcEvaPanel footer{padding:10px 14px;border-top:1px solid #375569;display:grid;gap:5px}@media(max-width:700px){#wjtcEvaOverlay{padding:8px}#wjtcEvaPanel{width:100%;max-height:calc(100dvh - 16px)}#evaHistory{min-height:70px;max-height:35dvh}}
#wjtcEvaPanel header{height:auto!important;min-height:0;position:static;flex-direction:row!important;gap:10px;flex-shrink:0}#wjtcEvaPanel header>div{min-width:0}#evaClose{flex-shrink:0}#wjtcEvaPanel footer,#evaForm,.evaScope,#evaSuggestions{flex-shrink:0}#evaHistory{min-height:0!important;flex:1 1 auto}#wjtcEvaPanel footer{margin:0;position:static}@media(max-height:600px){#evaSuggestions{max-height:70px;overflow:auto;padding-top:4px;padding-bottom:4px}#wjtcEvaPanel header{padding:10px 14px}.evaScope{font-size:11px;margin:6px 14px}#evaForm{padding-top:6px;padding-bottom:6px}}
.evaIndustrialContext{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:6px 14px;border-bottom:1px solid #375569;flex-shrink:0;font-size:11px}.evaIndustrialContext span{flex:1 1 100%;overflow-wrap:anywhere}.evaIndustrialContext button{font-size:11px;padding:5px 8px}.evaIndustrialContext select{width:100%;min-width:0;font-size:12px}#evaHistory .evaMessage{white-space:pre-wrap;overflow-wrap:anywhere}#evaHistory details{white-space:normal;margin-top:8px;border-top:1px solid #719db0;padding-top:6px;font-size:11px}#evaHistory details summary{cursor:pointer}#evaHistory details p{overflow-wrap:anywhere}#evaSuggestions{max-height:106px;overflow-y:auto}@media(max-height:600px){.evaIndustrialContext{padding-top:3px;padding-bottom:3px}#evaSuggestions{max-height:54px}}

/* Preserve a readable conversation when the available viewport is reduced. */
@media(max-height:600px){#wjtcEvaPanel header{padding:6px 14px}#wjtcEvaPanel h2{font-size:14px;line-height:18px;margin:0 0 2px}#wjtcEvaPanel header small{font-size:10px;line-height:14px}#evaClose{min-height:32px;height:32px;padding:2px;font-size:20px}.evaScope{font-size:10px;line-height:12px;margin:4px 14px}#evaHistory{min-height:90px!important}#evaSuggestions{max-height:32px;padding:4px 14px}#evaForm{padding:6px 14px}#evaForm label{line-height:14px;margin-bottom:4px}#evaQuestion{display:block;height:44px;min-height:44px;padding:6px;resize:none}.evaActions{margin-top:4px}#evaSend,#wjtcEvaPanel footer button{min-height:32px;padding:4px 8px}#wjtcEvaPanel footer{padding:6px 14px;gap:3px}#wjtcEvaPanel footer small{font-size:10px;line-height:12px}}

/* Conversation-first layout; controls remain compact and outside the scroll. */
#wjtcEvaPanel{height:min(820px,calc(100dvh - 40px));max-height:calc(100dvh - 40px)}#wjtcEvaPanel header{padding:8px 12px;gap:8px}#wjtcEvaPanel h2{font-size:16px;line-height:20px;margin:0 0 2px}#wjtcEvaPanel header small{display:block;font-size:11px;line-height:14px}#evaClose{height:32px;min-height:32px;padding:2px;font-size:20px}.evaScope{font-size:11px;line-height:14px;margin:6px 12px}.evaIndustrialContext{padding:4px 12px;gap:4px}.evaIndustrialContext span{line-height:14px}.evaIndustrialContext button{min-height:28px;padding:3px 6px;line-height:16px}#evaHistory{flex:1 1 0;min-height:0!important;max-height:none;overflow-y:auto;padding:0 12px}#evaSuggestions[hidden],#evaSuggestionToggle[hidden]{display:none!important}#evaSuggestions{order:0;max-height:64px;overflow-y:auto;padding:4px 12px;flex-shrink:0}#evaSuggestions button{min-height:26px;padding:3px 6px;line-height:16px}#evaSuggestionToggle{align-self:flex-start;flex-shrink:0;min-height:24px;padding:2px 6px;margin:3px 12px;font-size:11px;line-height:16px}#evaForm{padding:6px 12px;flex-shrink:0}#evaForm label{font-size:11px;line-height:14px;margin:0 0 3px}#evaQuestion{display:block;height:44px;min-height:44px;max-height:80px;padding:6px;font-size:14px;line-height:18px;resize:none}.evaActions{margin-top:4px}#evaSend{min-height:30px;padding:3px 10px;line-height:20px}#wjtcEvaPanel footer{padding:5px 12px;gap:2px}#wjtcEvaPanel footer button{justify-self:start;min-height:26px;padding:2px 6px;font-size:11px;line-height:18px}#wjtcEvaPanel footer small{font-size:10px;line-height:12px}#evaStatus{font-size:11px;line-height:14px}@media(max-width:700px){#wjtcEvaPanel{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}}@media(max-height:600px){.evaScope{font-size:10px;line-height:12px;margin:3px 12px}#wjtcEvaPanel header{padding:5px 12px}#wjtcEvaPanel h2{font-size:14px;line-height:18px}#evaSuggestions{max-height:48px}#wjtcEvaPanel footer small{display:none}}

/* Override global header minimum and panel-button padding without changing other modules. */
#wjtcEvaPanel header{min-height:0!important}#wjtcEvaPanel #evaClose{padding:2px}#wjtcEvaPanel #evaSuggestionToggle{padding:2px 6px}#wjtcEvaPanel #evaSend{padding:3px 10px}#wjtcEvaPanel .evaIndustrialContext button{padding:3px 6px}#wjtcEvaPanel #evaSuggestions button{padding:3px 6px}
