:root {
  --bg: #080d14;
  --sidebar: #0b111a;
  --panel: #101923;
  --panel2: #111d2a;
  --border: #1d2a39;
  --text: #e5edf7;
  --muted: #8090a5;
  --green: #59deb2;
  --red: #f4838b;
  --blue: #85b3ff;
  --radius: 12px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  color: var(--text);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.25;
  color: #f0f6fd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.3px;
  white-space: nowrap;
}
.brand-light {
  display: block;
  font-size: 9px;
  font-weight: 500;
  color: #96a6b8;
  letter-spacing: 1.85px;
  margin-top: 3px;
}
.app-layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 228px;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 29px 15px 14px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar > .brand {
  padding: 0 9px 25px;
}
.workspace-label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 10px;
  font-size: 11px;
  color: #c1cedd;
  margin: 0 4px 18px;
}
.workspace-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 2px;
}
.workspace-arrow {
  margin-left: auto;
  color: var(--muted);
}
nav {
  overflow: auto;
  scrollbar-width: thin;
  flex: 1;
}
nav .nav-group {
  padding: 15px 13px 7px;
  font-size: 9px;
  color: #687a90;
  font-weight: 600;
  letter-spacing: 1.4px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  margin: 3px 0;
  border-radius: 7px;
  font-size: 12px;
  color: #8b9cb0;
  transition:
    background 0.15s,
    color 0.15s;
}
nav a svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}
nav a.active {
  background: #15302e;
  color: var(--green);
}
nav a:hover {
  background: #15202b;
  color: var(--text);
}
.sidebar-bottom {
  padding: 18px 7px 0;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.research-label {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  font-weight: 500;
  color: #90c6b6;
}
.dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
}
.sidebar-bottom > p {
  color: #62758c;
  font-size: 11px;
  margin: 10px 0 19px;
}
.account {
  display: flex;
  align-items: center;
  gap: 9px;
}
.avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #26334b;
  border: 1px solid #354662;
  border-radius: 50%;
  font-size: 11px;
  color: #cadbfa;
}
.account strong {
  font-size: 10px;
  font-weight: 600;
  display: block;
  max-width: 115px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account span {
  display: block;
  color: #72869e;
  font-size: 9px;
  margin-top: 2px;
}
.account .icon-button {
  margin-left: auto;
}
.icon-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 5px;
  font-size: 18px;
  line-height: 1;
}
.icon-button:hover {
  color: var(--text);
}
.workspace {
  margin-left: 228px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 66px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: #0a1019;
  gap: 10px;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 12px;
  color: #405268;
}
.breadcrumb strong {
  font-weight: 500;
  color: #c4d0e0;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 17px;
  font-size: 10px;
  color: #8d9cb0;
}
.connection {
  display: flex;
  align-items: center;
  gap: 7px;
}
.topbar-divider {
  height: 16px;
  width: 1px;
  background: var(--border);
}
.small-avatar {
  width: 27px;
  height: 27px;
  font-size: 10px;
}
.page-wrap {
  padding: 30px 32px 18px;
  max-width: 1740px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}
