@import "https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap";
/* [project]/app/globals.css [app-client] (css) */
:root {
  --font-sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-display: "Manrope", "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;
  --radius-sm: .6rem;
  --radius-md: 1rem;
  --radius-lg: 1.4rem;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 48px #0f172a14;
  --shadow-card: 0 12px 32px #0f172a0f;
  --shadow-strong: 0 24px 60px #0f172a29;
  --bg-app: #eef2f7;
  --bg-panel: #ffffffc7;
  --bg-panel-strong: #fffffff5;
  --bg-panel-muted: #f7f9fc;
  --bg-panel-accent: linear-gradient(135deg, #e9f0fceb, #f5f7fbf5);
  --bg-sidebar: linear-gradient(180deg, #0d1525 0%, #101a2f 100%);
  --bg-sidebar-elevated: #ffffff14;
  --bg-sidebar-hover: #ffffff1f;
  --bg-input: #f6f9fcf5;
  --text-primary: #10203b;
  --text-secondary: #42516a;
  --text-muted: #72829d;
  --text-strong: #081325;
  --text-inverse: #f4f7fb;
  --border-subtle: #62749224;
  --border-default: #4c5f802e;
  --border-strong: #2d436847;
  --accent: #1f4d96;
  --accent-soft: #1f4d961f;
  --accent-strong: #15376d;
  --positive: #0d8f58;
  --positive-soft: #0d8f581f;
  --negative: #c54536;
  --negative-soft: #c545361f;
  --warning: #b48722;
  --warning-soft: #b4872224;
  --neutral: #5f728f;
  --neutral-soft: #5f728f1f;
}

[data-theme="dark"] {
  --shadow-soft: 0 18px 48px #02061780;
  --shadow-card: 0 18px 44px #0206176b;
  --shadow-strong: 0 24px 68px #0206179e;
  --bg-app: #09111f;
  --bg-panel: #0b1324d1;
  --bg-panel-strong: #0d1527f0;
  --bg-panel-muted: #0f182ef0;
  --bg-panel-accent: linear-gradient(135deg, #12203cf0, #0c162af5);
  --bg-sidebar: linear-gradient(180deg, #040911 0%, #09101d 100%);
  --bg-sidebar-elevated: #ffffff0f;
  --bg-sidebar-hover: #ffffff1f;
  --bg-input: #0e172af5;
  --text-primary: #e5ecf6;
  --text-secondary: #afbdd3;
  --text-muted: #7e8ba2;
  --text-strong: #f7fbff;
  --text-inverse: #f6f9ff;
  --border-subtle: #8a9bb629;
  --border-default: #889ab733;
  --border-strong: #b8c9e247;
  --accent: #7ba9ff;
  --accent-soft: #7ba9ff24;
  --accent-strong: #c0d6ff;
  --positive: #57d59b;
  --positive-soft: #57d59b24;
  --negative: #ff877a;
  --negative-soft: #ff877a29;
  --warning: #e0b763;
  --warning-soft: #e0b76329;
  --neutral: #8da1bf;
  --neutral-soft: #8da1bf24;
}

*, :before, :after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: radial-gradient(circle at top left, #577abc1f, transparent 26%), radial-gradient(circle at bottom right, #becde538, transparent 30%), var(--bg-app);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

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

button, input, select {
  font: inherit;
}

.portal-shell {
  grid-template-columns: 288px minmax(0, 1fr);
  min-height: 100vh;
  display: grid;
}

.portal-sidebar {
  background: var(--bg-sidebar);
  height: 100vh;
  color: var(--text-inverse);
  border-right: 1px solid #ffffff14;
  flex-direction: column;
  gap: 1.6rem;
  padding: 1.4rem;
  display: flex;
  position: sticky;
  top: 0;
}

.sidebar-brand {
  align-items: center;
  gap: .95rem;
  display: flex;
}

.sidebar-brand-mark {
  color: #c9ddff;
  background: linear-gradient(135deg, #7ba9ff3d, #7ba9ff1a);
  border-radius: .9rem;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  box-shadow: inset 0 0 0 1px #ffffff1a;
}

.sidebar-brand-title {
  font-family: var(--font-display);
  letter-spacing: -.03em;
  font-size: 1.02rem;
  font-weight: 800;
}

.sidebar-brand-subtitle {
  color: #e2ebf8b3;
  margin-top: .2rem;
  font-size: .86rem;
}

.sidebar-nav {
  flex-direction: column;
  gap: 1rem;
  display: flex;
}

.sidebar-nav-group {
  flex-direction: column;
  gap: .45rem;
  display: flex;
}

.sidebar-nav-label, .sidebar-footnote-label {
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #dce6f68f;
  font-size: .72rem;
}

.sidebar-link {
  color: #ecf3fccc;
  border-radius: .95rem;
  align-items: center;
  gap: .75rem;
  padding: .82rem .95rem;
  transition: background .14s, color .14s, transform .14s;
  display: flex;
}

.sidebar-link:hover {
  background: var(--bg-sidebar-hover);
  color: var(--text-inverse);
}

.sidebar-link-active {
  color: var(--text-inverse);
  background: linear-gradient(135deg, #7ba9ff2e, #ffffff0f);
  box-shadow: inset 0 0 0 1px #7ba9ff3d;
}

.sidebar-link-icon {
  justify-content: center;
  width: 1rem;
  display: inline-flex;
}

.sidebar-footnote {
  background: var(--bg-sidebar-elevated);
  color: #ecf3fcc7;
  border-radius: 1rem;
  gap: .2rem;
  margin-top: auto;
  padding: 1rem;
  font-size: .88rem;
  display: grid;
}

.portal-main {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.portal-topbar {
  z-index: 20;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(#eef2f7eb 0%, #eef2f7c2 100%);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2rem 1rem;
  display: flex;
  position: sticky;
  top: 0;
}

[data-theme="dark"] .portal-topbar {
  background: linear-gradient(#09111feb 0%, #09111fbd 100%);
}

.topbar-kicker {
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-size: .73rem;
}

.topbar-title {
  font-family: var(--font-display);
  letter-spacing: -.04em;
  color: var(--text-strong);
  margin-top: .35rem;
  font-size: 1.45rem;
  font-weight: 800;
}

.topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .75rem;
  display: flex;
}

.topbar-chip {
  border-radius: var(--radius-pill);
  background: var(--bg-panel-strong);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  color: var(--text-secondary);
  align-items: center;
  gap: .55rem;
  padding: .58rem .82rem;
  font-size: .84rem;
  display: inline-flex;
}

.mono-chip, .header-clock {
  font-family: var(--font-mono);
}

.live-dot {
  background: var(--positive);
  width: .55rem;
  height: .55rem;
  box-shadow: 0 0 0 .28rem var(--positive-soft);
  border-radius: 50%;
}

.theme-toggle-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel-strong);
  width: 2.7rem;
  height: 2.7rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  border-radius: .95rem;
  place-items: center;
  display: grid;
}

.portal-content {
  width: min(1480px, 100vw - 288px);
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

.page-stack {
  gap: 1.5rem;
  display: grid;
}

.page-hero, .surface-card, .metric-card {
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.page-hero {
  border-radius: var(--radius-lg);
  background: var(--bg-panel-accent);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.7rem 1.85rem;
  display: flex;
}

.page-eyebrow {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 700;
}

.page-title {
  font-family: var(--font-display);
  letter-spacing: -.05em;
  color: var(--text-strong);
  margin: .5rem 0 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
}

.page-subtitle {
  max-width: 56rem;
  color: var(--text-secondary);
  margin: .85rem 0 0;
  line-height: 1.6;
}

.page-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .75rem;
  display: flex;
}

.overview-hero-grid, .two-column-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  display: grid;
}

.surface-card {
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.surface-card-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.4rem 0;
  display: flex;
}

.surface-card-title {
  font-family: var(--font-display);
  letter-spacing: -.03em;
  color: var(--text-strong);
  margin: 0;
  font-size: 1.15rem;
}

.surface-card-subtitle {
  color: var(--text-secondary);
  margin: .45rem 0 0;
  font-size: .94rem;
}

.surface-card-actions {
  flex-wrap: wrap;
  gap: .6rem;
  display: flex;
}

.surface-card-body {
  padding: 1.35rem 1.4rem 1.4rem;
}

.no-padding {
  padding: 0;
}

.summary-band, .result-preview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  display: grid;
}

.summary-band > div, .result-preview > div {
  border-radius: var(--radius-md);
  background: var(--bg-panel-strong);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.1rem;
}

.summary-band-label, .preview-label, .metric-label, .metric-eyebrow {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}

.summary-band-value, .preview-value {
  font-family: var(--font-display);
  color: var(--text-strong);
  margin-top: .45rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  display: grid;
}

.metric-card {
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: 1.15rem;
}

.metric-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: .8rem;
  display: flex;
}

.metric-icon {
  background: var(--accent-soft);
  width: 2rem;
  height: 2rem;
  color: var(--accent);
  border-radius: .75rem;
  place-items: center;
  display: grid;
}

.metric-value {
  font-family: var(--font-display);
  letter-spacing: -.05em;
  margin-top: .7rem;
  font-size: 1.8rem;
  font-weight: 800;
}

.metric-meta {
  color: var(--text-secondary);
  margin-top: .6rem;
  line-height: 1.45;
}

.metric-positive .metric-value {
  color: var(--positive);
}

.metric-negative .metric-value {
  color: var(--negative);
}

.metric-accent .metric-value {
  color: var(--accent);
}

.metric-neutral .metric-value {
  color: var(--text-strong);
}

.button {
  cursor: pointer;
  border: 1px solid #0000;
  border-radius: .92rem;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  padding: .76rem 1rem;
  font-weight: 600;
  transition: transform .14s, box-shadow .14s, border-color .14s, background .14s, color .14s;
  display: inline-flex;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #f5f8fd;
  box-shadow: 0 14px 28px #1f4d963d;
}

.button-secondary {
  background: var(--bg-panel-strong);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.button-danger {
  background: var(--negative-soft);
  color: var(--negative);
  border-color: #c5453629;
}

.status-badge, .pill {
  border-radius: var(--radius-pill);
  border: 1px solid #0000;
  align-items: center;
  gap: .55rem;
  padding: .45rem .75rem;
  font-size: .82rem;
  font-weight: 600;
  display: inline-flex;
}

.status-badge {
  background: var(--neutral-soft);
  color: var(--neutral);
}

.status-dot {
  background: currentColor;
  border-radius: 50%;
  width: .48rem;
  height: .48rem;
}

.status-positive {
  background: var(--positive-soft);
  color: var(--positive);
}

.status-negative {
  background: var(--negative-soft);
  color: var(--negative);
}

.status-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-neutral {
  background: var(--neutral-soft);
  color: var(--neutral);
}

.pill {
  background: var(--bg-panel-muted);
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.pill-positive {
  background: var(--positive-soft);
  color: var(--positive);
}

.pill-negative {
  background: var(--negative-soft);
  color: var(--negative);
}

.status-panel {
  gap: .9rem;
  display: grid;
}

.status-panel-row, .config-row {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  display: flex;
}

.status-panel-row span:first-child, .config-row span {
  color: var(--text-secondary);
}

.progress-bar {
  border-radius: var(--radius-pill);
  background: #5f728f1f;
  width: 100%;
  height: .72rem;
  overflow: hidden;
}

.progress-fill {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--positive));
  height: 100%;
}

.status-message {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

.insight-list, .config-list {
  gap: 1rem;
  display: grid;
}

.insight-row {
  border-radius: var(--radius-md);
  background: var(--bg-panel-strong);
  border: 1px solid var(--border-subtle);
  grid-template-columns: auto minmax(0, 1fr);
  gap: .85rem;
  padding: 1rem;
  display: grid;
}

.insight-row strong {
  color: var(--text-strong);
  margin-bottom: .3rem;
  display: block;
}

.insight-row p {
  color: var(--text-secondary);
  margin: 0;
}

.recent-run-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  display: grid;
}

.recent-run-card {
  border-radius: var(--radius-md);
  background: var(--bg-panel-strong);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  gap: .85rem;
  padding: 1rem;
  display: grid;
}

.recent-run-card:hover {
  border-color: var(--border-strong);
}

.recent-run-card-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: .8rem;
  display: flex;
}

.recent-run-card-title {
  color: var(--text-strong);
  font-weight: 700;
}

.recent-run-card-subtitle, .recent-run-card-metrics, .table-muted {
  color: var(--text-muted);
  font-size: .88rem;
}

.recent-run-card-metrics {
  flex-wrap: wrap;
  gap: .75rem;
  display: flex;
}

.chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  display: grid;
}

.chart-card .surface-card-body {
  padding-top: 1rem;
}

.chart-card-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  display: grid;
}

.chart-frame {
  height: 295px;
}

.chart-frame-small {
  height: 260px;
}

.chart-tooltip {
  color: #f5f8fe;
  min-width: 10rem;
  box-shadow: var(--shadow-strong);
  background: #091223f0;
  border: 1px solid #ffffff0f;
  border-radius: .9rem;
  padding: .85rem;
}

.chart-tooltip-label {
  color: #f5f8feb8;
  margin-bottom: .35rem;
  font-size: .82rem;
}

.chart-tooltip-row {
  justify-content: space-between;
  gap: 1rem;
  font-size: .84rem;
  display: flex;
}

.table-shell {
  overflow-x: auto;
}

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

.data-table th, .data-table td {
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
  padding: 1rem 1.05rem;
}

.data-table thead th {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  background: #7d92b60a;
  font-size: .79rem;
}

.table-sort {
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  align-items: center;
  gap: .35rem;
  padding: 0;
  font-weight: 600;
  display: inline-flex;
}

.table-symbol, .table-stack {
  gap: .25rem;
  display: grid;
}

.mono-cell {
  font-family: var(--font-mono);
}

.tone-positive {
  color: var(--positive);
}

.tone-negative {
  color: var(--negative);
}

.tone-neutral {
  color: var(--text-secondary);
}

.table-bar-cell {
  gap: .55rem;
  display: grid;
}

.return-bar {
  border-radius: var(--radius-pill);
  background: #60708d1f;
  width: 100%;
  height: .56rem;
  overflow: hidden;
}

.return-bar-fill {
  border-radius: inherit;
  height: 100%;
}

.fill-positive {
  background: linear-gradient(90deg, #0d8f583d, var(--positive));
}

.fill-negative {
  background: linear-gradient(90deg, #c545363d, var(--negative));
}

.table-link {
  color: var(--accent);
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  display: inline-flex;
}

.trade-filters {
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem;
  display: flex;
}

.inline-field, .field {
  gap: .45rem;
  display: grid;
}

.inline-field span, .field-label {
  color: var(--text-secondary);
  font-size: .88rem;
}

.inline-field-search {
  min-width: 16rem;
}

.inline-field-search, .upload-dropzone {
  align-items: center;
  gap: .75rem;
  display: flex;
}

.input {
  border: 1px solid var(--border-default);
  background: var(--bg-input);
  width: 100%;
  color: var(--text-primary);
  border-radius: .9rem;
  padding: .84rem .95rem;
}

.input:focus {
  border-color: #1f4d9647;
  outline: 2px solid #1f4d962e;
}

.segmented {
  background: var(--bg-panel-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: .3rem;
  display: inline-flex;
}

.segmented-button {
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: .75rem;
  align-items: center;
  gap: .55rem;
  padding: .72rem .92rem;
  font-weight: 600;
  display: inline-flex;
}

.segmented-button-active {
  background: var(--bg-panel-strong);
  color: var(--text-strong);
  box-shadow: var(--shadow-card);
}

.form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  display: grid;
}

.mode-panel {
  gap: 1rem;
  margin-top: 1.2rem;
  display: grid;
}

.upload-dropzone {
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  background: var(--bg-panel-strong);
  cursor: pointer;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 1rem 1.05rem;
}

.upload-dropzone p {
  color: var(--text-secondary);
  margin: .3rem 0 0;
}

.selection-summary {
  background: var(--bg-panel-muted);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: .9rem;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1rem;
  display: inline-flex;
}

.action-row {
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  display: flex;
}

.action-row-spread {
  justify-content: space-between;
}

.error-banner {
  background: var(--negative-soft);
  color: var(--negative);
  border: 1px solid #c5453633;
  border-radius: .95rem;
  padding: .92rem 1rem;
}

.chip-grid {
  flex-wrap: wrap;
  gap: .65rem;
  display: flex;
}

.inline-action-group {
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  display: flex;
}

.inline-action-message {
  color: var(--text-secondary);
}

.settings-action-column {
  gap: .65rem;
  display: grid;
}

.empty-state {
  border-radius: var(--radius-md);
  background: var(--bg-panel-strong);
  border: 1px dashed var(--border-strong);
  justify-items: start;
  gap: .85rem;
  padding: 1.6rem;
  display: grid;
}

.empty-state-icon {
  background: var(--accent-soft);
  width: 2.8rem;
  height: 2.8rem;
  color: var(--accent);
  border-radius: .9rem;
  place-items: center;
  display: grid;
}

.empty-state h3 {
  font-family: var(--font-display);
  color: var(--text-strong);
  margin: 0;
  font-size: 1.2rem;
}

.empty-state p {
  color: var(--text-secondary);
  max-width: 40rem;
  margin: 0;
}

.empty-state-action {
  margin-top: .25rem;
}

.spin {
  animation: .85s linear infinite spin;
}

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

@media (max-width: 1180px) {
  .portal-shell {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    border-bottom: 1px solid #ffffff14;
    border-right: 0;
    height: auto;
    position: static;
  }

  .sidebar-nav-group {
    flex-flow: wrap;
  }

  .sidebar-footnote {
    display: none;
  }

  .portal-content {
    width: min(1480px, 100%);
  }

  .metric-grid, .recent-run-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .portal-topbar, .page-hero, .surface-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .page-actions, .topbar-actions {
    justify-content: flex-start;
  }

  .overview-hero-grid, .two-column-layout, .chart-grid, .chart-card-split, .summary-band, .result-preview, .form-grid, .recent-run-list {
    grid-template-columns: 1fr;
  }

  .action-row-spread {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .portal-sidebar, .portal-topbar, .portal-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .button, .topbar-chip {
    width: auto;
  }

  .inline-field-search {
    min-width: 100%;
  }
}

/*# sourceMappingURL=app_globals_71f961d1.css.map*/