:root {
  color-scheme: light;
  font-family:
    Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #101114;
  background: #f7f8fb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgb(255 255 255 / 96%) 0 18%, transparent 19%),
    radial-gradient(circle at 88% 18%, rgb(217 227 255 / 44%) 0 16%, transparent 17%),
    linear-gradient(135deg, #ffffff 0%, #f5f7fb 55%, #eef2f8 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

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

.glass-panel,
.glass-button {
  border: 1px solid rgb(255 255 255 / 72%);
  background: rgb(255 255 255 / 52%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 80%),
    0 22px 70px rgb(28 36 52 / 10%);
  backdrop-filter: blur(22px);
}

.glass-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  color: #15171b;
  cursor: pointer;
  font-weight: 850;
  padding: 0 18px;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.glass-button:hover,
.glass-button:focus-visible {
  background: rgb(255 255 255 / 82%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 95%),
    0 18px 40px rgb(28 36 52 / 14%);
  outline: none;
  transform: translateY(-1px);
}

.eyebrow {
  margin: 0 0 10px;
  color: #727985;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.muted-text {
  color: #5f6672;
  line-height: 1.7;
}

.login-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 24px;
}

.auth-page::before {
  position: fixed;
  top: 0;
  right: 0;
  width: min(58vw, 560px);
  height: min(34vw, 320px);
  content: "";
  background: linear-gradient(135deg, rgb(255 255 255 / 88%), rgb(229 236 250 / 54%));
  clip-path: polygon(24% 0, 100% 0, 100% 100%);
  pointer-events: none;
}

.auth-switch {
  position: fixed;
  z-index: 5;
  top: 22px;
  right: 22px;
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 36%);
  backdrop-filter: blur(18px);
}

.auth-switch .glass-button {
  min-height: 40px;
  padding: 0 16px;
}

.auth-switch .is-active {
  background: rgb(17 17 17 / 88%);
  color: #ffffff;
}

.bubble {
  position: absolute;
  border-radius: 999px;
  background: rgb(255 255 255 / 46%);
  box-shadow:
    inset 0 0 32px rgb(255 255 255 / 86%),
    0 34px 90px rgb(31 43 62 / 12%);
}

.bubble-one {
  top: 9%;
  left: 10%;
  width: 180px;
  height: 180px;
}

.bubble-two {
  right: 8%;
  bottom: 13%;
  width: 250px;
  height: 250px;
}

.bubble-three {
  top: 17%;
  right: 22%;
  width: 92px;
  height: 92px;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  border-radius: 34px;
  padding: clamp(28px, 6vw, 44px);
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 22px;
  background: #111111;
  color: #ffffff;
  font-weight: 900;
}

.login-card h1 {
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 3.8rem);
  line-height: 1;
}

.login-card .muted-text {
  margin: 18px 0 28px;
}

.form-message {
  display: none;
  margin: 0 0 18px;
  border: 1px solid rgb(255 63 95 / 18%);
  border-radius: 16px;
  background: rgb(255 63 95 / 8%);
  color: #b4233d;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
}

.form-message:not(:empty) {
  display: block;
}

.form-message.is-success {
  border-color: rgb(10 157 101 / 18%);
  background: rgb(10 157 101 / 8%);
  color: #08784e;
}

label {
  display: block;
  margin: 18px 0 8px;
  color: #252930;
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgb(210 218 229 / 86%);
  border-radius: 999px;
  background: rgb(255 255 255 / 72%);
  color: #111111;
  outline: none;
  padding: 0 20px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 86%);
}

textarea {
  min-height: 132px;
  border-radius: 24px;
  padding: 16px 20px;
  resize: vertical;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #15171b 50%),
    linear-gradient(135deg, #15171b 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 23px,
    calc(100% - 16px) 23px;
  background-repeat: no-repeat;
  background-size: 6px 6px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #111111;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 90%),
    0 0 0 5px rgb(17 17 17 / 8%);
}

.primary-button {
  width: 100%;
  margin-top: 26px;
  background: rgb(17 17 17 / 88%);
  color: #ffffff;
}

.auth-helper {
  margin: 18px 0 0;
  color: #656d79;
  font-size: 0.93rem;
  line-height: 1.6;
  text-align: center;
}

.auth-helper a {
  color: #111111;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  padding: clamp(18px, 4vw, 42px);
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto 24px;
}

.top-title {
  flex: 1 1 auto;
}

.top-title h1 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.4rem);
}

