/*!*******************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./src/styles/tokens.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************/
@layer tokens {
  :root {
    color-scheme: dark;

    /* Apple dark system/grouped surfaces: systemBackground, secondary and tertiary. */
    --mf-color-bg: #000000;
    --mf-color-sidebar: #000000;
    --mf-color-bg-elevated: #000000;
    --mf-color-panel: #09090b;
    --mf-color-panel-raised: #111113;
    --mf-color-sidebar-divider: rgb(255 255 255 / 8%);
    --mf-color-border: #38383a;
    --mf-color-border-strong: rgb(var(--accent-rgb, 126, 207, 152), 0.34);
    --mf-color-text: #ffffff;
    --mf-color-muted: #8e8e93;
    --mf-color-subtle: #8e8e93;
    --mf-color-accent: var(--accent, #7ecf98);
    --mf-color-accent-strong: var(--accent-strong, #a6deb5);
    --mf-color-danger: #ff453a;
    --mf-color-danger-rgb: 255 69 58;
    --mf-color-warning: #e5b96f;
    --mf-color-info: #7ba7e8;
    --mf-color-success: #30d158;
    --mf-color-success-rgb: 48 209 88;
    --mf-accent-teal: #56c7bd;
    --mf-accent-blue: #7ba7e8;
    --mf-accent-orange: #e5a66f;
    --mf-accent-purple: #aa8be8;
    --mf-accent-green: #7ecf98;
    --mf-space-1: 4px;
    --mf-space-2: 8px;
    --mf-space-3: 12px;
    --mf-space-4: 16px;
    --mf-space-5: 20px;
    --mf-space-6: 24px;
    --mf-space-8: 32px;
    --mf-radius-card: 8px;
    --mf-radius-control: var(--mf-radius-card);
    --mf-control-h-sm: 28px;
    --mf-control-h-md: 36px;
    --mf-row-h: 42px;
    --mf-kpi-h: clamp(82px, 10.3vh, 118px);
    --mf-sidebar-w: clamp(170px, 14vw, 236px);
    --mf-topbar-h: clamp(46px, 4.2vh, 64px);
    --mf-page-max: 2200px;
    --mf-page-gap: clamp(9px, calc(0.2vw + 0.3vh), 16px);
    --mf-page-pad-x: clamp(16px, 1.1vw, 38px);
    --mf-page-pad-top: clamp(14px, 0.9vw, 32px);
    --mf-page-pad-bottom: clamp(16px, 0.95vw, 34px);
    --mf-panel-pad: clamp(14px, calc(8px + 0.35vw), 22px);
    --mf-text-xs: clamp(9.5px, calc(7.6px + 0.11vw), 12px);
    --mf-text-sm: clamp(10.5px, calc(8.5px + 0.12vw), 13px);
    --mf-text-base: clamp(11.5px, calc(9.4px + 0.13vw), 14px);
    --mf-text-title: clamp(16px, calc(12px + 0.22vw), 21px);
    --mf-text-page-title: clamp(24px, calc(16px + 0.4vw), 34px);
    --mf-text-metric: clamp(21px, calc(12px + 0.48vw), 32px);
    --mf-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mf-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --mf-shadow-panel: none;
    --mf-surface-card-background: linear-gradient(180deg, rgb(255 255 255 / 2.4%), rgb(255 255 255 / 0.8%)), var(--mf-color-panel);
    --mf-surface-card-border: 1px solid transparent;
    --mf-surface-card-radius: var(--mf-radius-card);
    --mf-surface-card-shadow: var(--mf-shadow-panel);
    --mf-surface-card-padding: var(--mf-panel-pad);
    --mf-focus: 0 0 0 3px rgb(var(--accent-rgb, 126, 207, 152), 0.28);
  }

  html[data-theme="light"] {
    color-scheme: light;

    /* Apple light system/grouped surfaces: grouped background and white cells. */
    --mf-color-bg: #f2f2f7;
    --mf-color-sidebar: #f2f2f7;
    --mf-color-bg-elevated: #f2f2f7;
    --mf-color-panel: #ffffff;
    --mf-color-panel-raised: #f2f2f7;
    --mf-color-sidebar-divider: #e5e5ea;
    --mf-color-border: #e5e5ea;
    --mf-color-border-strong: rgb(var(--accent-rgb, 79, 125, 91), 0.38);
    --mf-color-text: #000000;
    --mf-color-muted: #8e8e93;
    --mf-color-subtle: #8e8e93;
    --mf-color-danger: #d70015;
    --mf-color-danger-rgb: 215 0 21;
    --mf-color-warning: #8a611f;
    --mf-color-info: #496fae;
    --mf-color-success: #248a3d;
    --mf-color-success-rgb: 36 138 61;
    --mf-shadow-panel: 0 12px 34px rgb(42 50 68 / 8%);
  }

  html[data-density="compact"] {
    --mf-row-h: 38px;
    --mf-control-h-md: 34px;
    --mf-page-gap: 9px;
  }

  html[data-density="spacious"] {
    --mf-row-h: 48px;
    --mf-control-h-md: 42px;
    --mf-page-gap: 16px;
  }
}

/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./src/styles/base.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
@layer base {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    background: var(--mf-color-bg);
    min-width: 320px;
  }

  body {
    background: var(--mf-color-bg);
    color: var(--mf-color-text);
    font-family: var(--mf-font-sans);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.36;
    margin: 0;
    min-height: 100vh;
  }

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

  button,
  a,
  input,
  select,
  textarea {
    outline: none;
  }

  :where(button, a, input, select, textarea, [tabindex]):focus-visible {
    box-shadow: var(--mf-focus);
  }

  button {
    cursor: pointer;
  }

  button:disabled {
    cursor: not-allowed;
    opacity: 0.52;
  }

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

  p,
  h1,
  h2,
  h3,
  pre {
    margin: 0;
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
  }

  svg {
    flex: 0 0 auto;
  }

  ::selection {
    background: rgb(var(--accent-rgb, 126, 207, 152), 0.28);
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
    }
  }
}

/*!***********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./src/styles/components.css ***!
  \***********************************************************************************************************************************************************************************************************************************************************************/
