/* solchat.css, version 2026-11-18b (see README.md "Versions"; the rules are those of 2026-11-18a): the look of the Chat Assistant in solchat.js (skill samsara-working-demo, scripts/chat/).
   Copy unchanged; link it after the Kit stylesheets and solframe.css (or inline it before the page's own CSS).
   Every colour, space, radius and type size is a Kit token; the only plain numbers are the panel's width, icon sizes
   and hairlines. The panel has no header and no footer: a conversation, up to four questions, a box to type in. */

/* the body and the panel side by side, inside the frame's .sol-body (SolChat.Row) */
.solchat-row{display:flex;align-items:stretch;height:100%;min-height:0;min-width:0}
.solchat-main{flex:1 1 0;min-width:0;min-height:0;position:relative}

/* the frame's action: Kit's own button with the speech bubble in front of its label */
.solchat-btn{gap:var(--kit-space-xs)}
.solchat-btn.is-on{background:var(--kit-colors-surface-secondary)}
.solchat-ic{display:inline-flex;width:16px;height:16px;flex:none}
.solchat-ic svg{width:16px;height:16px}
.solchat-btn .solchat-ic svg,.solchat-btn .solchat-ic svg *{fill:currentColor}

/* the panel: a column beside the body */
.solchat{flex:0 0 380px;width:380px;min-width:0;min-height:0;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;
  border-inline-start:1px solid var(--kit-colors-border-basic);background:var(--kit-colors-surface-primary);color:var(--kit-colors-text-primary);font:var(--kit-typography-md)}
/* a phone: a sheet over the whole page, drawn at the top of the document, with its own close */
.solchat.is-mobile{position:fixed;inset:0;width:auto;height:auto;border:0;z-index:var(--kit-z-dialog-content,4001)}

.solchat-top{flex:none;display:flex;justify-content:space-between;align-items:center;min-height:var(--kit-space-xl);padding:var(--kit-space-xs) var(--kit-space-sm) 0 var(--kit-space-md)}
.solchat-clear{border:0;background:none;color:var(--kit-colors-text-secondary);font:var(--kit-typography-xs-medium);cursor:pointer;padding:var(--kit-space-xs) 0}
.solchat-clear:hover{color:var(--kit-colors-text-primary);text-decoration:underline}
.solchat-clear:focus-visible,.solchat-chip:focus-visible,.solchat-send:focus-visible,.solchat-see:focus-visible{outline:2px solid var(--kit-colors-blue);outline-offset:2px}
.solchat-x svg{fill:currentColor}

.solchat-msgs{flex:1 1 0;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:var(--kit-space-sm);padding:var(--kit-space-md)}
.solchat-empty{margin:auto;display:flex;flex-direction:column;align-items:center;gap:var(--kit-space-sm);font:var(--kit-typography-lg-medium);color:var(--kit-colors-text-secondary)}
.solchat-eico{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:var(--kit-radius-round);background:var(--kit-colors-blue-10-solid);color:var(--kit-colors-blue)}
.solchat-eico svg{width:20px;height:20px;fill:currentColor}
.solchat-m{max-width:92%;font:var(--kit-typography-md);overflow-wrap:anywhere}
.solchat-m--user{align-self:flex-end;background:var(--kit-colors-blue);color:var(--kit-colors-white);padding:var(--kit-space-sm) var(--kit-space-smd,12px);white-space:pre-wrap;
  border-radius:var(--kit-radius-400) var(--kit-radius-400) var(--kit-radius-100) var(--kit-radius-400)}
.solchat-m--bot{align-self:flex-start;display:flex;flex-direction:column;gap:var(--kit-space-xs);background:var(--kit-colors-surface-secondary);padding:var(--kit-space-sm) var(--kit-space-smd,12px);
  border-radius:var(--kit-radius-400) var(--kit-radius-400) var(--kit-radius-400) var(--kit-radius-100)}
.solchat-text{white-space:pre-wrap}
/* what the answer did on the page */
.solchat-did{display:flex;flex-wrap:wrap;gap:var(--kit-space-xs);align-items:center}
.solchat-didc{display:inline-flex;align-items:center;font:var(--kit-typography-xs-medium);color:var(--kit-colors-blue);background:var(--kit-colors-blue-10-solid);border-radius:var(--kit-radius-round);padding:2px var(--kit-space-sm)}
.solchat-didc::before{content:"\2192";margin-inline-end:var(--kit-space-xs)}
.solchat-see{border:0;background:none;color:var(--kit-colors-blue);font:var(--kit-typography-xs-bold);cursor:pointer;padding:2px var(--kit-space-xs)}
.solchat-wait{flex-direction:row;gap:var(--kit-space-xs);padding:var(--kit-space-smd,12px)}
.solchat-wait i{display:block;width:6px;height:6px;border-radius:var(--kit-radius-round);background:var(--kit-colors-neutral-60-solid);animation:solchat-dot 1s ease-in-out infinite}
.solchat-wait i:nth-child(2){animation-delay:.15s}
.solchat-wait i:nth-child(3){animation-delay:.3s}
@keyframes solchat-dot{0%,100%{opacity:.3}50%{opacity:1}}

/* up to four questions for the screen in view */
.solchat-sug{flex:none;display:flex;flex-wrap:wrap;gap:var(--kit-space-xs);padding:0 var(--kit-space-md) var(--kit-space-sm)}
.solchat-chip{border:1px solid var(--kit-colors-border-basic);background:var(--kit-colors-surface-primary);color:var(--kit-colors-text-primary);font:var(--kit-typography-sm);border-radius:var(--kit-radius-round);
  padding:var(--kit-space-xs) var(--kit-space-smd,12px);cursor:pointer;text-align:start}
.solchat-chip:hover{border-color:var(--kit-colors-blue);color:var(--kit-colors-blue)}
.solchat-chip:disabled{opacity:.55;cursor:default}

/* the box: always there */
.solchat-form{flex:none;display:flex;align-items:flex-end;gap:var(--kit-space-sm);margin:0 var(--kit-space-md) var(--kit-space-md);padding:var(--kit-space-xs) var(--kit-space-xs) var(--kit-space-xs) var(--kit-space-smd,12px);
  border:1px solid var(--kit-colors-border-interactive);border-radius:var(--kit-radius-400);background:var(--kit-colors-surface-primary)}
.solchat-form:focus-within{border-color:var(--kit-colors-blue);box-shadow:0 0 0 2px var(--kit-colors-blue-20-solid)}
.solchat-in{flex:1 1 auto;min-width:0;border:0;outline:none;resize:none;background:none;font:var(--kit-typography-md);color:var(--kit-colors-text-primary);padding:var(--kit-space-xs) 0;max-height:96px;field-sizing:content}
.solchat-in::placeholder{color:var(--kit-colors-text-tertiary)}
.solchat-send{flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:0;border-radius:var(--kit-radius-round);background:var(--kit-colors-blue);color:var(--kit-colors-white);cursor:pointer}
.solchat-send svg{width:16px;height:16px;fill:currentColor}
.solchat-send:disabled{opacity:.4;cursor:default}
.solchat.is-mobile .solchat-form{margin-bottom:calc(var(--kit-space-md) + env(safe-area-inset-bottom, 0px))}
.solchat.is-mobile .solchat-in{font:var(--kit-typography-lg)}      /* 16 px: a phone does not zoom the page when the box is tapped */
@media (prefers-reduced-motion: reduce){.solchat-wait i{animation:none;opacity:.7}}