.page-heading h1 {
  margin-bottom: 4px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0 10px;
  color: #8194ac;
}
.search-box > span {
  font-size: 22px;
}
.search-box input {
  background: none;
  border: 0;
  color: var(--text);
  padding: 9px 0;
  outline: 0;
  width: 170px;
  font-size: 11px;
}
.button {
  border: 1px solid transparent;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  border-radius: 7px;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  transition:
    filter 0.15s,
    background 0.15s;
}
.button:hover {
  filter: brightness(1.12);
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #08251c;
}
.button.secondary {
  background: #111b28;
  border-color: #263548;
  color: #b9c9da;
}
.button.danger {
  background: #372028;
  border-color: #59303e;
  color: #ffb0b6;
}
.button.ghost {
  background: none;
  border-color: var(--border);
  color: var(--muted);
}
.button.compact {
  font-size: 10px;
  padding: 6px 9px;
}
.wide {
  width: 100%;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-header {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel-header .eyebrow {
  margin-bottom: 3px;
}
.panel-header .muted {
  font-size: 10px;
}
.panel-body {
  padding: 0 20px 20px;
}
.grid {
  display: grid;
  gap: 18px;
}
.grid > *,
.stack > * {
  min-width: 0;
}
.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 21px;
}
.stat-card {
  padding: 18px 19px;
  position: relative;
  min-height: 120px;
}
.stat-label {
  font-size: 11px;
  color: #8c9eb5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-value {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.7px;
  margin: 10px 0 7px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.stat-detail {
  font-size: 10px;
  color: #71849c;
  display: flex;
  gap: 8px;
  align-items: center;
}
.positive {
  color: var(--green) !important;
}
.negative {
  color: var(--red) !important;
}
.warning {
  color: #ecc887 !important;
}
.research-grid {
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr);
  align-items: start;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.chart-frame {
  width: 100%;
  height: 400px;
  border: 0;
  background: #111111;
  display: block;
}
.chart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-controls select {
  font-size: 11px;
  min-width: 67px;
}
.chart-caption {
  border-top: 1px solid var(--border);
  padding: 11px 20px;
  font-size: 9px;
  color: #6e859f;
  display: flex;
  justify-content: space-between;
}
.asset-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.asset-icon {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background: #283244;
  color: #c8d8ea;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
}
.asset-icon.btc {
  background: #382d20;
  color: #f3bd69;
}
.asset-icon.eth {
  background: #252c45;
  color: #b5c2fb;
}
.asset-name {
  font-size: 12px;
  font-weight: 600;
}
.asset-sub {
  font-size: 9px;
  color: #7388a1;
  margin-top: 2px;
}
.table-wrap {
  overflow: auto;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  white-space: nowrap;
}
.data-table thead th {
  text-align: left;
  background: #0e1721;
  color: #71869e;
  font-size: 9px;
  letter-spacing: 0.6px;
  font-weight: 500;
  padding: 11px 17px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 15px 17px;
  border-bottom: 1px solid #1a2635;
  color: #c3d0df;
  font-variant-numeric: tabular-nums;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #14202d;
}
.data-table .right {
  text-align: right;
}
.data-table button.text-button {
  color: #b8cbe2;
  font-size: 11px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.pill {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-size: 9px;
  border: 1px solid #25394a;
  padding: 3px 7px;
  border-radius: 4px;
  color: #8ca5bf;
  background: #101d2a;
  white-space: nowrap;
}
.pill.green {
  border-color: #254137;
  color: #87cfb3;
  background: #122a23;
}
.pill.orange {
  border-color: #4a3a24;
  color: #d3b17f;
  background: #2c2317;
}
.news-item {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
}
.news-item:last-child {
  border: 0;
}
.news-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #73899f;
  font-size: 9px;
  margin-bottom: 7px;
}
.news-item h3 {
  font-size: 12px;
  line-height: 1.65;
  font-weight: 500;
}
.news-item p {
  color: #8fa0b5;
  font-size: 11px;
  margin-top: 8px;
  line-height: 1.8;
}
.news-item .source-link {
  display: inline-flex;
  margin-top: 9px;
  font-size: 10px;
  color: #7ac8b7;
}
.signal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}
.signal-row:last-child {
  border: 0;
}
.signal-label {
  color: #91a3b9;
}
.signal-value {
  color: #d1ddea;
  font-variant-numeric: tabular-nums;
}
.status-list {
  padding: 0 20px 12px;
}
.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  padding: 10px 0;
  gap: 10px;
}
.status-item > span {
  color: #98aabd;
}
.empty-state {
  padding: 46px 25px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 13px;
  color: #8a9eb7;
}
.empty-symbol {
  font-size: 26px;
  color: #4d6b84;
}
.empty-state h3 {
  color: #bdcfe1;
  font-size: 15px;
}
.empty-state p {
  max-width: 440px;
  font-size: 12px;
  line-height: 1.8;
}
.banner {
  border: 1px solid #2a4057;
  background: #101f30;
  padding: 13px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 11px;
  color: #a5bed9;
  line-height: 1.8;
}
.banner.warning {
  border-color: #453822;
  background: #251f16;
}
.section-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.section-actions h2 {
  font-size: 15px;
}
.tabs {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.tabs button.active {
  color: var(--green);
  border-color: #2c6250;
}
.loading {
  padding: 70px;
  text-align: center;
  color: var(--muted);
}
.loading:before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #254039;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 10px;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
  color: #58718b;
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid var(--border);
}
.workspace-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.workspace-footer .dot {
  width: 4px;
  height: 4px;
  background: #5a997f;
}
.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.list-card {
  padding: 20px;
}
.list-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.list-card-footer {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.symbols-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 32px;
}
.symbol-chip {
  background: #162638;
  border: 1px solid #29405b;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.symbol-chip button {
  border: 0;
  background: none;
  color: #698199;
  font-size: 15px;
  padding: 0;
}
.portfolio-total {
  font-size: 31px;
  font-variant-numeric: tabular-nums;
  margin: 7px 0;
}
.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ai-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
}
.conversation-list {
  padding: 14px;
  align-self: start;
}
.conversation-list button {
  width: 100%;
  white-space: normal;
  text-align: left;
  justify-content: flex-start;
  margin-top: 9px;
}
.chat-panel {
  min-height: 450px;
  display: flex;
  flex-direction: column;
}
.chat-messages {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 17px;
  max-height: 650px;
  overflow: auto;
}
.chat-bubble {
  background: #142335;
  border: 1px solid #243a51;
  padding: 15px 17px;
  border-radius: 10px;
  max-width: 93%;
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-bubble.user {
  align-self: flex-end;
  background: #17352f;
  border-color: #285247;
}
.chat-bubble.assistant {
  align-self: flex-start;
}
.chat-bubble .fact {
  border-left: 2px solid #407b65;
  padding: 7px 10px;
  margin: 10px 0;
  font-size: 11px;
}
.chat-bubble h3 {
  color: var(--green);
  margin-bottom: 10px;
}
.chat-bubble .sources {
  border-top: 1px solid #2a3b50;
  margin-top: 12px;
  padding-top: 8px;
  font-size: 10px;
}
.chat-bubble .sources a {
  display: block;
  margin: 4px 0;
}
.chat-form {
  padding: 14px 17px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 9px;
}
.chat-form textarea {
  resize: none;
  min-height: 44px;
  flex: 1;
}
.chat-prompts {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.settings-form {
  max-width: 600px;
  padding: 22px;
}
.settings-form .button {
  margin-top: 18px;
}
.field {
  margin-bottom: 15px;
}
label {
  display: block;
  font-size: 11px;
  color: #9ab0c6;
  margin-bottom: 7px;
}
input,
select,
textarea {
  background: #0c1420;
  border: 1px solid #2b3c51;
  color: #d3e1ef;
  border-radius: 6px;
  padding: 10px 11px;
  outline: 0;
  max-width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #4b9c83;
  box-shadow: 0 0 0 2px #254a3d55;
}
input::placeholder,
textarea::placeholder {
  color: #536d86;
}
select {
  color-scheme: dark;
}
textarea {
  line-height: 1.6;
  width: 100%;
}
.field input,
.field select {
  width: 100%;
}
.field .small {
  margin-top: 5px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
}
.checkbox-label input {
  width: auto;
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 430px;
  background: #1b3042;
  border: 1px solid #3c5b71;
  padding: 13px 18px;
  border-radius: 8px;
  z-index: 100;
  color: #d2e2ef;
  font-size: 12px;
  box-shadow: 0 12px 40px #0008;
}
.toast.error {
  background: #361e29;
  border-color: #673747;
}
.form-error {
  color: #f8a0aa;
  font-size: 11px;
  line-height: 1.7;
  min-height: 18px;
  margin-top: 10px;
}
dialog {
  padding: 0;
  border: 1px solid #334a62;
  border-radius: 13px;
  background: #101c29;
  color: var(--text);
  width: min(500px, calc(100vw - 30px));
  box-shadow: 0 25px 100px #0009;
}
dialog::backdrop {
  background: #03080fcc;
  backdrop-filter: blur(3px);
}
dialog form {
  padding: 24px;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
}
.dialog-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 23px;
}
#dialog-note {
  line-height: 1.8;
}
.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 20% 50%, #10272866, transparent 50%), var(--bg);
}
.login-layout {
  max-width: 1130px;
  width: 100%;
  margin: auto;
  padding: 75px 50px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 100px;
  align-items: center;
}
.login-intro > .brand {
  margin-bottom: 95px;
}
.login-intro h1 {
  font-size: 53px;
  line-height: 1.14;
  font-weight: 500;
  letter-spacing: -2px;
  margin: 18px 0 23px;
}
.login-intro > p {
  color: #8a9fb4;
  max-width: 390px;
  line-height: 1.9;
  font-size: 14px;
}
.login-features {
  display: flex;
  gap: 24px;
  margin-top: 37px;
  color: #98b6b0;
  font-size: 11px;
}
.login-features span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-card {
  padding: 35px;
}
.login-card h2 {
  font-size: 24px;
  margin-top: 12px;
}
.login-card > p {
  margin-top: 9px;
  line-height: 1.8;
}
.login-card form {
  margin-top: 28px;
}
.login-card input {
  width: 100%;
  padding: 13px;
  margin-bottom: 18px;
}
.login-card .button {
  padding: 13px;
}
.separator {
  position: relative;
  text-align: center;
  margin: 22px 0;
  font-size: 9px;
  color: #586e85;
}
.separator:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--border);
}
.separator span {
  background: var(--panel);
  position: relative;
  padding: 0 13px;
}
.privacy-note {
  font-size: 10px;
  color: #6f8599;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.lock-symbol {
  margin-right: 7px;
  color: var(--green);
}
.login-footer {
  border-top: 1px solid var(--border);
  padding: 22px 45px;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #5f758c;
  display: flex;
  justify-content: space-between;
}
.mobile-only {
  display: none;
}
.metric-note {
  margin-top: 8px;
  color: #6f8299;
  font-size: 10px;
}
.raw-id {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 9px;
  color: #71879f;
}
.row-actions {
  display: flex;
  gap: 6px;
}
.spacer {
  height: 18px;
}
.subtle-link {
  font-size: 10px;
  color: #7b96b4;
}
.section-note {
  font-size: 11px;
  color: #7b91a9;
  margin-top: 15px;
}
.badge-count {
  margin-left: auto;
  background: #253649;
  color: #8ba7c2;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
@media (min-width: 1600px) {
  .page-wrap {
    padding: 40px 48px;
  }
  .topbar {
    padding: 0 48px;
  }
  .chart-frame {
    height: 470px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 203px;
  }
  .workspace {
    margin-left: 203px;
  }
  .page-wrap {
    padding: 25px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .stats-grid {
    gap: 11px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-value {
    font-size: 22px;
  }
  .search-box {
    display: none;
  }
  .research-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
  }
  .chart-frame {
    height: 350px;
  }
  .heading-actions {
    gap: 7px;
  }
  .three-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .research-grid {
    grid-template-columns: 1fr;
  }
  .research-grid > .stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chart-frame {
    height: 380px;
  }
  .login-layout {
    gap: 40px;
    padding: 50px 30px;
  }
  .login-intro h1 {
    font-size: 42px;
  }
  .login-card {
    padding: 25px;
  }
  .login-intro > .brand {
    margin-bottom: 65px;
  }
  .ai-layout {
    grid-template-columns: 1fr;
  }
  .conversation-list {
    max-height: 180px;
    overflow: auto;
  }
  .workspace-footer {
    flex-direction: column;
    gap: 5px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 228px;
    box-shadow: 10px 0 50px #0008;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .workspace {
    margin-left: 0;
  }
  .mobile-only {
    display: block;
  }
  .topbar {
    height: 56px;
    padding: 0 17px;
  }
  .breadcrumb {
    margin-right: auto;
  }
  .topbar-right {
    gap: 9px;
  }
  .topbar-right time,
  .topbar-divider,
  .small-avatar {
    display: none;
  }
  .page-wrap {
    padding: 23px 16px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 10px;
  }
  h1 {
    font-size: 25px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 240px;
  }
  .heading-actions .button {
    padding: 8px 10px;
  }
  .heading-actions .button span {
    display: none;
  }
  .stats-grid {
    gap: 9px;
  }
  .stat-card {
    min-height: 108px;
    padding: 13px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat-value {
    font-size: 23px;
  }
  .stat-detail {
    font-size: 9px;
  }
  .research-grid > .stack {
    display: flex;
    align-items: stretch;
  }
  .panel-header {
    padding: 16px;
  }
  .panel-body {
    padding: 0 16px 16px;
  }
  .chart-controls {
    gap: 5px;
  }
  .chart-controls select {
    max-width: 115px;
    padding: 6px;
    font-size: 10px;
  }
  .chart-frame {
    height: 340px;
  }
  .chart-caption {
    padding: 10px 15px;
    font-size: 8px;
    flex-wrap: wrap;
    gap: 5px;
  }
  .two-column,
  .three-column {
    grid-template-columns: 1fr;
  }
  .data-table td {
    padding: 13px;
  }
  .data-table thead th {
    padding: 10px 13px;
  }
  .news-item {
    padding: 14px 16px;
  }
  .login-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 35px 22px;
  }
  .login-intro > .brand {
    margin-bottom: 35px;
  }
  .login-intro h1 {
    font-size: 38px;
    margin: 12px 0 16px;
  }
  .login-intro > p {
    font-size: 12px;
  }
  .login-features {
    margin-top: 20px;
    gap: 15px;
    font-size: 10px;
  }
  .login-card {
    width: 100%;
    max-width: 430px;
  }
  .login-footer {
    padding: 18px 22px;
  }
  .login-footer > span {
    display: none;
  }
  .chat-form {
    padding: 12px;
  }
  .chat-form .button {
    padding: 10px;
  }
  .toast {
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: none;
  }
  .section-actions {
    align-items: flex-start;
  }
  .account strong {
    max-width: 125px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before {
    animation: none !important;
    transition: none !important;
  }
}

.workspace-label select {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #b6c9dc;
  font-size: 10px;
  padding: 0;
  width: 150px;
  outline: 0;
}
.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
