:root{font-family:Arial,Noto Sans Hebrew,sans-serif;color:#ececec;background:#171717;color-scheme:dark;font-size:17px;line-height:1.6}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}button,textarea,select{font:inherit}button{min-width:44px;min-height:44px;border:0;border-radius:10px;background:transparent;color:inherit;padding:9px 12px;cursor:pointer}button:hover{background:#343434}button:disabled{opacity:.35;cursor:not-allowed}button:focus-visible,textarea:focus-visible,select:focus-visible,article:focus-visible,input:focus-visible{outline:2px solid #9cc9bb;outline-offset:3px}.primary{background:#e8e8e8;color:#171717;font-weight:600;padding:11px 20px}.primary:hover{background:#fff}[hidden]{display:none!important}.app-shell{position:fixed;top:var(--app-top,0px);inset-inline:0;height:var(--app-height,100dvh);display:flex}.main-app{display:flex;flex-direction:column;min-width:0;width:100%;height:var(--app-height,100dvh)}header{display:flex;align-items:center;gap:10px;padding:8px 14px;min-height:62px;flex-shrink:0}.brand{font-weight:600;font-size:21px}.brand span{font-size:12px;font-weight:400;color:#b4b4b4;margin-right:5px}.connection{margin-right:auto;font-size:12px;color:#b8cfc6;padding:5px 9px;border:1px solid #3d4d46;border-radius:30px}.runtime-state{text-align:center;color:#aaa;font-size:12px;padding:0 16px 8px}main{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:10px max(18px,calc((100% - 760px)/2));scroll-behavior:smooth;min-height:0}#welcome{text-align:center;margin:auto;padding:clamp(16px,7vh,65px) 0 24px}.mark{display:grid;place-content:center;width:52px;height:52px;border-radius:16px;background:#2e3d36;color:#c7dfd4;font-size:30px;margin:auto}h1{font-size:30px;line-height:1.3;margin:20px 0 10px}#welcome p{font-size:15px;color:#aaa}#welcome .test-note{font-size:12px;max-width:310px;margin:16px auto}.composer-wrap{flex-shrink:0;max-width:800px;width:100%;margin:0 auto;padding:8px 18px calc(28px + env(safe-area-inset-bottom,0px))}form{background:#2d2d2d;border:1px solid #414141;border-radius:24px;padding:12px 12px 7px}textarea{display:block;width:100%;border:0;outline:0;background:transparent;color:#ececec;resize:none;min-height:42px;max-height:130px;padding:4px 8px;line-height:1.5}textarea::placeholder{color:#aaa}.composer-tools{display:flex;align-items:center;gap:3px}.composer-tools button{font-size:14px}.composer-tools button span{margin-right:6px}.spacer{flex:1}.send{border-radius:50%;background:#ececec;color:#171717;font-size:25px;font-weight:700;min-width:42px;width:42px;height:42px;min-height:42px;padding:0}.send:hover{background:#fff}.composer-note,.metrics{font-size:11px;color:#a5a5a5;text-align:center;margin:6px 0 0}.metrics{color:#b4cec2}#error{color:#ffabb4;font-size:14px;margin:4px 0}.status{font-size:13px;color:#d4d4d4;margin:0 4px 6px}aside{width:270px;flex-shrink:0;background:#111;padding:16px;display:flex;flex-direction:column}aside>button{text-align:right}aside h2{font-size:13px;color:#aaa;margin-top:28px}aside p{font-size:13px;color:#aaa}.side-head{display:flex;justify-content:space-between;align-items:center}.side-foot{margin-top:auto}.message{padding:14px 0 20px;overflow-wrap:anywhere}.message h3{font-size:12px;color:#aaa;margin:0 0 8px;font-weight:400}.message p{white-space:pre-wrap;margin:0;line-height:1.8}.message.user{background:#303030;border-radius:22px;padding:12px 18px;max-width:90%;margin:12px 0 18px auto;width:fit-content}.message.user h3{display:none}.message .message-actions{display:flex;gap:4px;margin-top:8px}.message-actions button{font-size:13px;color:#bbb}.message.pending p{color:#bbb}.message.pending p:empty:before{content:"מכין תשובה…"}dialog{border:1px solid #444;border-radius:20px;background:#242424;color:#eee;width:min(600px,calc(100vw - 28px));max-height:90dvh;padding:22px;overflow-y:auto}dialog::backdrop{background:#000a}.dialog-title{display:flex;justify-content:space-between;align-items:center}.dialog-title h2{margin:0;font-size:23px}dialog h3{font-size:17px;margin:0 0 12px}dialog section{padding:22px 0;border-top:1px solid #444}dialog section:first-of-type{margin-top:16px}dialog p{font-size:14px;color:#bbb}dialog label{display:block;font-size:14px;margin:12px 0 6px}dialog select{width:100%;padding:10px;border:1px solid #555;background:#303030;border-radius:9px;font-size:15px}dialog button:not(.primary){border:1px solid #484848;margin:5px 0}progress{width:100%;accent-color:#9cc9bb;margin-top:14px}#voice-bar{display:flex;justify-content:space-between;align-items:center;font-size:13px}#voice-bar button{font-size:13px;color:#c1dace}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:700px){aside{position:fixed;inset:0 0 0 auto;z-index:20;box-shadow:-30vw 0 0 20vw #0008}header{padding:8px}.composer-wrap{padding-right:12px;padding-left:12px}.composer-tools button{padding:7px}main{padding:8px 18px}.message.user{max-width:94%}.brand{font-size:20px}dialog{padding:18px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}a{color:#b9dacf}aside:focus-visible{outline:2px solid #9cc9bb}#model-help{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;padding:3px 12px;background:#242b27;font-size:13px;flex-shrink:0}#model-help button{color:#c7dfd4;text-decoration:underline}#retry-last{margin:0 auto;font-size:13px;flex-shrink:0}#settings-dialog{max-height:calc(var(--app-height,100dvh) - 60px);margin-top:20px;margin-bottom:40px}.dialog-title{position:sticky;top:-22px;background:#242424;z-index:2;padding:4px 0}.composer-wrap{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}@media(max-height:500px){header{min-height:44px;padding:0 8px}.runtime-state,.composer-note{display:none}#model-help{font-size:12px}.composer-wrap{padding-top:2px;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}.status{font-size:12px}.composer-tools button{min-height:44px}}
