/* Hani AI website agent (amendment A27). Self-contained: does not depend on page styles. Colours from the site palette. */
.hai-launcher{position:fixed;right:20px;bottom:20px;z-index:2147483000;display:inline-flex;align-items:center;gap:10px;padding:6px 18px 6px 6px;border:0;border-radius:999px;background:#10231b;color:#fff;font:700 15px/1.2 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 12px 32px rgba(16,35,27,.28);cursor:pointer}
.hai-launcher:hover{background:#193429}
.hai-launcher[hidden]{display:none}
.hai-launcher-face{width:40px;height:40px;border-radius:50%;object-fit:cover;object-position:50% 20%;border:2px solid #e9b735;flex:0 0 auto}
.hai-launcher:focus-visible,.hai-close:focus-visible,.hai-send:focus-visible,.hai-mic:focus-visible,.hai-btn:focus-visible,.hai-q:focus-visible,.hai-suggest-hide:focus-visible,.hai-log:focus-visible,.hai-msg a:focus-visible{outline:3px solid #e9b735;outline-offset:2px}

.hai-panel{position:fixed;top:0;right:0;bottom:0;z-index:2147483001;width:420px;max-width:100vw;display:flex;flex-direction:column;background:#fff;color:#18211d;border-left:1px solid #dddcd3;box-shadow:-24px 0 70px rgba(16,35,27,.22);font:15px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;overflow-x:hidden;overflow-y:auto}
.hai-panel[hidden]{display:none}
.hai-head{display:flex;align-items:center;gap:12px;padding:14px 14px 12px 18px;border-bottom:1px solid #ecebe4}
.hai-titles{flex:1;display:flex;flex-direction:column;min-width:0}
.hai-title{margin:0;font-size:16px;font-weight:800;color:#10231b;line-height:1.3}
.hai-subtitle{color:#5f6762;font-size:13px}
.hai-online{display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:#2fae5f}
.hai-close{border:0;background:transparent;color:#18211d;font-size:26px;line-height:1;width:36px;height:36px;border-radius:8px;cursor:pointer}
.hai-close:hover{background:#f2f1ec}

/* The owner's photo with a gentle breathing motion */
.hai-face{position:relative;flex:0 0 auto;margin:14px 18px 4px;border-radius:12px;overflow:hidden;background:#0b1a14;aspect-ratio:4/3.1;max-height:34vh}
.hai-breathe{position:absolute;inset:0;transform-origin:50% 35%;animation:hai-breathe 8s ease-in-out infinite}
.hai-breathe img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 22%}
@keyframes hai-breathe{0%,100%{transform:scale(1.02) translate(0,0)}50%{transform:scale(1.05) translate(-.5%,-.7%)}}
.hai-state{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);margin:0;padding:5px 12px;border-radius:999px;background:rgba(16,35,27,.74);color:#fff;font-size:12.5px;font-weight:700;white-space:nowrap}
.hai-state:before{content:"";display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:#3fcf74}
.hai-face-busy .hai-state:before{background:#e9b735;animation:hai-blink 1s infinite}
@keyframes hai-blink{50%{opacity:.25}}

.hai-log{flex:1;min-height:120px;overflow-y:auto;padding:14px 18px 6px;background:#fff}
.hai-msg{margin:0 0 14px;max-width:94%}
.hai-msg p{margin:0 0 8px}
.hai-msg p:last-child{margin-bottom:0}
.hai-bot{color:#18211d}
.hai-user{margin-left:auto;background:#f6f3e9;border:1px solid #e8e2cf;border-radius:14px 14px 4px 14px;padding:9px 12px;width:fit-content}
.hai-wait{color:#5f6762;font-style:italic}
.hai-label{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12.5px;font-weight:800;background:#eeeeee;color:#333}
.hai-label-supported{background:#e2f4e7;color:#145c2c}
.hai-label-partially-supported{background:#fff2cc;color:#5c4100}
.hai-label-blocked{background:#fde5e5;color:#7d1515}
.hai-label-info{background:#10231b;color:#fff}
.hai-sub{font-weight:800;font-size:13.5px;margin-top:10px}
.hai-list{margin:0 0 6px;padding-left:20px}
.hai-msg a{color:#10231b;text-decoration:underline}
.hai-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}

.hai-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:1px solid #e9b735;border-radius:6px;background:#e9b735;color:#10231b !important;font-size:13.5px;font-weight:800;text-decoration:none !important;cursor:pointer}
.hai-btn:hover{background:#f0c650}
.hai-btn-ghost{background:#fff;border-color:#10231b}
.hai-btn-ghost:hover{background:#f6f3e9}
.hai-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.hai-btn .hai-icon{width:15px;height:15px}

.hai-suggest{padding:2px 18px 8px}
.hai-suggest[hidden]{display:none}
.hai-suggest-head{display:flex;align-items:center;justify-content:space-between}
.hai-suggest-title{margin:0 0 4px;color:#5f6762;font-size:12.5px;font-weight:800}
.hai-suggest-hide{border:0;background:transparent;color:#5f6762;font-size:18px;line-height:1;width:28px;height:28px;border-radius:6px;cursor:pointer}
.hai-suggest-hide:hover{background:#f2f1ec}
.hai-q{display:block;width:100%;padding:5px 0;border:0;background:none;text-align:left;color:#18211d;font:inherit;font-size:14px;cursor:pointer}
.hai-q:hover{color:#7a5806;text-decoration:underline}

.hai-cta{display:flex;flex-wrap:wrap;gap:8px;padding:0 18px 10px}
.hai-form{display:flex;align-items:flex-end;gap:6px;margin:0 18px;padding:6px 6px 6px 12px;border:2px solid #10231b;border-radius:10px;background:#fff}
.hai-input{flex:1;border:0;resize:none;min-height:24px;max-height:120px;padding:7px 0;font:inherit;color:#18211d;background:transparent}
.hai-input:focus{outline:none}
.hai-form:focus-within{outline:3px solid #e9b735;outline-offset:2px}
.hai-input:disabled{color:#5f6762}
.hai-mic,.hai-send{flex:0 0 auto;width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:8px;cursor:pointer}
.hai-mic{background:transparent;color:#10231b}
.hai-mic:hover{background:#f2f1ec}
.hai-mic-on{background:#c0392b;color:#fff}
.hai-mic-on:hover{background:#a93226}
.hai-send{background:#e9b735;color:#10231b}
.hai-mic:disabled,.hai-send:disabled{background:#c9ccc8;color:#3b403d;cursor:not-allowed}
.hai-left{margin:8px 18px 0;color:#5f6762;font-size:12.5px}
.hai-privacy{margin:4px 18px 14px;color:#5f6762;font-size:11.5px;line-height:1.45}
.hai-sr{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:560px){
  .hai-panel{width:100%;border-left:0}
  .hai-launcher{right:14px;bottom:14px}
  .hai-face{max-height:24vh}
}
@media (prefers-reduced-motion:reduce){.hai-breathe,.hai-face-busy .hai-state:before{animation:none}}