@layer components {
  .mf-page {
    display: grid;
    gap: var(--mf-page-gap);
    margin: 0 auto;
    max-width: var(--mf-page-max);
    min-width: 0;
    width: 100%;
  }

  .mf-page-header,
  .mf-panel-header {
    align-items: flex-start;
    display: flex;
    gap: var(--mf-space-4);
    justify-content: space-between;
  }

  .mf-page-header h2,
  .mf-panel-header h2 {
    color: var(--mf-color-text);
    font-size: var(--mf-text-title);
    font-weight: 650;
    letter-spacing: -0.015em;
  }

  .mf-page-header p,
  .mf-panel-header p {
    color: var(--mf-color-muted);
    font-size: var(--mf-text-sm);
    line-height: 1.5;
    margin-top: var(--mf-space-1);
  }

  .mf-page-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--mf-space-2);
    justify-content: flex-end;
  }

  .mf-surface-card,
  .mf-panel,
  .mf-metric {
    background: var(--mf-surface-card-background);
    border: var(--mf-surface-card-border);
    border-radius: var(--mf-surface-card-radius);
    box-shadow: var(--mf-surface-card-shadow);
    min-width: 0;
  }

  .mf-panel-header > svg {
    color: var(--mf-color-accent);
  }

  .eyebrow {
    color: var(--mf-color-accent);
    font-size: 0.6rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
    text-transform: uppercase;
  }

  .muted-line {
    color: var(--mf-color-muted);
    font-size: var(--mf-text-sm);
    line-height: 1.45;
    margin-top: 3px;
  }

  :where(.bot-ops-layout, .prediction-workspace, .backtest-lab-page, .dashboard-page) :where(input, select, textarea) {
    background: var(--mf-color-bg-elevated);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-control);
    color: var(--mf-color-text);
    min-height: var(--mf-control-h-md);
    min-width: 0;
    padding: 0 var(--mf-space-3);
  }

  :where(.bot-ops-layout, .prediction-workspace, .backtest-lab-page, .dashboard-page) button:not(.mf-button, .mf-table-link) {
    align-items: center;
    background: var(--mf-color-accent);
    border: 1px solid transparent;
    border-radius: var(--mf-radius-control);
    color: #071009;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 680;
    gap: var(--mf-space-2);
    justify-content: center;
    min-height: var(--mf-control-h-md);
    padding: 0 var(--mf-space-3);
  }

  :where(.bot-ops-layout, .prediction-workspace, .backtest-lab-page, .dashboard-page) :where(.secondary-button, .icon-button, .ghost-link) {
    background: var(--mf-color-panel-raised) !important;
    border-color: var(--mf-color-border) !important;
    color: var(--mf-color-muted) !important;
  }

  :where(.bot-ops-layout, .prediction-workspace, .backtest-lab-page, .dashboard-page) .danger-button {
    background: rgb(var(--mf-color-danger-rgb) / 10%) !important;
    border-color: rgb(var(--mf-color-danger-rgb) / 24%) !important;
    color: var(--mf-color-danger) !important;
  }

  .icon-button {
    padding: 0 !important;
    width: var(--mf-control-h-md);
  }

  .positive {
    color: var(--mf-color-success) !important;
  }
  .negative {
    color: var(--mf-color-danger) !important;
  }

  .empty-state {
    align-items: center;
    color: var(--mf-color-muted);
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    font-size: 0.72rem;
    gap: var(--mf-space-2);
    justify-content: center;
    min-height: 130px;
    padding: var(--mf-space-5);
    text-align: center;
  }

  .empty-state strong {
    color: var(--mf-color-text);
  }
  .empty-state a {
    color: var(--mf-color-accent);
    font-weight: 700;
  }
  .empty-state-compact {
    min-height: 80px;
  }

  .row-avatar {
    align-items: center;
    background: rgb(var(--accent-rgb, 126, 207, 152), 0.11);
    border: 1px solid var(--mf-color-border-strong);
    border-radius: var(--mf-radius-control);
    color: var(--mf-color-accent);
    display: inline-flex;
    font-size: 0.58rem;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    width: 28px;
  }

  .studio-loading {
    animation: mf-loading 1.2s ease-in-out infinite alternate;
    background: var(--mf-color-panel);
    height: 100%;
    width: 100%;
  }

  .mf-panel {
    display: flex;
    flex-direction: column;
    gap: var(--mf-page-gap);
    padding: var(--mf-surface-card-padding);
  }

  .mf-panel-compact {
    min-height: 120px;
  }

  .mf-panel-standard {
    min-height: 220px;
  }

  .mf-panel-table,
  .mf-panel-chart {
    min-height: 300px;
  }

  .mf-panel-tall {
    min-height: 420px;
  }

  .mf-layout-two-up {
    display: grid;
    gap: var(--mf-page-gap);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mf-layout-stack {
    align-content: start;
    display: grid;
    gap: var(--mf-page-gap);
  }

  .mf-stat-grid {
    --mf-stat-columns: 4;

    display: grid;
    gap: var(--mf-space-2);
    grid-template-columns: repeat(var(--mf-stat-columns), minmax(0, 1fr));
  }

  .mf-stat-card {
    background: var(--mf-color-bg-elevated);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-control);
    display: grid;
    font-size: var(--mf-text-xs);
    gap: var(--mf-space-1);
    padding: var(--mf-space-3);
  }

  .mf-stat-card > :is(span, small) {
    color: var(--mf-color-muted);
  }

  .mf-stat-card > strong {
    color: var(--mf-color-text);
    font-size: var(--mf-text-sm);
  }

  .mf-button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--mf-radius-control);
    display: inline-flex;
    font-size: var(--mf-text-base);
    font-weight: 650;
    gap: var(--mf-space-2);
    justify-content: center;
    min-height: var(--mf-control-h-md);
    padding: 0 var(--mf-space-4);
    transition:
      background 140ms ease,
      border-color 140ms ease,
      color 140ms ease,
      transform 140ms ease;
  }

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

  .mf-button-sm {
    min-height: var(--mf-control-h-sm);
    padding-inline: var(--mf-space-3);
  }

  .mf-button-primary {
    background: var(--mf-color-accent);
    color: #071009;
  }

  .mf-button-secondary {
    background: var(--mf-color-panel-raised);
    border-color: var(--mf-color-border);
    color: var(--mf-color-text);
  }

  .mf-button-ghost {
    background: transparent;
    color: var(--mf-color-muted);
  }

  .mf-button-danger {
    background: rgb(var(--mf-color-danger-rgb) / 12%);
    border-color: rgb(var(--mf-color-danger-rgb) / 28%);
    color: var(--mf-color-danger);
  }

  .mf-metric {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 14px;
    min-height: var(--mf-kpi-h);
    overflow: hidden;
    padding: var(--mf-surface-card-padding);
    position: relative;
  }

  .mf-metric-accent {
    border-color: transparent;
  }

  .mf-metric-trend,
  .mf-metric-gauge {
    grid-template-columns: minmax(0, 1fr) clamp(42px, 4vw, 72px);
  }

  .mf-metric-summary {
    grid-template-columns: minmax(0, 1fr) clamp(66px, 5.4vw, 86px);
  }

  .mf-metric-summary-icon {
    align-items: center;
    align-self: stretch;
    color: var(--mf-color-accent);
    display: inline-flex;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
  }

  .mf-metric-summary-icon::before {
    border: 1px solid rgb(var(--accent-rgb, 126, 207, 152), 0.25);
    border-radius: 50%;
    content: "";
    height: clamp(30px, 2.7vw, 42px);
    position: absolute;
    width: clamp(30px, 2.7vw, 42px);
  }

  .mf-metric-summary-icon::after {
    background: linear-gradient(90deg, transparent, var(--mf-color-accent), transparent);
    bottom: var(--mf-summary-icon-underline-offset, 9px);
    content: "";
    height: 2px;
    left: 50%;
    opacity: 0.78;
    position: absolute;
    transform: translateX(-50%);
    width: clamp(22px, 2vw, 34px);
  }

  @media (min-width: 861px) {
    .mf-metric-summary-icon {
      --mf-summary-icon-underline-offset: 3px;
    }
  }

  .mf-metric-summary-icon svg {
    filter: drop-shadow(0 0 8px rgb(var(--accent-rgb, 126, 207, 152), 0.34));
    position: relative;
    z-index: 1;
  }

  .mf-metric-summary .mf-metric-copy {
    justify-content: center;
  }

  .mf-metric-summary .mf-metric-detail {
    align-items: center;
    display: flex;
    gap: 0;
    margin-top: 7px;
    min-width: 0;
    white-space: nowrap;
  }

  .mf-metric-summary .mf-metric-detail > span {
    align-items: center;
    color: var(--mf-color-text);
    display: inline-flex;
    font-size: var(--mf-text-xs);
    font-weight: 680;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mf-metric-summary .mf-metric-detail > span::before {
    background: var(--mf-color-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgb(var(--accent-rgb, 126, 207, 152), 0.12);
    content: "";
    display: inline-block;
    height: 5px;
    margin-right: 7px;
    vertical-align: 1px;
    width: 5px;
  }

  .mf-metric-summary .mf-metric-detail > small {
    border-left: 1px solid var(--mf-color-border);
    flex: 0 1 auto;
    font-size: var(--mf-text-xs);
    margin-left: 8px;
    min-width: 0;
    overflow: hidden;
    padding-left: 8px;
    text-overflow: ellipsis;
  }

  .mf-metric > svg {
    color: var(--mf-color-muted);
  }

  .mf-metric-default > svg {
    position: absolute;
    right: var(--mf-panel-pad);
    top: var(--mf-panel-pad);
  }

  .mf-metric-trend > svg,
  .mf-metric-gauge > svg {
    display: none;
  }

  .mf-metric-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    z-index: 1;
  }

  .mf-metric-copy > span {
    color: var(--mf-color-muted);
    font-size: var(--mf-text-xs);
    font-weight: 650;
  }

  .mf-metric-copy > strong {
    font-size: var(--mf-text-metric);
    font-weight: 680;
    letter-spacing: -0.045em;
    line-height: 0.98;
    margin-top: 5px;
  }

  .mf-metric-detail {
    color: var(--mf-color-muted);
    display: grid;
    font-size: var(--mf-text-sm);
    gap: 2px;
    margin-top: 7px;
  }

  .mf-metric-visual {
    align-items: center;
    align-self: center;
    display: flex;
    height: clamp(46px, 5vh, 72px);
    justify-content: center;
    min-width: 0;
    opacity: 1;
    position: static;
    width: 100%;
  }

  .mf-metric-trend .mf-metric-visual {
    background:
      linear-gradient(180deg, rgb(var(--accent-rgb, 126, 207, 152), 0.1), rgb(var(--accent-rgb, 126, 207, 152), 0.03)),
      rgb(255 255 255 / 2%);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-card);
    box-shadow: inset 0 0 12px rgb(var(--accent-rgb, 126, 207, 152), 0.03);
    overflow: hidden;
    padding: 5px;
    position: relative;
  }

  .mf-metric-trend .mf-metric-visual::before {
    background: rgb(255 255 255 / 8%);
    bottom: 11px;
    content: "";
    height: 1px;
    left: 2px;
    position: absolute;
    right: 2px;
  }

  .mf-metric-trend .mf-sparkline {
    position: relative;
  }

  .mf-metric-gauge .mf-metric-visual {
    aspect-ratio: 1 / 1;
    height: auto;
    width: 100%;
  }

  .mf-metric-visual .metric-donut-shell {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    position: relative;
    width: 100%;
  }

  .mf-metric-visual .metric-donut {
    appearance: none;
    background: conic-gradient(var(--mf-color-accent) var(--metric-progress, 0%), var(--mf-color-border) 0);
    border: 0;
    border-radius: 50%;
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
  }

  .mf-metric-visual .metric-donut::-webkit-progress-bar,
  .mf-metric-visual .metric-donut::-webkit-progress-value {
    background: transparent;
  }

  .mf-metric-visual .metric-donut-shell::after {
    background: var(--mf-color-panel);
    border-radius: 50%;
    content: "";
    height: 74%;
    position: absolute;
    width: 74%;
  }

  .mf-metric-visual .metric-donut-shell > span {
    color: var(--mf-color-text);
    font-size: var(--mf-text-xs);
    font-weight: 750;
    position: relative;
    z-index: 1;
  }

  .mf-sparkline {
    height: 100%;
    overflow: visible;
    width: 100%;
  }

  .mf-sparkline path {
    fill: none;
    filter: drop-shadow(0 0 6px rgb(var(--accent-rgb, 126, 207, 152), 0.2));
    stroke: var(--mf-color-accent);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
  }

  .mf-badge {
    align-items: center;
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-card);
    color: var(--mf-color-muted);
    display: inline-flex;
    font-size: 0.65rem;
    font-weight: 700;
    gap: var(--mf-space-1);
    line-height: 1;
    min-height: 24px;
    padding: 0 var(--mf-space-2);
    white-space: nowrap;
  }

  .mf-badge-success {
    background: rgb(var(--mf-color-success-rgb) / 10%);
    border-color: rgb(var(--mf-color-success-rgb) / 24%);
    color: var(--mf-color-success);
  }
  .mf-badge-warning {
    background: rgb(229 185 111 / 10%);
    border-color: rgb(229 185 111 / 24%);
    color: var(--mf-color-warning);
  }
  .mf-badge-danger {
    background: rgb(var(--mf-color-danger-rgb) / 10%);
    border-color: rgb(var(--mf-color-danger-rgb) / 24%);
    color: var(--mf-color-danger);
  }
  .mf-badge-info {
    background: rgb(123 167 232 / 10%);
    border-color: rgb(123 167 232 / 24%);
    color: var(--mf-color-info);
  }
  .mf-badge-accent {
    background: rgb(var(--accent-rgb, 126, 207, 152), 0.1);
    border-color: var(--mf-color-border-strong);
    color: var(--mf-color-accent);
  }

  .mf-badge-indicator,
  .mf-badge-text {
    background: transparent;
    border: 0;
    border-radius: 0;
    justify-content: flex-start;
    min-height: auto;
    padding: 0;
  }

  .mf-badge-indicator::before {
    background: currentColor;
    border-radius: 50%;
    content: "";
    height: 6px;
    width: 6px;
  }

  .mf-tabs {
    align-items: center;
    background: var(--mf-color-bg-elevated);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-card);
    display: flex;
    gap: var(--mf-space-1);
    overflow-x: auto;
    padding: var(--mf-space-1);
  }

  .mf-tabs-compact {
    background: transparent;
    border: 0;
    border-radius: var(--mf-radius-card);
    gap: 5px;
    padding: 0;
  }

  .mf-tabs button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: var(--mf-radius-control);
    color: var(--mf-color-muted);
    display: inline-flex;
    font-size: var(--mf-text-sm);
    font-weight: 650;
    gap: var(--mf-space-2);
    min-height: var(--mf-control-h-sm);
    padding-inline: var(--mf-space-3);
    white-space: nowrap;
  }

  .mf-tabs button[aria-selected="true"] {
    background: var(--mf-color-panel-raised);
    color: var(--mf-color-accent);
  }

  .mf-tabs-compact button {
    border-radius: var(--mf-radius-card);
    min-height: 23px;
    padding-inline: 7px;
  }

  .mf-tabs-compact button[aria-selected="true"] {
    background: rgb(var(--accent-rgb, 126, 207, 152), 0.16);
  }

  .mf-field {
    color: var(--mf-color-muted);
    display: grid;
    font-size: 0.68rem;
    font-weight: 650;
    gap: var(--mf-space-2);
    min-width: 0;
  }

  .mf-field :where(input, select, textarea) {
    background: var(--mf-color-bg-elevated);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-control);
    color: var(--mf-color-text);
    min-height: var(--mf-control-h-md);
    min-width: 0;
    padding: 0 var(--mf-space-3);
    width: 100%;
  }

  .mf-field small {
    color: var(--mf-color-subtle);
    font-weight: 450;
    line-height: 1.4;
  }

  .mf-secret-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--mf-control-h-md);
  }

  .mf-secret-control input {
    border-radius: var(--mf-radius-control) 0 0 var(--mf-radius-control) !important;
  }

  .mf-secret-control button {
    align-items: center;
    background: var(--mf-color-panel-raised);
    border: 1px solid var(--mf-color-border);
    border-left: 0;
    border-radius: 0 var(--mf-radius-control) var(--mf-radius-control) 0;
    color: var(--mf-color-muted);
    display: inline-flex;
    justify-content: center;
  }

  .mf-field [aria-invalid="true"] {
    border-color: var(--mf-color-danger);
  }

  .mf-switch {
    align-items: center;
    display: inline-flex;
    gap: var(--mf-space-2);
  }

  .mf-switch input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
  }

  .mf-switch > span {
    background: var(--mf-color-subtle);
    border-radius: var(--mf-radius-card);
    display: inline-flex;
    height: 22px;
    padding: 3px;
    transition: background 140ms ease;
    width: 38px;
  }

  .mf-switch > span::after {
    background: #fff;
    border-radius: 50%;
    content: "";
    height: 16px;
    transition: transform 140ms ease;
    width: 16px;
  }

  .mf-switch input:checked + span {
    background: var(--mf-color-accent);
  }

  .mf-switch input:checked + span::after {
    transform: translateX(16px);
  }

  .mf-switch input:focus-visible + span {
    box-shadow: var(--mf-focus);
  }

  .mf-switch em {
    color: var(--mf-color-muted);
    font-size: 0.7rem;
    font-style: normal;
  }

  .mf-alert {
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-control);
    display: grid;
    font-size: 0.72rem;
    gap: 3px;
    padding: var(--mf-space-3);
  }

  .mf-alert span {
    color: var(--mf-color-muted);
    line-height: 1.45;
  }
  .mf-alert-success {
    border-color: rgb(var(--mf-color-success-rgb) / 28%);
  }
  .mf-alert-warning {
    border-color: rgb(229 185 111 / 28%);
  }
  .mf-alert-danger {
    border-color: rgb(var(--mf-color-danger-rgb) / 30%);
  }
  .mf-alert-info {
    border-color: rgb(123 167 232 / 28%);
  }

  .mf-table-scroll {
    min-width: 0;
    overflow-x: auto;
  }

  .mf-table {
    border-collapse: collapse;
    font-size: 0.7rem;
    table-layout: auto;
    width: 100%;
  }

  .mf-table th,
  .mf-table td {
    border-bottom: 1px solid var(--mf-color-border);
    height: var(--mf-row-h);
    padding: var(--mf-space-2) var(--mf-space-3);
    text-align: left;
    vertical-align: middle;
  }

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

  .mf-table th {
    color: var(--mf-color-subtle);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .mf-table tbody tr {
    transition: background 120ms ease;
  }

  .mf-table tbody tr:hover,
  .mf-table-row-selected {
    background: rgb(var(--accent-rgb, 126, 207, 152), 0.06);
  }

  .mf-table-link {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    display: inline-flex;
    gap: var(--mf-space-2);
    padding: 0;
    text-align: left;
  }

  .mf-table-link small {
    color: var(--mf-color-muted);
    display: block;
    font-size: 0.62rem;
    margin-top: 2px;
  }

  .mf-cell-subline {
    color: var(--mf-color-muted);
    display: block;
    font-size: 0.62rem;
    margin-top: 3px;
  }

  .mf-table-actions {
    align-items: center;
    display: inline-flex;
    gap: var(--mf-space-1);
  }

  .mf-identity {
    align-items: center;
    display: inline-flex;
    gap: var(--mf-space-2);
  }

  .mf-venue {
    align-items: center;
    display: inline-flex;
    gap: var(--mf-space-2);
  }

  .mf-venue i {
    align-items: center;
    background: rgb(var(--accent-rgb, 126, 207, 152), 0.1);
    border: 1px solid var(--mf-color-border-strong);
    border-radius: var(--mf-radius-control);
    color: var(--mf-color-accent);
    display: inline-flex;
    font-size: 0.58rem;
    font-style: normal;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    width: 28px;
  }

  .mf-form-grid {
    display: grid;
    gap: var(--mf-space-3);
  }

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

  .mf-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--mf-space-2);
  }

  .mf-detail-list {
    display: grid;
    margin: 0;
  }

  .mf-detail-list > div {
    align-items: center;
    border-bottom: 1px solid var(--mf-color-border);
    display: flex;
    font-size: 0.72rem;
    gap: var(--mf-space-4);
    justify-content: space-between;
    min-height: var(--mf-row-h);
  }
  .mf-detail-list > div:last-child {
    border-bottom: 0;
  }

  .mf-detail-list dt {
    color: var(--mf-color-muted);
  }
  .mf-detail-list dd {
    font-weight: 650;
    margin: 0;
    text-align: right;
  }

  .mf-accent-picker {
    border: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--mf-space-2);
    margin: 0;
    padding: 0;
  }

  .mf-accent-picker legend {
    color: var(--mf-color-muted);
    font-size: 0.68rem;
    font-weight: 650;
    margin-bottom: var(--mf-space-2);
  }

  .mf-accent-picker button {
    align-items: center;
    background: var(--mf-color-bg-elevated);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-control);
    color: var(--mf-color-muted);
    display: inline-flex;
    font-size: 0.68rem;
    gap: var(--mf-space-2);
    min-height: var(--mf-control-h-sm);
    padding: 0 var(--mf-space-3);
    text-transform: capitalize;
  }

  .mf-accent-picker button[aria-pressed="true"] {
    border-color: var(--mf-color-border-strong);
    color: var(--mf-color-text);
  }

  .mf-accent-picker i {
    background: var(--swatch, var(--mf-color-accent));
    border-radius: 50%;
    height: 10px;
    width: 10px;
  }

  .mf-checkbox {
    align-items: center;
    color: var(--mf-color-muted);
    display: flex;
    font-size: 0.7rem;
    gap: var(--mf-space-2);
  }

  .mf-checkbox input {
    accent-color: var(--mf-color-accent);
  }

  .mf-dialog-backdrop {
    align-items: center;
    background: rgb(0 0 0 / 62%);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: var(--mf-space-5);
    position: fixed;
    z-index: 100;
  }

  .mf-dialog {
    background: var(--mf-color-panel);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-card);
    color: var(--mf-color-text);
    display: grid;
    gap: var(--mf-space-4);
    margin: 0;
    max-width: 520px;
    padding: var(--mf-space-5);
    position: static;
    width: 100%;
  }

  .mf-dialog.connection-dialog {
    max-height: min(88vh, 860px);
    max-width: 680px;
    overflow-y: auto;
  }

  .mf-dialog > header {
    align-items: flex-start;
    display: flex;
    gap: var(--mf-space-4);
    justify-content: space-between;
  }

  .mf-dialog h2 {
    font-size: 0.95rem;
  }
  .mf-dialog p {
    color: var(--mf-color-muted);
    font-size: 0.7rem;
    margin-top: var(--mf-space-1);
  }
  .mf-dialog-actions {
    display: flex;
    gap: var(--mf-space-2);
    justify-content: flex-end;
  }

  .mf-table-empty {
    color: var(--mf-color-muted);
    padding-block: var(--mf-space-8) !important;
    text-align: center !important;
  }

  .mf-route-state {
    align-items: flex-start;
    justify-content: center;
    margin: min(12vh, 120px) auto;
    max-width: 560px;
  }

  .mf-route-state > p {
    color: var(--mf-color-muted);
    font-size: 0.78rem;
    line-height: 1.6;
  }

  .mf-route-loading {
    display: grid;
    gap: var(--mf-page-gap);
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mf-route-loading span {
    animation: mf-loading 1.2s ease-in-out infinite alternate;
    background: linear-gradient(90deg, var(--mf-color-panel), var(--mf-color-panel-raised), var(--mf-color-panel));
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-card);
    min-height: var(--mf-kpi-h);
  }

  .mf-route-loading span:last-child {
    animation-delay: 220ms;
  }

  @keyframes mf-loading {
    to {
      opacity: 0.58;
    }
  }

  @media (max-width: 860px) {
    .mf-page-header,
    .mf-panel-header {
      align-items: stretch;
      flex-direction: column;
    }

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

  @media (max-width: 980px) {
    .mf-layout-two-up {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  @media (max-width: 520px) {
    .mf-page-actions > .mf-button {
      flex: 1 1 auto;
    }

    .mf-panel {
      padding: var(--mf-space-4);
    }

    .mf-metric {
      min-height: 108px;
    }

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

    .mf-stat-grid {
      --mf-stat-columns: 1;
    }
  }
}

/*!******************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./src/styles/pages.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************/
@layer pages {
  .mf-metric-grid {
    display: grid;
    gap: var(--mf-page-gap);
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .app-shell {
    display: grid;
    grid-template-columns: var(--mf-sidebar-w) minmax(0, 1fr);
    height: 100vh;
    min-height: 680px;
    overflow: hidden;
  }

  .app-sidebar {
    background: var(--mf-color-sidebar);
    border-right: 1px solid var(--mf-color-sidebar-divider);
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 0;
    padding: clamp(16px, 2.4vh, 26px) 14px 16px;
    z-index: 20;
  }

  .brand-block {
    align-items: center;
    display: flex;
    gap: 12px;
    min-height: 54px;
    padding: 0 10px 22px;
  }

  .brand-mark,
  .login-brand-mark {
    align-items: center;
    color: var(--mf-color-accent);
    display: inline-flex;
    justify-content: center;
  }

  .brand-logo {
    height: 32px;
    width: 32px;
  }
  .brand-block strong {
    font-size: clamp(16px, 1.35vw, 24px);
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  .nav-groups {
    min-height: 0;
  }
  .nav-group {
    display: grid;
    gap: 4px;
  }

  .nav-link {
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--mf-radius-card);
    color: var(--mf-color-muted);
    display: flex;
    font-size: clamp(12px, calc(9px + 0.18vw), 15px);
    font-weight: 600;
    gap: 14px;
    min-height: clamp(40px, 5.25vh, 54px);
    padding: 0 16px;
    transition:
      background 140ms ease,
      color 140ms ease;
    white-space: nowrap;
  }

  .nav-link:hover {
    background: var(--mf-color-panel);
    color: var(--mf-color-text);
  }
  .nav-link-active {
    background: rgb(var(--accent-rgb, 126, 207, 152), 0.16);
    border-color: rgb(var(--accent-rgb, 126, 207, 152), 0.22);
    color: var(--mf-color-text);
  }
  .workspace-menu-wrap {
    margin-top: auto;
    position: relative;
  }

  .workspace-card {
    align-items: center;
    background: var(--mf-color-panel);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-card);
    color: var(--mf-color-text);
    display: grid;
    gap: var(--mf-space-2);
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 54px;
    padding: var(--mf-space-2);
    text-align: left;
    width: 100%;
  }

  .workspace-avatar {
    align-items: center;
    background: color-mix(in srgb, var(--mf-color-accent) 60%, #000000);
    border-radius: 50%;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.62rem;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    width: 32px;
  }

  .workspace-card strong {
    display: block;
    font-size: 0.67rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .workspace-card small {
    color: var(--mf-color-muted);
    display: block;
    font-size: 0.58rem;
    margin-top: 2px;
  }
  .workspace-menu {
    background: var(--mf-color-panel-raised);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-control);
    bottom: calc(100% + 6px);
    box-shadow: var(--mf-shadow-panel);
    left: 0;
    padding: var(--mf-space-1);
    position: absolute;
    width: 100%;
  }
  .workspace-menu-item {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: var(--mf-radius-control);
    color: var(--mf-color-muted);
    display: flex;
    font-size: 0.68rem;
    gap: var(--mf-space-2);
    min-height: 34px;
    padding: 0 var(--mf-space-2);
    width: 100%;
  }

  .app-main {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    padding: var(--mf-page-pad-top) var(--mf-page-pad-x) var(--mf-page-pad-bottom);
  }
  .app-topbar {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-inline: auto;
    margin-bottom: var(--mf-page-gap);
    max-width: var(--mf-page-max);
    min-height: var(--mf-topbar-h);
    padding: 0;
    width: 100%;
  }
  .app-topbar h1 {
    font-size: var(--mf-text-page-title);
    font-weight: 670;
    letter-spacing: -0.03em;
    line-height: 1.05;
  }
  .page-subtitle {
    color: var(--mf-color-muted);
    font-size: var(--mf-text-sm);
    margin-top: 4px;
  }
  .page-content {
    height: 100%;
    margin-inline: auto;
    max-width: var(--mf-page-max);
    min-width: 0;
    overflow: auto;
    padding: 0;
    width: 100%;
  }
  .topbar-actions {
    align-items: center;
    display: flex;
  }
  .notification-wrap {
    position: relative;
  }
  .topbar-icon-button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--mf-color-accent);
    display: inline-flex;
    height: 40px;
    justify-content: center;
    position: relative;
    width: 40px;
  }
  .notification-badge {
    align-items: center;
    background: var(--mf-color-danger);
    border: 2px solid var(--mf-color-bg);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 0.52rem;
    font-weight: 800;
    height: 18px;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
    width: 18px;
  }
  .notification-popover {
    background: var(--mf-color-panel);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-card);
    box-shadow: var(--mf-shadow-panel);
    color: var(--mf-color-text);
    inset: auto 0 auto auto;
    margin: var(--mf-space-2) 0 0;
    max-width: min(380px, calc(100vw - 24px));
    padding: 0;
    position: absolute;
    width: 360px;
    z-index: 50;
  }
  .notification-popover-head {
    align-items: center;
    border-bottom: 1px solid var(--mf-color-border);
    display: flex;
    font-size: 0.72rem;
    justify-content: space-between;
    padding: var(--mf-space-3);
  }
  .notification-popover a {
    color: var(--mf-color-accent);
  }
  .notification-list {
    display: grid;
    max-height: 360px;
    overflow: auto;
  }
  .notification-item {
    align-items: start;
    border-bottom: 1px solid var(--mf-color-border);
    display: grid;
    gap: var(--mf-space-2);
    grid-template-columns: 8px minmax(0, 1fr) auto;
    padding: var(--mf-space-3);
  }
  .notification-list > .notification-item:last-child {
    border-bottom: 0;
  }
  .notification-severity {
    background: var(--mf-color-info);
    border-radius: 50%;
    height: 7px;
    margin-top: 4px;
    width: 7px;
  }
  .notification-severity-warning {
    background: var(--mf-color-warning);
  }
  .notification-severity-critical {
    background: var(--mf-color-danger);
  }
  .notification-copy strong,
  .notification-copy small {
    display: block;
  }
  .notification-copy strong {
    font-size: 0.68rem;
  }
  .notification-copy small,
  .notification-item em {
    color: var(--mf-color-muted);
    font-size: 0.6rem;
    font-style: normal;
    line-height: 1.45;
    margin-top: 2px;
  }
  .notification-empty {
    color: var(--mf-color-muted);
    display: grid;
    font-size: 0.68rem;
    gap: var(--mf-space-1);
    padding: var(--mf-space-5);
    text-align: center;
  }
  .notification-footer-link {
    display: block;
    font-size: 0.66rem;
    padding: var(--mf-space-3);
    text-align: center;
  }

  .login-portal {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: var(--mf-space-5);
  }
  .login-panel {
    background: var(--mf-color-panel);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-card);
    box-shadow: var(--mf-shadow-panel);
    display: grid;
    gap: var(--mf-space-5);
    max-width: 410px;
    padding: var(--mf-space-8);
    width: 100%;
  }
  .login-brand-mark .brand-logo {
    height: 42px;
    width: 42px;
  }
  .login-heading {
    text-align: center;
  }
  .login-heading p {
    color: var(--mf-color-accent);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .login-heading h1 {
    font-size: 1.5rem;
    margin-top: var(--mf-space-1);
  }
  .login-form {
    display: grid;
    gap: var(--mf-space-3);
  }
  .login-form label {
    color: var(--mf-color-muted);
    display: grid;
    font-size: 0.68rem;
    font-weight: 650;
    gap: var(--mf-space-2);
  }
  .login-form input {
    background: var(--mf-color-bg-elevated);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-control);
    color: var(--mf-color-text);
    min-height: 42px;
    padding: 0 var(--mf-space-3);
  }
  .login-submit {
    align-items: center;
    background: var(--mf-color-accent);
    border: 0;
    border-radius: var(--mf-radius-control);
    color: #071009;
    display: inline-flex;
    font-weight: 750;
    gap: var(--mf-space-2);
    justify-content: center;
    min-height: 42px;
  }
  .login-error {
    color: var(--mf-color-danger);
    font-size: 0.68rem;
  }

  .dashboard-page,
  .bot-ops-layout,
  .bot-detail-page,
  .prediction-workspace,
  .backtest-lab-page {
    display: grid;
    gap: var(--mf-page-gap);
    margin: 0 auto;
    max-width: var(--mf-page-max);
    min-width: 0;
  }

  .dashboard-page,
  .bot-ops-layout {
    grid-template-rows: minmax(90px, 0.27fr) minmax(226px, 1.08fr) minmax(226px, 0.98fr);
    height: 100%;
  }

  .bot-metrics {
    grid-row: 1;
  }

  .page-content:has(.bot-ops-layout) {
    overflow: hidden;
  }

  .dashboard-primary-grid {
    display: grid;
    gap: var(--mf-page-gap);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-secondary-grid {
    display: grid;
    gap: var(--mf-page-gap);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dashboard-primary-grid > *,
  .dashboard-secondary-grid > * {
    min-height: 0;
  }

  .dashboard-page .mf-panel {
    display: grid;
    gap: 0;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
  }

  .dashboard-page .mf-panel-header {
    align-items: center;
    margin-bottom: clamp(10px, 1vh, 18px);
    min-width: 0;
  }

  .dashboard-page .mf-panel-header > :first-child {
    min-width: 0;
  }

  .dashboard-page .ghost-link {
    align-items: center;
    background: transparent !important;
    border: 1px solid var(--mf-color-border) !important;
    border-radius: var(--mf-radius-card);
    color: var(--mf-color-muted) !important;
    display: inline-flex;
    font-size: var(--mf-text-xs) !important;
    font-weight: 650;
    flex: 0 0 auto;
    height: 28px;
    justify-content: center;
    line-height: 1;
    margin-left: auto;
    padding: 0 9px;
    white-space: nowrap;
  }

  .dashboard-page .mf-metric-trend {
    grid-template-columns: minmax(170px, max-content) minmax(0, 1fr);
  }

  .dashboard-page .mf-metric-gauge {
    grid-template-columns: minmax(0, 1fr) clamp(72px, calc(54px + 0.9vw), 88px);
  }

  .bot-metrics .mf-metric-gauge {
    grid-template-columns: minmax(0, 1fr) clamp(72px, calc(54px + 0.9vw), 88px);
  }
  .mf-panel-kpis {
    align-items: baseline;
    display: flex;
    gap: var(--mf-space-3);
    margin-top: var(--mf-space-2);
  }
  .mf-panel-kpis strong {
    font-size: 1.15rem;
  }
  .mf-panel-kpis span {
    color: var(--mf-color-success);
    font-size: 0.7rem;
  }
  .dashboard-equity-chart {
    background: var(--mf-color-bg-elevated);
    border-radius: var(--mf-radius-card);
    flex: 1 1;
    min-height: 0;
    overflow: hidden;
  }
  .portfolio-panel > [role="tabpanel"] {
    display: flex;
    flex: 1 1;
    min-height: 0;
  }
  .portfolio-panel > [role="tabpanel"] > .dashboard-equity-chart {
    width: 100%;
  }
  .dashboard-equity-chart svg,
  .studio-backtest-chart svg {
    height: 100%;
    overflow: visible;
    width: 100%;
  }

  .dashboard-page .mf-panel-table .mf-table-scroll,
  .dashboard-page .timeline-list {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .dashboard-page .mf-panel-table .mf-table-scroll {
    min-width: 0;
    overflow-x: hidden;
  }

  .dashboard-page .mf-panel-table {
    --mf-dashboard-table-head-h: clamp(30px, 3.4vh, 36px);
    --mf-dashboard-table-row-h: clamp(40px, 4.2vh, 44px);
  }

  .dashboard-page .mf-table {
    font-size: clamp(0.7rem, calc(0.56rem + 0.18vw), 0.9rem);
    height: auto;
    min-width: 0;
    table-layout: fixed;
    width: 100%;
  }

  .dashboard-page .mf-table thead tr {
    height: var(--mf-dashboard-table-head-h);
  }

  .dashboard-page .mf-table tbody tr {
    height: var(--mf-dashboard-table-row-h);
  }

  .dashboard-page .mf-table :where(th, td) {
    height: auto;
    overflow: hidden;
    padding: 6px 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-page .mf-table th {
    font-size: clamp(0.62rem, calc(0.5rem + 0.14vw), 0.78rem);
  }

  .dashboard-page .mf-badge {
    font-size: clamp(0.65rem, calc(0.52rem + 0.14vw), 0.78rem);
  }

  .dashboard-page .mf-table .mf-identity {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dashboard-page .mf-panel-table .row-avatar {
    display: none;
  }

  .dashboard-page .bot-performance-panel .mf-table :is(th, td):nth-child(1) {
    width: 36%;
  }

  .dashboard-page .bot-performance-panel .mf-table :is(th, td):nth-child(2) {
    width: 15%;
  }

  .dashboard-page .bot-performance-panel .mf-table :is(th, td):nth-child(3),
  .dashboard-page .bot-performance-panel .mf-table :is(th, td):nth-child(4) {
    width: 17%;
  }

  .dashboard-page .bot-performance-panel .mf-table :is(th, td):nth-child(5) {
    width: 15%;
  }

  .dashboard-page .recent-orders-panel .mf-table :is(th, td):nth-child(1) {
    width: 18%;
  }

  .dashboard-page .recent-orders-panel .mf-table :is(th, td):nth-child(2) {
    width: 14%;
  }

  .dashboard-page .recent-orders-panel .mf-table :is(th, td):nth-child(3) {
    width: 30%;
  }

  .dashboard-page .recent-orders-panel .mf-table :is(th, td):nth-child(4) {
    width: 17%;
  }

  .dashboard-page .recent-orders-panel .mf-table :is(th, td):nth-child(5) {
    width: 21%;
  }
  .chart-grid {
    fill: none;
    stroke: var(--mf-color-border);
    stroke-width: 1;
  }
  .chart-line {
    fill: none;
    stroke: var(--mf-color-accent);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }
  .chart-axis-label {
    fill: var(--mf-color-subtle);
    font-size: 9px;
  }
  .chart-axis-x .chart-axis-label {
    text-anchor: middle;
  }
  .chart-end-dot {
    fill: var(--mf-color-accent);
  }
  .allocation-donut-layout {
    align-items: center;
    display: grid;
    flex: 1 1;
    gap: var(--mf-space-5);
    grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr);
  }
  .allocation-donut {
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    margin: auto;
    max-width: 100%;
    place-items: center;
    position: relative;
    width: clamp(190px, 25vh, 360px);
  }
  .allocation-donut::after {
    background: var(--mf-color-panel);
    border-radius: 50%;
    content: "";
    inset: 22%;
    position: absolute;
  }
  .allocation-donut > span {
    display: grid;
    position: relative;
    text-align: center;
    z-index: 1;
  }
  .allocation-donut strong {
    font-size: clamp(0.85rem, calc(0.68rem + 0.32vw), 1.2rem);
  }
  .allocation-donut small {
    color: var(--mf-color-muted);
    font-size: clamp(0.6rem, calc(0.5rem + 0.12vw), 0.75rem);
  }
  .allocation-list {
    display: grid;
  }
  .allocation-row {
    align-items: center;
    border-bottom: 1px solid var(--mf-color-border);
    display: grid;
    font-size: clamp(0.66rem, calc(0.52rem + 0.18vw), 0.85rem);
    gap: var(--mf-space-2);
    grid-template-columns: 8px minmax(0, 1fr) auto auto;
    min-height: clamp(34px, 4.2vh, 48px);
  }
  .allocation-row:last-child {
    border-bottom: 0;
  }
  .allocation-row i {
    border-radius: 50%;
    height: clamp(7px, 0.4vw, 9px);
    width: clamp(7px, 0.4vw, 9px);
  }
  .allocation-row small {
    color: var(--mf-color-muted);
    min-width: clamp(44px, 4vw, 60px);
    text-align: right;
  }
  .allocation-total-row {
    font-weight: 750;
  }
  .timeline-list,
  .log-list,
  .compact-list,
  .status-list {
    display: grid;
    min-width: 0;
  }
  .timeline-row {
    align-items: center;
    border-bottom: 1px solid var(--mf-color-border);
    display: grid;
    font-size: clamp(0.66rem, calc(0.54rem + 0.18vw), 0.84rem);
    gap: var(--mf-space-2);
    grid-template-columns: 42px 8px minmax(0, 1fr) auto;
    min-height: var(--mf-row-h);
    padding-block: 2px;
  }
  .timeline-row:last-child {
    border-bottom: 0;
  }
  .timeline-row > i {
    background: var(--mf-color-accent);
    border-radius: 50%;
    height: 7px;
    width: 7px;
  }
  .timeline-row small {
    color: var(--mf-color-muted);
    display: block;
    font-size: clamp(0.58rem, calc(0.48rem + 0.14vw), 0.72rem);
    margin-top: 2px;
  }
  .timeline-row > span {
    color: var(--mf-color-muted);
  }

  .dashboard-page .schedule-panel {
    --mf-schedule-row-h: clamp(42px, 4.8vh, 48px);
  }

  .dashboard-page .timeline-list {
    align-content: start;
    grid-auto-rows: var(--mf-schedule-row-h);
  }

  .dashboard-page .timeline-row {
    --mf-timeline-marker-center: calc(42px + var(--mf-space-2) + 4px);
    --mf-timeline-color: var(--mf-color-info);

    height: 100%;
    min-height: 0;
    position: relative;
  }

  .dashboard-page .timeline-row::after {
    background: linear-gradient(to bottom, var(--mf-timeline-color), var(--mf-color-border));
    content: "";
    height: calc(100% - 7px);
    left: var(--mf-timeline-marker-center);
    opacity: 0.58;
    position: absolute;
    top: calc(50% + 3.5px);
    transform: translateX(-50%);
    width: 1px;
  }

  .dashboard-page .timeline-row:last-child::after {
    display: none;
  }

  .dashboard-page .timeline-row > i {
    background: var(--mf-timeline-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mf-timeline-color) 12%, transparent);
    position: relative;
    justify-self: center;
    z-index: 1;
  }

  .dashboard-page .timeline-row-progress {
    --mf-timeline-color: var(--mf-color-accent);
  }

  .dashboard-page .timeline-row-scheduled {
    --mf-timeline-color: var(--mf-color-info);
  }

  .dashboard-page .timeline-row-completed {
    --mf-timeline-color: var(--mf-accent-teal);
  }

  .dashboard-page .timeline-row-paused {
    --mf-timeline-color: var(--mf-color-warning);
  }

  .bot-fleet-workspace {
    display: grid;
    grid-row: 2 / -1;
    height: 100%;
    min-height: 0;
  }
  .bot-fleet-panel {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }
  .bot-fleet-panel .mf-table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }
  .bot-fleet-panel .mf-table {
    min-width: 980px;
    table-layout: fixed;
  }
  .bot-fleet-panel .mf-table :is(th, td):nth-child(1) {
    width: 21%;
  }
  .bot-fleet-panel .mf-table :is(th, td):nth-child(2) {
    width: 15%;
  }
  .bot-fleet-panel .mf-table :is(th, td):nth-child(3) {
    width: 11%;
  }
  .bot-fleet-panel .mf-table :is(th, td):nth-child(4) {
    width: 7%;
  }
  .bot-fleet-panel .mf-table :is(th, td):nth-child(5),
  .bot-fleet-panel .mf-table :is(th, td):nth-child(6) {
    width: 10%;
  }
  .bot-fleet-panel .mf-table :is(th, td):nth-child(7) {
    width: 9%;
  }
  .bot-fleet-panel .mf-table :is(th, td):nth-child(8) {
    width: 10%;
  }
  .bot-fleet-panel .mf-table :is(th, td):nth-child(9) {
    width: 7%;
  }
  .bot-panel-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--mf-space-2);
    justify-content: flex-end;
  }
  .bot-fleet-search {
    align-items: center;
    background: var(--mf-color-bg-elevated);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-control);
    color: var(--mf-color-muted);
    display: flex;
    gap: var(--mf-space-2);
    min-height: var(--mf-control-h-md);
    padding-inline: var(--mf-space-3);
  }
  .bot-fleet-search:focus-within {
    border-color: rgb(var(--accent-rgb, 126, 207, 152), 0.48);
    box-shadow: var(--mf-focus);
    color: var(--mf-color-accent);
  }
  .bot-fleet-search input {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--mf-color-text);
    min-height: calc(var(--mf-control-h-md) - 2px);
    outline: 0;
    padding: 0;
    width: clamp(120px, 10vw, 180px);
  }
  .bot-fleet-search input::placeholder {
    color: var(--mf-color-muted);
  }
  .bot-status-filter {
    align-items: center;
    background: var(--mf-color-bg-elevated);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-control);
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 3px;
  }
  .bot-status-filter button {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--mf-color-muted) !important;
    min-height: calc(var(--mf-control-h-md) - 8px) !important;
    padding: 0 9px !important;
  }
  .bot-status-filter button:is(:hover, :focus-visible, .active) {
    background: rgb(var(--accent-rgb, 126, 207, 152), 0.12) !important;
    border-color: rgb(var(--accent-rgb, 126, 207, 152), 0.24) !important;
    color: var(--mf-color-accent) !important;
  }
  .bot-fleet-row {
    cursor: pointer;
    position: relative;
  }
  .bot-fleet-panel .mf-table tbody td {
    padding-block: 13px;
    transition:
      background-color 160ms ease,
      box-shadow 160ms ease,
      border-color 160ms ease;
  }
  .bot-fleet-row:is(:hover, :focus-within) {
    background: linear-gradient(90deg, rgb(var(--accent-rgb, 126, 207, 152), 0.1), rgb(var(--accent-rgb, 126, 207, 152), 0.035));
  }
  .bot-fleet-row:is(:hover, :focus-within) td {
    background: transparent;
    border-color: rgb(var(--accent-rgb, 126, 207, 152), 0.2);
  }
  .bot-fleet-row:is(:hover, :focus-within) td:first-child {
    border-radius: var(--mf-radius-control) 0 0 var(--mf-radius-control);
    box-shadow: inset 2px 0 0 var(--mf-color-accent);
  }
  .bot-fleet-row:is(:hover, :focus-within) td:last-child {
    border-radius: 0 var(--mf-radius-control) var(--mf-radius-control) 0;
  }
  .bot-name-cell {
    align-items: center;
    display: inline-flex;
    gap: var(--mf-space-2);
    min-width: 0;
  }
  .bot-name-cell > span:last-child {
    min-width: 0;
  }
  .bot-name-cell strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .bot-fleet-panel .row-avatar {
    background: radial-gradient(
      circle at 32% 28%,
      rgb(var(--accent-rgb, 126, 207, 152), 0.28),
      rgb(var(--accent-rgb, 126, 207, 152), 0.09)
    );
    border-radius: 50%;
    box-shadow:
      0 0 0 3px rgb(var(--accent-rgb, 126, 207, 152), 0.06),
      inset 0 1px 0 rgb(255 255 255 / 12%);
    height: 36px;
    width: 36px;
  }
  .bot-identity-copy strong {
    letter-spacing: -0.012em;
  }
  .bot-identity-copy small,
  .bot-next-run-cell small {
    color: var(--mf-color-muted);
    font-size: 0.62rem;
  }
  .bot-mode-tag {
    background: var(--mf-color-panel-raised);
    border: 1px solid var(--mf-color-border);
    border-radius: 999px;
    color: var(--mf-color-muted);
    display: inline-flex;
    font-size: 0.62rem;
    font-weight: 750;
    line-height: 1;
    padding: 5px 7px;
  }
  .bot-value-cell {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    font-weight: 760;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }
  .bot-next-run-cell strong {
    font-size: 0.7rem;
  }
  .bot-mobile-meta {
    display: none !important;
  }
  .bot-fleet-footer {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-top: auto;
    min-height: 28px;
  }
  .bot-pagination {
    display: flex;
    gap: var(--mf-space-1);
    justify-content: center;
  }
  .bot-pagination button {
    background: var(--mf-color-panel-raised) !important;
    border-color: var(--mf-color-border) !important;
    color: var(--mf-color-muted) !important;
    min-height: 28px !important;
    min-width: 28px;
    padding: 0 !important;
  }
  .bot-pagination button.active {
    background: rgb(var(--accent-rgb, 126, 207, 152), 0.1) !important;
    border-color: rgb(var(--accent-rgb, 126, 207, 152), 0.38) !important;
    color: var(--mf-color-accent) !important;
  }

  .bot-detail-page {
    padding-bottom: var(--mf-space-6);
  }
  .bot-detail-breadcrumb {
    align-items: center;
    color: var(--mf-color-muted);
    display: flex;
    font-size: var(--mf-text-sm);
    gap: var(--mf-space-2);
    min-height: 30px;
  }
  .bot-detail-breadcrumb a {
    align-items: center;
    color: var(--mf-color-accent);
    display: inline-flex;
    font-weight: 700;
    gap: var(--mf-space-2);
  }
  .bot-detail-breadcrumb strong {
    color: var(--mf-color-text);
  }
  .bot-detail-hero {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
  .bot-detail-identity {
    align-items: center;
    display: grid;
    gap: var(--mf-space-3);
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-width: 0;
  }
  .bot-detail-identity h2 {
    font-size: clamp(1.2rem, 1.8vw, 1.65rem);
    letter-spacing: -0.03em;
  }
  .bot-detail-avatar {
    align-items: center;
    background: rgb(var(--accent-rgb, 126, 207, 152), 0.12);
    border: 1px solid var(--mf-color-border-strong);
    border-radius: var(--mf-radius-card);
    color: var(--mf-color-accent);
    display: inline-flex;
    height: 52px;
    justify-content: center;
    width: 52px;
  }
  .bot-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mf-space-2);
    justify-content: flex-end;
  }
  .bot-execution-environment {
    align-items: center;
    background: var(--mf-color-bg-elevated);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-control);
    display: inline-flex;
    gap: var(--mf-space-1);
    padding: 4px;
  }
  .bot-execution-environment > span {
    color: var(--mf-color-muted);
    font-size: var(--mf-text-xs);
    font-weight: 750;
    padding-inline: var(--mf-space-1);
  }
  .bot-detail-subnav {
    align-items: center;
    background: var(--mf-color-panel-raised);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-card);
    display: flex;
    gap: var(--mf-space-1);
    overflow-x: auto;
    padding: 4px;
  }
  .bot-detail-subnav a {
    border-radius: calc(var(--mf-radius-control) - 2px);
    color: var(--mf-color-muted);
    flex: 0 0 auto;
    font-size: var(--mf-text-sm);
    font-weight: 700;
    padding: 8px 13px;
  }
  .bot-detail-subnav a:hover,
  .bot-detail-subnav a:focus-visible {
    background: rgb(var(--accent-rgb, 126, 207, 152), 0.09);
    color: var(--mf-color-accent);
  }
  .bot-detail-kpi-grid {
    display: grid;
    gap: var(--mf-page-gap);
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .bot-detail-kpi-grid .mf-metric {
    min-height: 112px;
  }
  .bot-detail-data-panel,
  .bot-detail-schedule-panel,
  .bot-detail-activity-panel,
  .bot-detail-orders-panel {
    scroll-margin-top: var(--mf-space-4);
  }
  .bot-detail-grid {
    display: grid;
    gap: var(--mf-space-2);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bot-detail-grid > div {
    background: var(--mf-color-bg-elevated);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-control);
    display: grid;
    gap: 3px;
    padding: var(--mf-space-3);
  }
  .bot-detail-grid span,
  .bot-detail-grid small {
    color: var(--mf-color-muted);
    font-size: 0.6rem;
  }
  .bot-detail-grid strong {
    font-size: 0.75rem;
  }
  .bot-detail-workspace-grid {
    display: grid;
    gap: var(--mf-page-gap);
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  }
  .bot-detail-orders-panel {
    grid-column: 1 / -1;
  }
  .bot-timeline-list {
    min-height: 120px;
  }
  .bot-log-stream {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .bot-log-stream li {
    align-items: center;
    border-bottom: 1px solid var(--mf-color-border);
    display: grid;
    font-size: var(--mf-text-xs);
    gap: var(--mf-space-3);
    grid-template-columns: 58px 72px minmax(0, 1fr);
    min-height: var(--mf-row-h);
  }
  .bot-log-stream li:last-child {
    border-bottom: 0;
  }
  .bot-log-stream time {
    color: var(--mf-color-muted);
  }
  .bot-detail-orders-panel .mf-table {
    min-width: 720px;
  }

  .prediction-filter-bar {
    align-items: end;
    display: grid;
    gap: var(--mf-space-3);
    grid-template-columns: repeat(3, minmax(120px, 1fr)) auto;
  }
  .prediction-filter-bar label,
  .prediction-settings-form label {
    color: var(--mf-color-muted);
    display: grid;
    font-size: 0.64rem;
    font-weight: 650;
    gap: var(--mf-space-2);
  }
  .prediction-review-box {
    display: grid;
    gap: var(--mf-space-3);
  }
  .prediction-review-box > p {
    color: var(--mf-color-muted);
    font-size: 0.7rem;
    line-height: 1.55;
  }
  .prediction-risk-text {
    color: var(--mf-color-danger);
  }
  .prediction-settings-form > .mf-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .prediction-venue-grid {
    --mf-stat-columns: 2;
  }
  .prediction-safety-list {
    display: grid;
    gap: var(--mf-space-2);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .prediction-safety-item {
    background: rgb(var(--mf-color-success-rgb) / 7%);
    border: 1px solid rgb(var(--mf-color-success-rgb) / 20%);
    border-radius: var(--mf-radius-control);
    color: var(--mf-color-success);
    font-size: 0.66rem;
    padding: var(--mf-space-2);
  }
  .button-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--mf-space-2);
  }

  .backtest-lab-page {
    max-width: 1800px;
  }
  .lab-topbar {
    align-items: center;
    display: flex;
    gap: var(--mf-space-4);
  }
  .lab-topbar > a {
    align-items: center;
    color: var(--mf-color-accent);
    display: inline-flex;
    font-size: 0.68rem;
    gap: var(--mf-space-2);
  }
  .lab-topbar h2 {
    font-size: 1rem;
  }
  .lab-topbar span {
    color: var(--mf-color-muted);
    font-size: 0.64rem;
  }
  .dashboard-board {
    display: grid;
    gap: var(--mf-page-gap);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-board > .wide-panel {
    grid-column: 1 / -1;
  }
  .studio-backtest-chart {
    min-height: 250px;
  }
  .studio-backtest-chart line {
    stroke: var(--mf-color-border);
  }
  .studio-backtest-chart polyline {
    fill: none;
    stroke: var(--mf-color-accent);
    stroke-width: 2;
  }
  .studio-run-link {
    align-items: center;
    color: var(--mf-color-accent);
    display: inline-flex;
    font-size: 0.68rem;
    gap: var(--mf-space-2);
  }
  .status-row {
    align-items: center;
    border-bottom: 1px solid var(--mf-color-border);
    display: flex;
    font-size: 0.68rem;
    gap: var(--mf-space-3);
    justify-content: space-between;
    min-height: var(--mf-row-h);
  }
  .status-row:last-child {
    border-bottom: 0;
  }

  @media (max-width: 1180px) {
    .dashboard-page,
    .bot-ops-layout {
      grid-template-rows: auto;
      height: auto;
    }
    .bot-metrics,
    .bot-fleet-workspace {
      grid-row: auto;
    }
    .page-content:has(.bot-ops-layout) {
      overflow: auto;
    }
    .dashboard-secondary-grid,
    .dashboard-board {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-secondary-grid > :last-child {
      grid-column: 1 / -1;
    }
    .bot-fleet-workspace {
      height: auto;
    }
    .bot-fleet-panel {
      height: auto;
      min-height: auto;
    }
    .bot-fleet-panel .mf-table-scroll {
      flex: 0 0 auto;
      overflow: auto visible;
    }
    .bot-fleet-panel .mf-table {
      min-width: 760px;
    }
    .bot-fleet-panel .mf-table :is(th, td):nth-child(3),
    .bot-fleet-panel .mf-table :is(th, td):nth-child(8) {
      display: none;
    }
    .bot-detail-kpi-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .bot-detail-workspace-grid {
      grid-template-columns: minmax(0, 1fr);
    }
    .bot-detail-orders-panel {
      grid-column: auto;
    }
  }

  @media (max-width: 860px) {
    .app-shell {
      display: block;
      height: auto;
      min-height: 100vh;
      overflow: visible;
    }
    .app-sidebar {
      border-bottom: 1px solid var(--mf-color-border);
      border-right: 0;
      flex-direction: row;
      overflow-x: auto;
      padding: var(--mf-space-2);
      position: sticky;
      top: 0;
    }
    .brand-block {
      flex: 0 0 auto;
    }
    .nav-groups {
      flex: 1 0 auto;
    }
    .nav-group {
      display: flex;
    }
    .nav-link {
      flex: 0 0 auto;
    }
    .workspace-menu-wrap {
      display: none;
    }
    .app-main {
      display: block;
      overflow: visible;
    }
    .app-topbar {
      min-height: var(--mf-topbar-h);
    }
    .page-content {
      overflow: visible;
    }
    .dashboard-primary-grid,
    .dashboard-secondary-grid,
    .dashboard-board {
      grid-template-columns: minmax(0, 1fr);
    }
    .dashboard-secondary-grid > :last-child,
    .dashboard-board > .wide-panel {
      grid-column: auto;
    }
    .prediction-filter-bar {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .bot-detail-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .bot-detail-page .mf-panel-header {
      align-items: flex-start;
      flex-direction: row;
    }
    .bot-fleet-panel .mf-table {
      min-width: 0;
    }
    .bot-fleet-panel .mf-table :is(th, td):nth-child(2),
    .bot-fleet-panel .mf-table :is(th, td):nth-child(4),
    .bot-fleet-panel .mf-table :is(th, td):nth-child(5),
    .bot-fleet-panel .mf-table :is(th, td):nth-child(7) {
      display: none;
    }
    .bot-fleet-panel .mf-table :is(th, td):nth-child(1) {
      width: 52%;
    }
    .bot-fleet-panel .mf-table :is(th, td):nth-child(6) {
      width: 26%;
    }
    .bot-fleet-panel .mf-table :is(th, td):nth-child(9) {
      width: 22%;
    }
    .bot-mobile-meta {
      display: block !important;
    }
    .bot-detail-hero {
      align-items: stretch;
      flex-direction: column;
    }
    .bot-detail-actions {
      justify-content: flex-start;
    }
  }

  @media (max-width: 520px) {
    .brand-block strong,
    .page-subtitle {
      display: none;
    }
    .app-topbar {
      padding-inline: 0;
    }
    .page-content {
      padding: 0;
    }
    .nav-link {
      min-height: 36px;
      padding-inline: var(--mf-space-2);
    }
    .nav-link span {
      display: none;
    }
    .notification-popover {
      position: fixed;
      right: var(--mf-space-3);
      top: 60px;
    }
    .dashboard-primary-grid > *,
    .dashboard-secondary-grid > * {
      min-height: auto;
    }
    .allocation-donut-layout,
    .prediction-filter-bar,
    .prediction-safety-list,
    .bot-detail-grid {
      grid-template-columns: minmax(0, 1fr);
    }
    .mf-table {
      min-width: 640px;
    }
    .dashboard-page .mf-table {
      min-width: 0;
    }
    .bot-fleet-panel .mf-table {
      min-width: 0;
    }
    .bot-fleet-panel .mf-table :is(th, td):nth-child(6) {
      display: none;
    }
    .bot-fleet-panel .mf-table :is(th, td):nth-child(1) {
      width: 76%;
    }
    .bot-fleet-panel .mf-table :is(th, td):nth-child(9) {
      width: 24%;
    }
    .bot-panel-controls,
    .bot-fleet-search {
      align-items: stretch;
      width: 100%;
    }
    .bot-panel-controls {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
    }
    .bot-fleet-search input {
      width: 100%;
    }
    .bot-status-filter {
      justify-content: space-between;
      width: 100%;
    }
    .bot-status-filter button {
      flex: 1 1;
    }
    .bot-detail-kpi-grid {
      grid-template-columns: minmax(0, 1fr);
    }
    .bot-detail-identity {
      grid-template-columns: auto minmax(0, 1fr);
    }
    .bot-detail-identity > .mf-badge {
      grid-column: 2;
      justify-self: start;
    }
    .bot-detail-actions .mf-button {
      flex: 1 1 110px;
    }
    .bot-execution-environment {
      flex: 1 1 100%;
      justify-content: flex-start;
    }
    .bot-log-stream li {
      gap: var(--mf-space-2);
      grid-template-columns: 48px 62px minmax(0, 1fr);
    }
    .bot-detail-orders-panel .mf-table {
      min-width: 0;
      table-layout: fixed;
    }
    .bot-detail-orders-panel .mf-table :is(th, td):nth-child(4),
    .bot-detail-orders-panel .mf-table :is(th, td):nth-child(5) {
      display: none;
    }
    .bot-detail-orders-panel .mf-table :is(th, td):nth-child(1) {
      width: 34%;
    }
    .bot-detail-orders-panel .mf-table :is(th, td):nth-child(2) {
      width: 16%;
    }
    .bot-detail-orders-panel .mf-table :is(th, td):nth-child(3) {
      width: 28%;
    }
    .bot-detail-orders-panel .mf-table :is(th, td):nth-child(6) {
      width: 22%;
    }
    .bot-fleet-footer {
      align-items: center;
    }
    .mf-dialog-actions,
    .mf-actions {
      align-items: stretch;
      flex-direction: column;
    }
    .mf-dialog-actions .mf-button,
    .mf-actions .mf-button {
      width: 100%;
    }
  }

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

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

  [data-page="connections"] .connections-grid {
    align-items: start;
    display: grid;
    gap: var(--mf-page-gap);
    grid-template-columns: minmax(0, 2.2fr) minmax(280px, 0.8fr);
  }

  [data-page="connections"] .connections-side {
    display: grid;
    gap: var(--mf-page-gap);
  }

  [data-page="connections"] .connection-credential-set {
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-control);
    display: grid;
    gap: var(--mf-space-3);
    margin: 0;
    padding: var(--mf-space-3);
  }

  [data-page="connections"] .connection-credential-set legend {
    color: var(--mf-color-text);
    font-size: var(--mf-text-sm);
    font-weight: 750;
    padding-inline: var(--mf-space-1);
  }

  [data-page="connections"] .connection-panel-controls,
  [data-page="connections"] .connection-search {
    align-items: center;
    display: flex;
    gap: var(--mf-space-2);
  }

  [data-page="connections"] .connection-panel-controls {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  [data-page="connections"] .connection-search {
    background: var(--mf-color-bg-elevated);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-control);
    color: var(--mf-color-muted);
    min-height: var(--mf-control-h-sm);
    padding: 0 var(--mf-space-2);
  }

  [data-page="connections"] .connection-search:focus-within {
    border-color: var(--mf-color-border-strong);
    box-shadow: var(--mf-focus);
  }

  [data-page="connections"] .connection-search input {
    background: transparent;
    border: 0;
    color: var(--mf-color-text);
    min-width: 120px;
    width: 16vw;
  }

  [data-page="connections"] .connected-accounts-table {
    min-width: 0;
    table-layout: fixed;
  }

  [data-page="connections"] .connected-accounts-table :is(th, td):nth-child(1) {
    width: 18%;
  }

  [data-page="connections"] .connected-accounts-table :is(th, td):nth-child(2) {
    width: 24%;
  }

  [data-page="connections"] .connected-accounts-table :is(th, td):nth-child(3) {
    width: 20%;
  }

  [data-page="connections"] .connected-accounts-table :is(th, td):nth-child(4) {
    width: 20%;
  }

  [data-page="connections"] .connected-accounts-table :is(th, td):nth-child(5) {
    width: 18%;
  }

  [data-page="connections"] .connection-mobile-meta {
    display: none;
  }

  [data-page="connections"] .permission-icons {
    align-items: center;
    color: var(--mf-color-accent);
    display: inline-flex;
    gap: var(--mf-space-2);
  }

  [data-page="connections"] .permission-disabled {
    color: var(--mf-color-subtle);
  }

  [data-page="prediction-markets"] .prediction-market-table {
    min-width: 900px;
    table-layout: fixed;
  }

  [data-page="prediction-markets"] .prediction-market-table :is(th, td):nth-child(1) {
    width: 32%;
  }

  [data-page="prediction-markets"] .prediction-market-table :is(th, td):nth-child(2) {
    width: 16%;
  }

  [data-page="prediction-markets"] .prediction-market-table :is(th, td):nth-child(3),
  [data-page="prediction-markets"] .prediction-market-table :is(th, td):nth-child(4) {
    width: 10%;
  }

  [data-page="prediction-markets"] .prediction-market-table :is(th, td):nth-child(5) {
    width: 13%;
  }

  [data-page="prediction-markets"] .prediction-market-table :is(th, td):nth-child(6),
  [data-page="prediction-markets"] .prediction-market-table :is(th, td):nth-child(7) {
    width: 9.5%;
  }

  [data-page="prediction-markets"] .prediction-market-identity {
    max-width: 100%;
  }

  [data-page="prediction-markets"] .prediction-market-identity > span:last-child {
    min-width: 0;
  }

  [data-page="prediction-markets"] .prediction-market-identity strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  [data-page="prediction-markets"] .prediction-market-identity .prediction-market-mobile-meta {
    display: none;
  }

  @media (min-width: 681px) {
    [data-page="connections"] .mf-metric-grid > .mf-metric,
    [data-page="settings"] .mf-metric-grid > .mf-metric,
    [data-page="prediction-markets"] .mf-metric-grid > .mf-metric {
      min-height: clamp(90px, 10.6vh, 160px);
    }
  }

  @media (max-width: 1350px) {
    [data-page="connections"] .connections-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  @media (max-width: 860px) {
    [data-page="connections"] .connected-accounts-table,
    [data-page="prediction-markets"] .prediction-market-table {
      min-width: 0;
    }

    [data-page="connections"] .connected-accounts-table :is(th, td):nth-child(2),
    [data-page="connections"] .connected-accounts-table :is(th, td):nth-child(5),
    [data-page="connections"] .connected-accounts-table :is(th, td):nth-child(6),
    [data-page="connections"] .connected-accounts-table :is(th, td):nth-child(7) {
      display: none;
    }

    [data-page="connections"] .connected-accounts-table :is(th, td):nth-child(1) {
      width: 30%;
    }

    [data-page="connections"] .connected-accounts-table :is(th, td):nth-child(3) {
      width: 35%;
    }

    [data-page="connections"] .connected-accounts-table :is(th, td):nth-child(4) {
      width: 35%;
    }

    [data-page="connections"] .connected-accounts-table .mf-cell-subline {
      display: none;
    }

    [data-page="connections"] .connection-mobile-meta,
    [data-page="prediction-markets"] .prediction-market-identity .prediction-market-mobile-meta {
      display: block;
    }

    [data-page="prediction-markets"] .prediction-market-table :is(th, td):nth-child(2),
    [data-page="prediction-markets"] .prediction-market-table :is(th, td):nth-child(4),
    [data-page="prediction-markets"] .prediction-market-table :is(th, td):nth-child(6) {
      display: none;
    }

    [data-page="prediction-markets"] .prediction-market-table :is(th, td):nth-child(1) {
      width: 46%;
    }

    [data-page="prediction-markets"] .prediction-market-table :is(th, td):nth-child(3) {
      width: 16%;
    }

    [data-page="prediction-markets"] .prediction-market-table :is(th, td):nth-child(5) {
      width: 22%;
    }

    [data-page="prediction-markets"] .prediction-market-table :is(th, td):nth-child(7) {
      width: 16%;
    }
  }

  @media (max-width: 520px) {
    [data-page="connections"] .connection-panel-controls {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      width: 100%;
    }

    [data-page="connections"] .connection-search {
      grid-column: 1 / -1;
      grid-row: 2;
    }

    [data-page="connections"] .connection-search input {
      width: 100%;
    }

    [data-page="prediction-markets"] .prediction-market-table :is(th, td):nth-child(5) {
      display: none;
    }

    [data-page="connections"] .connected-accounts-table :is(th, td):nth-child(1) {
      width: 30%;
    }

    [data-page="connections"] .connected-accounts-table :is(th, td):nth-child(3) {
      width: 35%;
    }

    [data-page="connections"] .connected-accounts-table :is(th, td):nth-child(4) {
      width: 35%;
    }

    [data-page="connections"] .connected-accounts-table .mf-table-actions {
      gap: 0;
    }

    [data-page="connections"] .connected-accounts-table .mf-table-actions .mf-button {
      padding-inline: var(--mf-space-1);
    }

    [data-page="prediction-markets"] .prediction-market-table :is(th, td):nth-child(1) {
      width: 68%;
    }

    [data-page="prediction-markets"] .prediction-market-table :is(th, td):nth-child(3),
    [data-page="prediction-markets"] .prediction-market-table :is(th, td):nth-child(7) {
      width: 16%;
    }
  }

  @media (max-width: 1100px) {
    .mf-metric-grid,
    .mf-grid-3 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  /* Keep dashboard KPIs balanced on desktop screens with limited vertical space. */
  @media (min-width: 1101px) and (max-height: 1100px) {
    .dashboard-page .mf-metric-detail {
      align-items: center;
      display: flex;
      gap: 0;
      margin-top: 5px;
      min-width: 0;
      white-space: nowrap;
    }

    .dashboard-page .mf-metric-detail > span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .dashboard-page .mf-metric-detail > small {
      flex: 0 0 auto;
      font-size: var(--mf-text-xs);
      margin-left: 6px;
      white-space: nowrap;
    }

    .dashboard-page .mf-metric-detail > small::before {
      color: var(--mf-color-subtle);
      content: "\00b7";
      margin-right: 6px;
    }

    .bot-metrics .mf-metric-gauge .mf-metric-detail {
      align-items: center;
      display: flex;
      gap: 0;
      margin-top: 5px;
      min-width: 0;
      white-space: nowrap;
    }

    .bot-metrics .mf-metric-gauge .mf-metric-detail > span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .bot-metrics .mf-metric-gauge .mf-metric-detail > small {
      flex: 0 0 auto;
      font-size: var(--mf-text-xs);
      margin-left: 6px;
      white-space: nowrap;
    }

    .bot-metrics .mf-metric-gauge .mf-metric-detail > small::before {
      color: var(--mf-color-subtle);
      content: "\00b7";
      margin-right: 6px;
    }
  }

  @media (max-width: 680px) {
    .mf-metric-grid,
    .mf-grid-2,
    .mf-grid-3 {
      grid-template-columns: minmax(0, 1fr);
    }
  }
}

/*!***********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./src/styles/prediction.css ***!
  \***********************************************************************************************************************************************************************************************************************************************************************/
@layer pages {
  .prediction-v2 {
    display: grid;
    gap: var(--mf-page-gap);
    margin: 0 auto;
    max-width: var(--mf-page-max);
    min-width: 0;
    width: 100%;
  }

  .prediction-v2-titlebar {
    align-items: flex-end;
    display: flex;
    gap: var(--mf-space-4);
    justify-content: space-between;
  }

  .prediction-v2-titlebar p:not(.eyebrow) {
    color: var(--mf-color-muted);
    font-size: var(--mf-text-sm);
    margin: 0;
    max-width: 760px;
  }

  .prediction-v2 .mf-alert > span {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--mf-space-3);
  }

  .prediction-v2-alert-copy {
    align-items: center;
    display: inline-flex;
    gap: var(--mf-space-2);
  }

  .prediction-v2-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .prediction-v2-connectivity {
    align-items: center;
    background: var(--mf-color-bg-elevated);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-card);
    color: var(--mf-color-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: var(--mf-text-xs);
    gap: var(--mf-space-5);
    min-height: var(--mf-control-h-md);
    padding: var(--mf-space-2) var(--mf-space-3);
  }

  .prediction-v2-connectivity > span {
    align-items: center;
    display: inline-flex;
    gap: var(--mf-space-2);
  }

  .prediction-v2-nav {
    align-items: center;
    background: var(--mf-color-bg-elevated);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-card);
    display: flex;
    gap: var(--mf-space-1);
    max-width: 100%;
    overflow-x: auto;
    padding: var(--mf-space-1);
    scrollbar-width: thin;
  }

  .prediction-v2-nav-item {
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--mf-radius-control);
    color: var(--mf-color-muted);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: var(--mf-text-sm);
    font-weight: 620;
    gap: var(--mf-space-2);
    min-height: var(--mf-control-h-md);
    padding: 0 var(--mf-space-3);
    text-decoration: none;
  }

  .prediction-v2-nav-item small {
    color: var(--mf-color-warning);
    font-size: var(--mf-text-xs);
  }

  .prediction-v2-nav-item[aria-current="page"] {
    background: rgb(var(--accent-rgb, 126, 207, 152) / 12%);
    border-color: var(--mf-color-border-strong);
    color: var(--mf-color-accent-strong);
  }

  .prediction-v2-nav-disabled {
    cursor: not-allowed;
    opacity: 0.45;
  }

  .prediction-v2-content {
    display: grid;
    gap: var(--mf-page-gap);
    min-width: 0;
  }

  .prediction-v2-two-up,
  .prediction-v2-detail-grid {
    align-items: start;
    display: grid;
    gap: var(--mf-page-gap);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prediction-v2-detail-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(330px, 0.85fr);
  }

  .prediction-v2-detail-main {
    display: grid;
    gap: var(--mf-page-gap);
    min-width: 0;
  }

  .prediction-v2-filter-grid,
  .prediction-v2-form-grid,
  .prediction-v2-ticket-form {
    align-items: end;
    display: grid;
    gap: var(--mf-space-3);
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .prediction-v2-form-grid,
  .prediction-v2-ticket-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prediction-v2-ticket-form > .mf-button,
  .prediction-v2-form-grid > .mf-button {
    align-self: end;
  }

  .prediction-v2-filter-switches {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: var(--mf-space-2);
    justify-content: center;
    min-height: var(--mf-control-h-md);
  }

  .prediction-v2-preset-row,
  .prediction-v2-action-row,
  .prediction-v2-automation-controls,
  .prediction-v2-settings-actions,
  .prediction-v2-quote-actions,
  .prediction-v2-outcomes,
  .prediction-v2-batch-summary {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--mf-space-2);
  }

  .prediction-v2-realtime-status {
    align-items: center;
    color: var(--mf-color-muted);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: var(--mf-text-xs);
    gap: var(--mf-space-2);
  }

  .prediction-v2-preset-row .mf-field {
    flex: 1 1 260px;
  }

  .prediction-v2-preset-row > span,
  .prediction-v2-batch-summary,
  .prediction-v2-panel-meta,
  .prediction-v2-muted {
    color: var(--mf-color-muted);
    font-size: var(--mf-text-xs);
  }

  .prediction-v2-chip-list,
  .prediction-v2-warning-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mf-space-2);
  }

  .prediction-v2-chip {
    align-items: stretch;
    background: var(--mf-color-bg-elevated);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-control);
    display: inline-flex;
    overflow: hidden;
  }

  .prediction-v2-chip button {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--mf-color-muted);
    min-height: var(--mf-control-h-sm);
    padding: 0 var(--mf-space-2);
  }

  .prediction-v2-chip button + button {
    border-left: 1px solid var(--mf-color-border);
  }

  .prediction-v2-table-panel {
    min-height: 0;
  }

  .prediction-v2-market-table {
    min-width: 1860px;
  }

  .prediction-v2-market-table tbody tr,
  .prediction-v2-book-table tbody tr {
    contain-intrinsic-size: auto var(--mf-row-h);
    content-visibility: auto;
  }

  .prediction-v2-market-table :is(th, td):first-child {
    min-width: 260px;
  }

  .prediction-v2-market-identity {
    display: flex;
    flex-direction: column;
    gap: var(--mf-space-1);
    min-width: 0;
  }

  .prediction-v2-market-identity a {
    color: var(--mf-color-text);
    font-weight: 680;
    text-decoration: none;
  }

  .prediction-v2-market-identity small,
  .prediction-v2-stack-cell small,
  .prediction-v2 .mf-table td small {
    color: var(--mf-color-muted);
    display: block;
    font-size: var(--mf-text-xs);
    line-height: 1.35;
    margin-top: var(--mf-space-1);
  }

  .prediction-v2-stack-cell {
    min-width: 138px;
    white-space: nowrap;
  }

  .prediction-v2-state {
    align-items: center;
    background: var(--mf-color-panel);
    border-radius: var(--mf-radius-card);
    color: var(--mf-color-muted);
    display: flex;
    gap: var(--mf-space-3);
    justify-content: center;
    min-height: 110px;
    padding: var(--mf-panel-pad);
    text-align: center;
  }

  .prediction-v2-empty {
    flex-direction: column;
  }

  .prediction-v2-empty span {
    font-size: var(--mf-text-sm);
  }

  .prediction-v2-spin {
    animation: prediction-v2-spin 900ms linear infinite;
  }

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

  .prediction-v2-outcomes > span:last-child {
    color: var(--mf-color-muted);
    font-size: var(--mf-text-sm);
  }

  .prediction-v2-market-chart {
    align-items: center;
    display: grid;
    gap: var(--mf-space-5);
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.45fr);
    min-height: 180px;
  }

  .prediction-v2-market-chart .mf-sparkline {
    height: 150px;
    width: 100%;
  }

  .prediction-v2-market-chart dl,
  .prediction-v2-balance-list {
    display: grid;
    gap: var(--mf-space-2);
    margin: 0;
  }

  .prediction-v2-market-chart dl > div,
  .prediction-v2-balance-list > div {
    border-bottom: 1px solid var(--mf-color-border);
    display: grid;
    gap: var(--mf-space-1);
    padding-bottom: var(--mf-space-2);
  }

  .prediction-v2-market-chart dl > div:last-child,
  .prediction-v2-balance-list > div:last-child {
    border-bottom: 0;
  }

  .prediction-v2-market-chart dt,
  .prediction-v2-balance-list dt,
  .prediction-v2-definition-grid dt {
    color: var(--mf-color-muted);
    font-size: var(--mf-text-xs);
  }

  .prediction-v2-market-chart dd,
  .prediction-v2-balance-list dd,
  .prediction-v2-definition-grid dd {
    color: var(--mf-color-text);
    font-size: var(--mf-text-sm);
    margin: 0;
  }

  .prediction-v2-book-table {
    min-width: 540px;
    table-layout: fixed;
  }

  .prediction-v2-book-table :is(th, td) {
    text-align: right;
  }

  .prediction-v2-rules {
    display: grid;
    gap: var(--mf-space-3);
  }

  .prediction-v2-rules p {
    color: var(--mf-color-text);
    line-height: 1.65;
    margin: 0;
    white-space: pre-wrap;
  }

  .prediction-v2-rules small {
    color: var(--mf-color-muted);
    overflow-wrap: anywhere;
  }

  .prediction-v2-ticket {
    align-self: start;
    position: sticky;
    top: var(--mf-space-3);
  }

  .prediction-v2-quote-preview {
    background: var(--mf-color-bg-elevated);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-card);
    display: grid;
    gap: var(--mf-space-3);
    padding: var(--mf-space-3);
  }

  .prediction-v2-quote-preview > header {
    align-items: center;
    display: flex;
    justify-content: space-between;
  }

  .prediction-v2-quote-preview > header > div {
    display: grid;
    gap: var(--mf-space-1);
  }

  .prediction-v2-quote-preview > header span {
    color: var(--mf-color-muted);
    font-size: var(--mf-text-xs);
  }

  .prediction-v2-definition-grid {
    display: grid;
    gap: 0 var(--mf-space-3);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
  }

  .prediction-v2-definition-grid > div {
    border-bottom: 1px solid var(--mf-color-border);
    display: flex;
    justify-content: space-between;
    padding: var(--mf-space-2) 0;
  }

  .prediction-v2-definition-grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .prediction-v2-quote-actions {
    justify-content: flex-end;
  }

  .prediction-v2-quote-actions > span {
    align-items: center;
    display: inline-flex;
    gap: var(--mf-space-1);
    margin-right: auto;
  }

  .prediction-v2-chat-log {
    background: var(--mf-color-bg-elevated);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-card);
    display: grid;
    gap: var(--mf-space-2);
    max-height: 320px;
    min-height: 180px;
    overflow-y: auto;
    padding: var(--mf-space-3);
  }

  .prediction-v2-chat-log > span {
    color: var(--mf-color-muted);
    place-self: center;
  }

  .prediction-v2-chat-message {
    border-bottom: 1px solid var(--mf-color-border);
    display: grid;
    gap: var(--mf-space-1);
    padding-bottom: var(--mf-space-2);
  }

  .prediction-v2-chat-message:last-child {
    border-bottom: 0;
  }

  .prediction-v2-chat-message strong {
    color: var(--mf-color-accent);
    font-size: var(--mf-text-xs);
    text-transform: uppercase;
  }

  .prediction-v2-chat-message p {
    color: var(--mf-color-text);
    font-size: var(--mf-text-sm);
    line-height: 1.5;
    margin: 0;
  }

  .prediction-v2-chat-form,
  .prediction-v2-chat-form label {
    display: grid;
    gap: var(--mf-space-2);
  }

  .prediction-v2-chat-form label > span {
    color: var(--mf-color-muted);
    font-size: var(--mf-text-xs);
    font-weight: 650;
  }

  .prediction-v2 textarea {
    background: var(--mf-color-bg-elevated);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-control);
    color: var(--mf-color-text);
    font: inherit;
    line-height: 1.5;
    min-height: 84px;
    padding: var(--mf-space-3);
    resize: vertical;
  }

  .prediction-v2-batch-summary {
    background: var(--mf-color-bg-elevated);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-card);
    padding: var(--mf-space-3);
  }

  .prediction-v2-funding-preview {
    background: var(--mf-color-bg-elevated);
    border: 1px solid var(--mf-color-warning);
    border-radius: var(--mf-radius-card);
    display: grid;
    gap: var(--mf-space-2);
    padding: var(--mf-space-3);
  }

  .prediction-v2-settings-actions {
    justify-content: flex-end;
  }

  @media (max-width: 1180px) {
    .prediction-v2-metrics {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prediction-v2-detail-grid {
      grid-template-columns: minmax(0, 1fr);
    }

    .prediction-v2-ticket {
      position: static;
    }

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

  @media (max-width: 860px) {
    .prediction-v2-two-up,
    .prediction-v2-form-grid,
    .prediction-v2-ticket-form {
      grid-template-columns: minmax(0, 1fr);
    }

    .prediction-v2-market-chart {
      grid-template-columns: minmax(0, 1fr);
    }

    .prediction-v2-market-chart .mf-sparkline {
      height: 120px;
    }

    .prediction-v2-automation-controls {
      align-items: stretch;
      flex-direction: column;
    }
  }

  @media (max-width: 680px) {
    .prediction-v2-titlebar {
      align-items: flex-start;
      flex-direction: column;
    }

    .prediction-v2-metrics,
    .prediction-v2-filter-grid,
    .prediction-v2-definition-grid {
      grid-template-columns: minmax(0, 1fr);
    }

    .prediction-v2-connectivity {
      align-items: flex-start;
      flex-direction: column;
      gap: var(--mf-space-2);
    }

    .prediction-v2-definition-grid > div:nth-last-child(2) {
      border-bottom: 1px solid var(--mf-color-border);
    }

    .prediction-v2-quote-actions {
      align-items: stretch;
      flex-direction: column;
    }

    .prediction-v2-quote-actions > span {
      margin-right: 0;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .prediction-v2-spin {
      animation: none;
    }
  }
}

/*!******************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./src/styles/index.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************/


