:root{--ink:#17211c;--muted:#738078;--paper:#f4efe6;--card:#fffdf8;--line:#ded8ce;--green:#2f6f57;--green-dark:#204f3e;--green-soft:#dce9df;--orange:#e47a45;--orange-soft:#fff0e6;--shadow:0 24px 80px #27332b21}*{box-sizing:border-box}html,body{min-height:100%}body{color:var(--ink);background:var(--paper);margin:0;font-family:Manrope,system-ui,sans-serif}button,input,textarea{font:inherit}button{color:inherit}.glyph{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}.app-shell{background:radial-gradient(circle at 8% 4%, #fff9ee 0, transparent 30%), radial-gradient(circle at 92% 90%, #dce8df 0, transparent 32%), var(--paper);min-height:100vh;padding:22px}.messenger{background:var(--card);width:min(1180px,100%);height:calc(100vh - 44px);min-height:640px;box-shadow:var(--shadow);border:1px solid #45524824;border-radius:25px;grid-template-columns:340px 1fr;margin:0 auto;display:grid;overflow:hidden}.sidebar{border-right:1px solid var(--line);background:#f9f6ef;flex-direction:column;min-width:0;display:flex}.sidebar-header,.conversation-header{border-bottom:1px solid var(--line);flex:0 0 76px;align-items:center;height:76px;padding:0 22px;display:flex}.sidebar-header{justify-content:space-between}.brand{letter-spacing:-.02em;align-items:center;gap:10px;font-family:Unbounded,sans-serif;font-size:13px;font-weight:700;display:flex}.brand.light{color:#fff}.brand-mark{color:#fff;background:var(--orange);border-radius:12px 12px 12px 3px;flex:none;place-items:center;width:37px;height:37px;font-family:Unbounded,sans-serif;font-size:13px;font-weight:700;display:inline-grid;box-shadow:0 8px 20px #e47a4547}.brand-mark.big{border-radius:19px 19px 19px 5px;width:62px;height:62px;font-size:21px}.icon-button,.small-icon-button,.mobile-back{cursor:pointer;background:0 0;border:0;place-items:center;padding:0;display:inline-grid}.icon-button{border:1px solid var(--line);border-radius:12px;width:38px;height:38px}.icon-button:hover,.small-icon-button:hover{background:#eee9df}.profile-strip{background:var(--green);color:#fff;border-radius:17px;align-items:center;gap:12px;margin:18px 18px 10px;padding:14px;display:flex;box-shadow:0 12px 28px #2f6f572e}.avatar,.contact-avatar{border-radius:50%;flex:none;place-items:center;font-weight:800;display:grid;position:relative;overflow:hidden}.avatar{width:42px;height:42px;color:var(--green-dark);background:#ecf2e8}.avatar-image{object-fit:cover}.profile-details{flex:1;min-width:0}.profile-details>strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;display:block;overflow:hidden}.profile-id-row{align-items:center;gap:5px;margin-top:3px;display:flex}.profile-id-row code{color:#ffffffb8;overflow-wrap:anywhere;flex:1;min-width:0;font-size:8px;line-height:1.3}.profile-id-row button{color:#ffffffc7;cursor:pointer;background:#ffffff1f;border:0;border-radius:7px;flex:none;place-items:center;width:23px;height:23px;padding:0;display:grid}.profile-id-row button:hover{color:#fff;background:#fff3}.profile-id-row .glyph{width:13px;height:13px}.contacts-title{color:var(--muted);letter-spacing:.12em;text-transform:uppercase;justify-content:space-between;align-items:center;padding:15px 22px 8px;font-size:11px;font-weight:800;display:flex}.small-icon-button{border-radius:9px;width:28px;height:28px}.small-icon-button .glyph{width:17px}.contact-list{flex:1;min-height:0;padding:4px 10px;overflow-y:auto}.contact-row{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:14px;align-items:center;gap:11px;width:100%;padding:11px 12px;display:flex}.contact-row:hover{background:#f0ebe1}.contact-row.selected{background:var(--green-soft)}.contact-avatar{width:42px;height:42px;color:var(--green-dark);background:#e2e1d6;font-size:14px}.contact-avatar.large{background:var(--green-soft);width:43px;height:43px}.contact-copy{flex:1;min-width:0}.contact-copy strong,.contact-copy small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.contact-copy strong{font-size:13px}.contact-copy small{color:var(--muted);margin-top:3px;font-size:10px}.unread-badge{color:#fff;background:var(--orange);border-radius:10px;place-items:center;min-width:20px;height:20px;padding:0 5px;font-size:10px;font-weight:800;display:grid}.empty-sidebar{text-align:center;color:var(--muted);padding:40px 32px}.empty-sidebar .glyph{width:28px;height:28px}.empty-sidebar p{font-size:12px;line-height:1.6}.add-contact-button{height:49px;color:var(--green);cursor:pointer;background:0 0;border:1px dashed #b9c3bb;border-radius:14px;justify-content:center;align-items:center;gap:7px;margin:10px 16px 16px;font-size:12px;font-weight:800;display:flex}.add-contact-button:hover{background:#edf2eb}.add-contact-button .glyph{width:16px}.conversation-panel{background:linear-gradient(#fffdf8e3,#fffdf8e3),radial-gradient(#c9d2ca 1px,#0000 1px) 0 0/22px 22px;flex-direction:column;min-width:0;min-height:0;display:flex}.conversation-header{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffdf8eb;gap:12px}.conversation-title{flex:1;min-width:0}.conversation-title strong,.conversation-title span{display:block}.conversation-title strong{font-size:14px}.conversation-title span{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:3px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:9px;overflow:hidden}.text-button{color:var(--green);background:var(--green-soft);cursor:pointer;border:0;border-radius:9px;padding:8px 11px;font-size:11px;font-weight:800}.mobile-back{display:none}.message-stream{scroll-behavior:smooth;flex:1;min-height:0;padding:24px clamp(20px,5vw,66px);overflow-y:auto}.message-row{margin:10px 0;display:flex}.message-row.outgoing{justify-content:flex-end}.message-bubble{background:#fff;border:1px solid #e5dfd5;border-radius:4px 17px 17px;max-width:min(520px,76%);padding:12px 14px 8px;box-shadow:0 6px 20px #1f2d250f}.outgoing .message-bubble{background:var(--green);color:#fff;border-color:var(--green);border-radius:17px 17px 4px;position:relative;box-shadow:0 8px 24px #2f6f5729}.message-row.outgoing:not(.answer-message) .message-bubble:after{content:"";background:var(--green);clip-path:polygon(0 0,0 100%,100% 100%);width:10px;height:12px;position:absolute;bottom:-1px;right:-7px}.message-sender{color:var(--orange);margin-bottom:4px;font-size:10px;font-weight:800;display:block}.message-bubble p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:13px;line-height:1.55}.message-bubble footer{color:var(--muted);justify-content:flex-end;align-items:center;gap:5px;margin-top:4px;font-size:9px;display:flex}.outgoing .message-bubble footer{color:#ffffff94}.inline-message-meta{color:var(--muted);white-space:nowrap;vertical-align:baseline;align-items:center;gap:5px;margin-left:8px;font-size:9px;line-height:1;display:inline-flex}.outgoing .inline-message-meta{color:#ffffffa3}.ticks{color:#ffffff94;flex:none;align-items:center;width:14px;height:11px;display:inline-flex}.ticks.ticks-double{width:17px}.ticks svg{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;width:100%;height:100%;overflow:visible}.ticks-active{color:#95e2bd}.question-options{grid-template-columns:1fr 1fr;gap:7px;margin-top:10px;display:grid}.question-options button,.question-option{border:1px solid #f2d6c4;border-radius:9px;align-items:center;gap:7px;min-width:74px;padding:8px 10px;font-size:11px;font-weight:800;display:flex}.question-options button{color:#94502e;cursor:pointer;background:#fff7f1}.question-options button:hover{color:#fff;background:var(--orange);border-color:var(--orange)}.question-option{color:#815039;background:#fff7f1;border-color:#f2d6c4}.question-option.selected{color:#fff;background:var(--orange);border-color:var(--orange);box-shadow:none}.outgoing .question-option{color:#fff;background:#ffffff1f;border-color:#ffffff29}.outgoing .question-option.selected{color:var(--green-dark);box-shadow:none;background:#bce3ca;border-color:#bce3ca}.question-options small{font-size:12px}.answer-message{margin-top:-3px}.answer-message .message-bubble{min-width:180px}.answer-sender{color:var(--orange);margin-bottom:8px;font-size:10px;font-weight:800;display:block}.answer-message.outgoing .answer-sender{color:#c8ead4}.reply-preview{color:var(--green-dark);border-left:3px solid var(--green);background:#edf3ef;border-radius:7px;margin:0 0 10px;padding:7px 9px}.reply-preview strong{margin-bottom:2px;font-size:10px;display:block}.reply-preview p{color:#556159;font-size:10px;line-height:1.4}.answer-message.outgoing .reply-preview{color:#d7f0df;background:#ffffff1f;border-left-color:#a8dabb}.answer-message.outgoing .reply-preview p{color:#ffffffc7}.message-bubble .answer-text{font-size:13px;font-weight:700}.read-button{color:var(--green);cursor:pointer;background:0 0;border:1px solid #c9d9ce;border-radius:8px;margin-top:9px;padding:6px 8px;font-size:9px;font-weight:800}.conversation-empty,.no-conversation{text-align:center;color:var(--muted);margin:auto}.conversation-empty h2,.no-conversation h2{color:var(--ink);margin:16px 0 5px;font-family:Unbounded,sans-serif;font-size:16px}.conversation-empty p,.no-conversation p{margin:0;font-size:12px}.tiny-device{color:#c7decf;background:#26302b;border:6px solid #454c48;border-radius:12px;place-items:center;width:115px;height:74px;margin:0 auto;font:700 8px Unbounded,sans-serif;display:grid;position:relative;box-shadow:0 14px 28px #1f2b2533}.tiny-device i{background:var(--orange);width:5px;height:5px;box-shadow:14px 0 var(--orange), -14px 0 var(--orange);border-radius:50%;position:absolute;bottom:5px}.no-conversation{align-content:center;place-items:center;height:100%;display:grid}.composer{border-top:1px solid var(--line);background:#fffdf8f5;flex:none;padding:13px clamp(18px,4vw,46px) 17px}.template-switch{align-items:center;gap:4px;margin-bottom:8px;display:flex}.template-switch button{color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:7px;padding:5px 9px;font-size:9px;font-weight:800}.template-switch button.active{color:var(--green-dark);background:var(--green-soft)}.template-switch span{color:var(--muted);margin-left:auto;font-size:9px}.composer-line{align-items:flex-end;gap:8px;display:flex}.composer textarea{resize:vertical;min-height:43px;max-height:100px;color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:14px;outline:none;flex:1;padding:12px 14px;font-size:12px;line-height:1.5;box-shadow:inset 0 1px 2px #1f2d2508}.composer textarea:focus{border-color:var(--green);background:#fff;box-shadow:0 0 0 3px #2f6f571a}.send-button{color:#fff;background:var(--green);cursor:pointer;border:0;border-radius:13px 13px 13px 4px;place-items:center;width:44px;height:44px;display:grid;box-shadow:0 8px 16px #2f6f5738}.send-button:hover{background:var(--green-dark)}.send-button:disabled{opacity:.45;cursor:default}.option-fields{background:#eef3ef;border-radius:10px;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px;padding:9px 10px;display:grid}.option-fields label{min-width:0;color:var(--green-dark);text-transform:uppercase;font-size:8px;font-weight:800}.option-fields label>span{justify-content:space-between;gap:8px;display:flex}.option-fields label small{color:var(--muted);font-size:8px;font-weight:600}.option-fields input{background:#fff;border:1px solid #cbd9cf;border-radius:7px;width:100%;margin-top:4px;padding:7px 8px;font-size:11px;display:block}.welcome-shell{background:radial-gradient(ellipse at 4% 88%, #e47a4533 0, #e47a4517 24%, transparent 52%), linear-gradient(135deg, #ffffff0a, transparent 55%), var(--green-dark);grid-template-columns:minmax(340px,1.1fr) minmax(440px,.9fr);min-height:100vh;display:grid}.welcome-copy{color:#fff;flex-direction:column;justify-content:space-between;min-height:100vh;padding:clamp(38px,7vw,92px);display:flex}.eyebrow,.step-label{color:var(--orange);letter-spacing:.15em;text-transform:uppercase;font-size:10px;font-weight:800}.welcome-copy h1{letter-spacing:-.055em;max-width:720px;margin:24px 0;font:700 clamp(38px,5vw,70px)/1.05 Unbounded,sans-serif}.welcome-copy p{color:#ffffffad;max-width:610px;font-size:clamp(14px,1.5vw,18px);line-height:1.75}.feature-line{color:#ffffffbd;align-items:center;gap:9px;font-size:11px;display:flex}.feature-line span{color:#b0dbc1}.welcome-card{background:var(--card);width:min(470px,100% - 48px);box-shadow:var(--shadow);border-radius:25px;place-self:center;padding:35px}.mode-tabs{background:#eee9df;border-radius:11px;grid-template-columns:1fr 1fr;margin-bottom:34px;padding:4px;display:grid}.mode-tabs button{color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:8px;padding:9px 5px;font-size:10px;font-weight:800}.mode-tabs button.active{color:var(--ink);background:#fff;box-shadow:0 3px 12px #292f2b14}.welcome-card h2,.modal-card h2{letter-spacing:-.04em;margin:8px 0;font:700 24px/1.25 Unbounded,sans-serif}.form-hint{color:var(--muted);margin:0 0 22px;font-size:11px;line-height:1.6}.field-label{color:#4f5b54;letter-spacing:.06em;text-transform:uppercase;margin-top:15px;font-size:9px;font-weight:800;display:block}.field-label input{width:100%;color:var(--ink);border:1px solid var(--line);text-transform:none;background:#f8f5ef;border-radius:10px;outline:none;margin-top:7px;padding:12px 13px;font-size:12px}.field-label input:focus{border-color:var(--green);background:#fff;box-shadow:0 0 0 3px #2f6f5717}.field-label-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.generate-name-button{color:var(--green);text-transform:none;cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;padding:0;font-size:9px;font-weight:800;display:inline-flex}.generate-name-button .glyph{width:13px;height:13px}.character-count{color:var(--muted);text-align:right;margin:5px 2px 17px;font-size:9px}.primary-button,.secondary-button,.cancel-button,.danger-button,.danger-link{cursor:pointer;border:0;font-weight:800}.primary-button{color:#fff;background:var(--green);border-radius:11px;padding:13px 18px;font-size:11px;box-shadow:0 8px 20px #2f6f5733}.primary-button:hover{background:var(--green-dark)}.primary-button:disabled,.secondary-button:disabled{opacity:.45;cursor:default}.primary-button.wide{width:100%;margin-top:3px}.primary-button.login-button,.primary-button.contact-submit-button{margin-top:18px}.inline-error{color:#9c452c;background:#ffebe3;border-radius:8px;margin:14px 0 0;padding:9px 11px;font-size:10px}.loading-screen,.fatal-error{background:var(--paper);align-content:center;place-items:center;gap:15px;min-height:100vh;display:grid}.loading-screen p{color:var(--muted);font-size:11px}.pulse{animation:1.5s ease-in-out infinite pulse}@keyframes pulse{50%{opacity:.7;transform:scale(.92)}}.fatal-card{text-align:center;width:min(420px,100% - 40px);box-shadow:var(--shadow);background:#fff;border-radius:22px;padding:35px}.fatal-card h1{font-family:Unbounded,sans-serif;font-size:20px}.fatal-card p{color:var(--muted);font-size:12px;line-height:1.6}.modal-backdrop{z-index:20;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#18211c99;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal-card{background:var(--card);width:min(440px,100%);max-height:calc(100vh - 40px);box-shadow:var(--shadow);border-radius:22px;padding:32px;position:relative;overflow-y:auto}.modal-close{width:32px;height:32px;color:var(--muted);cursor:pointer;background:#eee9df;border:0;border-radius:10px;font-size:20px;position:absolute;top:17px;right:17px}.settings-card{width:min(580px,100%)}.settings-section{background:#f6f2ea;border-radius:14px;margin:22px 0;padding:18px}.settings-section .field-label:first-child{margin-top:0}.inline-field,.copy-field{align-items:stretch;gap:7px;display:flex}.inline-field input{flex:1;min-width:0}.inline-field input,.inline-field>.secondary-button{height:42px}.secondary-button{color:var(--green);background:var(--green-soft);border-radius:9px;align-self:flex-end;padding:11px 12px;font-size:9px}.avatar-field{margin-top:15px}.avatar-presets{grid-template-columns:repeat(9,minmax(0,1fr));gap:7px;margin-top:8px;display:grid}.avatar-presets button{aspect-ratio:1;border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:50%;min-width:0;padding:3px;transition:border-color .15s,box-shadow .15s,transform .15s;position:relative;overflow:hidden}.avatar-presets button:hover{border-color:#91ad9f;transform:translateY(-1px)}.avatar-presets button:focus-visible{outline:2px solid var(--green);outline-offset:2px}.avatar-presets button.selected{border-color:var(--orange);box-shadow:0 0 0 3px #eb704033}.avatar-preset{background:var(--green-soft);width:100%;height:100%}.avatar-custom-label{color:var(--muted);margin-top:12px;font-size:8px;display:block}.avatar-url-field{align-items:flex-end;margin-top:0}.avatar-preview{background:var(--green-soft);flex:0 0 42px;width:42px;height:42px}.copy-field{margin-top:7px}.copy-field code{color:#425047;border:1px solid var(--line);text-overflow:ellipsis;white-space:nowrap;background:#fff;border-radius:9px;flex:1;min-width:0;padding:11px;font-size:10px;overflow:hidden}.copy-field button{color:var(--green);background:var(--green-soft);cursor:pointer;border:0;border-radius:9px;place-items:center;padding:0 10px;font-size:9px;display:grid}.copy-field .glyph{width:16px}.token-section{margin-bottom:0}.token-section>.form-hint{margin:7px 0 20px}.account-actions{flex-wrap:wrap;gap:8px 18px;margin-top:2px;display:flex}.danger-link{color:#a84a32;text-underline-offset:3px;background:0 0;padding:2px 0;font-size:9px;-webkit-text-decoration:underline #a84a3259;text-decoration:underline #a84a3259}.danger-link:hover{color:#7f321f;text-decoration-color:currentColor}.danger-button{color:#a84a32;background:#ffebe3;border-radius:9px;padding:10px 12px;font-size:9px}.cancel-button{color:#695951;background:#fffaf6;border:1px solid #d9b9aa;border-radius:9px;padding:10px 12px;font-size:9px}.cancel-button:hover{color:#4f4039;background:#fff;border-color:#c99d89}.cancel-button:disabled,.danger-button:disabled{opacity:.45;cursor:default}.token-reset-confirmation{color:#713825;background:#ffebe3;border:1px solid #f5cdbf;border-radius:11px;margin-top:14px;padding:14px}.token-reset-confirmation strong{font-size:11px;display:block}.token-reset-confirmation p{margin:6px 0 12px;font-size:10px;line-height:1.55}.token-reset-confirmation>div{justify-content:flex-end;gap:7px;display:flex}.toast{z-index:30;color:#fff;cursor:pointer;background:#26342c;border:0;border-radius:11px;align-items:center;gap:18px;max-width:calc(100vw - 48px);padding:12px 15px;font-size:10px;display:flex;position:fixed;top:24px;right:24px;box-shadow:0 12px 30px #141e183d}.toast span{color:#fff9;font-size:17px}@media (max-width:800px){.app-shell{padding:0}.messenger{border:0;border-radius:0;grid-template-columns:1fr;width:100%;height:100vh;min-height:520px}.conversation-panel,.messenger.has-conversation .sidebar{display:none}.messenger.has-conversation .conversation-panel{display:flex}.mobile-back{width:30px;height:38px;margin-left:-10px;display:grid}.message-stream{padding:18px 14px}.message-bubble{max-width:86%}.welcome-shell{grid-template-columns:1fr}.welcome-copy{min-height:auto;padding:28px 24px 48px}.welcome-copy h1{margin-top:65px;font-size:clamp(34px,11vw,50px)}.welcome-copy .feature-line{display:none}.welcome-card{margin:-22px auto 34px}}@media (max-width:480px){.welcome-card{width:calc(100% - 24px);padding:25px 20px}.welcome-card h2,.modal-card h2{font-size:20px}.modal-card{padding:27px 20px}.composer{padding-left:12px;padding-right:12px}.avatar-presets{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;animation-duration:.01ms!important}}
