/* ─── Jarvis Voice Console - Main Stylesheet ─── */
/* Entry point that imports all modular CSS components */

/* Design Tokens */
@import "./_variables.css";

/* Reset & Base */
@import "./_reset.css";

/* Components */
@import "./components/_topbar.css";
@import "./components/_panels.css";
@import "./components/_voice.css";
@import "./components/_history.css";
@import "./components/_news.css";
@import "./components/_modals.css";

/* ─── Chat View Specific (for the dedicated chat view) ─── */
#chat-layout {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  overflow: hidden;
}

#chat-sessions-wrap {
  width: 100%;
  box-sizing: border-box;
  padding: 12px !important;
}

#chat-sessions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 112px;
  overflow-y: auto;
  margin: 0 !important;
}

#chat-new {
  width: 100% !important;
  margin-bottom: 8px !important;
}

#chat-panel {
  width: 100%;
  box-sizing: border-box;
  height: min(68dvh, 540px) !important;
  min-height: 360px;
  padding: 14px !important;
  overflow: hidden;
}

#chat-feed {
  padding: 10px 2px;
  overflow-x: hidden;
}

#chat-msg {
  max-width: calc(100% - 12px);
  overflow-wrap: anywhere;
  word-break: break-word;
}

#chat-input-wrap {
  flex-shrink: 0;
  align-items: center;
}

#chat-input {
  min-width: 0;
  font-size: 16px;
  padding: 10px 11px;
}

#chat-send {
  width: 42px;
  min-width: 42px;
}

#chat-status {
  max-width: 45%;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  #chat-sessions {
    grid-template-columns: 1fr;
    max-height: 96px;
  }

  #chat-panel {
    height: 62dvh !important;
    min-height: 340px;
  }

  #chat-heading {
    padding-bottom: 10px;
  }

  #chat-feed {
    gap: 9px;
  }

  #chat-msg {
    font-size: 0.84rem;
    padding: 10px 11px;
  }
}

@media (max-width: 420px) {
  #chat-sessions {
    grid-template-columns: 1fr;
    max-height: 96px;
  }

  #chat-panel {
    height: 62dvh !important;
    min-height: 340px;
  }
}