.chat-details-modal {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 24px 16px 0;
  border-radius: 32px 32px 0 0;
  background-color: var(--background-fade-scrim);
  transition: transform var(--transition-standard);
}

.chat-details-modal > .modal-title-row {
  margin-bottom: 32px;
}

.chat-details-modal__content {
  flex: 1 0 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-right: -16px;
  padding-right: 16px;
  padding-bottom: 24px;
  overflow-x: hidden;
  overflow-y: auto;
}

.chat-details-modal__box {
  box-sizing: border-box;
  width: 100%;
  flex-shrink: 0;
  background-color: var(--background-modal-box);
  border: 1px solid var(--border-modal-box);
  border-radius: 24px;
}

/* Height is fixed at 64px (matching the CHAT TYPE box) rather than left to
   the input's own content, because Figma's ModalInput component (node
   307:17156) explicitly pins its "Active"/"filled" states to h-64 with
   justify-center — the box height doesn't grow/shrink with focus state, only
   its border color does. */
.chat-details-modal__box--input {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  overflow: hidden;
  transition: border-color var(--transition-standard);
}

.chat-details-modal__box--input:focus-within {
  border-color: var(--border-input-focus);
}

.chat-name-input {
  flex: 1 0 0;
  min-width: 0;
  box-sizing: border-box;
  border: none;
  background: none;
  outline: none;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.15;
  color: var(--text-primary);
  /* Figma's Active state shows a pink 1.5px cursor bar, not the browser's
     default caret color — caret-color is the native way to get that without
     hand-building and position-tracking a custom cursor element. */
  caret-color: var(--background-accent);
}

.chat-name-input::placeholder {
  color: var(--text-secondary);
}
