:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--canvas:#fff;--surface:#f2f7f4;--mint:#e8faef;--ink:#10251a;--muted:#52665b;--accent:#073b2b;--brand-fill:#07e15b;--brand-pressed:#00c64f;--brand-edge:#087d3d;--on-accent:#073b2b;--line:#cfddd4;--control-line:#6f887a;--danger:#b72932;background:var(--canvas);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,sans-serif;font-size:17px;line-height:1.45}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation;min-height:44px}button{cursor:pointer;color:var(--accent);background:0 0;border:0}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}a{color:var(--accent);text-underline-offset:3px}input,select{border:0;border-bottom:1px solid var(--control-line);width:100%;min-height:54px;color:var(--ink);background:0 0;border-radius:0;padding:14px 0;font-size:17px}input::placeholder,textarea::placeholder{color:var(--muted)}input[type=checkbox]{width:22px;height:22px;min-height:22px;accent-color:var(--accent);flex-shrink:0}input[type=file]{background:var(--surface);border:0;border-radius:12px;padding:12px}label{margin:20px 0 0;font-size:15px;font-weight:600;display:block}label small{color:var(--muted);font-weight:400;display:block}.check{align-items:flex-start;gap:12px;font-weight:400;line-height:1.5;display:flex}.check input{margin:3px 0 0}.layout{max-width:460px;min-height:100svh;padding:12px 24px max(24px, env(safe-area-inset-bottom));flex-direction:column;margin:auto;display:flex}.top{min-height:48px;color:var(--muted);justify-content:space-between;align-items:center;font-size:14px;display:flex}.top button{padding:8px 0}.hero{text-align:center;padding:36px 0 8px}.hero img{object-fit:contain;width:80px;height:80px;margin-bottom:18px}.brand-mark{background:var(--brand-fill);border-radius:24px;padding:17px}.hero h1{letter-spacing:-.025em;text-wrap:balance;margin:8px 0 16px;font-size:30px;line-height:1.12}.hero p{color:var(--muted);max-width:34ch;margin:0 auto}.intro{padding-top:clamp(32px,10svh,94px)}.intro h1{font-size:34px}.content{padding:8px 0 24px}.actions{gap:8px;margin-top:auto;padding-top:26px;display:grid}.primary,.secondary,.danger{text-align:center;border:1px solid #0000;border-radius:999px;width:100%;min-height:54px;padding:15px 18px;font-weight:600;text-decoration:none;display:block}.primary{background:var(--brand-fill);border-color:var(--brand-edge);color:var(--on-accent)}.primary:active:not(:disabled){background:var(--brand-pressed)}.secondary{background:var(--surface);color:var(--accent)}.secondary:active:not(:disabled){background:var(--mint)}.danger{background:var(--danger);color:#fff}.note{color:var(--muted);font-size:14px;line-height:1.5}.error{color:var(--danger);margin:12px 0;font-size:15px}.error:empty{display:none}.notice{background:var(--surface);color:var(--muted);border-radius:12px;padding:14px 16px;font-size:15px}.phone{font-variant-numeric:tabular-nums;letter-spacing:.01em;font-size:25px}.code{letter-spacing:.18em;text-align:center;font-variant-numeric:tabular-nums;font-size:30px}.avatar-preview{object-fit:cover;background:var(--surface);border-radius:50%;width:112px;height:112px;margin:8px auto;display:block}.permission{border-bottom:1px solid var(--line);align-items:center;gap:16px;padding:20px 0;display:flex}.permission>div{flex:1}.permission strong{display:block}.permission p{color:var(--muted);margin:4px 0 0;font-size:14px}.permission button{font-weight:600}.loading-state{min-height:80svh;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;display:flex}.loading-state .brand-mark{border-radius:19px;padding:14px}.call-state{text-align:center;color:var(--muted);font-variant-numeric:tabular-nums;padding:12px}.call-controls{justify-content:center;gap:12px;margin:12px 0 24px;display:flex}.call-controls button{background:var(--surface);color:var(--ink);border-radius:999px;padding:14px 24px}.call-controls .danger{background:var(--danger);color:#fff;width:auto}.call-controls button[aria-pressed=true]{background:var(--brand-fill);color:var(--on-accent)}audio{width:100%;height:44px;margin:8px 0 18px}.transcript{white-space:pre-wrap;overflow-wrap:anywhere}.transcript p{margin:0 0 18px}.transcript strong{color:var(--muted);margin-bottom:4px;font-size:14px;display:block}.history{margin:0;padding:0;list-style:none}.history li{border-bottom:1px solid var(--line)}.history button{text-align:start;width:100%;color:var(--ink);padding:18px 0}.history span{color:var(--muted);margin-top:4px;font-size:14px;display:block}.empty{text-align:center;padding:36px 0}.empty h2{font-size:21px}.inline-actions{flex-wrap:wrap;justify-content:center;gap:16px;display:flex}.pill{background:var(--mint);color:var(--accent);border-radius:999px;margin-bottom:12px;padding:5px 10px;font-size:13px;display:inline-block}h2{font-size:21px;line-height:1.25}#call-transcript{margin-top:24px}.save-status{color:var(--muted);font-size:14px}.visually-hidden{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}[hidden]{display:none!important}.assistant-availability{color:var(--muted);justify-content:center;align-items:center;gap:6px;margin:0 0 16px;font-size:14px;display:flex}.assistant-availability:before{content:"";background:var(--muted);border-radius:50%;flex-shrink:0;width:7px;height:7px}.assistant-availability.is-online{color:var(--accent)}.assistant-availability.is-online:before{background:var(--brand-edge)}details>summary{cursor:pointer;min-height:44px;color:var(--accent);padding:12px 0}textarea{border:0;border-bottom:1px solid var(--control-line);width:100%;min-height:108px;color:var(--ink);resize:vertical;background:0 0;border-radius:0;padding:14px 0}textarea:disabled{opacity:.55}#helper-chat-log{margin-top:24px}#helper-chat-log .chat-message{background:var(--surface);border-radius:18px;max-width:92%;padding:12px 14px}#helper-chat-log .chat-message--user{background:var(--mint);margin-inline-start:auto}#helper-chat-text{overflow-wrap:anywhere}.telegram-steps{padding-left:24px;line-height:1.55}.telegram-steps li{padding:6px 0 6px 4px}.voice-play{color:#073b2b;background:#07e15b;border:1px solid #087d3d;border-radius:999px;margin-top:20px;padding:12px 18px;font-weight:600}.voice-active{overflow:hidden}.voice-screen{z-index:30;min-height:100svh;padding:max(16px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));color:#fff;background:#073b2b;flex-direction:column;animation:.24s cubic-bezier(.16,1,.3,1) voice-enter;display:flex;position:fixed;inset:0}.voice-top{color:#c9e8d6;justify-content:space-between;align-items:center;gap:12px;min-height:52px;font-size:14px;display:flex}.voice-top button{color:#fff;align-items:center;gap:3px;padding:8px 0;font-size:17px;display:inline-flex}.voice-top svg{width:24px;height:24px}.voice-person{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;min-height:260px;padding:32px 0;display:flex}.voice-avatar{background:#07e15b;border-radius:50%;place-items:center;width:132px;height:132px;margin-bottom:28px;display:grid;position:relative}.voice-avatar img{object-fit:contain;width:84px;height:84px}.voice-avatar:after{content:"";opacity:0;border:2px solid #64ed98;border-radius:50%;position:absolute;inset:-9px}.voice-screen[data-phase=dialing] .voice-avatar:after{animation:1.8s ease-out infinite voice-dial}.voice-person h1{letter-spacing:-.025em;overflow-wrap:anywhere;text-wrap:balance;margin:0 0 10px;font-size:30px;font-weight:600;line-height:1.14}.voice-identity{color:#d8f5e3;margin:0;font-size:15px}.voice-person #voice-phase{color:#fff;margin:22px 0 0;font-size:18px}.voice-duration{font-variant-numeric:tabular-nums;color:#fff;margin:6px 0 0;font-size:22px}.voice-history-note{text-align:center;color:#c9e8d6;align-self:center;max-width:32ch;margin:0 0 30px;font-size:13px}.voice-actions{justify-content:center;gap:36px;padding-bottom:16px;display:flex}.voice-action{color:#fff;flex-direction:column;align-items:center;gap:12px;width:112px;padding:0;font-size:14px;display:flex}.voice-action svg{background:#245740;border-radius:50%;width:64px;height:64px;padding:18px;transition:transform .12s ease-out,background-color .16s}.voice-action:active svg{transform:scale(.94)}.voice-action[aria-pressed=true] svg{color:#073b2b;background:#07e15b}.voice-end svg{color:#fff;background:#c92d39}.voice-screen button:focus-visible{outline-color:#fff}.voice-screen~.layout{display:none}@keyframes voice-enter{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}@keyframes voice-dial{0%{opacity:.55;transform:scale(.95)}to{opacity:0;transform:scale(1.24)}}@media (hover:hover){.primary:hover:not(:disabled){background:var(--brand-pressed)}.secondary:hover:not(:disabled){background:var(--mint)}}@media (prefers-color-scheme:dark){:root{--canvas:#071a12;--surface:#12291d;--mint:#173d27;--ink:#f3fcf6;--muted:#aec9ba;--accent:#64ed98;--brand-edge:#64ed98;--line:#365444;--control-line:#6c907a;--danger:#ff838a}.danger,.call-controls .danger{color:#fff;background:#b72932}}@media (width>=700px){.layout{min-height:90svh;padding-top:36px}.hero{padding-top:42px}.voice-screen{padding-left:max(24px,50vw - 280px);padding-right:max(24px,50vw - 280px)}.voice-person h1{font-size:34px}}@media (height<=600px){.voice-person{min-height:180px;padding:16px 0}.voice-avatar{width:88px;height:88px;margin-bottom:18px}.voice-avatar img{width:56px;height:56px}.voice-history-note{margin-bottom:18px}.voice-person h1{font-size:26px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.voice-screen,.voice-screen .voice-avatar:after{animation:none}.voice-screen[data-phase=dialing] .voice-avatar:after{opacity:.5}.voice-action svg{transition:none}}.chat-message small{color:inherit;margin-top:.35rem;font-size:.8rem;display:block}.helper-questionnaires{gap:.75rem;display:grid}.helper-questionnaire-card{background:var(--surface,#fff);border-radius:16px;padding:1rem}.helper-questionnaire-card h3{margin:0 0 .75rem;font-size:1.05rem}.helper-intake-dialog{background:var(--surface,#fff);width:min(92vw,36rem);max-height:85dvh;color:var(--ink,#073b2b);border:0;border-radius:16px;padding:1.25rem;overflow:auto}.helper-intake-dialog::backdrop{background:#00000073}.helper-intake-dialog form{gap:1rem;display:grid}.helper-intake-dialog h2{margin:0;font-size:1.35rem}.helper-intake-dialog label{gap:.4rem;display:grid}.helper-intake-dialog textarea,.helper-intake-dialog select{width:100%;font:inherit;color:inherit;background:0 0;border:1px solid;border-radius:10px;padding:.75rem}
