/* Desktop-only resizing: the collapsed launcher and mobile layout stay unchanged. */
.chat-container > .tn-chat-resize { display: none; }
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .chat-container:not(.minimized) > .tn-chat-resize {
    display: grid;
    place-items: center;
    position: absolute;
    inset: 2px auto auto 2px;
    z-index: 2;
    width: 27px;
    height: 27px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: white;
    font: 20px/1 sans-serif;
    cursor: nwse-resize;
    touch-action: none;
    user-select: none;
  }
  .chat-container:not(.minimized) > .tn-chat-resize:hover { background: #ffffff26; }
  .chat-container > .tn-chat-resize:focus-visible { outline: 2px solid white; outline-offset: -3px; }
  .chat-container:not(.minimized), .tn-modern .chat-container:not(.minimized) {
    width: var(--tn-chat-width, 246px);
    height: var(--tn-chat-height, min(510px, calc(100dvh - var(--chat-bottom-offset, 20px) - 20px)));
    max-width: calc(100vw - 40px);
    max-height: calc(100dvh - var(--chat-bottom-offset, 20px) - 20px);
  }
  .chat-container:not(.minimized) .chat-header, .tn-modern .chat-container:not(.minimized) .chat-header { padding-left: 35px; }
  .chat-container .messages { min-height: 0; }
  .chat-container .chat-header, .chat-container .chat-form { flex-shrink: 0; }
  .chat-container.tn-chat-resizing { transition: none; user-select: none; }
}
