/* 2026-04-08 — extracted from ai.ejs inline script style injection */

/* Core input box visibility fixes */
/* NOTE: .user-input display is managed exclusively via JS (welcome screen logic) */

/* Message container spacing */
#messages {
  padding-bottom: 24px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  max-height: none;
  min-height: 0;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
  .conversation {
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
  }

  .user-input {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    background: linear-gradient(to top, rgba(8, 13, 26, 0.98), rgba(8, 13, 26, 0.92)) !important;
    padding: 8px 10px 12px 10px !important;
    border-top: 1px solid rgba(251, 146, 60, 0.12);
    backdrop-filter: blur(20px);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    margin-top: auto;
    width: 100%;
  }

  .input-box {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    align-items: center;
    border-radius: 8px;
    margin: 0;
    width: 100%;
  }

  .composer-surface {
    padding: 8px 10px 8px 12px !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    gap: 8px !important;
    border-radius: 20px !important;
    width: 100%;
  }

  .composer-shell #message-input {
    padding: 8px 0 !important;
    min-height: 40px !important;
    flex: 1;
  }

  .composer-controls {
    margin-bottom: 2px;
  }

  .composer-disclaimer {
    margin-top: 8px !important;
    font-size: 0.75rem !important;
  }

  #send-button {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
  }
}
