/* MySmartLife assistant — layered surfaces, deliberate motion and quiet teal accents. */
#chat-widget-container {
  --cw-bg: #0c1318;
  --cw-panel: #17242c;
  --cw-line: rgba(162, 201, 209, .16);
  --cw-text: #f1f7f8;
  --cw-muted: #a7bbc3;
  --cw-accent: #73e4da;
  --cw-ease: cubic-bezier(.22, 1, .36, 1);
  position: fixed; right: 24px; bottom: 24px; z-index: 999990;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
  font-family: inherit; color: var(--cw-text); pointer-events: none;
  -webkit-font-smoothing: antialiased;
}
#chat-widget-container * { box-sizing: border-box; }
#chat-widget-container [hidden] { display: none !important; }
#cw-window {
  display: flex; flex-direction: column; width: 432px; height: 710px;
  max-height: calc(100dvh - 112px); max-width: calc(100vw - 32px);
  background: radial-gradient(ellipse at 100% 0, rgba(83,174,173,.10), transparent 55%), var(--cw-bg);
  border: 1px solid rgba(173,219,221,.22); border-radius: 26px;
  box-shadow: 0 0 0 1px #081014, 0 28px 90px #0009, 0 8px 30px #0005, inset 0 1px 0 #ffffff0a;
  overflow: hidden; pointer-events: auto; transform-origin: bottom right; isolation: isolate;
}
#cw-window:focus { outline: none; }
.cw-header {
  padding: 22px 20px 20px; display: flex; align-items: center; gap: 13px;
  background: radial-gradient(ellipse at 0 0, #28545a55, transparent 80%), linear-gradient(135deg,#1a2a33,#131e27);
  border-bottom: 1px solid var(--cw-line); position: relative;
}
.cw-header::after { content: ''; position: absolute; left: 20px; right: 20px; bottom: -1px; height: 1px; background: linear-gradient(90deg,transparent,#73e4da66,transparent); }
.cw-avatar {
  width: 49px; height: 49px; flex-shrink: 0; display: grid; place-items: center;
  border: 1px solid #85d9d84d; border-radius: 16px;
  background: linear-gradient(145deg,#3a62675c,#0d1c23); box-shadow: inset 0 1px 0 #ffffff19,0 4px 16px #0003;
}
.cw-avatar img { width: 36px; height: 36px; object-fit: contain; }
.cw-header-info { flex: 1; min-width: 0; }
.cw-eyebrow { display: block; color: #95bfc2; font-size: 8px; font-weight: 700; letter-spacing: 1.6px; margin-bottom: 7px; }
.cw-title { font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: -.3px; margin: 0; color: var(--cw-text); }
.cw-subtitle { font-size: 10px; color: var(--cw-muted); margin: 6px 0 0; }
.cw-subtitle::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--cw-accent); box-shadow: 0 0 9px #73e4da55; margin-right: 6px; vertical-align: 1px; }
.cw-close-btn { align-self: flex-start; background: #ffffff06; border: 1px solid #ffffff0d; cursor: pointer; color: #b6cbd0; width: 30px; height: 30px; border-radius: 10px; font: inherit; font-size: 22px; line-height: 1; }
.cw-close-btn:hover { background: #ffffff12; color: #fff; transform: rotate(90deg); }
.cw-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; border-bottom: 1px solid #ffffff08; font-size: 10px; background: #101d2380; }
.cw-toolbar a { color: #b3d6d7; text-decoration: none; }
.cw-toolbar a::before { content: '↗'; color: var(--cw-accent); margin-right: 7px; }
.cw-toolbar a:hover { color: var(--cw-accent); }
.cw-tips-toggle { background: #ffffff04; border: 1px solid #ffffff0b; cursor: pointer; color: var(--cw-muted); border-radius: 20px; padding: 5px 9px; font: inherit; font-size: 9px; }
.cw-tips-toggle[aria-pressed="true"]::before { content: ''; display: inline-block; background: var(--cw-accent); width: 4px; height: 4px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
#cw-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 20px; display: flex; flex-direction: column; gap: 19px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #4b74774d transparent; }
.cw-welcome { padding: 6px 7px 0; flex-shrink: 0; }
.cw-welcome-mark { color: var(--cw-accent); background: radial-gradient(circle,#305e624d,transparent 75%); width: 46px; height: 46px; display: grid; place-items: center; margin: 0 0 12px -7px; }
.cw-welcome-mark svg { width: 38px; height: 38px; }
.cw-welcome-kicker { font-size: 8px; letter-spacing: 1.5px; color: #99c2c2; font-weight: 600; }
.cw-welcome h4 { font-size: 27px; font-weight: 500; line-height: 1.17; letter-spacing: -1px; margin: 10px 0; color: #f1f7f8; }
.cw-welcome p { margin: 0; font-size: 12px; line-height: 1.7; max-width: 315px; color: #a9bec6; }
.cw-suggestions-label { display: block; margin: 14px 0 0; font-size: 10px; color: #78949f; }
.cw-msg { max-width: 100%; display: flex; gap: 9px; align-items: flex-start; flex-shrink: 0; }
.cw-msg.user { margin-left: auto; max-width: 88%; }
.cw-msg-content { padding: 16px; border-radius: 18px; font-size: 13px; line-height: 1.8; letter-spacing: .05px; overflow-wrap: anywhere; min-width: 0; }
.cw-msg.bot .cw-msg-content { background: linear-gradient(135deg,#1a2a34,#152129); border: 1px solid #93b7c020; border-top-left-radius: 5px; flex: 1; box-shadow: inset 0 1px 0 #ffffff05,0 3px 15px #0001; }
.cw-msg.user .cw-msg-content { background: linear-gradient(135deg,#7ee9df,#53cbc8); color: #082c2c; border: 1px solid #a5f7eb66; border-top-right-radius: 5px; box-shadow: 0 5px 18px #39bab914; }
.cw-bot-icon { display: grid; place-items: center; width: 25px; height: 28px; flex-shrink: 0; border: 1px solid #73e4da30; border-radius: 9px; background: #173237; color: #a3f0e7; font-size: 10px; font-weight: 600; margin-top: 3px; }
.cw-answer { white-space: pre-line; margin: 0; }
.cw-writing::after { content: ''; display: inline-block; width: 5px; height: 13px; border-radius: 2px; background: var(--cw-accent); margin-left: 4px; vertical-align: -1px; opacity: .7; }
.cw-source { font-size: 9px; display: flex; align-items: center; gap: 5px; margin-top: 16px; padding-top: 10px; border-top: 1px solid #ffffff08; color: #829eaa; }
.cw-source::before { content: '✓'; color: #78c7bd; font-size: 10px; }
.cw-card { display: flex; align-items: center; gap: 12px; padding: 13px; margin-top: 13px; border: 1px solid #92b8c023; border-radius: 13px; background: linear-gradient(125deg,#0d171c,#12232a); text-decoration: none; color: var(--cw-text); box-shadow: inset 0 1px 0 #ffffff04; }
.cw-card:hover { border-color: #73e4da77; transform: translateY(-2px); box-shadow: 0 8px 20px #0003; }
.cw-card-img { width: 58px; height: 58px; padding: 3px; border-radius: 10px; object-fit: contain; background: #f5f9f8; flex-shrink: 0; }
.cw-card-info { min-width: 0; }
.cw-card-title { display: block; font-size: 12px; font-weight: 600; line-height: 1.45; color: var(--cw-text); }
.cw-card-sub { display: block; color: var(--cw-muted); font-size: 10px; margin-top: 5px; line-height: 1.6; }
.cw-card-price { display: block; color: #a1f3e5; font-size: 13px; font-weight: 600; margin-top: 6px; }
.cw-badge { display: inline-block; color: #b9e9cb; background: #31523a70; border: 1px solid #9aca9e26; border-radius: 5px; padding: 1px 6px; font-size: 9px; margin-top: 6px; }
.cw-btn-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(120deg,#23404866,#1b303a66); border: 1px solid #7faeb82b; border-radius: 10px; padding: 11px 12px; color: #c0e6e3; text-decoration: none; font-family: inherit; font-size: 11px; font-weight: 500; line-height: 1.5; margin-top: 9px; cursor: pointer; text-align: left; }
.cw-btn-link::after { content: '↗'; font-size: 14px; color: #86c8c6; }
.cw-btn-link:hover { border-color: #73e4da66; background: #2c505573; color: #effffc; transform: translateX(2px); text-decoration: none; }
.cw-link { color: #a3eae1; text-decoration: underline; text-underline-offset: 3px; }
#cw-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 7px; flex-shrink: 0; }
.cw-chip { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 7px; border: 1px solid #86b4bc26; color: #c9dfe2; background: linear-gradient(135deg,#1a2d35aa,#13222baa); border-radius: 11px; font: inherit; font-size: 11px; padding: 12px; cursor: pointer; text-align: left; }
.cw-chip::after { content: '→'; color: #648c96; }
.cw-chip:last-child { grid-column: 1 / -1; background: linear-gradient(120deg,#26474570,#172d3266); border-color: #76c5bd30; color: #afe8dd; }
.cw-chip:hover { border-color: #73e4da77; color: #ecfffa; background: #24434b; transform: translateY(-2px); box-shadow: 0 4px 12px #0002; }
.cw-chip:hover::after { color: var(--cw-accent); transform: translateX(2px); }
.cw-working #cw-chips { opacity: .5; pointer-events: none; }
.cw-has-conversation #cw-chips { display: flex; flex-wrap: wrap; margin-left: 34px; gap: 6px; }
.cw-has-conversation .cw-welcome { display: none; }
.cw-has-conversation .cw-chip { border-radius: 18px; padding: 7px 10px; font-size: 10px; }
.cw-has-conversation .cw-chip::after { display: none; }
#cw-typing { padding: 12px 23px 14px; color: #a9c4cd; font-size: 10px; align-items: center; gap: 10px; background: linear-gradient(0deg,#11212a99,transparent); }
#cw-typing[style*="block"] { display: flex !important; }
.cw-typing-dots { display: flex; gap: 4px; padding: 8px 10px; border: 1px solid #73e4da20; border-radius: 9px; background: #1b353b; }
.cw-typing-dots i { display: block; width: 4px; height: 4px; border-radius: 50%; background: #8ee8dd; }
.cw-input-area { padding: 16px 19px 14px; background: linear-gradient(180deg,#182a32eb,#122129); border-top: 1px solid var(--cw-line); box-shadow: 0 -8px 28px #06101444; }
.cw-input-wrapper { display: flex; gap: 8px; align-items: center; background: #09151cc4; border: 1px solid #94b8c42e; border-radius: 14px; padding: 5px; box-shadow: inset 0 2px 8px #0002; }
.cw-input-wrapper:focus-within { border-color: #73e4da70; box-shadow: 0 0 0 3px #73e4da0b,inset 0 1px 6px #0002; }
#cw-input { min-width: 0; flex: 1; background: transparent; border: 0; border-radius: 10px; padding: 10px 8px; color: var(--cw-text); font: inherit; font-size: 12px; outline: none; }
#cw-input::placeholder { color: #748c99; }
.cw-send-btn { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid #c4fff24a; border-radius: 11px; background: linear-gradient(145deg,#97efe0,#58cbc5); color: #103334; cursor: pointer; box-shadow: inset 0 1px 0 #fff4,0 3px 9px #0002; }
.cw-send-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px #58cbc52a; }
.cw-send-btn:hover svg { transform: translate(1px,-1px); }
.cw-send-btn:disabled { opacity: .45; cursor: wait; transform: none; }
.cw-powered { font-size: 8px; color: #829ca7; text-align: center; margin-top: 11px; letter-spacing: .15px; }
#cw-toggle-btn { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 11px; height: 54px; padding: 0 19px; border: 1px solid #aef5e66b; border-radius: 19px; background: linear-gradient(135deg,#97ecdf,#5ed3ce); color: #102e31; box-shadow: inset 0 1px 0 #ffffff70,0 7px 25px #0006,0 0 30px #55d6ce0d; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; }
#cw-toggle-btn:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 #ffffff70,0 12px 30px #0006,0 0 25px #55d6ce26; }
#cw-toggle-btn[aria-expanded="true"] { background: linear-gradient(135deg,#253c43,#172c33); color: #b9e7e0; border-color: #85bbb94d; }
#cw-toggle-btn svg { width: 23px; height: 23px; }
#cw-unread { min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; font-size: 9px; background: #133b3d; color: #fff; box-shadow: 0 0 0 2px #7bdfd4; }
#cw-nudge { pointer-events: auto; width: 305px; max-width: calc(100vw - 32px); border: 1px solid #8bc3c43b; border-radius: 18px; background: linear-gradient(135deg,#203941f5,#14242df5); padding: 18px 38px 18px 18px; box-shadow: 0 10px 40px #0007,inset 0 1px 0 #ffffff0b; backdrop-filter: blur(18px); }
#cw-nudge-text { display: block; width: 100%; text-align: left; background: none; border: 0; color: #d6eded; font: inherit; font-size: 12px; line-height: 1.7; cursor: pointer; }
#cw-nudge-dismiss { position: absolute; right: 8px; top: 8px; width: 24px; height: 24px; border-radius: 8px; border: 0; background: #ffffff05; color: #9cbcc5; font-size: 18px; cursor: pointer; }
#chat-widget-container :is(button,a,input,select,textarea):focus-visible { outline: 2px solid #b7fcf4; outline-offset: 3px; }
#cw-input:focus-visible { outline-offset: -2px; }
.cw-support-form { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; }
.cw-support-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.cw-support-field { display: grid; gap: 6px; min-width: 0; }
.cw-support-label,.cw-support-note { font-size: 10px; color: var(--cw-muted); }
.cw-support-input,.cw-support-select,.cw-support-textarea { width: 100%; background: #0d1a21; border: 1px solid #91b6c030; border-radius: 10px; padding: 10px; color: var(--cw-text); font: inherit; font-size: 12px; }
.cw-support-textarea { min-height: 95px; resize: vertical; }
.cw-support-file { max-width: 100%; color: var(--cw-muted); font-size: 10px; }
.cw-support-submit { background: linear-gradient(135deg,#8ce8da,#5dcfc9); color: #103334; padding: 12px; border: 1px solid #b1f1e44a; border-radius: 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.cw-support-submit:disabled { opacity: .5; }
.cw-support-errors { color: #ffb8a8; font-size: 12px; }
.cw-support-success { color: #a5e8c5; font-size: 12px; }
@media(max-width:600px) {
  #chat-widget-container { right: 12px; bottom: max(12px,env(safe-area-inset-bottom)); gap: 10px; }
  #cw-window { width: calc(100vw - 24px); max-width: none; height: min(720px,calc(100dvh - 90px - env(safe-area-inset-bottom))); max-height: calc(100dvh - 90px - env(safe-area-inset-bottom)); border-radius: 22px; }
  .cw-header { padding: 18px 16px; gap: 11px; }
  .cw-avatar { width: 44px; height: 44px; border-radius: 14px; }
  .cw-title { font-size: 13px; }
  .cw-eyebrow { font-size: 7px; letter-spacing: 1.3px; }
  .cw-toolbar { padding: 9px 16px; }
  #cw-messages { padding: 19px 14px; gap: 16px; }
  .cw-welcome h4 { font-size: 28px; }
  .cw-welcome p { font-size: 12px; }
  .cw-msg-content { padding: 13px; font-size: 13px; }
  .cw-support-row { grid-template-columns: 1fr; }
  .cw-input-area { padding: 13px 14px 12px; }
  #cw-toggle-btn { height: 48px; padding: 0 16px; border-radius: 16px; }
}
@media(max-height:800px) {
  .cw-header { padding-top: 16px; padding-bottom: 16px; }
  #cw-messages { padding-top: 15px; padding-bottom: 15px; gap: 14px; }
  .cw-welcome-mark { width: 34px; height: 34px; margin-bottom: 8px; }
  .cw-welcome-mark svg { width: 30px; height: 30px; }
  .cw-welcome h4 { font-size: 24px; }
  .cw-welcome p { font-size: 11px; }
  .cw-welcome { padding-top: 0; }
  .cw-suggestions-label { margin-top: 10px; }
  #cw-chips { gap: 6px; }
  .cw-chip { padding-top: 9px; padding-bottom: 9px; }
  .cw-input-area { padding-top: 12px; padding-bottom: 11px; }
}
@media(prefers-reduced-motion:no-preference) {
  #chat-widget-container :is(button,a,.cw-chip::after,.cw-send-btn svg,.cw-input-wrapper,#cw-chips) { transition: transform .25s var(--cw-ease),background .25s ease,border-color .25s ease,box-shadow .25s ease,color .25s ease,opacity .2s ease; }
  #cw-window.cw-entering { animation: cw-open .44s var(--cw-ease) both; }
  #cw-window.cw-leaving { animation: cw-close .22s ease-in both; pointer-events: none; }
  .cw-msg { animation: cw-message .38s var(--cw-ease) both; }
  .cw-msg.user { animation-duration: .25s; }
  .cw-card,.cw-btn-link { animation: cw-detail .36s var(--cw-ease) backwards; }
  .cw-entering .cw-welcome { animation: cw-detail .55s .12s var(--cw-ease) backwards; }
  .cw-entering #cw-chips { animation: cw-detail .55s .2s var(--cw-ease) backwards; }
  #cw-nudge { animation: cw-message .4s var(--cw-ease) both; }
  .cw-typing-dots i { animation: cw-think 1.3s ease-in-out infinite; }
  .cw-typing-dots i:nth-child(2) { animation-delay: .16s; }
  .cw-typing-dots i:nth-child(3) { animation-delay: .32s; }
  .cw-writing::after { animation: cw-cursor .8s ease-in-out infinite; }
}
@keyframes cw-open { from { opacity: 0; transform: translateY(22px) scale(.965); filter: blur(3px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes cw-close { to { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes cw-message { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cw-detail { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cw-think { 0%,60%,100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes cw-cursor { 50% { opacity: .15; } }
@media(prefers-reduced-motion:reduce) {
  #chat-widget-container *,#chat-widget-container *::before,#chat-widget-container *::after { animation: none !important; transition: none !important; }
  #cw-messages { scroll-behavior: auto; }
}

/* Small screens use the available visual viewport, including when the keyboard opens. */
.cw-header,.cw-toolbar,.cw-input-area,#cw-typing { flex-shrink: 0; }
html.cw-lock-scroll,body.cw-lock-scroll { overflow: hidden !important; overscroll-behavior: none; }
@media (max-width:768px), (max-width:1024px) and (max-height:600px) {
  #chat-widget-container { right: max(12px,env(safe-area-inset-right)); bottom: max(12px,env(safe-area-inset-bottom)); }
  #cw-window {
    position: fixed; top: var(--cw-viewport-top,0px); left: var(--cw-viewport-left,0px);
    width: var(--cw-viewport-width,100vw); height: var(--cw-viewport-height,100dvh);
    max-width: none; max-height: none; min-height: 0; margin: 0;
    border-radius: 0; border: 0; box-shadow: none; transform-origin: bottom center;
    padding-top: env(safe-area-inset-top); background-color: var(--cw-bg);
  }
  .cw-mobile-open #cw-toggle-btn,.cw-mobile-open #cw-nudge { display: none !important; }
  .cw-header { padding: 12px max(14px,env(safe-area-inset-right)) 12px max(14px,env(safe-area-inset-left)); gap: 10px; }
  .cw-avatar { width: 40px; height: 40px; border-radius: 12px; }
  .cw-avatar img { width: 30px; height: 30px; }
  .cw-title { font-size: 14px; line-height: 1.4; }
  .cw-eyebrow { font-size: 8px; margin-bottom: 4px; letter-spacing: 1px; }
  .cw-subtitle { font-size: 11px; margin-top: 4px; }
  .cw-close-btn { align-self: center; width: 44px; height: 44px; min-width: 44px; font-size: 26px; }
  .cw-toolbar { padding: 4px max(14px,env(safe-area-inset-right)) 4px max(14px,env(safe-area-inset-left)); font-size: 12px; min-height: 44px; }
  .cw-toolbar a { display: flex; align-items: center; min-height: 36px; }
  .cw-tips-toggle { font-size: 11px; min-height: 36px; padding: 8px 10px; }
  #cw-messages { padding: 16px max(14px,env(safe-area-inset-right)) 16px max(14px,env(safe-area-inset-left)); gap: 16px; min-height: 0; overflow-x: hidden; -webkit-overflow-scrolling: touch; touch-action: pan-y pinch-zoom; }
  .cw-welcome { padding: 0; }
  .cw-welcome-mark { width: 36px; height: 36px; margin-bottom: 8px; }
  .cw-welcome h4 { font-size: 27px; }
  .cw-welcome p { font-size: 14px; line-height: 1.6; max-width: none; }
  .cw-welcome-kicker { font-size: 9px; line-height: 1.6; letter-spacing: 1px; }
  .cw-suggestions-label { font-size: 12px; margin-top: 16px; }
  #cw-chips { margin: 0; gap: 8px; }
  .cw-chip { min-height: 44px; padding: 10px 12px; font-size: 13px; line-height: 1.4; white-space: normal; }
  .cw-has-conversation #cw-chips { margin-left: 0; }
  .cw-has-conversation .cw-chip { min-height: 44px; padding: 10px 12px; font-size: 12px; }
  .cw-msg { gap: 7px; }
  .cw-msg-content { font-size: 14px; line-height: 1.65; padding: 13px; }
  .cw-bot-icon { width: 22px; }
  .cw-card { padding: 10px; gap: 9px; }
  .cw-card-img { width: 48px; height: 48px; }
  .cw-card-title { font-size: 13px; }
  .cw-card-sub { font-size: 12px; }
  .cw-btn-link { min-height: 44px; font-size: 13px; padding: 11px 12px; }
  .cw-source { font-size: 11px; line-height: 1.5; }
  .cw-input-area { padding: 10px max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); }
  #cw-input { font-size: 16px; padding: 10px 8px; min-height: 44px; }
  .cw-send-btn { width: 44px; height: 44px; }
  .cw-powered { font-size: 9px; line-height: 1.4; margin-top: 7px; }
  #cw-typing { padding: 8px 14px; font-size: 12px; }
  .cw-support-row { grid-template-columns: 1fr; }
  .cw-support-input,.cw-support-select,.cw-support-textarea { font-size: 16px; min-height: 44px; }
  .cw-support-label,.cw-support-note { font-size: 12px; }
  .cw-support-submit { min-height: 44px; font-size: 14px; }
  #cw-window.cw-compact .cw-header { padding-top: 5px; padding-bottom: 5px; }
  #cw-window.cw-compact .cw-avatar { width: 32px; height: 32px; }
  #cw-window.cw-compact .cw-avatar img { width: 26px; height: 26px; }
  #cw-window.cw-compact .cw-eyebrow,#cw-window.cw-compact .cw-subtitle,
  #cw-window.cw-compact .cw-toolbar,#cw-window.cw-compact .cw-powered,
  #cw-window.cw-compact .cw-welcome { display: none; }
  #cw-window.cw-compact #cw-messages { padding-top: 10px; padding-bottom: 10px; }
  #cw-window.cw-compact .cw-input-area { padding-top: 6px; padding-bottom: max(6px,env(safe-area-inset-bottom)); }
  #cw-window.cw-compact #cw-typing { padding-top: 4px; padding-bottom: 4px; }
  #cw-window.cw-entering { animation-name: cw-mobile-open; }
  #cw-window.cw-leaving { animation-name: cw-mobile-close; }
}
@keyframes cw-mobile-open { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes cw-mobile-close { to { opacity: 0; transform: translateY(12px); } }

/* Three clear starting actions and a compact session reset control. */
#cw-reset { border: 0; background: transparent; color: #b3d6d7; font: inherit; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
#cw-reset:hover { color: var(--cw-accent); background: #ffffff08; }
#cw-reset:disabled { opacity: .4; cursor: wait; }
#cw-reset:focus-visible { outline: 2px solid var(--cw-accent); outline-offset: 2px; }
@media (max-width:768px),(max-width:1024px) and (max-height:600px) { #cw-reset { min-height:44px; padding: 8px; } }
