/* eService AI assistant. All styles scoped to the assistant. */
html:has(#esa-dialog[open]){overflow:hidden}
#chat-container{--esa-ink:#132d4f;--esa-muted:#53677d;--esa-line:#dce5f0;--esa-accent:#ad4106;font:400 15px/1.65 'eService Hebrew',Arial,sans-serif;direction:rtl;text-align:right;color:#132d4f}
#chat-container *,#chat-container *::before,#chat-container *::after{box-sizing:border-box}
#chat-container [hidden]{display:none!important}
#chat-container :is(button,textarea){font:inherit}
#chat-container button{cursor:pointer;letter-spacing:normal}
#chat-container :is(button,a,textarea,summary,[tabindex]):focus-visible{outline:3px solid #b74708;outline-offset:3px}
#chat-container button:disabled{cursor:default;opacity:.5}
.esa-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#esa-launcher{position:fixed;z-index:2147482800;left:max(20px,env(safe-area-inset-left));bottom:max(20px,env(safe-area-inset-bottom));min-height:56px;display:flex;align-items:center;gap:10px;padding:13px 18px;border:2px solid white;border-radius:18px;background:#b74708;color:white;box-shadow:0 6px 24px #132d4f30;font-size:14px;font-weight:650;transition:background .15s ease}
#esa-launcher:hover{background:#953704}
.esa-unread{position:absolute;bottom:calc(100% + 8px);left:0;white-space:nowrap;padding:4px 9px;background:#132d4f;color:#fff;border-radius:7px;font-size:12px}
#esa-dialog{position:fixed;inset:16px auto auto 16px;margin:0;padding:0;width:460px;max-width:calc(100vw - 32px);height:740px;max-height:calc(100dvh - 32px);border:1px solid #d5dfeb;border-radius:22px;background:#f5f8fc;color:#132d4f;box-shadow:0 24px 90px #0b203c40;overflow:hidden;font:400 15px/1.65 'eService Hebrew',Arial,sans-serif;direction:rtl;text-align:right}
#esa-dialog[open]{display:flex;flex-direction:column}
#esa-dialog.esa-expanded{width:740px}
#esa-dialog::backdrop{background:rgb(10 28 50 / .3)}
.esa-header{display:flex;align-items:center;gap:11px;padding:19px 18px;background:#132d4f;color:#fff;flex:none}
.esa-avatar{display:grid;place-items:center;position:relative;width:41px;height:44px;border-radius:13px;background:#ffffff13;font:700 33px/1 Arial,sans-serif;flex:none}
.esa-avatar span{position:absolute;right:5px;top:0;color:#ffab6f;font-size:30px}
.esa-heading{min-width:0;flex:1}
#chat-container .esa-header h2{margin:0;padding:0;font:700 19px/1.5 'eService Hebrew',Arial,sans-serif;color:#fff;letter-spacing:-.2px}
#chat-container .esa-header p{margin:2px 0 0;color:#c6d6e8;font-size:11px}
.esa-header button{display:grid;place-items:center;width:40px;height:44px;flex:none;padding:7px;border:1px solid #ffffff40;border-radius:10px;background:transparent;color:#fff}
.esa-header button:hover{background:#ffffff16}
#chat-container .esa-header button:focus-visible{outline-color:#ffb279}
.esa-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex:none;padding:0 16px;background:#fff;border-bottom:1px solid #dce5f0;font-size:12px}
#esa-context{min-width:0;flex:1}
#esa-context summary{display:flex;gap:6px;align-items:center;min-height:44px;cursor:pointer;list-style:none;color:#53677d}
#esa-context summary::-webkit-details-marker{display:none}
#esa-context summary::after{content:'⌄';margin-right:3px}
#esa-context[open] summary::after{content:'⌃'}
.esa-context-body{max-height:150px;overflow:auto;padding-bottom:10px;font-size:12px;color:#53677d}
#chat-container .esa-context-body p{margin:0 0 6px;line-height:1.7}
#esa-memory{padding:0 17px 0 0;margin:8px 0 0}
#esa-memory li{margin:5px 0;overflow-wrap:anywhere}
#esa-new{flex:none;display:flex;gap:6px;align-items:center;justify-content:center;min-height:36px;margin:4px 0;padding:7px 10px;border:1px solid #edc3a9;border-radius:9px;background:#fff7f0;color:#8f3506;font-size:12px;font-weight:650;white-space:nowrap}
#esa-new:hover:not(:disabled){background:#ffeadb;border-color:#c87842}
#esa-messages{flex:1;min-height:100px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b8c7da transparent;padding:22px 20px 16px}
#esa-welcome{padding:7px 2px 12px}
.esa-kicker{font-size:11px;color:#8f3506;font-weight:650;letter-spacing:.1px}
#chat-container #esa-welcome h3{margin:8px 0 9px;padding:0;color:#132d4f;font:700 27px/1.35 'eService Hebrew',Arial,sans-serif;letter-spacing:-.6px}
#chat-container #esa-welcome p{margin:0;color:#53677d;font-size:14px;line-height:1.9}
.esa-suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:22px 0 17px}
.esa-suggestions button{display:flex;align-items:center;min-height:48px;padding:11px 12px;border:1px solid #d4deeb;border-radius:11px;background:white;color:#132d4f;text-align:right;font-size:13px}
.esa-suggestions button::after{content:'←';margin-right:auto;padding-right:5px;color:#9a430f}
.esa-suggestions button:hover{background:#edf3fa;border-color:#a9bfd9}
#chat-container .esa-guide-link{color:#8f3506;font-size:12px;text-decoration:underline;text-underline-offset:4px}
.esa-message{max-width:100%;margin:0 0 20px;overflow-wrap:anywhere}
.esa-message-meta{display:flex;align-items:center;gap:7px;margin:0 3px 6px;font-size:11px;color:#62758b}
.esa-message-meta strong{font-weight:650;color:#354e6c}
.esa-message-user{margin-right:auto;width:fit-content;max-width:91%}
.esa-message-user .esa-message-content{background:#e3edf9;border:1px solid #d1dff0;border-radius:15px 15px 4px 15px;padding:11px 14px;white-space:pre-wrap;font-size:14px;color:#132d4f}
.esa-message-bot .esa-message-content{padding:16px 17px;border:1px solid #dce5f0;border-radius:15px 4px 15px 15px;background:#fff;color:#1e3856;font-size:14px;line-height:1.85}
#chat-container .esa-message-content p{margin:0 0 12px;line-height:inherit;color:inherit;font-size:inherit;white-space:pre-wrap}
#chat-container .esa-message-content p:last-child{margin-bottom:0}
#chat-container .esa-citation{display:inline-block;margin-right:5px;color:#8f3506;font:650 11px/1.8 Arial,sans-serif;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.esa-sources{margin-top:14px;padding-top:11px;border-top:1px solid #e3eaf3;font-size:12px}
.esa-sources summary{cursor:pointer;color:#435e7c;min-height:32px;display:list-item;list-style-position:inside}
.esa-sources ol{margin:9px 0 0;padding:0 20px 0 0}
.esa-sources li{margin-bottom:12px;padding-right:2px}
#chat-container .esa-sources a{color:#8f3506;font-weight:650;text-underline-offset:3px;line-height:1.65}
#chat-container .esa-source-excerpt{margin:5px 0 0!important;color:#62758b!important;font-size:11px!important;line-height:1.75!important}
.esa-message-error .esa-message-content{border-color:#e6cdb9;background:#fffaf5}
.esa-retry{min-height:38px;margin-top:9px;padding:6px 12px;border:1px solid #bdcbdc;border-radius:8px;background:#fff;color:#132d4f;font-size:12px!important}
#esa-latest{position:absolute;left:30px;bottom:235px;padding:7px 12px;border:1px solid #bdcbdc;border-radius:20px;background:#fff;color:#132d4f;box-shadow:0 3px 12px #132d4f20;font-size:12px}
.esa-composer{position:relative;flex:none;padding:11px 16px 12px;background:#fff;border-top:1px solid #dce5f0}
#esa-status{min-height:18px;margin:0 1px 7px;color:#53677d;font-size:11px;line-height:1.6}
#esa-status[data-busy="true"]::before{content:'';display:inline-block;width:6px;height:6px;margin-left:6px;border-radius:50%;background:#b74708}
#esa-form{display:flex;gap:8px;align-items:flex-end;padding:8px;border:1px solid #9fafc4;border-radius:12px;background:#fff}
#esa-form:focus-within{border-color:#24476e;box-shadow:0 0 0 2px #24476e1a}
#esa-input{resize:none;min-height:48px;max-height:112px;width:100%;padding:5px 4px;border:0;border-radius:0;background:transparent;color:#132d4f;font-size:14px;line-height:1.65;outline-offset:0!important}
#esa-input::placeholder{color:#6b7c91;opacity:1}
#esa-input:focus-visible{outline:0!important}
#esa-send{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:9px 12px;border:0;border-radius:9px;color:#fff;background:#132d4f;font-size:12px;font-weight:650;flex:none}
#esa-send:hover:not(:disabled){background:#24476e}
.esa-input-meta{display:flex;justify-content:space-between;gap:8px;margin-top:6px;color:#6b7c91;font-size:10px}
#chat-container .esa-privacy{margin:8px 0 0;color:#62758b;font-size:10px;line-height:1.7}
#chat-container .esa-privacy a{color:#53677d;text-underline-offset:3px}
.esa-footer{display:flex;gap:10px;align-items:center;flex:none;padding:10px 17px;background:#edf3fa;color:#8393a7;font-size:11px}
#chat-container .esa-footer a{display:inline-flex;align-items:center;min-height:28px;color:#354e6c;text-decoration:underline;text-underline-offset:4px}
.esa-brand{margin-right:auto;font:650 13px Arial,sans-serif;color:#53677d}
@media(max-width:600px){#esa-dialog,#esa-dialog.esa-expanded{inset:8px 8px auto;width:calc(100% - 16px);max-width:none;height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:18px}.esa-header{padding:14px;gap:9px}#esa-expand{display:none!important}#esa-messages{padding:17px 14px 12px}#esa-launcher{left:14px;bottom:max(14px,env(safe-area-inset-bottom));padding:11px 14px;min-height:52px}.esa-composer{padding:10px 12px}.esa-message-bot .esa-message-content{padding:13px}#esa-input{font-size:16px}.esa-input-meta{font-size:9px}#esa-input-hint{max-width:72%}.esa-privacy{font-size:10px}.esa-header .esa-heading h2{font-size:18px}.esa-avatar{width:36px;height:40px}.esa-suggestions{gap:8px}.esa-suggestions button{font-size:12px;padding:10px}}
@media(max-height:550px){.esa-header{padding:9px 13px}.esa-toolbar{padding:0 12px;justify-content:flex-end}#esa-context{display:none}.esa-composer{padding:7px 12px}.esa-input-meta,.esa-privacy{display:none}#esa-messages{padding:12px}.esa-footer{padding:7px 15px}}
@media(prefers-reduced-motion:reduce){#chat-container *,#chat-container *::before,#chat-container *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){#chat-container button,#esa-form,.esa-message-content{border:1px solid ButtonText}}

/* Guided skills: native controls, bounded progress and reviewable plain-text drafts. */
#esa-tools{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:5px 8px;border:0;background:transparent;color:#132d4f;font-size:12px;white-space:nowrap}
.esa-tools-count{display:grid;place-items:center;min-width:19px;height:19px;border-radius:6px;background:#e6eef9;font:700 11px Arial,sans-serif}
#esa-context-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
#esa-tools-panel{padding:0 0 8px}
.esa-tools-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:15px}
#chat-container #esa-tools-title{margin:5px 0 0;font:700 24px/1.35 'eService Hebrew',Arial,sans-serif;color:#132d4f}
#esa-tools-close{flex:none;min-height:36px;padding:6px 8px;border:1px solid #c4d1e2;border-radius:8px;background:#fff;color:#53677d;font-size:11px}
#esa-skill-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#esa-dialog.esa-expanded #esa-skill-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.esa-skill-card{display:flex;flex-direction:column;gap:7px;min-height:100px;padding:12px;border:1px solid #d5e0ee;border-radius:12px;background:#fff;color:#132d4f;text-align:right}
.esa-skill-card:hover{background:#edf3fb;border-color:#97aecb}
.esa-skill-card-title{display:flex;align-items:flex-start;gap:7px}
.esa-skill-card-title strong{font-size:13px;font-weight:650;line-height:1.55}
.esa-skill-number{display:grid;place-items:center;flex:none;min-width:22px;height:22px;background:#edf3fa;border-radius:7px;color:#53677d;font:650 11px Arial,sans-serif}
.esa-skill-description{color:#62758b;font-size:12px;line-height:1.65}
#chat-container .esa-tools-note{font-size:11px;color:#62758b;line-height:1.7;margin:13px 2px 0}
#esa-messages.esa-show-tools>.esa-message,#esa-messages.esa-show-tools>#esa-welcome{display:none!important}
#esa-dialog.esa-choosing-tools .esa-composer,#esa-dialog.esa-choosing-tools #esa-latest{display:none!important}
#esa-flow{flex:none;max-height:155px;overflow:auto;padding:10px 16px;background:#f1f6fc;border-bottom:1px solid #dce5f0;font-size:12px;scrollbar-width:thin}
.esa-flow-heading{display:flex;align-items:center;gap:8px;min-height:27px}
#esa-flow-title{font-size:12px;font-weight:650}
#esa-flow-progress{margin-right:auto;color:#62758b;white-space:nowrap;font-size:10px}
#esa-skill-stop{min-height:30px;padding:4px 7px;border:1px solid #becde0;border-radius:7px;background:#fff;color:#53677d;font-size:10px}
#esa-progress{display:block;width:100%;height:4px;margin:7px 0;accent-color:#b74708;border:0;border-radius:4px}
#esa-progress::-webkit-progress-bar{background:#dce5f0;border-radius:4px}
#esa-progress::-webkit-progress-value{background:#b74708;border-radius:4px}
#esa-progress::-moz-progress-bar{background:#b74708;border-radius:4px}
#chat-container #esa-flow-question{margin:5px 0 8px;color:#354e6c;font-size:12px;line-height:1.65}
#esa-choices{display:flex;flex-wrap:wrap;gap:6px}
.esa-choice{min-height:34px;padding:6px 9px;border:1px solid #c4d3e6;border-radius:8px;background:#fff;color:#24476e;font-size:11px!important}
#esa-answers summary{min-height:32px;padding:5px 0;cursor:pointer;color:#53677d;font-size:11px}
#esa-answer-list{padding:0 16px 0 0;margin:4px 0 8px}
#esa-answer-list li{margin:7px 0;overflow-wrap:anywhere;white-space:pre-wrap;font-size:11px}
.esa-edit{min-height:28px;margin-right:6px;padding:3px 7px;border:1px solid #c7d4e5;border-radius:6px;background:#fff;color:#8f3506;font-size:10px!important}
#esa-skill-back{min-height:32px;padding:5px 0;border:0;background:transparent;color:#8f3506;text-decoration:underline;text-underline-offset:3px;font-size:11px}
.esa-artifact{margin-top:15px;padding-top:13px;border-top:1px solid #dce5f0}
#chat-container .esa-artifact h4{margin:0 0 4px;color:#132d4f;font-size:15px;line-height:1.5}
#chat-container .esa-artifact-note{margin:0 0 9px!important;color:#62758b!important;font-size:10px!important}
.esa-artifact pre{max-height:270px;overflow:auto;margin:0;padding:12px;border:1px solid #d5e1ef;border-radius:9px;background:#f6f9fd;color:#24415f;font:400 12px/1.85 'eService Hebrew',Arial,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;direction:rtl;text-align:right}
.esa-artifact-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
.esa-artifact-actions button,#chat-container .esa-artifact-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 10px;border:1px solid #a8bdd7;border-radius:8px;background:#fff;color:#132d4f;font-size:11px!important;text-decoration:none}
@media(max-width:600px){#esa-context-label{max-width:100px}#esa-tools{padding:4px 6px}#esa-flow{max-height:135px;padding:8px 12px}#esa-dialog.esa-expanded #esa-skill-grid,#esa-skill-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.esa-skill-card{padding:10px;min-height:107px}.esa-skill-card-title strong{font-size:12px}.esa-skill-description{font-size:11px}.esa-tools-heading{gap:6px}#chat-container #esa-tools-title{font-size:22px}#esa-messages{min-height:60px}}
@media(max-height:550px){#esa-flow{display:none!important}#esa-messages{min-height:50px}.esa-artifact pre{max-height:160px}}
