/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=Funnel+Display:wght@700&display=swap');

:root {
  --bg: #0D0D0D;
  --bg2: #1C1C1C;
  --text: #F1F1EF;
  --muted: rgba(241, 241, 239, 0.6);
  --accent: #8CF2C3;
  --accent-a: rgba(140, 242, 195, 0.2);
  --border: rgba(241, 241, 239, 0.2);
  --border-accent: #8CF2C3;
  --danger: #ff6b6b;
  --warn: #ffd166;
  --ok: #8CF2C3;
  --dark: #011439;
  --radius: 4px;
  /* Invite screen (Figma) */
  --invite-bg: #1C1C1C;
  --invite-accent: #8CF2C3;
  --invite-accent-a: rgba(140, 242, 195, 0.2);
  --invite-text: #F1F1EF;
  --invite-accent-placeholder: rgba(140, 242, 195, 0.2);
  --invite-error: #FF456B;
  --invite-error-bg: #2d1518;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --display: 'Funnel Display', sans-serif;
  --sans: 'IBM Plex Mono', monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: var(--mono), monospace;
  font-size: 16px;
  line-height: 21px;
  background: var(--bg);
  color: var(--text);
}

/* Dark scrollbars to match theme (macOS-style dark) */
* {
  scrollbar-color: var(--border) var(--bg2);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--bg2);
}

*::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(241, 241, 239, 0.35);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100%;
}

.appLayout {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100vh;
}

.navPanel {
  position: relative;
  height: 100vh;
  border-right: 1px solid var(--border-accent);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.25s ease;
}

@media (max-width: 980px) {
  .navPanel {
    width: 0;
    min-width: 0;
    border: none;
    overflow: visible;
  }
}

.contentPanel {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-width: 0;
}

.contentBody {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: auto;
  padding: 0;
}

/* Chat panel must fill height so message list doesn't collapse to 0 after deploy/update */
.contentBody.contentBodyChatFill {
  justify-content: flex-start;
  align-items: stretch;
}
.contentBody.contentBodyChatFill > * {
  flex: 1 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Settings: column fills viewport; Trading Wallet block grows to the bottom */
.contentBody.contentBodySettingsFill {
  justify-content: flex-start;
  align-items: stretch;
}
/* No display:flex here — settings .root uses display:block; flex here would override it (higher specificity than one module class). */
.contentBody.contentBodySettingsFill > * {
  flex: 1 1 auto;
  min-height: 0;
}

.contentBodyScroll {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 16px;
}

/* Unauthenticated new-chat screen (full viewport, no sidebar) */
.unauthScreen {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  background: #0D0D0D;
}

.unauthHeader {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  gap: 10px;
  height: 58px;
  flex: none;
}

.unauthLogo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  width: 148px;
  height: 38px;
}

.unauthLogo svg:first-of-type {
  width: 38px;
  height: 38px;
}

.unauthLogo .logoText {
  width: 106px;
  height: 32px;
}

.unauthLoginBtn {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px 12px;
  gap: 4px;
  height: 37px;
  background: var(--accent);
  color: var(--dark);
  border: none;
  font-family: var(--mono), monospace;
  font-size: 16px;
  line-height: 21px;
  cursor: pointer;
}

.unauthLoginBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.unauthLoginBtn svg {
  width: 20px;
  height: 20px;
}

.unauthMain {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1 1;
  padding: 0;
  gap: 16px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  align-self: stretch;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  background: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--border);
  padding: 8px 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: var(--mono), monospace;
  font-size: 14px;
}

.btn:hover {
  border-color: var(--accent);
}

.btnPrimary {
  background: var(--accent-a);
  border-color: var(--accent);
  color: var(--accent);
}

.btnLaunch {
  background: var(--accent);
  color: var(--dark);
  border: none;
  padding: 8px 12px;
  font-family: var(--mono), monospace;
  font-size: 16px;
  cursor: pointer;
}

.btnLaunch:hover {
  opacity: 0.9;
}

.btnDanger {
  border-color: rgba(255, 107, 107, 0.35);
  color: rgba(255, 107, 107, 0.95);
}

.btnRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.textArea {
  width: 100%;
  min-height: 44px;
  max-height: 160px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--bg2);
  color: var(--text);
  outline: none;
  font-family: var(--mono), monospace;
}

.textArea:focus {
  border-color: var(--accent);
}

.muted {
  color: var(--muted);
}

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(241, 241, 239, 0.22);
  border-top-color: var(--accent);
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