.menu-toggle {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #15171b;
}

.side-menu {
  position: fixed;
  z-index: 30;
  top: 18px;
  bottom: 18px;
  left: 18px;
  width: min(82vw, 300px);
  transform: translateX(calc(-100% - 26px));
  border-radius: 24px;
  padding: 22px;
  transition: transform 220ms ease;
}

.menu-open .side-menu {
  transform: translateX(0);
}

.menu-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: none;
  background: rgb(255 255 255 / 34%);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.menu-open .menu-backdrop {
  display: block;
}

.menu-profile,
.profile-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-profile {
  margin-bottom: 26px;
}

.profile-box {
  min-width: 210px;
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  font-weight: 900;
}

.menu-profile span,
.profile-box span {
  display: block;
  color: #7b8290;
  font-size: 0.74rem;
  font-weight: 800;
}

.menu-profile strong,
.profile-box strong {
  display: block;
  max-width: 170px;
  overflow: hidden;
  margin-top: 4px;
  color: #15171b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-nav {
  display: grid;
  gap: 10px;
}

.menu-nav .glass-button {
  justify-content: flex-start;
  width: 100%;
}

.menu-nav .is-active {
  background: rgb(17 17 17 / 88%);
  color: #ffffff;
}

.main-hero,
.market-page-hero,
.news-hero,
.api-hero,
.terms-section,
.automation-section,
.news-dashboard,
.market-window,
.chart-board,
.api-panel {
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  border-radius: 24px;
  padding: clamp(24px, 5vw, 48px);
}

.main-hero,
.market-page-hero,
.news-hero,
.api-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.main-hero h2,
.market-page-hero h2,
.news-hero h2,
.api-hero h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.05;
}

.main-hero p:not(.eyebrow),
.market-page-hero p:not(.eyebrow),
.news-hero p:not(.eyebrow),
.api-hero p:not(.eyebrow) {
  max-width: 680px;
  color: #5e6672;
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-action {
  min-width: 128px;
}

.hero-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.news-status {
  min-width: 220px;
  border-radius: 20px;
  background: rgb(255 255 255 / 44%);
  padding: 18px;
}

.news-status span,
.news-status small {
  display: block;
  color: #737b88;
  font-size: 0.8rem;
  font-weight: 800;
}

.news-status strong {
  display: block;
  margin: 8px 0;
  font-size: 1.05rem;
}

.api-status-card {
  min-width: 240px;
  border-radius: 20px;
  background: rgb(255 255 255 / 44%);
  padding: 18px;
}

.api-status-card span,
.api-status-card small {
  display: block;
  color: #737b88;
  font-size: 0.8rem;
  font-weight: 800;
}

.api-status-card strong {
  display: block;
  margin: 8px 0;
  font-size: 1.05rem;
}

.definition-grid,
.terms-grid,
.news-category-grid,
.macro-explain-grid,
.market-card-grid,
.automation-grid,
.flow-grid,
.endpoint-grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  gap: 18px;
}

.definition-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.definition-card {
  border-radius: 22px;
  padding: 24px;
}

.definition-card span {
  color: #777f8d;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.definition-card h3 {
  margin: 14px 0 12px;
  font-size: 1.35rem;
}

.definition-card p,
.terms-grid p {
  margin: 0;
  color: #626a76;
  line-height: 1.7;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2,
.market-window h2,
.chart-board h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.4rem);
}

.terms-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.terms-grid article,
.macro-explain-grid article,
.automation-grid article,
.flow-grid article,
.endpoint-grid article,
.key-preview article {
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 18px;
  background: rgb(255 255 255 / 38%);
  padding: 18px;
}

