/* The root covers the visible page. Only the bottom-centred dialog takes the saved dimensions. */
#bizkt-night-chat-root[data-sheet-open][data-open="1"][data-side] {
  top: var(--sheet-y); left: var(--sheet-x); right: auto; bottom: auto;
  width: var(--sheet-viewport-w); max-width: none;
  height: var(--sheet-viewport-h); max-height: none;
  align-items: center; justify-content: flex-end;
  --sheet-min-height: 154px;
  --sheet-top-edge: max(0px, calc(100% - max(var(--sheet-height), var(--sheet-min-height))));
  background: linear-gradient(to bottom, rgb(14 34 28 / 8%) 0%, rgb(14 34 28 / 16%) var(--sheet-top-edge));
  overscroll-behavior: contain;
}
#bizkt-night-chat-root[data-sheet-open][data-open="1"][data-side] .bnc-panel {
  flex: 0 0 auto; width: var(--sheet-width); height: var(--sheet-height);
  max-height: 100%; max-width: 100%; min-height: min(var(--sheet-min-height), 100%);
  margin: 0; padding: 0; border: 0; border-radius: 22px 22px 0 0;
  box-shadow: 0 -.5px 0 1px rgb(255 255 255 / 82%), 0 -5px 22px rgb(18 46 35 / 17%);
  background: #f4f7f5;
  animation: none;
  container: bizkt-sheet / size;
}
#bizkt-night-chat-root[data-sheet-open][data-open] .bnc-header {
  position: relative; flex: 0 0 auto; gap: 12px;
  min-height: 84px; padding: 20px max(14px,env(safe-area-inset-right,0px)) 12px max(16px,env(safe-area-inset-left,0px));
  border-radius: 0; background: linear-gradient(125deg,#206849,#114632); color: #fff;
}
#bizkt-night-chat-root[data-sheet-open] .bnc-header::before {
  position: absolute; content: ""; width: 40px; height: 3px; border-radius: 2px;
  top: 8px; left: calc(50% - 20px); background: #9dbbae;
}
#bizkt-night-chat-root[data-sheet-open][data-open] .bnc-avatar {
  display: flex; width: 44px; height: 44px; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid #83a992; background: #e5eae6;
}
#bizkt-night-chat-root[data-sheet-open][data-open] .bnc-name {
  display: block; color: #fff; font-size: 20px; line-height: 1.35; letter-spacing: -.04em;
  overflow: visible; overflow-wrap: anywhere; word-break: keep-all; max-height: none;
}
#bizkt-night-chat-root[data-sheet-open][data-open] .bnc-kicker {
  display: block; margin-top: 2px; color: #dbeee5; font-size: 12px; line-height: 1.4;
}
#bizkt-night-chat-root[data-sheet-open][data-open] .bnc-ai-badge { display: none; }
#bizkt-night-chat-root[data-sheet-open] .bnc-sheet-badge {
  padding: 2px 6px; border-radius: 10px; background: #e4efe7; color: #24583c;
  font-size: 11px; font-weight: 650; line-height: 1.5;
}
#bizkt-night-chat-root[data-sheet-open][data-open] .bnc-close {
  width: 42px; height: 42px; min-height: 42px; flex: 0 0 42px; border-radius: 50%;
  background: #ffffff24; color: #fff; font-size: 25px;
}
#bizkt-night-chat-root[data-sheet-open][data-open] .bnc-body {
  background: #f4f7f5; padding: 20px 17px; color: #21372a;
  scrollbar-color: #b2c6ba transparent;
}
#bizkt-night-chat-root[data-sheet-open] .bnc-message-avatar { display: none; }
#bizkt-night-chat-root[data-sheet-open] .bnc-message { max-width: 100%; }
#bizkt-night-chat-root[data-sheet-open] .bnc-message-user { max-width: 88%; }
#bizkt-night-chat-root[data-sheet-open] .bnc-message-label {
  margin: 0 0 7px 2px; font-size: 12px; font-weight: 650;
}
#bizkt-night-chat-root[data-sheet-open][data-open] .bnc-message-text {
  padding: 12px 15px; border: 1px solid #d8e2da; border-radius: 15px;
  background: #fff; color: #203729;
  line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; white-space: pre-wrap;
}
#bizkt-night-chat-root[data-sheet-open][data-open] .bnc-message-user .bnc-message-text {
  background: #dcf1e3; border-color: #c3dfcc;
}
#bizkt-night-chat-root[data-sheet-open][data-open] .bnc-composer {
  align-items: flex-end; gap: 8px; border-radius: 0; background: #fff;
  border-top: 1px solid #dae2dc;
  padding: 10px max(12px,env(safe-area-inset-right,0px)) max(10px,env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));
}
#bizkt-night-chat-root[data-sheet-open][data-sheet-typing="1"] .bnc-composer { padding-bottom: 10px; }
#bizkt-night-chat-root[data-sheet-open][data-open] .bnc-input {
  min-height: 44px; max-height: 88px; padding: 9px 12px; border: 1px solid #c7d4cb;
  border-radius: 14px; background: #f6f8f6; color: #293e32; font: inherit; font-size: 16px; line-height: 1.5;
}
#bizkt-night-chat-root[data-sheet-open][data-open] .bnc-input:focus {
  border-color: #337454; outline: 1px solid #337454; outline-offset: -1px; background: #fff;
}
#bizkt-night-chat-root[data-sheet-open][data-open] .bnc-send {
  flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; border-radius: 13px;
  background: #226545; color: #fff;
}
#bizkt-night-chat-root[data-sheet-open][data-open] .bnc-send:disabled { opacity: 1; background: #e0e8e2; color: #74877a; }
@container bizkt-sheet (max-width: 280px) {
  #bizkt-night-chat-root[data-sheet-open][data-open] .bnc-header { padding-left: 10px; padding-right: 7px; gap: 6px; }
  #bizkt-night-chat-root[data-sheet-open][data-open] .bnc-avatar { width: 29px; height: 29px; }
  #bizkt-night-chat-root[data-sheet-open][data-open] .bnc-name { font-size: 16px; }
  #bizkt-night-chat-root[data-sheet-open][data-open] .bnc-body { padding: 12px 8px; }
}
@container bizkt-sheet (max-height: 275px) {
  #bizkt-night-chat-root[data-sheet-open][data-open] .bnc-header { min-height: 44px; padding-top: 3px; padding-bottom: 3px; }
  #bizkt-night-chat-root[data-sheet-open] .bnc-header::before,
  #bizkt-night-chat-root[data-sheet-open][data-open] .bnc-kicker { display: none; }
  #bizkt-night-chat-root[data-sheet-open][data-open] .bnc-avatar { width: 30px; height: 30px; }
  #bizkt-night-chat-root[data-sheet-open][data-open] .bnc-name { font-size: 16px; }
  #bizkt-night-chat-root[data-sheet-open][data-open] .bnc-body { padding-top: 6px; padding-bottom: 6px; }
  #bizkt-night-chat-root[data-sheet-open][data-open] .bnc-composer { padding-top: 3px; padding-bottom: 3px; }
  #bizkt-night-chat-root[data-sheet-open][data-open] .bnc-input { max-height: 44px; }
  #bizkt-night-chat-root[data-sheet-open] .bncp-self { padding-block: 0; }
}
@container bizkt-sheet (max-height: 190px) {
  #bizkt-night-chat-root[data-sheet-open] .bnc-jump {
    position: absolute; top: 48px; right: 5px; z-index: 1;
    min-height: 26px; margin: 0; padding: 2px 6px;
  }
}
