
.mckee-ai-shell{
  width:100%;box-sizing:border-box;padding:28px 14px 38px;background:var(--mckee-page-bg);font-size:var(--mckee-font-scale);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#162038;-webkit-font-smoothing:antialiased;
}
.mckee-ai-app{
  width:min(var(--mckee-max-width),100%);height:min(var(--mckee-chat-height),84vh);min-height:660px;margin:0 auto;
  background:var(--mckee-chat-bg);border:1px solid var(--mckee-border);border-radius:var(--mckee-radius);
  box-shadow:0 24px 70px rgba(13,27,54,var(--mckee-shadow));
  overflow:hidden;display:grid;grid-template-columns:260px minmax(0,1fr);
}
.mckee-ai-side{
  background:var(--mckee-sidebar-bg);
  color:#fff;padding:22px 16px;display:flex;flex-direction:column;gap:22px;overflow:auto;
}
.mckee-side-brand{display:flex;align-items:center;gap:11px;padding:0 4px}
.mckee-side-brand img{width:48px;height:48px;object-fit:cover;border-radius:14px;background:var(--mckee-chat-bg)}
.mckee-side-brand strong{display:block;font-size:17px}
.mckee-side-brand span{display:block;font-size:11px;color:rgba(255,255,255,.58);margin-top:2px}
.mckee-side-section{display:flex;flex-direction:column;gap:6px}
.mckee-side-label{font-size:10px;font-weight:800;letter-spacing:.14em;color:rgba(255,255,255,.42);padding:0 9px 5px}
.mckee-side-section button{
  width:100%;border:0;background:transparent;color:rgba(255,255,255,.84);
  text-align:left;border-radius:11px;padding:10px 11px;font:inherit;font-size:13px;cursor:pointer;
  transition:.15s ease;
}
.mckee-side-section button:hover{background:rgba(255,255,255,.09);color:#fff;transform:translateX(2px)}
.mckee-side-note{margin-top:auto;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:12px;display:flex;gap:9px;font-size:10.5px;line-height:1.45;color:rgba(255,255,255,.63)}
.mckee-side-note strong{color:#fff;font-size:11px}
.mckee-shield{display:grid;place-items:center;flex:0 0 auto;width:22px;height:22px;border-radius:50%;background:var(--mckee-accent);color:#fff;font-weight:900}
.mckee-ai-main{min-width:0;display:flex;flex-direction:column;background:var(--mckee-chat-bg)}
.mckee-ai-header{
  min-height:76px;padding:11px 18px;border-bottom:1px solid var(--mckee-border);
  display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.96);
}
.mckee-ai-brand{display:flex;align-items:center;gap:11px;min-width:0}
.mckee-ai-avatar-wrap{position:relative;flex:0 0 auto}
.mckee-ai-avatar,.mckee-msg-avatar{object-fit:cover;background:var(--mckee-chat-bg);border-radius:50%}
.mckee-ai-avatar{width:46px;height:46px;border:1px solid #e3e7ec}
.mckee-msg-avatar{width:29px;height:29px;border:1px solid #e5e9ee;flex:0 0 auto}
.mckee-ai-status-dot{position:absolute;right:-1px;bottom:1px;width:11px;height:11px;border-radius:50%;background:#32c766;border:2px solid #fff}
.mckee-ai-name{font-size:16px;font-weight:830;color:#17223b}
.mckee-ai-status{font-size:11px;color:var(--mckee-muted);margin-top:2px}
.mckee-header-actions{display:flex;align-items:center;gap:8px}
.mckee-book-top{background:var(--mckee-accent);color:#fff!important;text-decoration:none!important;font-size:12px;font-weight:760;padding:9px 12px;border-radius:10px}
.mckee-ai-reset{border:1px solid #e4e8ee;background:#f8fafc;color:#516077;width:38px;height:38px;border-radius:10px;font-size:19px;cursor:pointer}
.mckee-ai-messages{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:22px 26px 14px;scroll-behavior:smooth;background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%)}
.mckee-welcome-card{text-align:center;max-width:660px;margin:2px auto 20px;padding:8px 12px 4px}
.mckee-welcome-logo{width:70px;height:70px;object-fit:cover;border-radius:20px;box-shadow:0 8px 24px rgba(20,33,61,.11)}
.mckee-welcome-card h2{font-size:25px;line-height:1.2;color:#14213d;margin:11px 0 5px;font-weight:850}
.mckee-welcome-card p{margin:0 auto;color:#727d8d;font-size:13.5px}
.mckee-welcome-actions{display:flex;justify-content:center;gap:8px;margin-top:13px;flex-wrap:wrap}
.mckee-welcome-actions button{
  border:1px solid var(--mckee-border);background:var(--mckee-chat-bg);color:#22314e;border-radius:999px;padding:8px 13px;font-size:12px;font-weight:700;cursor:pointer
}
.mckee-welcome-actions button:first-child{background:var(--mckee-user-bubble);color:var(--mckee-user-text);border-color:#14213d}
.mckee-msg-row{display:flex;gap:8px;align-items:flex-end;margin:11px 0}
.mckee-msg-row.user{justify-content:flex-end}
.mckee-msg{max-width:min(75%,700px);padding:11px 14px;border-radius:17px;font-size:14px;line-height:1.52;white-space:normal;overflow-wrap:anywhere}
.mckee-msg.assistant{background:var(--mckee-ai-bubble);color:var(--mckee-ai-text);border-bottom-left-radius:5px}
.mckee-msg.user{background:var(--mckee-user-bubble);color:var(--mckee-user-text);border-bottom-right-radius:5px}
.mckee-msg strong{font-weight:800}
.mckee-msg code{background:rgba(0,0,0,.06);padding:1px 5px;border-radius:5px}
.mckee-ai-error{background:var(--mckee-chat-bg)0f0!important;color:#9f1c1c!important}
.mckee-ai-typing{padding:0 26px 9px;display:flex;align-items:center;gap:8px}
.mckee-ai-typing[hidden]{display:none}
.mckee-typing-bubble{background:#f0f3f7;border-radius:15px;padding:10px 12px;display:flex;gap:4px}
.mckee-typing-bubble span{width:6px;height:6px;background:#8791a0;border-radius:50%;animation:mckee-dot 1.15s infinite ease-in-out}
.mckee-typing-bubble span:nth-child(2){animation-delay:.14s}.mckee-typing-bubble span:nth-child(3){animation-delay:.28s}
.mckee-thinking-text{font-size:10.5px;color:#949ba6}
@keyframes mckee-dot{0%,70%,100%{transform:translateY(0);opacity:.35}35%{transform:translateY(-4px);opacity:1}}
.mckee-ai-mobile-chips{display:none}
.mckee-ai-composer{margin:0 18px 8px;border:1px solid #dde3ea;border-radius:17px;display:flex;align-items:flex-end;gap:8px;padding:7px 7px 7px 14px;background:var(--mckee-chat-bg);box-shadow:0 6px 22px rgba(19,35,63,.06)}
.mckee-ai-composer:focus-within{border-color:#a7b1bf;box-shadow:0 0 0 3px rgba(20,33,61,.05)}
.mckee-ai-composer textarea{flex:1;resize:none;border:0!important;outline:0!important;box-shadow:none!important;min-height:42px;max-height:130px;padding:10px 0;background:transparent;font:inherit;font-size:14px;line-height:1.4;color:#1e293b}
.mckee-ai-send{width:44px;height:44px;flex:0 0 auto;border-radius:13px;border:0;background:var(--mckee-accent);color:#fff;font-size:20px;font-weight:850;cursor:pointer;display:grid;place-items:center}
.mckee-ai-send:hover{filter:brightness(.96);transform:translateY(-1px)}
.mckee-ai-send:disabled{opacity:.45;cursor:not-allowed;transform:none}
.mckee-ai-footer{padding:0 19px 12px;font-size:10.5px;color:#9199a5;display:flex;justify-content:space-between;gap:12px;align-items:center}
.mckee-clear-chat{border:0;background:transparent;color:#7f8998;font-size:10.5px;cursor:pointer;text-decoration:underline}
@media(max-width:900px){
  .mckee-ai-app{grid-template-columns:210px minmax(0,1fr)}
  .mckee-ai-side{padding:18px 11px}
}
@media(max-width:720px){
  .mckee-ai-shell{padding:0}
  .mckee-ai-app{display:block;width:100%;height:calc(100dvh - 105px);min-height:590px;border-radius:0;border-left:0;border-right:0;box-shadow:none}
  .mckee-ai-side{display:none}
  .mckee-ai-main{height:100%}
  .mckee-ai-header{min-height:64px;padding:8px 11px}
  .mckee-ai-avatar{width:42px;height:42px}
  .mckee-ai-name{font-size:15px}
  .mckee-ai-status{font-size:10px}
  .mckee-book-top{display:none}
  .mckee-ai-messages{padding:14px 12px 10px}
  .mckee-welcome-card{padding-top:2px;margin-bottom:12px}
  .mckee-welcome-logo{width:56px;height:56px;border-radius:17px}
  .mckee-welcome-card h2{font-size:20px}
  .mckee-welcome-card p{font-size:12px}
  .mckee-msg{max-width:86%;font-size:13.5px}
  .mckee-ai-typing{padding:0 12px 7px}
  .mckee-ai-mobile-chips{display:flex;gap:7px;padding:2px 10px 8px;overflow-x:auto;scrollbar-width:none}
  .mckee-ai-mobile-chips::-webkit-scrollbar{display:none}
  .mckee-ai-mobile-chips button,.mckee-ai-mobile-chips a{white-space:nowrap;border:1px solid #e0e5eb;background:var(--mckee-chat-bg);color:#34425a;text-decoration:none;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:700}
  .mckee-ai-composer{margin:0 9px 7px}
  .mckee-ai-footer{padding:0 11px 8px;font-size:9.5px}
}


/* v3.2 booking request card */
.mckee-booking-card{
  margin:14px 0 18px 37px;max-width:700px;border:1px solid var(--mckee-border);background:var(--mckee-chat-bg);
  border-radius:18px;box-shadow:0 9px 30px rgba(20,33,61,.08);overflow:hidden;
}
.mckee-booking-card-head{padding:14px 16px;background:#f7f9fc;border-bottom:1px solid #e9edf2}
.mckee-booking-card-head strong{display:block;color:#14213d;font-size:14px}
.mckee-booking-card-head span{display:block;color:#778292;font-size:11px;margin-top:2px}
.mckee-booking-grid{display:grid;grid-template-columns:140px 1fr;gap:7px 12px;padding:14px 16px;font-size:12.5px;line-height:1.4}
.mckee-booking-grid .label{color:#7c8796;font-weight:650}
.mckee-booking-grid .value{color:#202b3e;white-space:pre-line}
.mckee-booking-actions{display:flex;gap:8px;align-items:center;padding:0 16px 15px}
.mckee-submit-booking{border:0;background:var(--mckee-accent);color:#fff;border-radius:11px;padding:10px 14px;font-weight:800;font-size:12.5px;cursor:pointer}
.mckee-submit-booking:hover{filter:brightness(.96)}
.mckee-submit-booking:disabled{opacity:.55;cursor:not-allowed}
.mckee-cancel-booking{border:1px solid var(--mckee-border);background:var(--mckee-chat-bg);color:#546174;border-radius:11px;padding:9px 12px;font-weight:700;font-size:12px;cursor:pointer}
.mckee-booking-result{padding:12px 15px;border-radius:12px;font-size:12px;line-height:1.4;margin:0 16px 15px}
.mckee-booking-result.success{background:#edf9f0;color:#176a31;border:1px solid #ccebd4}
.mckee-booking-result.error{background:var(--mckee-chat-bg)1f1;color:#9b2525;border:1px solid #f0cccc}
@media(max-width:720px){
  .mckee-booking-card{margin-left:0}
  .mckee-booking-grid{grid-template-columns:1fr;gap:2px}
  .mckee-booking-grid .label{margin-top:6px}
}

.mckee-ai-app:not(:has(.mckee-ai-side)){grid-template-columns:1fr}
.mckee-ai-main{background:var(--mckee-chat-bg)}
.mckee-ai-messages{background:var(--mckee-chat-bg)}
.mckee-welcome-card p,.mckee-thinking-text,.mckee-ai-footer{color:var(--mckee-muted)}
.mckee-ai-composer{border-color:var(--mckee-border);background:var(--mckee-chat-bg)}
.mckee-ai-composer textarea{color:var(--mckee-ai-text)}


/* v5.2 human handoff status */
.mckee-system-notice{
  width:fit-content;
  max-width:86%;
  margin:12px auto;
  padding:8px 12px;
  border:1px solid var(--mckee-border);
  border-radius:999px;
  background:#f7f9fc;
  color:#687487;
  font-size:11px;
  font-weight:700;
  text-align:center;
}


/* v5.3 friendly conversational UI */
.mckee-ai-shell{
  background:linear-gradient(180deg,#f7f8fb 0%,#eef2f7 100%);
  padding:24px 14px 36px;
}
.mckee-ai-app{
  max-width:1120px;
  min-height:650px;
  height:min(760px,82vh);
  border-radius:24px;
  box-shadow:0 18px 50px rgba(24,39,75,.11);
  border:1px solid rgba(20,33,61,.08);
}
.mckee-ai-side{
  width:auto;
  background:#13213d;
  padding:20px 14px;
}
.mckee-side-brand span{color:rgba(255,255,255,.58)}
.mckee-side-section button{
  border-radius:12px;
  padding:11px 12px;
  font-size:13px;
}
.mckee-side-note{
  border-radius:14px;
  background:rgba(255,255,255,.07);
}
.mckee-ai-main{
  background:#fbfcfe;
}
.mckee-ai-header{
  background:rgba(255,255,255,.96);
  min-height:68px;
  padding:10px 16px;
}
.mckee-ai-avatar{
  width:42px;
  height:42px;
}
.mckee-ai-name{
  font-size:15px;
}
.mckee-ai-status{
  font-size:10.5px;
}
.mckee-ai-messages{
  padding:20px 22px 14px;
  background:linear-gradient(180deg,#fbfcfe 0%,#f6f8fb 100%);
}
.mckee-chat-intro{
  display:flex;
  align-items:center;
  gap:12px;
  max-width:640px;
  margin:0 0 14px 37px;
}
.mckee-chat-intro-logo{
  width:44px;
  height:44px;
  object-fit:cover;
  border-radius:14px;
  background:#fff;
  border:1px solid #e5e9ef;
  box-shadow:0 6px 18px rgba(20,33,61,.08);
}
.mckee-chat-intro-name{
  font-size:14px;
  font-weight:800;
  color:#19243d;
}
.mckee-chat-intro-sub{
  margin-top:2px;
  font-size:11px;
  color:#7b8493;
}
.mckee-first-message{
  max-width:620px;
}
.mckee-msg{
  max-width:min(72%,660px);
  padding:12px 15px;
  font-size:14px;
  line-height:1.5;
  box-shadow:0 3px 10px rgba(20,33,61,.035);
}
.mckee-msg.assistant{
  background:#eceff5;
  color:#202b3e;
  border-radius:16px 16px 16px 5px;
}
.mckee-msg.user{
  background:#14213d;
  color:#fff;
  border-radius:16px 16px 5px 16px;
}
.mckee-suggestion-wrap{
  margin:5px 0 12px 37px;
  max-width:760px;
}
.mckee-suggestion-label{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800;
  color:#8a94a3;
  margin-bottom:7px;
}
.mckee-suggestion-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.mckee-suggestion-chips button{
  border:1px solid #dce2e9;
  background:#fff;
  color:#26334b;
  padding:9px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(20,33,61,.04);
  transition:.16s ease;
}
.mckee-suggestion-chips button:hover{
  transform:translateY(-1px);
  border-color:#c8d0db;
  box-shadow:0 7px 16px rgba(20,33,61,.07);
}
.mckee-ai-composer{
  margin:6px 16px 8px;
  padding:7px 7px 7px 10px;
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 24px rgba(22,34,57,.09);
}
.mckee-ai-composer textarea{
  min-height:44px;
  padding:11px 0;
  font-size:14px;
}
.mckee-ai-send{
  width:44px;
  height:44px;
  border-radius:13px;
  background:#7da91d;
}
.mckee-photo-button{
  border-radius:12px;
}
.mckee-ai-footer{
  padding:1px 18px 12px;
}
.mckee-system-notice{
  border:0;
  background:#e9f0ff;
  color:#315a9d;
  box-shadow:none;
}
@media(max-width:900px){
  .mckee-ai-app{grid-template-columns:220px minmax(0,1fr)}
}
@media(max-width:720px){
  .mckee-ai-shell{padding:0;background:#fff}
  .mckee-ai-app{
    min-height:620px;
    height:calc(100dvh - 100px);
    border-radius:0;
    box-shadow:none;
  }
  .mckee-ai-header{
    position:sticky;
    top:0;
    z-index:5;
  }
  .mckee-ai-messages{
    padding:14px 11px 10px;
  }
  .mckee-chat-intro{
    margin-left:0;
    margin-bottom:10px;
  }
  .mckee-chat-intro-logo{
    width:38px;height:38px;border-radius:12px;
  }
  .mckee-suggestion-wrap{
    margin-left:0;
  }
  .mckee-suggestion-chips{
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:3px;
    scrollbar-width:none;
  }
  .mckee-suggestion-chips::-webkit-scrollbar{display:none}
  .mckee-suggestion-chips button{
    flex:0 0 auto;
    white-space:nowrap;
  }
  .mckee-msg{
    max-width:86%;
    font-size:13.5px;
  }
  .mckee-ai-composer{
    margin:4px 8px 7px;
    border-radius:16px;
  }
  .mckee-ai-mobile-chips{
    padding:2px 8px 8px;
  }
}


/* v5.4 permanent chat scrolling + booking safety UI */
.mckee-ai-main{
  min-height:0 !important;
  overflow:hidden !important;
}
.mckee-ai-messages{
  min-height:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}
.mckee-ai-messages,
.mckee-ai-messages *{
  touch-action:pan-y;
}
.mckee-ai-composer{
  flex-shrink:0 !important;
}
.mckee-booking-card{
  border:1px solid #d9e1ea;
  box-shadow:0 10px 28px rgba(20,33,61,.08);
}
.mckee-booking-card-head{
  background:#f7f9fc;
}
.mckee-booking-card-head strong{
  font-size:14px;
}
.mckee-booking-card-head span{
  margin-top:4px;
  line-height:1.35;
}


/* v5.4.1 make the real booking-send action unmistakable */
.mckee-booking-card{
  display:block !important;
  position:relative;
  width:auto;
  max-width:700px;
  margin:14px 0 20px 37px !important;
  background:#fff !important;
  border:2px solid #7da91d !important;
  border-radius:16px !important;
  overflow:visible !important;
  z-index:2;
}
.mckee-booking-actions{
  display:flex !important;
  visibility:visible !important;
  opacity:1 !important;
}
.mckee-submit-booking{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-height:42px;
  background:#7da91d !important;
  color:#fff !important;
  font-weight:800 !important;
  border:0 !important;
}
@media(max-width:720px){
  .mckee-booking-card{margin-left:0 !important;}
}


/* v5.4.3 permanent scrolling + mobile optimization */
.mckee-ai-app{
  min-height:0 !important;
}

.mckee-ai-main{
  min-height:0 !important;
  overflow:hidden !important;
  display:flex !important;
  flex-direction:column !important;
}

.mckee-ai-header{
  flex:0 0 auto !important;
}

.mckee-ai-messages{
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain !important;
  -webkit-overflow-scrolling:touch !important;
  scrollbar-width:thin;
  touch-action:pan-y !important;
}

.mckee-ai-messages *{
  touch-action:pan-y !important;
}

.mckee-ai-typing,
.mckee-ai-mobile-chips,
.mckee-ai-composer,
.mckee-ai-footer{
  flex:0 0 auto !important;
}

.mckee-ai-composer{
  position:relative !important;
  bottom:auto !important;
}

/* Mobile-first refinement */
@media(max-width:720px){
  .mckee-ai-shell{
    padding:0 !important;
    background:#fff !important;
  }

  .mckee-ai-app{
    width:100% !important;
    max-width:none !important;
    height:calc(100dvh - 92px) !important;
    min-height:560px !important;
    border-radius:0 !important;
    border-left:0 !important;
    border-right:0 !important;
    box-shadow:none !important;
    grid-template-columns:1fr !important;
  }

  .mckee-ai-side{
    display:none !important;
  }

  .mckee-ai-main{
    width:100% !important;
    height:100% !important;
    max-height:100% !important;
    min-height:0 !important;
  }

  .mckee-ai-header{
    min-height:58px !important;
    padding:8px 10px !important;
    gap:9px !important;
    position:sticky !important;
    top:0 !important;
    z-index:20 !important;
    border-bottom:1px solid var(--mckee-border) !important;
  }

  .mckee-ai-avatar{
    width:36px !important;
    height:36px !important;
  }

  .mckee-ai-name{
    font-size:14px !important;
    line-height:1.2 !important;
  }

  .mckee-ai-status{
    font-size:10px !important;
    line-height:1.25 !important;
  }

  .mckee-book-top{
    min-height:36px !important;
    padding:8px 10px !important;
    font-size:11px !important;
    border-radius:10px !important;
  }

  .mckee-ai-reset{
    width:36px !important;
    height:36px !important;
    border-radius:10px !important;
  }

  .mckee-ai-messages{
    flex:1 1 0 !important;
    height:auto !important;
    max-height:none !important;
    min-height:0 !important;
    overflow-y:auto !important;
    padding:12px 10px 8px !important;
  }

  .mckee-chat-intro{
    margin:0 0 9px 0 !important;
    gap:9px !important;
  }

  .mckee-chat-intro-logo{
    width:34px !important;
    height:34px !important;
    border-radius:10px !important;
  }

  .mckee-chat-intro-name{
    font-size:13px !important;
  }

  .mckee-chat-intro-sub{
    font-size:10px !important;
    line-height:1.3 !important;
  }

  .mckee-msg-row{
    margin:7px 0 !important;
  }

  .mckee-msg-avatar{
    width:27px !important;
    height:27px !important;
    margin-right:6px !important;
  }

  .mckee-msg{
    max-width:84% !important;
    padding:10px 12px !important;
    font-size:13px !important;
    line-height:1.45 !important;
    border-radius:14px !important;
  }

  .mckee-msg.assistant{
    border-radius:14px 14px 14px 5px !important;
  }

  .mckee-msg.user{
    border-radius:14px 14px 5px 14px !important;
  }

  .mckee-suggestion-wrap{
    margin:4px 0 9px 0 !important;
    max-width:100% !important;
  }

  .mckee-suggestion-label{
    margin-bottom:5px !important;
    font-size:9px !important;
  }

  .mckee-suggestion-chips{
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    gap:7px !important;
    padding:0 0 4px !important;
    scrollbar-width:none !important;
    -webkit-overflow-scrolling:touch !important;
  }

  .mckee-suggestion-chips::-webkit-scrollbar{
    display:none !important;
  }

  .mckee-suggestion-chips button{
    flex:0 0 auto !important;
    white-space:nowrap !important;
    padding:8px 10px !important;
    font-size:11px !important;
    border-radius:999px !important;
  }

  .mckee-ai-mobile-chips{
    display:flex !important;
    gap:6px !important;
    overflow-x:auto !important;
    padding:5px 8px 7px !important;
    scrollbar-width:none !important;
    background:#fff !important;
  }

  .mckee-ai-mobile-chips::-webkit-scrollbar{
    display:none !important;
  }

  .mckee-ai-mobile-chips button,
  .mckee-ai-mobile-chips a{
    flex:0 0 auto !important;
    white-space:nowrap !important;
    padding:7px 9px !important;
    font-size:10.5px !important;
    border-radius:999px !important;
  }

  .mckee-ai-composer{
    margin:4px 7px 5px !important;
    padding:6px 6px 6px 8px !important;
    border-radius:15px !important;
    box-shadow:0 5px 18px rgba(20,33,61,.10) !important;
  }

  .mckee-photo-button{
    width:34px !important;
    height:34px !important;
    font-size:19px !important;
    border-radius:10px !important;
  }

  .mckee-ai-composer textarea{
    min-height:40px !important;
    max-height:110px !important;
    padding:9px 2px !important;
    font-size:16px !important; /* prevents iPhone zoom on focus */
    line-height:1.35 !important;
  }

  .mckee-ai-send{
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
    border-radius:12px !important;
  }

  .mckee-ai-footer{
    padding:0 10px 8px !important;
    font-size:9px !important;
    gap:8px !important;
  }

  .mckee-system-notice{
    max-width:92% !important;
    margin:9px auto !important;
    padding:7px 10px !important;
    font-size:10px !important;
  }

  .mckee-booking-card{
    width:auto !important;
    max-width:100% !important;
    margin:10px 0 14px 0 !important;
    border-radius:14px !important;
  }

  .mckee-booking-card-head{
    padding:12px 13px !important;
  }

  .mckee-booking-grid{
    grid-template-columns:1fr !important;
    gap:3px !important;
    padding:11px 13px !important;
  }

  .mckee-booking-grid .label{
    margin-top:6px !important;
    font-size:9px !important;
  }

  .mckee-booking-grid .value{
    font-size:12px !important;
  }

  .mckee-booking-actions{
    flex-direction:column !important;
    align-items:stretch !important;
    padding:0 13px 13px !important;
  }

  .mckee-submit-booking,
  .mckee-cancel-booking{
    width:100% !important;
    min-height:42px !important;
  }

  .mckee-booking-result{
    margin:0 13px 13px !important;
  }
}

/* Slightly wider phone / small tablet refinement */
@media(min-width:721px) and (max-width:980px){
  .mckee-ai-app{
    width:min(96vw,980px) !important;
  }

  .mckee-ai-side{
    width:190px !important;
  }

  .mckee-ai-messages{
    padding:16px 16px 12px !important;
  }

  .mckee-msg{
    max-width:78% !important;
  }
}


/* v5.4.4 mobile refinement + reliable touch scrolling */
@media(max-width:720px){
  html,body{
    overflow-x:hidden !important;
  }

  .mckee-ai-shell{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:8px 0 12px !important;
  }

  .mckee-ai-app{
    width:100% !important;
    max-width:100% !important;
    height:78dvh !important;
    min-height:590px !important;
    max-height:820px !important;
    margin:0 !important;
    border-radius:18px !important;
    border:1px solid rgba(20,33,61,.08) !important;
    box-shadow:0 10px 30px rgba(20,33,61,.08) !important;
    overflow:hidden !important;
  }

  .mckee-ai-side{
    display:none !important;
  }

  .mckee-ai-main{
    width:100% !important;
    min-width:0 !important;
    height:100% !important;
    min-height:0 !important;
    display:flex !important;
    flex-direction:column !important;
    overflow:hidden !important;
  }

  .mckee-ai-header{
    position:relative !important;
    top:auto !important;
    flex:0 0 auto !important;
    padding:9px 10px !important;
    min-height:54px !important;
    background:#fff !important;
  }

  .mckee-ai-header > div:nth-child(2){
    min-width:0 !important;
  }

  .mckee-ai-name{
    font-size:13.5px !important;
    white-space:nowrap !important;
  }

  .mckee-ai-status{
    font-size:9.5px !important;
    white-space:normal !important;
  }

  .mckee-book-top{
    padding:7px 9px !important;
    min-height:34px !important;
    font-size:10.5px !important;
    white-space:nowrap !important;
  }

  .mckee-ai-reset{
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
  }

  .mckee-ai-messages{
    flex:1 1 0 !important;
    min-height:0 !important;
    height:0 !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    overscroll-behavior-y:contain !important;
    -webkit-overflow-scrolling:touch !important;
    touch-action:pan-y !important;
    padding:11px 9px 8px !important;
    scroll-behavior:smooth;
  }

  .mckee-ai-messages *{
    touch-action:pan-y !important;
  }

  .mckee-chat-intro{
    margin:0 0 8px 0 !important;
  }

  .mckee-suggestion-wrap{
    margin:5px 0 9px 0 !important;
  }

  .mckee-msg{
    max-width:88% !important;
    font-size:13px !important;
    padding:9px 11px !important;
    line-height:1.42 !important;
  }

  .mckee-msg-avatar{
    width:25px !important;
    height:25px !important;
    flex:0 0 25px !important;
  }

  .mckee-suggestion-chips{
    width:100% !important;
    max-width:100% !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    white-space:nowrap !important;
    touch-action:pan-x !important;
  }

  .mckee-suggestion-chips button{
    touch-action:manipulation !important;
  }

  .mckee-ai-mobile-chips{
    flex:0 0 auto !important;
    max-width:100% !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    white-space:nowrap !important;
    border-top:1px solid #eef1f5 !important;
  }

  .mckee-ai-composer{
    flex:0 0 auto !important;
    width:auto !important;
    margin:5px 7px !important;
    padding:5px 5px 5px 7px !important;
    background:#fff !important;
    border:1px solid #dce2ea !important;
    box-shadow:0 5px 16px rgba(20,33,61,.08) !important;
  }

  .mckee-ai-composer textarea{
    width:100% !important;
    min-width:0 !important;
    min-height:38px !important;
    max-height:96px !important;
    font-size:16px !important;
    padding:8px 2px !important;
  }

  .mckee-ai-send{
    flex:0 0 40px !important;
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
  }

  .mckee-ai-footer{
    flex:0 0 auto !important;
    padding:0 9px 7px !important;
    font-size:8.5px !important;
  }

  .mckee-booking-card{
    max-width:100% !important;
    width:auto !important;
    margin:10px 0 14px !important;
  }

  .mckee-booking-grid{
    grid-template-columns:1fr !important;
  }

  .mckee-booking-actions{
    flex-direction:column !important;
  }

  .mckee-submit-booking,
  .mckee-cancel-booking{
    width:100% !important;
  }
}

/* Short phones / landscape phones */
@media(max-width:720px) and (max-height:700px){
  .mckee-ai-app{
    height:72dvh !important;
    min-height:470px !important;
  }

  .mckee-ai-header{
    min-height:48px !important;
    padding:6px 8px !important;
  }

  .mckee-ai-avatar{
    width:31px !important;
    height:31px !important;
  }

  .mckee-ai-mobile-chips{
    display:none !important;
  }
}


/* =========================================================
   v5.4.5 — MOBILE-ONLY REDESIGN
   IMPORTANT: everything below is scoped to <= 720px.
   Desktop/tablet >720px is intentionally untouched.
   ========================================================= */
@media (max-width:720px){

  /* Page/app shell */
  .mckee-ai-shell{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:6px 0 10px !important;
    background:#f5f7fa !important;
  }

  .mckee-ai-app{
    width:calc(100% - 12px) !important;
    max-width:none !important;
    height:76dvh !important;
    min-height:560px !important;
    max-height:760px !important;
    margin:0 6px !important;
    display:block !important;
    border:1px solid #e3e8ef !important;
    border-radius:18px !important;
    box-shadow:0 8px 26px rgba(20,33,61,.08) !important;
    overflow:hidden !important;
    background:#fff !important;
  }

  /* Desktop sidebar is completely removed on phone */
  .mckee-ai-side{
    display:none !important;
  }

  /* Main becomes a true chat app column */
  .mckee-ai-main{
    width:100% !important;
    height:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    display:flex !important;
    flex-direction:column !important;
    overflow:hidden !important;
    background:#fff !important;
  }

  /* Compact app header */
  .mckee-ai-header{
    position:relative !important;
    flex:0 0 auto !important;
    min-height:52px !important;
    padding:7px 9px !important;
    gap:8px !important;
    border-bottom:1px solid #edf0f4 !important;
    background:#fff !important;
    box-shadow:none !important;
  }

  .mckee-ai-avatar{
    width:34px !important;
    height:34px !important;
    flex:0 0 34px !important;
    border-radius:10px !important;
  }

  .mckee-ai-name{
    font-size:13px !important;
    line-height:1.15 !important;
    margin:0 !important;
  }

  .mckee-ai-status{
    margin-top:2px !important;
    font-size:9px !important;
    line-height:1.2 !important;
    color:#7a8493 !important;
  }

  /* Hide bulky Book Online text button in chat header on phones.
     Booking is still available in the site menu and AI flow. */
  .mckee-book-top{
    display:none !important;
  }

  .mckee-ai-reset{
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
    padding:0 !important;
    border-radius:10px !important;
    margin-left:auto !important;
  }

  /* Scrollable conversation area */
  .mckee-ai-messages{
    flex:1 1 0 !important;
    height:0 !important;
    min-height:0 !important;
    max-height:none !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    overscroll-behavior-y:contain !important;
    -webkit-overflow-scrolling:touch !important;
    touch-action:pan-y !important;
    padding:10px 9px 12px !important;
    background:#f8fafc !important;
    scroll-padding-bottom:16px !important;
  }

  .mckee-ai-messages *{
    touch-action:pan-y !important;
  }

  /* Small intro instead of a large "hero" inside chat */
  .mckee-chat-intro{
    margin:0 0 8px 0 !important;
    gap:8px !important;
    align-items:center !important;
  }

  .mckee-chat-intro-logo{
    width:30px !important;
    height:30px !important;
    border-radius:9px !important;
    flex:0 0 30px !important;
  }

  .mckee-chat-intro-name{
    font-size:12px !important;
    line-height:1.2 !important;
  }

  .mckee-chat-intro-sub{
    font-size:9px !important;
    line-height:1.25 !important;
    margin-top:1px !important;
  }

  /* Message rows/bubbles */
  .mckee-msg-row{
    margin:6px 0 !important;
    gap:5px !important;
  }

  .mckee-msg-avatar{
    width:23px !important;
    height:23px !important;
    min-width:23px !important;
    flex:0 0 23px !important;
    margin-right:4px !important;
    align-self:flex-end !important;
  }

  .mckee-msg{
    max-width:84% !important;
    padding:9px 11px !important;
    font-size:13px !important;
    line-height:1.42 !important;
    box-shadow:none !important;
  }

  .mckee-msg.assistant{
    background:#eef1f5 !important;
    color:#1f2937 !important;
    border:0 !important;
    border-radius:15px 15px 15px 5px !important;
  }

  .mckee-msg.user{
    background:#14213d !important;
    color:#fff !important;
    border-radius:15px 15px 5px 15px !important;
  }

  /* Initial quick suggestions: horizontal swipe row */
  .mckee-suggestion-wrap{
    width:100% !important;
    max-width:100% !important;
    margin:7px 0 10px !important;
    overflow:hidden !important;
  }

  .mckee-suggestion-label{
    font-size:8.5px !important;
    margin:0 0 5px !important;
    color:#98a1ae !important;
  }

  .mckee-suggestion-chips{
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:6px !important;
    width:100% !important;
    max-width:100% !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    padding:0 0 3px !important;
    scrollbar-width:none !important;
    -webkit-overflow-scrolling:touch !important;
    touch-action:pan-x !important;
  }

  .mckee-suggestion-chips::-webkit-scrollbar{
    display:none !important;
  }

  .mckee-suggestion-chips button{
    flex:0 0 auto !important;
    min-height:34px !important;
    padding:7px 10px !important;
    white-space:nowrap !important;
    font-size:10.5px !important;
    border-radius:999px !important;
    border:1px solid #dce2e9 !important;
    background:#fff !important;
    box-shadow:none !important;
    touch-action:manipulation !important;
  }

  /* Remove the SECOND row of mobile quick buttons.
     This was making the phone layout feel crowded. */
  .mckee-ai-mobile-chips{
    display:none !important;
  }

  /* Typing indicator remains small */
  .mckee-ai-typing{
    flex:0 0 auto !important;
    padding:3px 12px !important;
    font-size:10px !important;
    background:#fff !important;
  }

  /* Composer: clean native-chat style, always visible */
  .mckee-ai-composer{
    position:relative !important;
    flex:0 0 auto !important;
    width:auto !important;
    margin:6px 7px 5px !important;
    padding:5px 5px 5px 7px !important;
    display:flex !important;
    align-items:flex-end !important;
    gap:5px !important;
    border:1px solid #d8dee7 !important;
    border-radius:15px !important;
    background:#fff !important;
    box-shadow:0 4px 14px rgba(20,33,61,.07) !important;
  }

  .mckee-photo-button{
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
    flex:0 0 34px !important;
    margin:0 !important;
    border-radius:10px !important;
    font-size:18px !important;
  }

  .mckee-ai-composer textarea{
    flex:1 1 auto !important;
    width:100% !important;
    min-width:0 !important;
    min-height:38px !important;
    max-height:96px !important;
    padding:8px 3px !important;
    margin:0 !important;
    border:0 !important;
    outline:0 !important;
    background:transparent !important;
    font-size:16px !important; /* prevents iOS zoom */
    line-height:1.35 !important;
  }

  .mckee-ai-send{
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
    flex:0 0 40px !important;
    margin:0 !important;
    border-radius:11px !important;
  }

  /* Minimize footer clutter */
  .mckee-ai-footer{
    flex:0 0 auto !important;
    min-height:18px !important;
    padding:0 9px 6px !important;
    font-size:8px !important;
    line-height:1.2 !important;
    background:#fff !important;
  }

  /* Booking card becomes a simple one-column mobile card */
  .mckee-booking-card{
    width:100% !important;
    max-width:100% !important;
    margin:10px 0 14px !important;
    border-radius:14px !important;
    box-sizing:border-box !important;
  }

  .mckee-booking-card-head{
    padding:11px 12px !important;
  }

  .mckee-booking-card-head strong{
    font-size:13px !important;
  }

  .mckee-booking-card-head span{
    font-size:10px !important;
  }

  .mckee-booking-grid{
    grid-template-columns:1fr !important;
    gap:2px !important;
    padding:10px 12px !important;
  }

  .mckee-booking-grid .label{
    margin-top:6px !important;
    font-size:8.5px !important;
  }

  .mckee-booking-grid .value{
    font-size:11.5px !important;
    line-height:1.35 !important;
  }

  .mckee-booking-actions{
    display:flex !important;
    flex-direction:column !important;
    gap:7px !important;
    padding:0 12px 12px !important;
  }

  .mckee-submit-booking,
  .mckee-cancel-booking{
    width:100% !important;
    min-height:41px !important;
    font-size:12px !important;
    border-radius:10px !important;
  }

  .mckee-system-notice{
    max-width:92% !important;
    margin:8px auto !important;
    padding:6px 9px !important;
    font-size:9.5px !important;
  }
}

/* Very narrow phones */
@media (max-width:390px){
  .mckee-ai-app{
    width:calc(100% - 8px) !important;
    margin:0 4px !important;
  }

  .mckee-ai-header{
    padding-left:7px !important;
    padding-right:7px !important;
  }

  .mckee-ai-messages{
    padding-left:7px !important;
    padding-right:7px !important;
  }

  .mckee-msg{
    max-width:87% !important;
    font-size:12.5px !important;
  }
}

/* Short mobile screens / landscape phones */
@media (max-width:720px) and (max-height:680px){
  .mckee-ai-app{
    height:72dvh !important;
    min-height:450px !important;
  }

  .mckee-chat-intro{
    display:none !important;
  }

  .mckee-suggestion-label{
    display:none !important;
  }
}


/* =========================================================
   v5.4.6 — MOBILE MATCH TO REFERENCE SCREENSHOT
   Desktop is intentionally untouched.
   ========================================================= */

/* Hidden on desktop */
.mckee-mobile-feature-grid{
  display:none;
}

@media (max-width:720px){

  .mckee-ai-shell{
    background:#f4f6f8 !important;
    padding:10px 8px 14px !important;
  }

  .mckee-ai-app{
    width:100% !important;
    height:calc(100dvh - 175px) !important;
    min-height:620px !important;
    max-height:none !important;
    margin:0 !important;
    border-radius:22px !important;
    border:1px solid #e2e7ec !important;
    background:#fff !important;
    box-shadow:0 8px 24px rgba(28,39,55,.08) !important;
  }

  .mckee-ai-main{
    background:#fff !important;
  }

  /* Reference-style top AI card */
  .mckee-ai-header{
    margin:0 !important;
    padding:14px 16px !important;
    min-height:86px !important;
    border-bottom:1px solid #e8edf2 !important;
    border-radius:22px 22px 0 0 !important;
    background:#fff !important;
  }

  .mckee-ai-avatar{
    width:48px !important;
    height:48px !important;
    flex:0 0 48px !important;
    border-radius:14px !important;
  }

  .mckee-ai-name{
    font-size:18px !important;
    font-weight:800 !important;
    color:#13213d !important;
    letter-spacing:-.02em !important;
  }

  .mckee-ai-status{
    font-size:12px !important;
    color:#4e5969 !important;
    line-height:1.35 !important;
  }

  .mckee-ai-reset{
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    border-radius:15px !important;
    background:#f8fafc !important;
    border:1px solid #e3e8ee !important;
  }

  /* Main conversation canvas */
  .mckee-ai-messages{
    background:#fff !important;
    padding:16px 16px 12px !important;
  }

  /* Reference intro card */
  .mckee-chat-intro{
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
    margin:0 0 10px !important;
    padding:0 !important;
  }

  .mckee-chat-intro-logo{
    width:48px !important;
    height:48px !important;
    flex:0 0 48px !important;
    border-radius:14px !important;
    box-shadow:none !important;
  }

  .mckee-chat-intro-name{
    font-size:21px !important;
    font-weight:800 !important;
    color:#13213d !important;
    letter-spacing:-.025em !important;
  }

  .mckee-chat-intro-sub{
    display:none !important;
  }

  .mckee-first-message{
    margin:0 0 14px 62px !important;
    max-width:none !important;
    padding:0 !important;
    background:transparent !important;
    color:#263247 !important;
    font-size:15px !important;
    box-shadow:none !important;
  }

  .mckee-first-message strong{
    display:none !important;
  }

  /* 3 large cards like the screenshot */
  .mckee-mobile-feature-grid{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:10px !important;
    margin:10px 0 18px 62px !important;
  }

  .mckee-mobile-feature-grid button{
    min-width:0 !important;
    min-height:150px !important;
    padding:16px 10px 14px !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
    border:1px solid #e3e7ec !important;
    border-radius:16px !important;
    background:#fff !important;
    color:#15213a !important;
    box-shadow:0 6px 18px rgba(20,33,61,.06) !important;
    text-align:center !important;
  }

  .mckee-mobile-feature-icon{
    width:58px !important;
    height:58px !important;
    display:grid !important;
    place-items:center !important;
    border-radius:50% !important;
    background:#eef7e6 !important;
    color:#4c8b17 !important;
    font-size:27px !important;
  }

  .mckee-mobile-feature-grid strong{
    font-size:14px !important;
    line-height:1.2 !important;
  }

  .mckee-mobile-feature-grid small{
    display:block !important;
    font-size:11px !important;
    line-height:1.3 !important;
    color:#566173 !important;
  }

  /* Hide the older first quick-chip row because the 3-card launcher replaces it */
  .mckee-suggestion-wrap{
    display:none !important;
  }

  /* Reference-style bubbles */
  .mckee-msg-row{
    margin:10px 0 !important;
  }

  .mckee-msg-avatar{
    width:30px !important;
    height:30px !important;
    min-width:30px !important;
    flex:0 0 30px !important;
    margin-right:8px !important;
  }

  .mckee-msg{
    max-width:78% !important;
    padding:12px 14px !important;
    font-size:14.5px !important;
    line-height:1.5 !important;
    box-shadow:0 4px 12px rgba(20,33,61,.04) !important;
  }

  .mckee-msg.assistant{
    background:#f2f4f7 !important;
    border-radius:16px 16px 16px 6px !important;
  }

  .mckee-msg.user{
    background:#10213f !important;
    border-radius:16px 16px 6px 16px !important;
  }

  /* Bottom quick actions row like reference */
  .mckee-ai-mobile-chips{
    display:flex !important;
    flex:0 0 auto !important;
    gap:7px !important;
    padding:9px 12px 5px !important;
    overflow-x:auto !important;
    background:#fff !important;
    border-top:1px solid #edf1f4 !important;
    scrollbar-width:none !important;
  }

  .mckee-ai-mobile-chips::-webkit-scrollbar{
    display:none !important;
  }

  .mckee-ai-mobile-chips button,
  .mckee-ai-mobile-chips a{
    flex:1 0 auto !important;
    min-height:38px !important;
    padding:8px 11px !important;
    border:1px solid #dce2e8 !important;
    border-radius:999px !important;
    background:#fff !important;
    color:#355221 !important;
    font-size:11px !important;
    font-weight:700 !important;
    box-shadow:none !important;
    white-space:nowrap !important;
  }

  /* Composer like reference */
  .mckee-ai-composer{
    margin:5px 12px !important;
    min-height:58px !important;
    padding:6px 7px !important;
    gap:7px !important;
    border:1px solid #dce2e8 !important;
    border-radius:18px !important;
    box-shadow:none !important;
  }

  .mckee-photo-button{
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    border:0 !important;
    background:#f4f8ef !important;
    color:#5a8e24 !important;
    border-radius:50% !important;
    font-size:24px !important;
  }

  .mckee-ai-composer textarea{
    min-height:44px !important;
    max-height:105px !important;
    padding:11px 4px !important;
    font-size:16px !important;
  }

  .mckee-ai-send{
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
    border-radius:50% !important;
    background:#5b9823 !important;
    box-shadow:none !important;
  }

  /* Cleaner footer */
  .mckee-ai-footer{
    padding:3px 14px 12px !important;
    font-size:10px !important;
    color:#687486 !important;
  }

  /* Booking card still mobile-safe */
  .mckee-booking-card{
    width:100% !important;
    margin:12px 0 16px !important;
    border-radius:16px !important;
  }

  .mckee-booking-actions{
    flex-direction:column !important;
  }

  .mckee-submit-booking,
  .mckee-cancel-booking{
    width:100% !important;
  }
}

/* Better fit for narrower Galaxy/iPhone widths */
@media (max-width:430px){
  .mckee-mobile-feature-grid{
    margin-left:0 !important;
    gap:7px !important;
  }

  .mckee-mobile-feature-grid button{
    min-height:138px !important;
    padding:13px 7px 12px !important;
  }

  .mckee-mobile-feature-icon{
    width:50px !important;
    height:50px !important;
    font-size:23px !important;
  }

  .mckee-mobile-feature-grid strong{
    font-size:12.5px !important;
  }

  .mckee-mobile-feature-grid small{
    font-size:10px !important;
  }

  .mckee-first-message{
    margin-left:0 !important;
  }

  .mckee-msg{
    max-width:84% !important;
  }

  .mckee-ai-mobile-chips{
    padding-left:9px !important;
    padding-right:9px !important;
  }

  .mckee-ai-mobile-chips button,
  .mckee-ai-mobile-chips a{
    flex:0 0 auto !important;
  }
}