.terms-grid strong,
.macro-explain-grid strong,
.automation-grid strong,
.flow-grid strong,
.endpoint-grid strong,
.key-preview strong,
.api-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.automation-grid p,
.flow-grid p,
.api-note p {
  margin: 0;
  color: #626a76;
  line-height: 1.7;
}

.news-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-column {
  min-width: 0;
}

.news-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.news-column-header h3 {
  margin: 0;
  font-size: 1.18rem;
}

.news-column-header span {
  color: #7b8290;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.news-list {
  display: grid;
  gap: 12px;
}

.wide-news-list {
  margin-top: 18px;
}

.news-card {
  display: grid;
  gap: 9px;
  border-radius: 18px;
  color: #15171b;
  padding: 18px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.news-card:hover,
.news-card:focus-visible {
  border-color: rgb(17 17 17 / 16%);
  outline: none;
  transform: translateY(-2px);
}

.news-card span {
  color: #747b88;
  font-size: 0.78rem;
  font-weight: 850;
}

.news-card strong {
  font-size: 1.03rem;
  line-height: 1.45;
}

.news-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  color: #626a76;
  line-height: 1.6;
}

.news-card small {
  color: #8a909b;
  font-weight: 750;
}

.macro-explain-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.automation-grid,
.flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-grid span,
.endpoint-grid span,
.key-preview span {
  display: block;
  margin-bottom: 10px;
  color: #777f8d;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.endpoint-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.endpoint-grid strong {
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.api-layout {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  gap: 18px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.api-layout .api-panel {
  width: 100%;
  margin: 0;
}

.form-row {
  display: grid;
  gap: 14px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.secret-field {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.icon-button {
  min-width: 70px;
  min-height: 54px;
}

.checkbox-grid {
  display: grid;
  margin-top: 18px;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checkbox-card {
  display: flex;
  align-items: center;
  min-height: 54px;
  gap: 10px;
  margin: 0;
  border: 1px solid rgb(210 218 229 / 74%);
  border-radius: 18px;
  background: rgb(255 255 255 / 46%);
  cursor: pointer;
  padding: 0 14px;
}

.checkbox-card input {
  width: 18px;
  min-height: 18px;
  accent-color: #111111;
  box-shadow: none;
}

.checkbox-card span {
  color: #252930;
  font-size: 0.92rem;
  font-weight: 850;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button-row .primary-button,
.button-row .danger-button {
  width: auto;
  margin-top: 0;
}

.danger-button {
  background: rgb(255 63 95 / 10%);
  color: #b4233d;
}

.key-preview {
  display: grid;
  gap: 12px;
}

.key-preview strong {
  overflow-wrap: anywhere;
}

.inline-primary-button {
  width: auto;
  margin-top: 0;
}

.asset-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.asset-metric-grid,
.market-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.api-note {
  margin-top: 18px;
  border-radius: 18px;
  background: rgb(17 17 17 / 6%);
  padding: 18px;
}

.chat-list {
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.agent-input-form {
  margin-top: 18px;
}

.agent-chat-layout {
  display: grid;
  align-items: start;
  gap: 18px;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.7fr);
}

.agent-chat-panel {
  display: flex;
  min-height: min(760px, calc(100vh - 220px));
  flex-direction: column;
}

.agent-chat-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.agent-chat-heading .glass-button {
  min-height: 40px;
  flex: 0 0 auto;
}

.agent-chat-list {
  display: flex;
  min-height: 420px;
  max-height: none;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
  padding: 6px 4px 18px;
  scroll-behavior: smooth;
}

.agent-message {
  display: flex;
  width: 100%;
}

.agent-message.is-user {
  justify-content: flex-end;
}

.agent-message.is-agent {
  justify-content: flex-start;
}

.agent-bubble {
  max-width: min(720px, 88%);
  border: 1px solid rgb(210 218 229 / 76%);
  border-radius: 20px;
  background: rgb(255 255 255 / 54%);
  box-shadow: 0 18px 50px rgb(28 36 52 / 8%);
  padding: 16px;
}

.agent-message.is-user .agent-bubble {
  border-color: rgb(17 17 17 / 14%);
  background: rgb(17 17 17 / 86%);
  color: #ffffff;
}

.agent-message.is-loading .agent-bubble {
  opacity: 0.78;
}

.agent-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #727985;
  font-size: 0.76rem;
  font-weight: 850;
}

.agent-message.is-user .agent-message-meta {
  color: rgb(255 255 255 / 72%);
}

.agent-bubble p {
  margin: 0;
  color: inherit;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.agent-message-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.agent-message-summary article {
  border: 1px solid rgb(210 218 229 / 66%);
  border-radius: 16px;
  background: rgb(255 255 255 / 52%);
  padding: 12px;
}

.agent-message-summary span,
.agent-message-status {
  display: block;
  color: #727985;
  font-size: 0.72rem;
  font-weight: 850;
}

.agent-message-summary strong {
  display: block;
  margin-top: 5px;
  color: #252930;
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.agent-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.agent-message-actions .glass-button {
  min-height: 40px;
}

.agent-message-status {
  width: fit-content;
  margin-top: 14px;
  border-radius: 999px;
  background: rgb(17 17 17 / 8%);
  padding: 7px 10px;
  color: #252930;
}

.assistant-analysis-card {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  border: 1px solid rgb(210 218 229 / 66%);
  border-radius: 18px;
  background: rgb(255 255 255 / 50%);
  padding: 14px;
}

.assistant-analysis-card p {
  color: #626a76;
}

.assistant-response-stack {
  display: grid;
  gap: 10px;
}

.assistant-response-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgb(210 218 229 / 66%);
  border-radius: 16px;
  background: rgb(255 255 255 / 48%);
  padding: 12px;
}

.assistant-response-card.is-highlight {
  border-color: rgb(17 17 17 / 16%);
  background: rgb(255 255 255 / 62%);
}

.assistant-response-card.is-warning,
.assistant-analysis-card.is-empty {
  border-color: rgb(209 151 69 / 36%);
  background: rgb(255 248 232 / 66%);
}

.assistant-response-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.assistant-response-header span,
.assistant-response-header em,
.assistant-metric-badge b,
.assistant-news-list span {
  color: #727985;
  font-size: 0.72rem;
  font-weight: 850;
}

.assistant-response-header strong {
  flex: 1;
  color: #252930;
  line-height: 1.35;
}

.assistant-response-header em {
  border-radius: 999px;
  background: rgb(17 17 17 / 7%);
  padding: 6px 9px;
  font-style: normal;
  white-space: nowrap;
}

.assistant-markdown {
  display: grid;
  gap: 8px;
  color: #4f5865;
  font-size: 0.94rem;
  line-height: 1.58;
}

.assistant-markdown p,
.assistant-markdown ul,
.assistant-markdown ol {
  margin: 0;
}

.assistant-markdown ul,
.assistant-markdown ol {
  display: grid;
  gap: 6px;
  padding-left: 20px;
}

.assistant-markdown li {
  overflow-wrap: anywhere;
}

.assistant-markdown strong {
  color: #252930;
  font-weight: 850;
}

.assistant-metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assistant-metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border: 1px solid rgb(210 218 229 / 58%);
  border-radius: 999px;
  background: rgb(255 255 255 / 54%);
  padding: 7px 10px;
  color: #252930;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.assistant-data-empty {
  border: 1px dashed rgb(17 17 17 / 14%);
  border-radius: 14px;
  background: rgb(255 255 255 / 44%);
  padding: 12px;
}

.assistant-data-empty strong {
  display: block;
  color: #252930;
  line-height: 1.4;
}

.assistant-data-empty p {
  margin-top: 5px;
}

.assistant-news-list {
  display: grid;
  gap: 8px;
}

.assistant-news-list article {
  border: 1px solid rgb(210 218 229 / 58%);
  border-radius: 14px;
  background: rgb(255 255 255 / 48%);
  padding: 12px;
}

.assistant-news-list strong,
.assistant-news-list small {
  display: block;
  margin-top: 5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.assistant-news-list strong {
  color: #252930;
}

.assistant-news-list small {
  color: #727985;
}

.assistant-analysis-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.assistant-analysis-header span,
.assistant-breakdown-grid span,
.assistant-indicator-grid span,
.assistant-candidate-list span,
.assistant-trade-plan span,
.assistant-risk-list span,
.assistant-empty {
  color: #727985;
  font-size: 0.72rem;
  font-weight: 850;
}

.assistant-analysis-header strong {
  color: #252930;
  line-height: 1.4;
  text-align: right;
}

.assistant-score-row,
.assistant-candidate-list article {
  display: grid;
  align-items: center;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.assistant-score-bar {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: rgb(17 17 17 / 8%);
}

.assistant-score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #111111;
}

.assistant-breakdown-grid,
.assistant-indicator-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.assistant-breakdown-grid article,
.assistant-indicator-grid article,
.assistant-trade-plan {
  border: 1px solid rgb(210 218 229 / 58%);
  border-radius: 14px;
  background: rgb(255 255 255 / 48%);
  padding: 12px;
}

.assistant-breakdown-grid strong,
.assistant-indicator-grid strong,
.assistant-trade-plan strong {
  display: block;
  margin-top: 5px;
  color: #252930;
  line-height: 1.4;
}

.assistant-indicator-grid small,
.assistant-trade-plan small {
  display: block;
  margin-top: 5px;
  color: #727985;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.assistant-candidate-list {
  display: grid;
  gap: 8px;
}

.assistant-risk-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assistant-risk-list span {
  border-radius: 999px;
  background: rgb(17 17 17 / 7%);
  padding: 7px 10px;
  color: #252930;
}

.agent-composer {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin-top: 12px;
  border-top: 1px solid rgb(210 218 229 / 58%);
  background: linear-gradient(180deg, rgb(255 255 255 / 58%), rgb(255 255 255 / 82%));
  padding-top: 14px;
  backdrop-filter: blur(18px);
}

.quick-question-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.quick-question-bar .glass-button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.86rem;
}

.agent-composer-row {
  display: grid;
  align-items: end;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.agent-composer textarea {
  min-height: 58px;
  max-height: 180px;
  resize: vertical;
}

.agent-composer .primary-button {
  width: 92px;
  min-height: 58px;
  margin-top: 0;
}

.agent-composer button:disabled,
.quick-question-bar button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.agent-side-panel {
  display: grid;
  gap: 18px;
}

.agent-scope-heading {
  margin-top: 4px;
}

.agent-scope-list {
  grid-template-columns: 1fr;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  background: rgb(255 255 255 / 38%);
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid rgb(210 218 229 / 62%);
  padding: 14px 16px;
  color: #252930;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #737b88;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.market-window-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.market-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.market-tabs .is-active {
  background: rgb(17 17 17 / 88%);
  color: #ffffff;
}

.market-filter-tabs {
  justify-content: flex-start;
  margin-bottom: 18px;
}

.market-heatmap-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.market-heatmap-card {
  display: grid;
  min-height: 168px;
  align-content: start;
  gap: 10px;
  border-radius: 18px;
  cursor: pointer;
  padding: 18px;
  text-align: left;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

.market-heatmap-card:hover,
.market-heatmap-card:focus-visible,
.market-heatmap-card.is-selected {
  border-color: rgb(17 17 17 / 20%);
  outline: none;
  transform: translateY(-2px);
}

.market-heatmap-card span,
.market-heatmap-card small,
.market-empty-state {
  color: #727985;
  font-size: 0.78rem;
  font-weight: 850;
}

.market-heatmap-card strong {
  color: #15171b;
  font-size: 1.08rem;
}

.market-heatmap-card b {
  font-size: 1.45rem;
}

.market-heatmap-card small {
  font-weight: 750;
  line-height: 1.55;
}

.market-heatmap-card.is-positive b {
  color: #0a9d65;
}

.market-heatmap-card.is-negative b {
  color: #ff3f5f;
}

.market-heatmap-card.is-volume b {
  color: #15171b;
}

.market-empty-state {
  grid-column: 1 / -1;
  border: 1px solid rgb(210 218 229 / 66%);
  border-radius: 18px;
  background: rgb(255 255 255 / 42%);
  padding: 20px;
}

.market-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-card {
  display: grid;
  min-height: 250px;
  align-content: start;
  border-radius: 28px;
  color: #15171b;
  cursor: pointer;
  padding: clamp(26px, 4vw, 44px);
  text-align: left;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

.market-card:hover,
.market-card:focus-visible,
.market-card.is-selected {
  border-color: rgb(17 17 17 / 20%);
  outline: none;
  transform: translateY(-3px);
}

.market-coin-icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  margin-bottom: 46px;
  border-radius: 50%;
  background: #ffffff;
  color: #15171b;
  font-size: 1.45rem;
  font-weight: 950;
  box-shadow: 0 12px 30px rgb(31 43 62 / 12%);
}

.coin-btc {
  background: #f4aa08;
}

.coin-sol,
.coin-hype {
  background: linear-gradient(135deg, #7df3c4, #7b61ff);
  color: #ffffff;
}

.coin-ada {
  background: #6257ff;
  color: #ffffff;
}

.market-card strong {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.market-card span:not(.market-coin-icon) {
  display: block;
  color: #252930;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.market-card b {
  display: block;
  margin-top: 18px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.positive {
  color: #0a9d65;
}

.negative {
  color: #ff3f5f;
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.board-header p {
  margin: 6px 0 0;
  color: #6d7480;
  font-weight: 800;
}

.board-header span {
  color: #7b8290;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.chart-board iframe {
  display: block;
  width: 100%;
  height: clamp(360px, 54vw, 580px);
  border: 1px solid rgb(215 222 232 / 86%);
  border-radius: 18px;
  background: #ffffff;
}

@media (max-width: 980px) {
  .main-hero,
  .market-page-hero,
  .news-hero,
  .api-hero,
  .market-window-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .definition-grid,
  .terms-grid,
  .news-category-grid,
  .macro-explain-grid,
  .market-card-grid,
  .market-heatmap-grid,
  .market-stat-grid,
  .asset-metric-grid,
  .automation-grid,
  .flow-grid,
  .endpoint-grid,
  .agent-chat-layout,
  .api-layout,
  .checkbox-grid,
  .two-columns {
    grid-template-columns: 1fr;
  }

  .market-tabs {
    justify-content: flex-start;
  }

  .asset-heading {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .site-shell {
    padding: 16px;
  }

  .top-bar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .top-title {
    flex: 1 1 calc(100% - 64px);
  }

  .profile-box {
    width: 100%;
  }

  .agent-chat-panel {
    min-height: calc(100vh - 190px);
  }

  .agent-chat-list {
    min-height: 360px;
  }

  .agent-bubble {
    max-width: 94%;
  }

  .agent-message-summary {
    grid-template-columns: 1fr;
  }

  .assistant-breakdown-grid,
  .assistant-indicator-grid {
    grid-template-columns: 1fr;
  }

  .assistant-response-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .assistant-metric-badge {
    width: 100%;
    justify-content: space-between;
  }

  .agent-composer-row {
    grid-template-columns: 1fr;
  }

  .agent-composer .primary-button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .login-page {
    align-items: start;
    padding: 92px 16px 16px;
  }

  .auth-switch {
    top: 16px;
    right: 16px;
    left: 16px;
    justify-content: center;
  }

  .login-card,
  .main-hero,
  .market-page-hero,
  .news-hero,
  .api-hero,
  .terms-section,
  .automation-section,
  .news-dashboard,
  .market-window,
  .chart-board,
  .api-panel {
    border-radius: 24px;
  }

  .market-card {
    min-height: 220px;
    border-radius: 22px;
  }

  .market-coin-icon {
    margin-bottom: 34px;
  }

  .agent-chat-heading {
    flex-direction: column;
  }

  .agent-chat-heading .glass-button,
  .quick-question-bar .glass-button {
    width: 100%;
  }

  .agent-bubble {
    max-width: 100%;
    border-radius: 18px;
  }

  .assistant-response-card,
  .assistant-analysis-card {
    border-radius: 16px;
    padding: 12px;
  }
}
