/* [project]/ton-ai/src/app/globals.css [app-client] (css) */
:root {
  --tg-bg: #0e1621;
  --tg-panel: #17212b;
  --tg-panel-alt: #1f2c39;
  --tg-surface: #22303d;
  --tg-border: #ffffff14;
  --tg-text: #e6edf3;
  --tg-muted: #8da2b5;
  --tg-accent: #2ea6ff;
  --tg-accent-soft: #2ea6ff2e;
  --tg-user: #2b5278;
  --tg-bot: #182533;
  --tg-success: #63d391;
  --tg-warn: #ffc857;
  --tg-danger: #ff7a7a;
  --tg-shadow: 0 24px 80px #00000059;
  --tg-radius-lg: 24px;
  --tg-radius-md: 18px;
  --tg-radius-sm: 14px;
  --font-sans: "SF Pro Display", "Segoe UI", sans-serif;
  --app-height: 100dvh;
  --app-top-offset: calc(env(safe-area-inset-top, 0px)  + 52px);
  --chat-stage-bg: linear-gradient(#0e1621e0, #0e1621e0), radial-gradient(circle at 20% 20%, #2ea6ff14, transparent 24%), radial-gradient(circle at 80% 0%, #63d3910f, transparent 22%);
}

* {
  box-sizing: border-box;
}

html {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  height: 100%;
  min-height: 100dvh;
  background-color: var(--tg-bg);
  background-image: none;
  width: 100%;
  min-height: -webkit-fill-available;
}

body {
  width: 100%;
  height: 100%;
  min-height: var(--app-height);
  min-height: 100dvh;
  overscroll-behavior: none;
  min-height: -webkit-fill-available;
  font-family: var(--font-sans);
  background-color: var(--tg-bg);
  color: var(--tg-text);
  background-image: none;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

body:before {
  content: "";
  z-index: -1;
  pointer-events: none;
  background-color: var(--tg-bg);
  background-image: none;
  position: fixed;
  inset: 0;
}

.app-root-bg {
  z-index: -2;
  pointer-events: none;
  background-color: var(--tg-bg);
  background-image: none;
  position: fixed;
  inset: 0;
}

.app-root-bg:after {
  content: "";
  height: calc(132px + env(safe-area-inset-bottom, 0px));
  background-color: var(--tg-bg);
  background-image: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

nextjs-portal, [data-next-badge-root], [data-nextjs-toast], [data-next-mark], [data-nextjs-dialog-overlay], [data-nextjs-dialog], [data-nextjs-dev-tools-button], [data-nextjs-dev-tools-overlay] {
  display: none !important;
}

a {
  color: inherit;
}

button, input, textarea {
  font: inherit;
}

.app-shell {
  width: 100%;
  height: var(--app-height);
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  min-height: var(--app-height);
  background-color: var(--tg-bg);
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background-image: none;
  display: block;
}

.sidebar-backdrop {
  z-index: 19;
  background: #020a1085;
  border: 0;
  position: fixed;
  inset: 0;
}

.chat-sidebar {
  z-index: 20;
  width: min(320px, 84vw);
  padding: calc(env(safe-area-inset-top, 0px)  + 18px) 14px calc(env(safe-area-inset-bottom, 0px)  + 18px);
  box-shadow: var(--tg-shadow);
  background: linear-gradient(#101823fa, #0c131cfa);
  border-right: 1px solid #ffffff12;
  flex-direction: column;
  gap: 14px;
  transition: transform .18s;
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-104%);
}

.chat-sidebar.open {
  transform: translateX(0);
}

.chat-sidebar-header {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.sidebar-new-chat {
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
}

.chat-thread-list {
  gap: 8px;
  display: grid;
  overflow-y: auto;
}

.chat-thread-item {
  text-align: left;
  width: 100%;
  color: var(--tg-text);
  background: #ffffff08;
  border: 1px solid #ffffff0d;
  border-radius: 16px;
  gap: 6px;
  padding: 14px;
  display: grid;
}

.chat-thread-item strong {
  font-size: 14px;
  line-height: 1.35;
}

.chat-thread-item span {
  color: var(--tg-muted);
  font-size: 12px;
}

.chat-thread-item.active {
  background: #2ea6ff1f;
  border-color: #2ea6ff2e;
}

.chat-frame {
  background-color: var(--tg-bg);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  width: 100%;
  height: var(--app-height);
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  min-height: var(--app-height);
  padding-top: var(--app-top-offset);
  background-image: none;
  border: 0;
  border-radius: 0;
  flex-direction: column;
  display: flex;
  position: relative;
  overflow: clip;
}

.panel-card {
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-md);
  background: #ffffff08;
  padding: 18px;
}

.chat-header {
  border-bottom: 0;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  display: flex;
}

.chat-title {
  flex: auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.sidebar-toggle {
  background: #ffffff0a;
  border: 0;
  border-radius: 10px;
  flex: 0 0 34px;
  place-items: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-grid;
}

.sidebar-toggle span {
  background: #d4e1ec;
  border-radius: 999px;
  width: 16px;
  height: 2px;
  display: block;
}

.chat-title h1, .chat-header h2 {
  margin: 0;
}

.chat-title h1 {
  font-size: 16px;
  line-height: 1.1;
}

.avatar {
  color: #051018;
  background: linear-gradient(135deg, #2ea6ff 0%, #63d391 100%);
  border-radius: 10px;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 11px;
  font-weight: 700;
  display: grid;
}

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

.status-row {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.pill {
  background: var(--tg-accent-soft);
  color: #b7e1ff;
  border: 1px solid #2ea6ff26;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  display: inline-flex;
}

.wallet-control {
  flex: none;
  margin-left: auto;
}

.wallet-summary {
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  display: flex;
}

.wallet-ton-connect-native {
  flex: 0 0 172px;
  align-items: center;
  width: 172px;
  display: flex;
}

.wallet-ton-connect-native button {
  border-radius: 999px;
  justify-content: center;
  width: 100%;
  min-height: 40px;
}

.wallet-ton-connect-native [data-tc-connect-button="true"] {
  border-radius: 999px;
  width: 100%;
}

.wallet-connect-fallback {
  border-radius: 999px;
  flex: 0 0 172px;
  justify-content: center;
  width: 172px;
  min-height: 40px;
}

.wallet-balance-pill {
  color: #d8f5e3;
  background: #ffffff0a;
  border: 0;
  border-radius: 999px;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
}

.message-list {
  min-height: 0;
  padding: 24px 24px calc(116px + env(safe-area-inset-bottom, 0px));
  background-color: var(--tg-bg);
  background-image: none;
  flex-direction: column;
  flex: auto;
  gap: 14px;
  display: flex;
  overflow-y: auto;
}

.message {
  border: 0;
  border-radius: 20px;
  min-width: 0;
  max-width: min(720px, 82%);
  padding: 14px 16px;
  animation: .18s ease-out rise-in;
}

.message.user {
  background: linear-gradient(#2b5278f5, #264a6cf5);
  border-bottom-right-radius: 8px;
  align-self: flex-end;
}

.message.assistant {
  background: linear-gradient(#182533f5, #131f2bf5);
  border-bottom-left-radius: 8px;
  align-self: flex-start;
}

.message-meta {
  min-width: 0;
  color: var(--tg-muted);
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  display: flex;
}

.message-meta span {
  min-width: 0;
}

.message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 0;
  line-height: 1.45;
}

.message-text {
  gap: 8px;
  display: grid;
}

.composer {
  z-index: 5;
  padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  background: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.composer-form {
  pointer-events: auto;
  background: none;
  align-items: flex-end;
  gap: 14px;
  display: flex;
}

.composer textarea {
  resize: none;
  min-width: 0;
  min-height: 56px;
  max-height: 160px;
  color: var(--tg-text);
  -webkit-backdrop-filter: blur(12px);
  background: #182431ad;
  border: 0;
  border-radius: 28px;
  outline: none;
  flex: auto;
  padding: 17px 20px;
  overflow-y: auto;
}

.composer textarea:focus, .ghost-input:focus {
  box-shadow: none;
}

.primary-button, .secondary-button, .composer-send-button {
  cursor: pointer;
  border: 0;
  transition: transform .14s, opacity .14s;
}

.composer-send-button {
  color: #041018;
  width: 56px;
  height: 56px;
  box-shadow: none;
  background: linear-gradient(135deg, #2ea6ff 0%, #2196f3 100%);
  border-radius: 999px;
  flex: 0 0 56px;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.composer-send-icon {
  font-size: 20px;
  line-height: 1;
  transform: translateX(1px);
}

.primary-button {
  color: #041018;
  background: linear-gradient(135deg, #2ea6ff 0%, #2196f3 100%);
  font-weight: 700;
}

.secondary-button {
  color: var(--tg-text);
  border: 1px solid var(--tg-border);
  background: #ffffff0d;
}

.primary-button:hover, .secondary-button:hover, .composer-send-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled, .secondary-button:disabled, .composer-send-button:disabled {
  opacity: .55;
  cursor: default;
  transform: none;
}

.wallet-grid, .stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.stat-tile {
  border: 1px solid var(--tg-border);
  background: #ffffff08;
  border-radius: 16px;
  padding: 12px;
}

.example-chip {
  text-align: left;
  width: 100%;
  color: var(--tg-text);
  border: 1px solid var(--tg-border);
  cursor: pointer;
  background: #ffffff08;
  border-radius: 16px;
  padding: 14px;
  display: block;
}

.ghost-input {
  border: 1px solid var(--tg-border);
  width: 100%;
  color: var(--tg-text);
  background: #ffffff08;
  border-radius: 14px;
  outline: none;
  padding: 12px 14px;
}

.intent-card {
  overflow-wrap: anywhere;
  word-break: break-word;
  background: #2ea6ff14;
  border: 0;
  border-radius: 16px;
  min-width: 0;
  margin-top: 12px;
  padding: 12px;
  font-size: 14px;
}

#tc-widget-root, #__next {
  background-color: var(--tg-bg);
  background-image: none;
}

#tc-widget-root {
  z-index: 10000;
  pointer-events: none;
  position: fixed;
  inset: 0;
}

#tc-widget-root > * {
  pointer-events: auto;
}

[data-tc-modal], [data-tc-dropdown], [data-tc-confirm-modal], [data-tc-actions-modal-container], [data-tc-wallets-modal-container], [data-tc-list-notifications] {
  z-index: 10001 !important;
  pointer-events: auto !important;
  position: fixed !important;
  inset: 0 !important;
}

[data-tc-modal] *, [data-tc-dropdown] *, [data-tc-confirm-modal] *, [data-tc-actions-modal-container] *, [data-tc-wallets-modal-container] *, [data-tc-list-notifications] * {
  pointer-events: auto !important;
}

.intent-card strong {
  color: #b7e1ff;
}

.portfolio-card {
  background: linear-gradient(#ffffff0f, #ffffff08);
  border: 1px solid #ffffff14;
  border-radius: 18px;
  margin-top: 12px;
  padding: 14px;
}

.portfolio-card strong {
  color: var(--tg-text);
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.45;
  display: block;
}

.portfolio-card-accent {
  background: linear-gradient(#2ea6ff24, #2ea6ff14);
  border-color: #2ea6ff38;
}

.portfolio-label {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8fb7d4;
  font-size: 12px;
  display: inline-block;
}

.portfolio-token-list {
  gap: 10px;
  margin-top: 10px;
  display: grid;
}

.portfolio-token-head, .portfolio-token-row {
  grid-template-columns: minmax(0, 1.4fr) minmax(72px, .9fr) minmax(72px, .9fr) minmax(88px, 1fr);
  align-items: center;
  gap: 10px;
  display: grid;
}

.portfolio-token-head {
  color: #8fb7d4;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 10px;
  padding: 0 4px;
  font-size: 11px;
}

.portfolio-token-row {
  overflow-wrap: anywhere;
  background: #ffffff09;
  border: 1px solid #ffffff0d;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
}

.portfolio-token-row-fallback {
  display: block;
}

.portfolio-token-cell {
  text-align: right;
  min-width: 0;
}

.portfolio-token-cell-symbol {
  text-align: left;
  color: var(--tg-text);
  font-weight: 600;
}

.portfolio-token-name {
  color: var(--tg-text);
  font-weight: 600;
}

.portfolio-token-ticker {
  color: #8fb7d4;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
}

.portfolio-token-cell-total {
  color: #b7e1ff;
}

.portfolio-expand-button {
  border-radius: 14px;
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
}

.message-actions {
  margin-top: 12px;
}

.message-action-button {
  border-radius: 14px;
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  :root {
    --app-top-offset: calc(env(safe-area-inset-top, 0px)  + 48px);
  }

  .app-shell {
    height: var(--app-height);
  }

  .chat-frame {
    height: var(--app-height);
    border-radius: 0;
  }

  .chat-header, .message-list, .composer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .message {
    max-width: 92%;
    padding: 12px 14px;
  }

  .message-list {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }

  .composer-form {
    gap: 10px;
  }

  .wallet-grid, .stat-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-token-head {
    display: none;
  }

  .portfolio-token-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .portfolio-token-cell-symbol, .portfolio-token-cell-total {
    text-align: left;
  }
}

/*# sourceMappingURL=ton-ai_src_app_globals_3e0c5d10.css.map*/