.breki-assistant{--breki-lean:0deg;--breki-turn:0deg;position:fixed;right:23px;bottom:calc(max(16px,env(safe-area-inset-bottom)) + var(--breki-viewport-bottom,0px));z-index:40;font-family:var(--font);color:var(--ink);isolation:isolate;pointer-events:none}
.breki-assistant button,.breki-assistant a,.breki-assistant input,.breki-chat{pointer-events:auto}.breki-assistant [hidden]{display:none!important}.breki-assistant button{font:inherit;cursor:pointer}.breki-assistant button:focus-visible,.breki-assistant a:focus-visible{outline:3px solid var(--orange);outline-offset:4px}
.breki-avatar-button{border:0;background:transparent;padding:0;width:126px;display:flex;flex-direction:column;align-items:center;position:relative}.breki-avatar-scene{width:126px;height:166px;display:block;position:relative;perspective:500px;transition:height .25s}.breki-avatar-sprite{display:block;background-image:url('assets/breki-assistant-v1.webp');background-size:400% 200%;background-repeat:no-repeat;background-position:33.3333% 0;aspect-ratio:3/4;width:100%;height:100%;transform:rotateY(var(--breki-turn)) rotateZ(var(--breki-lean));transform-origin:50% 90%;transition:transform .18s ease;filter:drop-shadow(0 5px 5px #061b2152);position:relative;z-index:1}.breki-avatar-sprite[data-pose="0"]{background-position:0 0}.breki-avatar-sprite[data-pose="2"]{background-position:66.6667% 0}.breki-avatar-sprite[data-pose="3"]{background-position:100% 0}.breki-avatar-sprite[data-pose="4"]{background-position:0 100%}.breki-avatar-sprite[data-pose="5"]{background-position:33.3333% 100%}.breki-avatar-sprite[data-pose="6"]{background-position:66.6667% 100%}.breki-avatar-sprite[data-pose="7"]{background-position:100% 100%}.breki-avatar-ground{display:block;position:absolute;bottom:6px;left:27%;width:51%;height:6px;border-radius:50%;background:#061b2152;filter:blur(4px)}
.breki-avatar-tag{display:flex;align-items:center;justify-content:center;gap:7px;border-radius:25px;padding:10px 13px;background:var(--ink);color:var(--paper);font-size:10px;font-weight:600;white-space:nowrap;box-shadow:0 4px 20px #0003;min-height:38px}.breki-avatar-tag>span:first-child{width:5px;height:5px;border-radius:50%;background:var(--orange)}.breki-avatar-tag>span:last-child{font-size:15px;font-weight:400;margin-left:3px}.breki-avatar-button:hover .breki-avatar-tag{background:var(--orange)}.is-following .breki-avatar-sprite{transition:transform .08s}.is-open .breki-avatar-scene{height:119px;width:90px}.is-open .breki-avatar-tag>span:last-child{transform:rotate(45deg)}
.breki-greeting{position:absolute;right:138px;bottom:40px;width:255px;background:var(--paper);padding:21px 23px 19px;border:1px solid #d0d8cb;border-radius:14px 14px 0 14px;box-shadow:0 12px 55px #061b2130;pointer-events:auto}.breki-small-label{font-size:8px;letter-spacing:.12em;font-weight:700;color:var(--orange)}.breki-greeting p{font-size:13px;line-height:1.55;margin:9px 0 14px;font-weight:500}.breki-greeting-close{position:absolute;right:5px;top:4px;border:0;background:transparent;font-size:20px!important;line-height:1;min-width:34px;min-height:34px;color:#738182}.breki-greeting-open{display:flex;gap:22px;align-items:center;color:var(--ink);border:0;border-bottom:1px solid #123b4270;background:transparent;padding:4px 0 5px;font-size:11px!important;font-weight:700!important;min-height:32px}
.breki-chat{position:fixed;right:27px;bottom:calc(171px + var(--breki-viewport-bottom,0px));width:382px;max-height:min(620px,calc(var(--breki-viewport-height,100dvh) - 195px));display:flex;flex-direction:column;border-radius:18px;background:var(--paper);border:1px solid #cad5ca;box-shadow:0 20px 95px #03181c55;overflow:hidden}.breki-chat-header{display:flex;align-items:center;gap:13px;padding:14px 18px;background:var(--ink);color:var(--paper);position:relative;flex-shrink:0}.breki-chat-header h2{font-family:var(--display);font-size:25px;line-height:1.1;letter-spacing:-.04em;font-weight:500;margin:0 0 4px}.breki-chat-header p{font-size:10px;opacity:.75;margin:0;line-height:1.4}.breki-chat-portrait{width:48px;height:48px;overflow:hidden;border-radius:50%;background:#35585a;flex-shrink:0;position:relative}.breki-chat-portrait .breki-avatar-sprite{position:absolute;width:73px;height:98px;top:-1px;left:-12px;filter:none;transform:none}.breki-chat-close{margin-left:auto;color:var(--paper);font-size:27px!important;border:0;background:transparent;min-width:44px;min-height:44px;padding:0;opacity:.8}.breki-chat-close:hover{opacity:1}
.breki-chat-scroll{overflow-y:auto;overscroll-behavior:contain;padding:20px 17px 10px;min-height:130px;max-height:425px;scroll-behavior:smooth;flex:1}.breki-messages{display:flex;flex-direction:column;gap:15px}.breki-message{border-radius:13px;padding:15px 17px;font-size:12px;line-height:1.7;max-width:95%;overflow-wrap:anywhere}.breki-message p{margin:0;white-space:pre-line}.breki-message-assistant{background:#e4e9df;border-radius:0 13px 13px 13px;align-self:flex-start}.breki-message-user{background:var(--ink);color:var(--paper);border-radius:13px 0 13px 13px;align-self:flex-end}.breki-message-label{font-size:7px;font-weight:700;letter-spacing:.13em;display:block;margin-bottom:7px;color:#5c7774}.breki-message-links{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:13px}.breki-message-links a{font-size:10px;line-height:1.4;color:var(--ink);font-weight:700;border-bottom:1px solid #123b4245;padding:5px 0;text-decoration:none}.breki-suggestions{display:flex;flex-wrap:wrap;gap:7px;margin-top:18px;margin-bottom:6px}.breki-suggestions button{border:1px solid #b8c9bc;border-radius:8px;background:transparent;color:var(--ink);padding:10px 12px;font-size:10px;min-height:39px;text-align:left}.breki-suggestions button:hover{background:#e4e9df;border-color:var(--ink)}
.breki-chat-status{font-size:10px;color:#5a7773;padding:0 20px;margin:0;min-height:20px;flex-shrink:0}.breki-chat-form{display:flex;align-items:center;gap:7px;padding:10px 14px 12px;margin:0;background:#e9ece4;border-top:1px solid #cdd8cc;flex-shrink:0}.breki-chat-form input{min-width:0;flex:1;padding:12px 10px;border:0;background:transparent;outline-offset:1px;color:var(--ink);font:inherit;font-size:12px;height:45px}.breki-chat-form input::placeholder{color:#5a7773;opacity:.8}.breki-chat-form button{border:0;border-radius:50%;background:var(--orange);color:var(--ink);width:43px;height:43px;display:grid;place-items:center;flex-shrink:0}.breki-chat-form button:disabled{opacity:.5;cursor:wait}.breki-chat-form button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.breki-chat-note{padding:10px 18px 12px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:8px;color:#627c78;background:#e9ece4;flex-shrink:0}.breki-chat-note a{font-weight:700;font-size:10px;text-decoration:none;color:var(--ink);white-space:nowrap}
@media(max-width:600px){.breki-assistant{right:11px;bottom:calc(max(11px,env(safe-area-inset-bottom)) + var(--breki-viewport-bottom,0px))}.breki-avatar-button{width:97px}.breki-avatar-scene{width:93px;height:124px}.breki-avatar-tag{font-size:8px;padding:8px 10px;gap:5px;min-height:34px}.breki-avatar-tag>span:last-child{font-size:13px}.breki-greeting{right:103px;bottom:26px;width:min(245px,calc(100vw - 128px));padding:19px 17px 16px;border-radius:12px 12px 0 12px}.breki-greeting p{font-size:12px;line-height:1.5}.breki-small-label{font-size:7px}.breki-greeting-open{font-size:10px!important}.breki-chat{right:10px;left:10px;bottom:calc(140px + var(--breki-viewport-bottom,0px));width:auto;max-height:calc(var(--breki-viewport-height,100dvh) - 161px);border-radius:14px}.breki-chat-scroll{padding:16px 14px 10px;max-height:330px}.breki-chat-header{padding:12px 14px;gap:11px}.breki-chat-header h2{font-size:24px}.breki-chat-header p{font-size:9px}.breki-chat-header .breki-chat-portrait{width:44px;height:44px}.breki-message{font-size:12px;max-width:97%;padding:13px 15px}.breki-chat-form input{font-size:16px;padding-left:5px}.breki-chat-form input::placeholder{font-size:11px}.breki-chat-note{font-size:7px;padding-left:15px;padding-right:15px}.is-open .breki-avatar-scene{height:89px;width:67px}.breki-chat-close{min-width:40px;min-height:40px}.breki-suggestions button{font-size:10px}}
@media(max-height:600px){.breki-chat{bottom:calc(95px + var(--breki-viewport-bottom,0px));max-height:calc(var(--breki-viewport-height,100dvh) - 111px)}.is-open .breki-avatar-scene{height:51px;width:39px}.breki-chat-header{padding-top:7px;padding-bottom:7px}.breki-chat-scroll{min-height:70px}.breki-chat-note{padding-top:5px;padding-bottom:7px}}
@media(prefers-reduced-motion:reduce){.breki-avatar-sprite,.breki-avatar-scene{transition:none;transform:none!important}.breki-chat-scroll{scroll-behavior:auto}}

.breki-assistant .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* Keep the input above phone keyboards that resize only the visual viewport. */
.breki-assistant.has-keyboard.is-open .breki-avatar-button{visibility:hidden}
.breki-assistant.has-keyboard .breki-chat{bottom:calc(8px + var(--breki-viewport-bottom,0px));max-height:calc(var(--breki-viewport-height,100dvh) - 16px)}
.breki-assistant.has-keyboard .breki-chat-header{padding-top:7px;padding-bottom:7px}
.breki-assistant.has-keyboard .breki-chat-header .breki-chat-portrait{width:34px;height:34px}
.breki-assistant.has-keyboard .breki-chat-portrait .breki-avatar-sprite{width:52px;height:70px;left:-9px}
.breki-assistant.has-keyboard .breki-chat-header h2{font-size:20px}
.breki-assistant.has-keyboard .breki-chat-scroll{min-height:0;padding-top:10px;padding-bottom:10px;scroll-behavior:auto}
.breki-assistant.has-keyboard .breki-chat-note{display:none}
@media(max-height:400px){.breki-assistant.is-open .breki-avatar-button{visibility:hidden}.breki-chat{bottom:calc(12px + var(--breki-viewport-bottom,0px));max-height:calc(var(--breki-viewport-height,100dvh) - 24px)}.breki-chat-scroll{min-height:0}.breki-chat-note{display:none}}

.breki-assistant.is-lightbox{visibility:hidden}.breki-avatar-scene{height:180px;width:135px}.breki-avatar-button{width:135px}
@media(max-width:600px){.breki-avatar-scene{height:133px;width:100px}.breki-avatar-button{width:100px}}

.breki-assistant[data-person="heidar"] .breki-avatar-sprite{background-image:url("assets/heidar-assistant-v1.webp")}
