.arhi-launch{position:fixed;right:24px;bottom:24px;z-index:90;display:flex;align-items:center;gap:10px;background:#272a2b;color:#fff9ed;border:1px solid #c3a780;border-radius:50px;padding:9px 20px 9px 7px;box-shadow:0 10px 40px #0003;cursor:pointer;font:inherit;text-align:left}.arhi-launch img{width:58px;height:64px;object-fit:contain}.arhi-launch strong,.arhi-launch small{display:block}.arhi-launch small{color:#d2c2ad;font-size:12px}.arhi-panel{position:fixed;right:24px;bottom:112px;width:430px;max-width:calc(100vw - 32px);height:min(690px,calc(100dvh - 140px));z-index:100;background:#f7f3eb;color:#292b2c;border:1px solid #c7b295;border-radius:24px;box-shadow:0 20px 90px #0004;overflow:hidden;display:flex;flex-direction:column;font:14px/1.5 system-ui,sans-serif}.arhi-panel[hidden]{display:none}.arhi-head{display:flex;gap:12px;align-items:center;padding:17px 20px;border-bottom:1px solid #dbd2c4;background:#ece4d6}.arhi-head img{width:50px;height:64px;object-fit:contain}.arhi-head h2{font:600 21px/1.2 system-ui;margin:0}.arhi-head p{margin:3px 0 0;font-size:12px}.arhi-close{margin-left:auto;border:0;background:transparent;font-size:26px;cursor:pointer;padding:8px}.arhi-log{padding:18px;overflow:auto;flex:1;overscroll-behavior:contain}.arhi-message{margin:0 0 17px;max-width:100%}.arhi-message p{font-size:14px;line-height:1.55;margin:0 0 10px}.arhi-message.user{background:#e9dfcf;border-radius:14px;padding:10px 14px;margin-left:30px;overflow-wrap:anywhere}.arhi-chips{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.arhi-chips button,.arhi-more,.arhi-result button{font:12px/1.4 system-ui;border:1px solid #cbbcaa;background:#fffaf2;border-radius:20px;padding:7px 11px;cursor:pointer;color:#303131}.arhi-result{background:#fffdf8;border:1px solid #ddd2c1;border-radius:14px;padding:12px;margin:9px 0}.arhi-result>a{display:flex;gap:12px;color:#262a2b;text-decoration:none;align-items:center}.arhi-result img{width:65px;height:65px;object-fit:contain;border-radius:8px;background:#f4efe7}.arhi-result strong{font-size:14px}.arhi-result small{display:block;font-size:11px;color:#73604c}.arhi-result p{font-size:12px;margin:9px 0}.arhi-result .arhi-actions{display:flex;gap:7px}.arhi-input{border-top:1px solid #ddd2c1;padding:12px 16px;background:#fffaf2}.arhi-input form{display:flex;gap:8px}.arhi-input input{min-width:0;flex:1;border:1px solid #cbbcaa;background:#fff;border-radius:12px;padding:12px;font:14px system-ui}.arhi-input button{border:0;border-radius:12px;padding:10px 14px;background:#303334;color:#fff;font:14px system-ui;cursor:pointer}.arhi-input small{display:block;color:#756b5e;font-size:10px;margin-top:7px}.arhi-panel :focus-visible,.arhi-launch:focus-visible{outline:3px solid #936d3c;outline-offset:3px}.arhi-status{font-size:12px;color:#746653}.arhi-more{margin-top:8px}.arhi-panel a:hover strong{text-decoration:underline}@media(max-width:600px){.arhi-launch{right:12px;bottom:14px;padding-right:14px}.arhi-launch img{width:45px;height:50px}.arhi-panel{right:8px;bottom:92px;max-width:calc(100vw - 16px);width:430px;height:min(680px,calc(100dvh - 105px));border-radius:18px}.arhi-head{padding:12px 16px}}@media print{.arhi-panel,.arhi-launch{display:none!important}}

/* Quiet launcher and search-first panel. Opens only on request. */
.arhi-launch{width:58px;height:58px;right:22px;bottom:22px;padding:4px;justify-content:center;gap:0;border-radius:50% 50% 8px 50%;background:#f7f3eb;box-shadow:0 6px 24px #292b2c24}
.arhi-launch img{width:42px;height:46px;object-fit:contain}
.arhi-panel{bottom:92px;width:390px;height:auto;max-height:calc(100dvh - 112px);border-radius:20px}
.arhi-head{order:0;padding:10px 14px;gap:8px;background:#f7f3eb;border-bottom:0}
.arhi-head img{width:28px;height:34px}.arhi-head h2{font:400 20px Georgia,serif}.arhi-close{padding:3px 8px}
.arhi-input{order:1;padding:0 14px 14px;border-top:0;background:#f7f3eb}.arhi-input input{border-radius:24px;padding:12px 16px}.arhi-input button{border-radius:50%;width:44px;height:44px;padding:0}
.arhi-log{order:2;flex:0 1 auto;padding:0 14px 12px;max-height:calc(100dvh - 248px)}.arhi-log:empty{display:none}
.arhi-message{margin-bottom:10px}.arhi-result{padding:10px}.arhi-result img{width:80px;height:80px}.arhi-result strong{font-weight:500}.arhi-result p{margin:7px 0}.arhi-result .arhi-actions{margin-top:8px}
@media(max-width:600px){.arhi-launch{right:14px;bottom:14px;width:54px;height:54px;padding:4px}.arhi-launch img{width:39px;height:43px}.arhi-panel{right:10px;bottom:80px;max-width:calc(100vw - 20px);height:auto;max-height:calc(100dvh - 96px)}.arhi-log{max-height:calc(100dvh - 230px)}}

/* Keep Arhi input and submit inside the visible area when a mobile keyboard opens. */
.arhi-panel,.arhi-panel *{box-sizing:border-box}
.arhi-panel{min-width:0;overflow-wrap:anywhere}
.arhi-head,.arhi-input{flex:0 0 auto;min-width:0}
.arhi-input form{min-width:0;width:100%;align-items:center}
.arhi-input input{width:0;min-width:0;font-size:16px;line-height:1.5;-webkit-appearance:none;appearance:none}
.arhi-input button{flex:0 0 44px;min-width:44px;min-height:44px;touch-action:manipulation}
.arhi-close{flex:0 0 44px;min-width:44px;min-height:44px;touch-action:manipulation}
.arhi-log{min-height:0;-webkit-overflow-scrolling:touch}
.arhi-result>a>span{min-width:0}.arhi-result img{flex-shrink:0}
.arhi-result .arhi-actions{flex-wrap:wrap}
@media(max-width:600px){
.arhi-panel{left:calc(var(--arhi-view-left,0px) + 10px);right:auto;top:calc(var(--arhi-view-top,0px) + 8px + env(safe-area-inset-top,0px));bottom:auto;width:calc(var(--arhi-view-width,100vw) - 20px);max-width:calc(var(--arhi-view-width,100vw) - 20px);max-height:calc(var(--arhi-view-height,100dvh) - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
.arhi-log{max-height:none;flex:1 1 auto}
}

/* Conversational assistant, attachments and review-before-send service flow. */
.arhi-panel{width:440px;height:min(760px,calc(100dvh - 112px));max-height:calc(100dvh - 112px);display:flex;flex-direction:column}
.arhi-head{order:0;flex:0 0 auto;border-bottom:1px solid #ded4c4}.arhi-head p{font:12px/1.4 system-ui;color:#6f6252}
.arhi-log{order:1;flex:1 1 auto;min-height:0;max-height:none;padding:16px;overflow:auto}.arhi-log:empty{display:block}
.arhi-input{order:2;flex:0 0 auto;border-top:1px solid #ded4c4;padding:10px 12px;background:#fbf8f1}
.arhi-composer{align-items:flex-end!important}.arhi-composer textarea{width:0;min-width:0;flex:1;resize:vertical;max-height:160px;border:1px solid #b9a68e;border-radius:14px;padding:10px 12px;background:#fffdf9;color:#292b2c;font:16px/1.45 system-ui;box-sizing:border-box}
.arhi-composer button{border-radius:50%;align-self:flex-end}.arhi-tools{display:flex;gap:5px 10px;flex-wrap:wrap;align-items:center;margin-top:8px}
.arhi-tools button{width:auto!important;min-width:0!important;min-height:32px!important;flex:none!important;padding:5px 0!important;background:transparent!important;color:#63503a!important;border-radius:0!important;font:12px/1.4 system-ui!important;text-decoration:underline;text-underline-offset:3px}
.arhi-tools label{display:flex;align-items:center;gap:4px;color:#63503a;font:12px/1.4 system-ui;margin:0}.arhi-tools input[type=checkbox]{width:16px!important;height:16px;flex:none;min-width:16px;padding:0;margin:0;appearance:auto;-webkit-appearance:checkbox}
.arhi-live-status{font:12px/1.4 system-ui!important;color:#6c5a43;min-height:0;margin:6px 0 0!important}.arhi-live-status:empty{display:none}
.arhi-message{white-space:pre-wrap;overflow-wrap:anywhere}.arhi-message:has(article),.arhi-message:has(section),.arhi-message:has(.arhi-chips){white-space:normal}.arhi-answer{white-space:pre-wrap}
.arhi-message.user{margin-left:20px;font-size:14px}.arhi-result p{white-space:normal}.arhi-result .arhi-match{color:#456044}.arhi-result .arhi-missing,.arhi-missing{color:#865324}
.arhi-sources{border-top:1px solid #ded4c4;padding-top:9px;margin:10px 0;white-space:normal;font:12px/1.5 system-ui}.arhi-sources strong,.arhi-sources a{display:block;margin:4px 0}.arhi-sources a{color:#73582f}
.arhi-files{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:7px}.arhi-files:empty{display:none}.arhi-files>span{display:inline-flex;gap:4px;align-items:center;max-width:100%;padding:3px 7px;border-radius:8px;background:#eae1d3;font:11px/1.4 system-ui;overflow-wrap:anywhere}.arhi-files button{width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;flex:0 0 26px!important;background:transparent!important;color:#4e4436!important;padding:0!important;font-size:19px!important}
.arhi-extracted{margin:8px 0;font:12px/1.5 system-ui;white-space:normal}.arhi-extracted summary{cursor:pointer;color:#715b3b}.arhi-extracted p{white-space:pre-wrap;max-height:180px;overflow:auto;margin-top:8px}
.arhi-ticket{border:1px solid #cbbb9f;background:#fffdf8;border-radius:14px;padding:12px;white-space:normal}.arhi-ticket h3{font:500 17px/1.3 Georgia,serif;margin:0 0 8px}.arhi-ticket p{font:12px/1.5 system-ui}.arhi-ticket-form{display:grid;grid-template-columns:1fr 1fr;gap:9px;min-width:0}.arhi-ticket-form>label{display:flex;flex-direction:column;gap:4px;min-width:0;font:12px/1.4 system-ui}.arhi-ticket-form>label:has(textarea),.arhi-ticket-form>label:first-child,.arhi-ticket-form>label:nth-child(3){grid-column:1/-1}.arhi-ticket-form input,.arhi-ticket-form textarea{width:100%;min-width:0;border:1px solid #c5b59e;border-radius:7px;padding:8px;font:16px/1.4 system-ui;background:#fff;color:#292b2c}.arhi-ticket-form textarea{resize:vertical;min-height:85px}.arhi-ticket-form button{font:13px/1.4 system-ui;border:1px solid #b5a185;border-radius:8px;padding:9px 11px;cursor:pointer;background:#ede3d2;color:#332d25;min-height:40px}.arhi-ticket-form>button,.arhi-company-results,.arhi-ticket-preview{grid-column:1/-1;min-width:0}.arhi-company-results button{display:block;width:100%;margin-top:5px;text-align:left}.arhi-ticket-preview h4{margin:8px 0;font-size:14px}.arhi-ticket-preview dl{font:12px/1.5 system-ui;margin:8px 0}.arhi-ticket-preview dt{font-weight:600;margin-top:6px}.arhi-ticket-preview dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.arhi-ticket-preview .arhi-confirm{background:#303334;color:#fff;width:100%;border-color:#303334}.arhi-ticket-preview a{display:block;margin-top:8px;color:#73582f;font:13px/1.5 system-ui}
.arhi-panel button:disabled{opacity:.5;cursor:wait}.arhi-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.arhi-nudge{position:fixed;right:24px;bottom:90px;z-index:89;display:flex;gap:4px;align-items:center;max-width:calc(100vw - 32px);border:1px solid #c7b295;border-radius:13px;background:#fffaf1;box-shadow:0 6px 25px #292b2c20;padding:4px}.arhi-nudge[hidden]{display:none}.arhi-nudge button{border:0;background:transparent;padding:10px;color:#3f372b;font:13px/1.4 system-ui;cursor:pointer}.arhi-nudge [data-dismiss-nudge]{font-size:20px;min-width:36px}
@media(max-width:600px){.arhi-panel{left:calc(var(--arhi-view-left,0px) + 8px);top:calc(var(--arhi-view-top,0px) + 8px + env(safe-area-inset-top,0px));width:calc(var(--arhi-view-width,100vw) - 16px);max-width:calc(var(--arhi-view-width,100vw) - 16px);height:calc(var(--arhi-view-height,100dvh) - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));max-height:calc(var(--arhi-view-height,100dvh) - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));bottom:auto}.arhi-log{padding:12px}.arhi-input{padding:8px 10px}.arhi-composer textarea{max-height:110px}.arhi-tools{gap:3px 9px}.arhi-nudge{right:12px;bottom:78px}}
@media print{.arhi-nudge{display:none!important}}
