/*!****************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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]!./node_modules/@marketforge/ui/src/styles/pages/bots.css ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************/
@layer pages {
  .bot-ops-layout {
    align-content: start;
    container-name: bot-operations;
    container-type: inline-size;
    display: grid;
    gap: var(--mf-page-gap);
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  [data-page="bots"]:has(.bot-ops-layout) {
    height: 100%;
    min-height: 0;
  }

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

  .bot-metrics {
    grid-row: 1;
    min-height: 0;
    overflow: visible;
  }

  .bot-fleet-workspace {
    display: grid;
    grid-row: 2 / -1;
    min-height: 0;
    overflow: hidden;
  }
  .bot-fleet-panel {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }
  .bot-fleet-panel > .mf-widget-content {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
  }
  .bot-fleet-grid {
    align-content: start;
    display: grid;
    flex: 1 1 auto;
    gap: var(--mf-page-gap);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    min-height: 0;
    overflow: hidden auto;
    overscroll-behavior: contain;
    padding: var(--mf-space-text);
    scrollbar-gutter: stable;
  }

  .bot-fleet-grid:has(.bot-fleet-empty) {
    align-content: center;
  }
  .bot-fleet-card {
    container-name: widget bot-card;
    container-type: inline-size;
    cursor: pointer;
    min-height: 192px;
    position: relative;
    text-decoration: none;
  }

  .bot-fleet-card > .mf-widget-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: var(--mf-space-group);
    min-height: 0;
  }
  .bot-fleet-card-head {
    align-items: flex-start;
    display: flex;
    gap: var(--mf-space-group);
    justify-content: space-between;
    min-width: 0;
  }
  .bot-fleet-card-identity {
    align-items: center;
    column-gap: var(--mf-space-group);
    display: flex;
    min-width: 0;
  }
  .bot-fleet-card-copy {
    align-content: start;
    display: grid;
    gap: var(--mf-space-text);
    min-width: 0;
  }
  .bot-fleet-card .bot-fleet-card-name {
    color: var(--mf-color-text);
    display: block;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .bot-fleet-card-market,
  .bot-fleet-card-strategy {
    color: var(--mf-color-muted);
  }
  .bot-fleet-card-market {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--mf-space-text);
  }
  .bot-fleet-card-strategy {
    margin: 0;
  }
  .bot-fleet-card-tags {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--mf-space-text);
  }
  .bot-fleet-card-stats {
    margin-block: auto 0;
    margin-inline: calc(var(--mf-panel-pad) * -1);
    --mf-divider-inline-inset: var(--mf-panel-pad);
  }
  .bot-fleet-card-stats dt {
    color: var(--mf-color-muted);
    white-space: nowrap;
  }
  .bot-fleet-card-stats dd {
    display: grid;
    gap: 0;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .bot-fleet-card-stats dd > span,
  .bot-fleet-card-stats dd > small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .bot-fleet-card-stats dd > small {
    color: var(--mf-color-muted);
  }
  .bot-fleet-card-stats .positive,
  .bot-fleet-card-stats .negative {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
  }

  .bot-fleet-empty {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: var(--mf-space-group);
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 180px;
    text-align: center;
  }

  .bot-fleet-empty strong {
    color: var(--mf-color-text);
  }

  .bot-fleet-empty span {
    color: var(--mf-color-muted);
    max-width: 42rem;
  }

  .bot-management-content {
    display: grid;
    gap: var(--mf-space-group);
  }

  .bot-management-section-heading {
    display: grid;
    gap: var(--mf-space-text);
  }

  .bot-management-controls-heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--mf-space-group);
    justify-content: space-between;
  }

  .bot-management-controls-heading h3 {
    min-width: 0;
  }

  .bot-management-section-heading h3 {
    color: var(--mf-color-text);
    margin: 0;
  }

  .bot-management-section-heading p {
    color: var(--mf-color-muted);
    margin: 0;
  }

  .bot-management-buttons {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--mf-space-inline);
  }

  .bot-management-control-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--mf-space-group);
    justify-content: space-between;
  }

  .bot-management-summary-top {
    min-width: 0;
  }

  .bot-management-summary-top h3 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bot-management-summary .mf-description-list {
    gap: var(--mf-space-group);
  }

  .bot-management-summary .mf-description-item {
    background: transparent;
    border: 0;
    border-radius: 0;
    border-top: var(--mf-divider-rule);
    padding: var(--mf-space-inline) 0 0;
  }

  .bot-management-summary .mf-description-item:nth-child(-n + 2) {
    border-top: 0;
    padding-top: 0;
  }

  .bot-management-summary .mf-description-item dd {
    justify-content: flex-start;
    margin-top: var(--mf-space-text);
  }

  .bot-management-history-inline {
    display: grid;
    gap: var(--mf-space-group);
    min-width: 0;
  }

  .bot-management-history-inline .bot-history-page {
    margin: 0;
    max-width: none;
    padding-bottom: 0;
  }

  .bot-management-history-inline .bot-history-workspace > .mf-widget-header {
    align-items: center;
    flex-wrap: nowrap;
  }

  .bot-management-history-inline .bot-history-workspace > .mf-widget-header > .mf-widget-heading {
    flex: 1 1 auto;
  }

  .bot-management-history-inline .bot-history-workspace > .mf-widget-header > .mf-widget-actions {
    flex: 0 0 auto;
    max-width: 60%;
    width: auto;
  }

  .bot-management-page {
    container-name: detail-page bot-management-page;
    container-type: inline-size;
    display: grid;
    gap: var(--mf-page-gap);
    margin: 0 auto;
    max-width: var(--mf-page-max);
    min-width: 0;
    padding-bottom: var(--mf-space-section);
    width: 100%;
  }

  .bot-management-page .mf-detail-page-summary {
    min-width: 0;
  }

  .bot-management-page-mobile {
    max-width: 640px;
  }

  .bot-management-mobile-content {
    display: grid;
    gap: var(--mf-space-section);
    min-width: 0;
  }

  .bot-management-mobile-actions,
  .bot-management-mobile-data {
    display: grid;
    gap: var(--mf-space-group);
    min-width: 0;
  }

  .bot-management-mobile-content h2 {
    margin: 0;
  }

  .bot-management-mobile-actions .bot-management-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--mf-space-inline);
  }

  .bot-management-mobile-actions .mf-button {
    min-height: calc(var(--mf-control-h-md) + var(--mf-space-2));
    width: 100%;
  }

  .bot-management-mobile-values {
    margin: 0;
    min-width: 0;
  }

  .bot-management-mobile-values > div {
    align-items: baseline;
    display: grid;
    gap: var(--mf-space-group);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding-block: var(--mf-space-surface);
  }

  .bot-management-mobile-values > div + div {
    border-top: var(--mf-divider-rule);
  }

  .bot-management-mobile-values > div:first-child {
    padding-top: 0;
  }

  .bot-management-mobile-values > div:last-child {
    padding-bottom: 0;
  }

  .bot-management-mobile-values dt {
    color: var(--mf-color-muted);
  }

  .bot-management-mobile-values dd {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    margin: 0;
    overflow-wrap: anywhere;
    text-align: end;
  }

  .bot-management-mobile-history {
    justify-content: space-between;
    text-align: start;
    white-space: normal;
    width: 100%;
  }

  .bot-management-mobile-history-copy {
    display: grid;
    gap: var(--mf-space-text);
    min-width: 0;
  }

  .bot-management-mobile-history-copy small,
  .bot-management-mobile-delete p {
    color: var(--mf-color-muted);
  }

  .bot-management-mobile-delete {
    display: grid;
    gap: var(--mf-space-inline);
  }

  .bot-management-mobile-delete .mf-button {
    color: var(--mf-color-danger);
    min-height: calc(var(--mf-control-h-md) + var(--mf-space-2));
    width: 100%;
  }

  .bot-management-mobile-delete p {
    margin: 0;
    text-align: center;
  }

  .app-page-header-title-pending .app-topbar-copy {
    visibility: hidden;
  }

  .bot-history-page {
    container-name: detail-page bot-history-page;
    container-type: inline-size;
    display: grid;
    gap: var(--mf-page-gap);
    margin: 0 auto;
    max-width: var(--mf-page-max);
    min-width: 0;
    overflow-x: clip;
    padding-bottom: var(--mf-space-section);
  }
  .bot-history-workspace,
  .bot-history-tab-panel,
  .bot-history-panel {
    min-width: 0;
  }

  .bot-history-workspace {
    display: grid;
    gap: var(--mf-page-gap);
    min-height: 0;
  }

  .bot-history-workspace > .mf-widget-toolbar {
    border-bottom: var(--mf-divider-rule);
    padding-bottom: var(--mf-space-surface);
  }

  /* Keep the whole-history action beside the tabs in both presentations,
     including the desktop table toolbar's narrow-container adaptations. */
  .bot-history-page .bot-history-workspace > :is(.mf-widget-header, .mf-widget-toolbar) .mf-table-toolbar {
    align-items: center;
    display: grid;
    gap: var(--mf-space-inline);
    grid-template-areas: "filters actions";
    grid-template-columns: minmax(0, max-content) auto;
    justify-content: start;
    width: 100%;
  }

  .bot-history-workspace .mf-table-toolbar-filters {
    margin-left: 0;
    min-width: 0;
    width: 100%;
  }

  .bot-history-workspace .mf-table-toolbar-actions {
    justify-self: start;
  }

  .bot-history-page .bot-history-workspace:has(> .mf-widget-content > .bot-history-export-error) > .mf-widget-content {
    grid-template-rows: auto minmax(0, 1fr);
  }


  .bot-history-tabs {
    justify-self: start;
    max-width: 100%;
  }

  .bot-history-tab-label-mobile {
    display: none;
  }

  .bot-history-tab-panel {
    scroll-margin-block: var(--mf-space-6);
  }

  .bot-history-execution-reference {
    align-items: center;
    display: inline-flex;
    gap: var(--mf-space-text);
    max-width: 100%;
    min-width: 0;
  }

  .bot-history-execution-reference code {
    color: var(--mf-color-muted);
    overflow-wrap: anywhere;
  }

  .bot-history-order-side.is-buy {
    color: var(--mf-color-success);
  }

  .bot-history-order-side.is-sell {
    color: var(--mf-color-danger);
  }

  .bot-history-order-side.is-unknown {
    color: var(--mf-color-muted);
  }

  .bot-history-order-price {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .bot-history-order-type {
    color: var(--mf-color-muted);
    white-space: nowrap;
  }

  .bot-history-panel {
    min-height: 290px;
  }

  .bot-history-focus-row {
    background: color-mix(in srgb, var(--mf-color-accent) 10%, transparent);
  }

  .bot-history-focus-row > :first-child {
    border-inline-start: var(--mf-divider-rule);
  }

  .bot-history-alert-message {
    display: grid;
    gap: var(--mf-space-text);
  }

  .bot-history-alert-message > span {
    color: var(--mf-color-muted);
  }

  .bot-history-activity-message {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bot-history-activity-table .bot-history-execution-reference code {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bot-history-activity-message:focus-visible:where(html.web-desktop *) {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .bot-history-alert-context-list {
    display: inline;
    margin: 0;
  }

  .bot-history-alert-context-list > div {
    align-items: baseline;
    display: inline-flex;
    gap: var(--mf-space-text);
    margin-inline-start: var(--mf-space-text);
    max-width: 100%;
    min-width: 0;
  }

  .bot-history-alert-context-list dt {
    color: var(--mf-color-subtle);
  }

  .bot-history-alert-context-list dd {
    margin: 0;
    overflow-wrap: anywhere;
  }

  @media (max-width: 520px) {
    .bot-fleet-card-stats {
      margin-inline: calc(var(--mf-space-group) * -1);
    }

    .bot-fleet-empty {
      min-height: 140px;
    }
  }

  @media (max-height: 760px) {
    [data-page="bots"]:has(.bot-ops-layout),
    .bot-ops-layout,
    .bot-fleet-panel {
      height: auto;
      min-height: 100%;
      overflow: visible;
    }

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

    .bot-fleet-workspace,
    .bot-fleet-grid {
      overflow: visible;
    }

    .bot-ops-layout {
      grid-template-rows: auto auto;
    }
  }

  @container bot-operations (max-width: 1180px) {
    .bot-fleet-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @container bot-operations (max-width: 680px) {
    .bot-fleet-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  @container bot-card (max-width: 360px) {
    .bot-fleet-card-stats > div {
      padding-inline: var(--mf-space-text);
      --mf-divider-inline-inset: var(--mf-space-text);
    }

    .bot-fleet-card-stats dt {
      overflow-wrap: anywhere;
      white-space: normal;
    }
  }

  @container bot-card (max-width: 230px) {
    .bot-fleet-card .bot-fleet-card-name {
      overflow: visible;
      overflow-wrap: anywhere;
      text-overflow: clip;
      white-space: normal;
    }
  }

  @container bot-history-page (max-width: 860px) {
    .bot-history-page .mf-panel-header {
      align-items: flex-start;
      flex-direction: row;
    }

    .bot-management-history-inline .bot-history-workspace > .mf-widget-header {
      flex-wrap: wrap;
    }

    .bot-management-history-inline .bot-history-workspace > .mf-widget-header > .mf-widget-actions {
      max-width: none;
      width: 100%;
    }
  }

  @container bot-history-page (max-width: 560px) {
    .bot-history-workspace > .mf-widget-toolbar,
    .bot-history-tabs,
    .bot-history-tabs > div {
      min-width: 0;
      width: 100%;
    }

    .bot-history-workspace > .mf-widget-toolbar {
      max-width: 100%;
    }

    .bot-history-tabs > div {
      overflow-x: auto;
    }

    .bot-history-tabs {
      justify-self: stretch;
    }
  }

  .bot-creation-page {
    container-name: bot-creation-page;
    container-type: inline-size;
    max-width: 840px;
  }

  .bot-creation-step {
    display: grid;
    gap: var(--mf-space-group);
  }

  .bot-creation-form-grid {
    align-items: start;
    display: grid;
    gap: var(--mf-space-group);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bot-creation-exchange-control {
    align-items: center;
    display: flex;
    gap: var(--mf-space-inline);
    min-width: 0;
  }

  .bot-creation-exchange-control .exchange-brand-mark {
    flex: 0 0 30px;
    height: 30px;
    width: 30px;
  }

  .bot-creation-exchange-control select {
    flex: 1 1 auto;
    min-width: 0;
  }

  .bot-creation-fixed-field {
    color: var(--mf-color-muted);
    display: grid;
    gap: var(--mf-space-inline);
    min-width: 0;
  }

  .bot-creation-fixed-field strong {
    align-items: center;
    background: var(--mf-color-input);
    border: var(--mf-border-rule);
    border-radius: var(--mf-border-radius);
    color: var(--mf-color-text);
    display: flex;
    gap: var(--mf-space-inline);
    min-height: var(--mf-control-h-md);
    padding: 0 var(--mf-field-padding-inline);
  }

  .bot-creation-fixed-field .exchange-brand-mark {
    flex: 0 0 30px;
    height: 30px;
    width: 30px;
  }

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

  .bot-creation-actions > .mf-button {
    flex: 0 0 auto;
    max-width: 100%;
  }

  .bot-creation-note {
    align-items: center;
    color: var(--mf-color-muted);
    display: flex;
    flex: 1 1;
    gap: var(--mf-space-inline);
    margin: 0;
    min-height: var(--mf-space-5);
    min-width: 0;
  }

  .bot-creation-note svg {
    flex-shrink: 0;
  }

  .bot-creation-panel > .mf-widget-content {
    gap: var(--mf-space-group);
  }

  .bot-configuration-capital-row {
    display: grid;
    gap: var(--mf-space-inline);
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .bot-configuration-capital-row > .mf-field {
    grid-column: 1 / -1;
    grid-row: 1 / span 3;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
  }

  .bot-configuration-capital-row > .mf-field > :is(span, small) {
    grid-column: 1 / -1;
  }

  @container bot-creation-page (max-width: 680px) {
    .bot-creation-form-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  @media (max-height: 760px) {
    .bot-ops-layout,
    .bot-history-page {
      gap: var(--mf-space-group);
    }
  }

  @media (min-height: 561px) and (max-width: 620px) {
    .bot-history-panel .mf-table-scroll {
      overflow: auto;
    }
  }
}

/* Match the unlayered selector contract without changing other controls. */
.bot-configuration-execution-selector {
  align-self: center;
  grid-column: 2;
  grid-row: 2;
  margin-left: auto;
  width: fit-content;
}

/*!******************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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]!./node_modules/@marketforge/ui/src/styles/pages/charts.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************/
@layer pages {
  .page-content:has([data-chart-workspace]) {
    overflow: hidden;
  }

  .charts-workspace {
    color: var(--mf-color-text);
    container-name: charts-workspace;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 570px;
    min-width: 0;
    overflow: hidden;
  }

  .charts-empty-onboarding {
    align-content: center;
    display: grid;
    gap: var(--mf-space-group);
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    margin: 0 auto;
    max-width: 1120px;
    min-height: 100%;
    padding: var(--mf-space-surface);
    width: 100%;
  }

  .charts-empty-copy {
    align-self: center;
    display: grid;
    gap: var(--mf-space-section);
    min-width: 0;
  }

  .charts-empty-eyebrow {
    align-items: center;
    color: var(--mf-color-accent);
    display: inline-flex;
    gap: var(--mf-space-inline);
    margin: 0;
    text-transform: uppercase;
  }

  .charts-empty-heading {
    display: grid;
    gap: var(--mf-space-group);
    max-width: 580px;
  }

  .charts-empty-heading h2,
  .charts-empty-heading p {
    margin: 0;
  }

  .charts-empty-heading h2 {
    color: var(--mf-color-text);
    text-wrap: balance;
  }

  .charts-empty-heading p {
    color: var(--mf-color-muted);
    max-width: 560px;
  }

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

  .charts-empty-actions > span {
    color: var(--mf-color-subtle);
  }

  .charts-empty-visual {
    aspect-ratio: 1;
    background: color-mix(
      in srgb,
      var(--mf-color-accent) 7%,
      var(--mf-color-bg-elevated)
    );
    border: var(--mf-border-rule);
    border-radius: var(--mf-border-radius);
    display: grid;
    max-width: 410px;
    place-self: center end;
    place-items: center;
    position: relative;
    width: 100%;
  }

  .charts-empty-visual img {
    height: auto;
    max-width: 112%;
    object-fit: contain;
    width: 112%;
  }

  .charts-empty-readonly-badge {
    align-items: center;
    background: var(--mf-color-panel);
    border: var(--mf-border-rule);
    border-radius: var(--mf-radius-pill);
    bottom: var(--mf-space-5);
    color: var(--mf-color-text);
    display: inline-flex;
    gap: var(--mf-space-text);
    left: 50%;
    padding: 7px var(--mf-field-padding-inline);
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .charts-empty-readonly-badge svg {
    color: var(--mf-color-accent);
  }

  .charts-empty-benefits {
    border-top: var(--mf-divider-rule);
    display: grid;
    gap: var(--mf-space-section);
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: var(--mf-space-section) 0 0;
  }

  .charts-empty-benefits li {
    align-items: start;
    display: grid;
    gap: var(--mf-space-group);
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 0;
  }

  .charts-empty-benefit-icon {
    align-items: center;
    background: color-mix(
      in srgb,
      var(--mf-color-accent) 10%,
      var(--mf-color-panel-raised)
    );
    border: var(--mf-border-rule);
    border-radius: var(--mf-border-radius);
    color: var(--mf-color-accent);
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
  }

  .charts-empty-benefits li > span:last-child {
    display: grid;
    gap: var(--mf-space-text);
  }

  .charts-empty-benefits strong {
    color: var(--mf-color-text);
  }

  .charts-empty-benefits small {
    color: var(--mf-color-subtle);
  }

  .charts-titlebar,
  .charts-commandbar {
    align-items: center;
    display: flex;
    min-width: 0;
  }

  .charts-mobile-header {
    display: none;
  }

  .charts-error-row {
    align-items: center;
    border-bottom: 0;
    display: flex;
    gap: var(--mf-space-inline);
    justify-content: space-between;
    padding: var(--mf-space-inline);
    --mf-divider-after-image: linear-gradient(var(--mf-section-divider-color), var(--mf-section-divider-color));
    --mf-divider-after-content: "";

    padding-block-end: calc(var(--mf-space-inline) + var(--mf-divider-width));
    --mf-divider-inline-inset: var(--mf-space-inline);
  }

  .charts-error-row > :first-child {
    flex: 1 1;
    min-width: 0;
  }

  .charts-titlebar {
    background: var(--mf-color-bg-elevated);
    border-bottom: 0;
    gap: var(--mf-space-inline);
    min-height: 42px;
    padding: var(--mf-space-text) var(--mf-space-inline);
    --mf-divider-after-image: linear-gradient(var(--mf-section-divider-color), var(--mf-section-divider-color));
    --mf-divider-after-content: "";

    padding-block-end: calc(var(--mf-space-text) + var(--mf-divider-width));
    --mf-divider-inline-inset: var(--mf-space-inline);
    --mf-divider-underlay-image: none;
  }

  .charts-tabs {
    align-items: stretch;
    display: flex;
    flex: 1 1;
    gap: var(--mf-space-text);
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .charts-tabs::-webkit-scrollbar {
    display: none;
  }

  .charts-tab {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: var(--mf-border-radius);
    display: flex;
    flex: 0 1 166px;
    min-width: 102px;
  }

  .charts-tab > button[role="tab"] {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--mf-color-muted);
    display: grid;
    flex: 1 1;
    gap: 0 var(--mf-space-inline);
    grid-template-columns: 6px minmax(0, auto);
    min-width: 0;
    padding: 5px var(--mf-space-inline);
    text-align: left;
  }

  .charts-tab strong,
  .charts-tab small {
    grid-column: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .charts-tab strong {
    color: inherit;
  }

  .charts-tab small {
    color: var(--mf-color-subtle);
    text-transform: uppercase;
  }

  :where(html:not(.web-desktop)) .charts-tab > .charts-tab-favorite:last-child {
    background: transparent;
    border: 0;
    color: var(--mf-color-subtle);
    display: grid;
    padding: var(--mf-space-inline);
    place-items: center;
  }

  .charts-tab-active {
    background: var(--mf-color-control-selected);
    border-color: var(--mf-color-border);
  }

  .charts-tab-active > button[role="tab"] {
    color: var(--mf-color-on-control-selected);
  }

  .charts-tab-status {
    background: var(--mf-color-subtle);
    border-radius: 50%;
    grid-row: 1 / 3;
    height: 5px;
    width: 5px;
  }

  .charts-tab-status-live {
    background: var(--mf-color-success);
  }

  .charts-tab-status-delayed {
    background: var(--mf-color-warning);
  }

  .charts-title-actions,
  .charts-command-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: var(--mf-space-inline);
  }

  .charts-commandbar button:active,
  .charts-instrument-result:active:not(:has(> .mf-icon-button[data-press-feedback="none"]:active)) {
    transform: scale(0.97);
  }

  .charts-commandbar {
    border-bottom: 0;
    gap: var(--mf-space-group);
    min-height: 51px;
    padding: var(--mf-space-text) var(--mf-space-inline);
    --mf-divider-after-image: linear-gradient(var(--mf-section-divider-color), var(--mf-section-divider-color));
    --mf-divider-after-content: "";

    padding-block-end: calc(var(--mf-space-text) + var(--mf-divider-width));
    --mf-divider-inline-inset: var(--mf-space-inline);
  }

  .charts-symbol-control {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: var(--mf-border-radius);
    color: var(--mf-color-text);
    display: flex;
    flex: 0 0 auto;
    gap: var(--mf-space-inline);
    min-height: 38px;
    padding: 3px var(--mf-space-inline) 3px 4px;
    text-align: left;
  }

  .charts-symbol-control > span:nth-child(2) {
    display: grid;
  }

  .charts-symbol-control small {
    color: var(--mf-color-subtle);
    text-transform: uppercase;
  }

  .charts-symbol-mark,
  .charts-instrument-mark {
    align-items: center;
    background: color-mix(in srgb, var(--mf-color-accent) 10%, transparent);
    border: var(--mf-border-rule);
    border-radius: var(--mf-border-radius);
    color: var(--mf-color-accent);
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
  }

  .charts-quote-strip {
    display: grid;
    flex: 0 0 auto;
    gap: 0 var(--mf-space-inline);
    grid-template-columns: auto auto;
  }

  .charts-quote-strip small {
    color: var(--mf-color-subtle);
  }

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

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

  .charts-timeframes {
    flex: 1 1;
    min-width: 100px;
  }

  .charts-timeframe-selector {
    width: fit-content;
  }

  .charts-timeframe-selector > .mf-selector-surface {
    flex-wrap: nowrap;
  }

  .charts-timeframe-selector .mf-segmented-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .charts-timeframe-menu-anchor {
    display: inline-flex;
  }

  .charts-command-actions .mf-button {
    min-height: 30px;
    padding-inline: var(--mf-space-inline);
  }

  .charts-main-grid {
    display: grid;
    flex: 1 1;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    min-width: 0;
    position: relative;
  }

  .charts-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    min-height: 0;
    min-width: 0;
  }

  .charts-plot-slot,
  .charts-canvas-region,
  .charts-canvas-shell {
    min-height: 0;
    min-width: 0;
    position: relative;
  }

  .charts-canvas-region {
    display: flex;
    flex-direction: column;
    background: var(--mf-color-bg-elevated);
    overflow: hidden;
    height: 100%;
    width: 100%;
  }

  .charts-plot-content {
    display: flex;
    flex: 1 1;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
  }

  .charts-canvas-region:fullscreen,
  .charts-canvas-region[data-chart-expanded] {
    container-name: charts-workspace;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 0;
    padding: env(safe-area-inset-top) env(safe-area-inset-right)
      env(safe-area-inset-bottom) env(safe-area-inset-left);
    width: 100%;
  }

  .charts-canvas-region[data-chart-expanded] {
    height: 100%;
    padding: 0;
  }

  .charts-price-content {
    display: flex;
    flex: 1 1;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    position: relative;
  }

  .charts-price-content[hidden] {
    display: none;
  }

  .charts-price-content > .charts-canvas-shell {
    flex: 1 1;
    height: auto;
    min-height: 0;
  }

  .charts-indicator-inspector {
    grid-auto-rows: max-content;
    align-content: start;
    align-items: start;
    display: grid;
    flex: 1 1;
    gap: var(--mf-space-group);
    min-height: 0;
    min-width: 0;
    overflow: auto;
    padding: var(--mf-space-surface);
  }

  .charts-indicator-inspector-heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--mf-space-group);
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .charts-indicator-inspector-heading h2 {
    margin: 0;
  }

  .charts-indicator-inspector > .mf-widget {
    min-height: 0;
    row-gap: var(--mf-space-group);
  }

  .charts-indicator-card h3 {
    align-items: center;
    display: flex;
    gap: var(--mf-space-inline);
  }

  .charts-indicator-card .charts-indicator-color {
    display: inline-block;
    flex-shrink: 0;
    height: var(--mf-space-2);
    width: var(--mf-space-2);
  }

  .charts-indicator-form {
    display: grid;
    gap: var(--mf-space-group);
    min-width: 0;
  }


  .charts-indicator-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mf-space-group);
    justify-content: flex-end;
  }

  .charts-fullscreen-symbol {
    flex: 1 1;
    min-width: 0;
  }

  .charts-fullscreen-symbol small {
    color: var(--mf-color-muted);
  }

  .charts-canvas-shell {
    height: 100%;
  }

  .charts-scale-controls {
    bottom: var(--mf-space-2);
    position: absolute;
    right: var(--mf-space-2);
  }

  .charts-price-autoscale {
    min-height: 44px;
    min-width: 44px;
  }

  .charts-canvas {
    cursor: grab;
    display: block;
    height: 100%;
    outline: 0;
    touch-action: none;
    width: 100%;
  }

  .charts-canvas[data-panning="true"] {
    cursor: grabbing;
  }

  .charts-canvas-loading {
    align-items: center;
    background: color-mix(
      in srgb,
      var(--mf-color-bg-elevated) 86%,
      transparent
    );
    display: flex;
    inset: 0;
    justify-content: center;
    position: absolute;
    z-index: 4;
  }

  .charts-history-loading {
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 10px;
    transform: translateX(-50%);
    z-index: 2;
  }

  .charts-canvas-empty {
    background:
      radial-gradient(
        circle at 78% 42%,
        color-mix(in srgb, var(--mf-color-accent) 8%, transparent),
        transparent 34%
      ),
      var(--mf-color-bg-elevated);
    inset: 0;
    overflow: auto;
    position: absolute;
    z-index: 3;
  }

  .charts-canvas-empty .charts-empty-onboarding {
    gap: var(--mf-space-group) var(--mf-space-group);
    grid-template-columns: minmax(300px, 1.15fr) minmax(180px, 0.55fr);
    max-width: 920px;
    padding: var(--mf-space-surface);
  }

  .charts-canvas-empty .charts-empty-copy {
    gap: var(--mf-space-group);
  }

  .charts-canvas-empty .charts-empty-heading {
    gap: var(--mf-space-inline);
  }

  .charts-canvas-empty .charts-empty-visual {
    max-width: 230px;
  }

  .charts-canvas-empty .charts-empty-benefits {
    gap: var(--mf-space-group);
    padding-top: var(--mf-space-surface);
  }

  .charts-canvas-empty .charts-empty-benefit-icon {
    height: 30px;
    width: 30px;
  }

  .charts-data-fallback {
    bottom: var(--mf-space-2);
    left: var(--mf-space-2);
    position: absolute;
    z-index: 5;
  }

  .charts-data-fallback > summary {
    background: color-mix(in srgb, var(--mf-color-panel) 90%, transparent);
    border: var(--mf-border-rule);
    border-radius: var(--mf-border-radius);
    color: var(--mf-color-subtle);
    cursor: pointer;
    list-style: none;
    padding: var(--mf-space-text) var(--mf-space-inline);
  }

  .charts-data-table-wrap {
    background: var(--mf-color-panel);
    border: var(--mf-border-rule);
    border-radius: var(--mf-border-radius);
    bottom: calc(100% + 5px);
    left: 0;
    max-height: min(420px, 60vh);
    max-width: min(760px, 78vw);
    overflow: auto;
    position: absolute;
    width: max-content;
    --mf-divider-underlay-image: none;
  }

  .charts-data-table-wrap table {
    border-collapse: collapse;
  }

  .charts-data-table-wrap th,
  .charts-data-table-wrap td {
    border-bottom: 0;
    padding: var(--mf-space-text) var(--mf-space-inline);
    text-align: right;
    white-space: nowrap;
    --mf-divider-after-image: linear-gradient(var(--mf-section-divider-color), var(--mf-section-divider-color));
    --mf-divider-after-content: "";

    padding-block-end: calc(var(--mf-space-text) + var(--mf-divider-width));
    --mf-divider-inline-inset: var(--mf-space-surface);
    --mf-divider-inline-start: 0px;
    --mf-divider-inline-end: 0px;
  }

  .charts-data-table-wrap :is(th, td):first-child {
    --mf-divider-inline-start: var(--mf-divider-inline-inset);
  }

  .charts-data-table-wrap :is(th, td):last-child {
    --mf-divider-inline-end: var(--mf-divider-inline-inset);
  }

  .charts-data-table-wrap th {
    background: var(--mf-color-panel-raised);
    color: var(--mf-color-muted);
    position: sticky;
    top: 0;
    --mf-divider-underlay-image: none;
  }

  .charts-indicator-color {
    border-radius: 50%;
    height: 7px;
    width: 7px;
  }

  .charts-dialog-fields {
    display: grid;
    gap: var(--mf-space-group);
    grid-template-columns: minmax(160px, 0.8fr) minmax(130px, 0.5fr) minmax(
        180px,
        1fr
      );
  }

  .charts-instrument-dialog {
    display: grid;
    gap: var(--mf-space-group);
  }

  .charts-instrument-results {
    list-style: none;
    margin: 0;
    padding: 0;
    border: var(--mf-border-rule);
    border-radius: var(--mf-border-radius);
    display: grid;
    max-height: min(480px, 52vh);
    overflow: auto;
  }

  .charts-instrument-result {
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 0;
    color: var(--mf-color-text);
    display: grid;
    gap: var(--mf-space-group);
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 52px;
    padding: var(--mf-space-inline) var(--mf-space-surface);
    text-align: left;
    transition:
      background-color 120ms var(--mf-ease-out),
      transform 120ms var(--mf-ease-out);
    padding-block-end: calc(var(--mf-space-inline) + var(--mf-divider-width));
    --mf-divider-before-image: none;
    --mf-divider-before-content: none;
    --mf-divider-inline-inset: var(--mf-space-surface);
    --mf-divider-underlay-image: none;
  }

  .charts-instrument-result-select {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    display: grid;
    gap: var(--mf-space-group);
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-width: 0;
    padding: 0;
    text-align: left;
    width: 100%;
  }

  .charts-favorite-results {
    display: grid;
    gap: var(--mf-space-inline);
  }

  .charts-favorite-results > .mf-text-label {
    color: var(--mf-color-muted);
  }

  .charts-tab-favorite {
    background: transparent;
    border: 0;
    color: var(--mf-color-accent);
    display: grid;
    padding: 5px 2px;
    place-items: center;
  }

  .charts-actions-menu:not(.mf-popover-product) {
    min-width: 210px;
  }

  .charts-indicator-editor {
    display: grid;
    gap: var(--mf-space-group);
    grid-template-columns: minmax(0, 1fr);
  }


  .charts-indicator-settings {
    align-content: start;
    display: grid;
    gap: var(--mf-space-group);
  }

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

  .charts-instrument-result-select > span:nth-child(2) {
    display: grid;
    min-width: 0;
  }

  .charts-instrument-result strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .charts-instrument-result small,
  .charts-instrument-ticks {
    color: var(--mf-color-subtle);
  }


  @container charts-workspace (max-width: 860px) {
    .charts-commandbar {
      flex-wrap: wrap;
      row-gap: var(--mf-space-text);
    }

    .charts-symbol-control {
      flex: 1 1 180px;
    }

    .charts-quote-strip {
      display: grid;
      flex: 0 0 auto;
    }

    .charts-command-actions {
      margin-left: auto;
      max-width: 100%;
      overflow-x: auto;
    }

    .charts-timeframes {
      flex-basis: 100%;
      order: 3;
    }
  }

  @container charts-workspace (max-width: 760px) {
    .charts-titlebar {
      flex-wrap: wrap;
    }

    .charts-title-actions {
      margin-left: auto;
      order: 2;
    }

    .charts-tabs {
      flex-basis: 100%;
      order: 3;
    }

    .charts-stage {
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: minmax(0, 1fr);
    }

    .charts-canvas-region {
      grid-row: 2;
    }
  }

  @media (max-width: 860px) {
    .page-content:has([data-chart-workspace]) {
      overflow: auto;
    }

    .charts-workspace {
      height: 100%;
      min-height: clamp(420px, 72dvh, 540px);
    }
  }

  @media (max-width: 760px) {
    .charts-indicator-editor {
      grid-template-columns: 1fr;
    }

    .charts-empty-onboarding {
      gap: var(--mf-space-display);
      grid-template-columns: minmax(0, 1fr);
      min-height: 0;
      padding: var(--mf-space-display) var(--mf-space-surface);
    }

    .charts-empty-copy {
      gap: var(--mf-space-section);
    }

    .charts-empty-visual {
      max-width: 320px;
      place-self: center;
    }

    .charts-empty-benefits {
      gap: var(--mf-space-group);
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .charts-canvas-empty .charts-empty-onboarding {
      grid-template-columns: minmax(0, 1fr);
      padding: var(--mf-space-section);
    }

    .charts-canvas-empty .charts-empty-visual {
      display: none;
    }

    .charts-titlebar {
      flex-wrap: wrap;
    }

    .charts-title-actions {
      margin-left: auto;
      order: 2;
    }

    .charts-tabs {
      flex-basis: 100%;
      order: 3;
    }

    .charts-commandbar {
      flex-wrap: wrap;
      gap: var(--mf-space-text) var(--mf-space-inline);
    }

    .charts-symbol-control {
      flex: 1 1;
    }

    .charts-timeframes {
      flex-basis: 100%;
      order: 3;
    }

    .charts-command-actions {
      margin-left: auto;
      max-width: 100%;
      overflow-x: auto;
    }

    .charts-stage {
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: minmax(0, 1fr);
    }

    .charts-canvas-region {
      grid-row: 2;
    }

    .charts-dialog-fields {
      grid-template-columns: 1fr;
    }
  }

  @container charts-workspace (max-width: 760px) {
    .charts-stage {
      grid-template-rows: minmax(0, 1fr);
    }

    .charts-tab > button {
      min-height: 44px;
    }

    .charts-tab > button:not(:first-child) {
      min-width: 44px;
      padding: 0;
    }

    .charts-symbol-control {
      min-height: 44px;
    }
  }

  @media (max-width: 520px) {
    .charts-empty-onboarding {
      padding: var(--mf-space-display) var(--mf-space-section);
    }

    .charts-empty-actions {
      align-items: stretch;
      display: grid;
    }

    .charts-empty-actions .mf-button {
      justify-content: center;
      width: 100%;
    }

    .charts-empty-actions > span {
      text-align: center;
    }

    .charts-empty-benefits {
      grid-template-columns: minmax(0, 1fr);
    }

    .charts-empty-visual {
      max-width: 270px;
    }

    .charts-empty-readonly-badge {
      bottom: var(--mf-space-3);
    }
  }

  @media (max-width: 760px), (max-width: 1024px) and (max-height: 500px) {
    .charts-instrument-modal-mobile .charts-instrument-result {
      padding-inline: 0;
      --mf-divider-inline-inset: 0px;
    }

    .charts-instrument-modal-mobile .charts-instrument-result-select {
      min-height: 44px;
    }

    .charts-instrument-modal-mobile
      .charts-instrument-result-select[aria-current="true"] {
      color: var(--mf-color-accent);
    }

    .charts-instrument-modal-mobile .charts-dialog-fields {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .charts-instrument-modal-mobile .charts-instrument-search {
      grid-column: 1 / -1;
      grid-row: 1;
    }

    .charts-instrument-modal-mobile .charts-instrument-results {
      max-height: 42dvh;
      overflow-y: auto;
      overscroll-behavior: contain;
      border: 0;
      border-radius: 0;
    }

    .charts-instrument-modal-mobile .charts-instrument-ticks {
      display: none;
    }

    .charts-instrument-modal-mobile .charts-instrument-dialog > .mf-button {
      justify-self: start;
    }
  }

  @media (max-height: 720px) {
    .page-content:has([data-chart-workspace]) {
      overflow: auto;
    }

    .charts-workspace:not(:fullscreen) {
      height: 100%;
    }

    .charts-indicator-inspector {
      overscroll-behavior: contain;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .charts-workspace *,
    .charts-workspace *::before,
    .charts-workspace *::after {
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
    }
  }
  .charts-canvas-shell > :is(.mf-loading, .mf-async-state-embedded) {
    height: 100%;
    inset: 0;
    position: absolute;
  }
}

/*!********************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/app/(product)/studio/studio-foundation.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************************************/
.app-shell:has(.studio-workspace) {
  min-height: 0;
  overflow: hidden;
}

.app-main:has(.studio-workspace) {
  display: block;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.app-main:has(.studio-workspace) > .app-topbar {
  display: none;
}

.app-main:has(.studio-workspace) > .page-content {
  height: 100%;
  margin: 0;
  max-width: none;
  overflow: hidden;
  scrollbar-gutter: auto;
  width: 100%;
}

.studio-workspace {
  box-sizing: border-box;
  color: var(--mf-color-text);
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

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

.studio-workspace :where(button) {
  font: inherit;
}

.studio-workspace button {
  cursor: pointer;
}

.studio-workspace button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

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

.scratch-studio-error {
  align-items: center;
  background: var(--mf-color-panel);
  border: 0;
  color: var(--mf-color-muted);
  display: flex;
  flex-direction: column;
  gap: var(--mf-space-group);
  height: 100%;
  justify-content: center;
  min-height: 0;
  padding: var(--mf-space-section);
  border-radius: 0;
}

.scratch-blockly-host {
  height: 100%;
  min-height: 0;
  min-width: 0;
  width: 100%;
}

.scratch-blockly-host[aria-busy="true"] {
  visibility: hidden;
}

.scratch-blockly-host[data-pan-mode="true"] {
  cursor: grab;
}

.scratch-blockly-host[data-pan-mode="true"][data-panning="true"] {
  cursor: grabbing;
}

/* stylelint-disable selector-class-pattern -- Blockly owns its injected class names. */

.scratch-blockly-host[data-pan-mode="true"] .blocklySvg,
.scratch-blockly-host[data-pan-mode="true"] .blocklyDraggable {
  cursor: inherit !important;
}

.scratch-blockly-host > .injectionDiv {
  height: 100%;
  position: relative;
  width: 100%;
}

.scratch-blockly-host .blocklySvg {
  background: var(--mf-color-bg);
  color: var(--mf-color-text);
  display: block;
  height: 100%;
  width: 100%;
}

.scratch-blockly-host .blocklyMainBackground {
  fill: var(--mf-color-bg);
  stroke: var(--mf-color-border-subtle);
}

.scratch-blockly-host .blocklyText,
.scratch-block-preview-svg .blocklyText {
  fill: var(--mf-color-text) !important;
}

.scratch-blockly-host .blocklyFieldRect,
.scratch-block-preview-svg .blocklyFieldRect {
  fill: var(--mf-color-input);
  stroke: var(--mf-color-border-strong);
  stroke-width: 1px;
}

/* Text, number and memory fields share the compound field material, while
   Blockly retains its measured compact geometry and text metrics. */

.scratch-blockly-host .blocklyFieldText,
.scratch-block-preview-svg .blocklyFieldText {
  fill: var(--mf-color-text) !important;
}

:is(.scratch-blockly-host, .scratch-block-preview-svg) .marketforge_events_blocks {
  --scratch-canvas-block-accent: #078467;
}

:is(.scratch-blockly-host, .scratch-block-preview-svg) .marketforge_market_blocks {
  --scratch-canvas-block-accent: #087f96;
}

:is(.scratch-blockly-host, .scratch-block-preview-svg) .marketforge_indicators_blocks {
  --scratch-canvas-block-accent: #256fa8;
}

:is(.scratch-blockly-host, .scratch-block-preview-svg) .marketforge_logic_blocks {
  --scratch-canvas-block-accent: #7451cb;
}

:is(.scratch-blockly-host, .scratch-block-preview-svg) .marketforge_math_blocks {
  --scratch-canvas-block-accent: #6246b5;
}

:is(.scratch-blockly-host, .scratch-block-preview-svg) .marketforge_state_blocks {
  --scratch-canvas-block-accent: #a43d91;
}

:is(.scratch-blockly-host, .scratch-block-preview-svg) .marketforge_sizing_blocks {
  --scratch-canvas-block-accent: #b9631d;
}

:is(.scratch-blockly-host, .scratch-block-preview-svg) .marketforge_trading_blocks {
  --scratch-canvas-block-accent: #c34949;
}

:is(.scratch-blockly-host, .scratch-block-preview-svg) .marketforge_control_blocks {
  --scratch-canvas-block-accent: #53606d;
}

:is(.scratch-blockly-host, .scratch-block-preview-svg) .marketforge_observability_blocks {
  --scratch-canvas-block-accent: #35845d;
}

:is(.scratch-blockly-host, .scratch-block-preview-svg) .marketforge_reuse_blocks {
  --scratch-canvas-block-accent: #526fc8;
}

:is(.scratch-blockly-host, .scratch-block-preview-svg) .blocklyBlock[class*="marketforge_"] > .blocklyPath {
  filter: none;
  stroke: color-mix(in srgb, var(--scratch-canvas-block-accent) 72%, var(--mf-color-border));
  stroke-width: 1.2px;
  vector-effect: non-scaling-stroke;
}

:is(.scratch-blockly-host, .scratch-block-preview-svg) .blocklyPathLight {
  opacity: 0.14;
}

:is(.scratch-blockly-host, .scratch-block-preview-svg) .blocklyPathDark {
  opacity: 0.1;
}

.scratch-blockly-host .blocklyGridPattern line {
  opacity: 0.55;
  stroke: var(--mf-color-border-strong);
}

.scratch-blockly-host .blocklyScrollbarHandle {
  fill: var(--mf-color-border-strong);
  rx: 4px;
}

.scratch-blockly-host .blocklyScrollbarBackground {
  fill: transparent;
}

.scratch-blockly-host .blocklySelected > .blocklyPath {
  stroke: var(--mf-color-accent) !important;
  stroke-width: 2px;
}

/* stylelint-enable selector-class-pattern */

/*!********************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/app/(product)/studio/studio-components.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************************************/
.scratch-icon-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.scratch-icon-button {
  padding: 0;
  width: var(--mf-control-h-sm);
}

.scratch-icon-button > svg {
  flex: 0 0 auto;
}

.scratch-strategy-identity {
  align-items: center;
  display: flex;
  gap: var(--mf-space-group);
  min-width: 0;
}

.scratch-name-field {
  min-width: 0;
  width: 100%;
}

.scratch-canvas-error {
  background: color-mix(in srgb, var(--mf-color-danger) 10%, var(--mf-color-panel));
  border: var(--mf-border-rule);
  border-radius: var(--mf-border-radius);
  color: var(--mf-color-danger);
  inset: var(--mf-space-4) var(--mf-space-4) auto auto;
  max-width: 420px;
  padding: var(--mf-space-surface) var(--mf-space-surface);
  position: absolute;
  z-index: 10;
}

.scratch-studio-panel > header {
  align-items: center;
  border-bottom: 0;
  display: flex;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 var(--mf-space-surface) 0 var(--mf-space-surface);
  --mf-divider-after-image: linear-gradient(var(--mf-section-divider-color), var(--mf-section-divider-color));
  --mf-divider-after-content: "";

  padding-block-end: calc(0px + var(--mf-divider-width));
  --mf-divider-inline-inset: var(--mf-space-surface);
  --mf-divider-inline-start: var(--mf-space-4);
  --mf-divider-inline-end: var(--mf-space-3);
}

.scratch-studio-panel h2 {
  margin: 0;
}

.scratch-panel-scroll {
  min-height: 0;
  overflow: auto;
  padding: var(--mf-space-surface);
  scrollbar-color: var(--mf-color-border-strong) transparent;
  scrollbar-width: thin;
}

.scratch-search-field {
  margin-bottom: var(--mf-space-group);
}

.scratch-panel-section + .scratch-panel-section {
  border-top: var(--mf-divider-rule);
  margin-top: var(--mf-space-group);
  padding-top: var(--mf-space-surface);
}

.scratch-block-library-list {
  display: grid;
  gap: var(--mf-space-section);
  padding-right: var(--mf-space-text);
  position: relative;
}

.scratch-block-library-group {
  display: grid;
  gap: var(--mf-space-inline);
  min-width: 0;
}

.scratch-block-library-group-heading {
  align-items: center;
  display: grid;
  gap: var(--mf-space-inline);
  grid-template-columns: 24px minmax(0, 1fr) auto;
  min-height: 28px;
  padding-inline: var(--mf-space-text);
}

.scratch-block-library-group-heading h4 {
  color: var(--mf-color-text);
  margin: 0;
}

.scratch-block-library-group-heading > span:last-child {
  color: var(--mf-color-muted);
}

.scratch-block-library-group-icon {
  align-items: center;
  background: color-mix(in srgb, var(--scratch-block-colour) 14%, var(--mf-color-panel));
  border: var(--mf-border-rule);
  border-radius: var(--mf-border-radius);
  color: color-mix(in srgb, var(--scratch-block-colour) 72%, var(--mf-color-text));
  display: inline-flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.scratch-block-library-group-grid {
  display: grid;
  gap: var(--mf-space-inline);
}

.scratch-block-library-group-grid > button {
  background: color-mix(in srgb, var(--scratch-block-colour) 4%, var(--mf-color-panel-raised));
  border: var(--mf-border-rule);
  border-radius: var(--mf-border-radius);
  color: var(--mf-color-text);
  display: grid;
  gap: var(--mf-space-inline);
  min-height: 72px;
  overflow: hidden;
  padding: var(--mf-space-inline);
  text-align: left;
  transition:
    background-color 140ms var(--mf-ease-out),
    border-color 140ms var(--mf-ease-out),
    box-shadow 140ms var(--mf-ease-out),
    transform 120ms var(--mf-ease-out);
}

.scratch-block-library-group-grid > button[draggable="true"] {
  cursor: grab;
}

.scratch-block-library-group-grid > button[draggable="true"]:active {
  cursor: grabbing;
}

.scratch-block-library-group-grid > button:active {
  transform: scale(0.985);
}

.scratch-block-preview {
  align-items: center;
  display: flex;
  justify-content: flex-start;
  min-height: 34px;
  min-width: 0;
  overflow: hidden;
  padding: var(--mf-space-text);
  width: 100%;
}

/* stylelint-disable-next-line selector-class-pattern -- Blockly owns the theme-scoping class. */
.scratch-block-preview-svg.blocklySvg {
  background-color: transparent;
  display: block;
  height: auto;
  max-height: 124px;
  max-width: 100%;
  overflow: visible;
  pointer-events: none;
  position: static;
  width: auto;
}

.scratch-block-library-meta {
  align-items: center;
  display: flex;
  gap: var(--mf-space-inline);
  justify-content: space-between;
  min-width: 0;
  padding-inline: var(--mf-space-text) var(--mf-space-text);
}

.scratch-block-library-add {
  align-items: center;
  background: color-mix(in srgb, var(--scratch-block-colour) 12%, transparent);
  border: var(--mf-border-rule);
  border-radius: var(--mf-radius-pill);
  color: color-mix(in srgb, var(--scratch-block-colour) 72%, var(--mf-color-text));
  display: inline-flex;
  flex: 0 0 auto;
  height: 24px;
  justify-content: center;
  transition:
    background-color 140ms var(--mf-ease-out),
    border-color 140ms var(--mf-ease-out);
  width: 24px;
}

.scratch-block-kind {
  align-items: center;
  display: inline-flex;
  gap: var(--mf-space-text);
}

.scratch-block-kind svg {
  color: color-mix(in srgb, var(--scratch-block-colour) 72%, var(--mf-color-text));
  flex: 0 0 auto;
}

.scratch-block-library-empty {
  color: var(--mf-color-muted);
  margin: var(--mf-space-text) 0 0;
  padding: var(--mf-space-surface);
  text-align: center;
}

.scratch-block-preview-renderer {
  contain: strict;
  height: 640px;
  left: -10000px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 640px;
}

.scratch-block-library-list small {
  color: var(--mf-color-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scratch-strategy-list {
  display: grid;
  gap: var(--mf-space-group);
  list-style: none;
  margin: var(--mf-space-group) 0 0;
  padding: 0;
}

.scratch-strategy-list .mf-widget-record-actions {
  --mf-studio-strategy-action-min-width: 112px;

  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--mf-studio-strategy-action-min-width)), 1fr));
}

.scratch-strategy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mf-space-inline);
}

.scratch-panel-empty {
  color: var(--mf-color-muted);
  margin: var(--mf-space-group) 0 0;
}

.scratch-strategy-file-actions {
  align-items: center;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--mf-space-inline);
  margin: 0;
  min-inline-size: 0;
  padding: 0;
}

.scratch-canvas-navigation {
  pointer-events: auto;
}

.scratch-canvas-minimap {
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
          backdrop-filter: blur(26px) saturate(1.2);
  background: linear-gradient(145deg, var(--mf-chrome-highlight), transparent 30%), var(--mf-chrome-background-strong);
  border: var(--mf-border-rule);
  border-radius: var(--mf-border-radius);
  height: 156px;
  overflow: hidden;
  position: relative;
  width: 208px;
}

.scratch-canvas-minimap > svg {
  display: block;
  height: 100%;
  width: 100%;
}

.scratch-minimap-surface {
  fill: var(--mf-color-bg-elevated);
}

.scratch-minimap-link {
  opacity: 0.78;
  stroke: var(--mf-color-border-strong);
  stroke-linecap: round;
  stroke-width: 5px;
  vector-effect: non-scaling-stroke;
}

.scratch-minimap-block {
  fill: var(--mf-color-accent);
  opacity: 0.82;
  stroke: var(--mf-color-panel);
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}

.scratch-canvas-minimap[data-empty="true"] .scratch-minimap-surface {
  fill: var(--mf-color-bg);
}

.scratch-minimap-count {
  align-items: center;
  background: var(--mf-color-panel-raised);
  border: var(--mf-border-rule);
  border-radius: var(--mf-radius-pill);
  color: var(--mf-color-muted);
  display: inline-flex;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding-inline: var(--mf-space-text);
  position: absolute;
  right: 8px;
  top: 8px;
}

@media (max-width: 760px) {
  .scratch-strategy-identity {
    flex: 1 1 auto;
  }

  .scratch-name-field {
    min-width: 0;
    width: 100%;
  }

  .scratch-studio-panel > header {
    min-height: 52px;
  }

  .scratch-canvas-minimap {
    aspect-ratio: 4 / 3;
    height: auto;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .scratch-panel-scroll {
    padding: var(--mf-space-surface);
  }
}

@media (max-height: 620px) {
  .scratch-studio-panel > header {
    min-height: 44px;
  }

  .scratch-panel-scroll {
    padding: var(--mf-space-surface);
  }
  .scratch-strategy-list {
    margin-top: var(--mf-space-group);
  }

  .scratch-block-library-list {
    gap: var(--mf-space-group);
  }

  .scratch-canvas-minimap {
    aspect-ratio: 4 / 3;
    height: auto;
    width: 100%;
  }
}

@media (max-height: 420px) {
  .scratch-studio-panel > header {
    min-height: 40px;
  }

  .scratch-panel-scroll {
    padding: var(--mf-space-inline) var(--mf-space-surface);
  }
}

.scratch-save-status {
  color: var(--mf-color-muted);
  grid-column: 1 / -1;
  min-width: 0;
  overflow-wrap: anywhere;
  padding-inline: var(--mf-space-inline);
}

.scratch-save-status:empty {
  visibility: hidden;
}

.scratch-save-status[data-error="true"] {
  color: var(--mf-color-danger);
}

.scratch-studio-loading {
  background: var(--mf-color-bg);
  position: relative;
}

.scratch-canvas-loading {
  display: grid;
  inset: 0;
  min-width: 0;
  padding: var(--mf-space-surface);
  place-items: center;
  pointer-events: none;
  position: absolute;
  z-index: 60;
}

.scratch-canvas-region > :is(.mf-loading, .mf-async-state-embedded) {
  grid-area: 1 / 1 / -1 / -1;
  height: 100%;
  width: 100%;
}

/*!*********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/app/(product)/studio/studio.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************/
.scratch-studio-shell {
  --scratch-studio-edge: clamp(8px, 1.2cqi, 14px);

  background: var(--mf-color-bg);
  container-type: inline-size;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.scratch-studio-header {
  align-items: center;
  background: linear-gradient(145deg, var(--mf-chrome-highlight), transparent 32%), var(--mf-chrome-background-strong);
  border: var(--mf-border-rule);
  border-radius: var(--mf-border-radius);
  display: grid;
  gap: var(--mf-space-text) var(--mf-space-group);
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(1lh, auto);
  justify-content: space-between;
  left: var(--scratch-studio-edge);
  min-height: 50px;
  padding: var(--mf-space-text) var(--mf-space-inline) var(--mf-space-text) var(--mf-space-inline);
  position: absolute;
  top: var(--scratch-studio-edge);
  width: min(520px, calc(100% - var(--scratch-studio-edge) - var(--scratch-studio-edge)));
  z-index: 40;
}

.scratch-studio-toolbar {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: var(--mf-space-inline);
  left: var(--scratch-studio-edge);
  max-height: calc(100% - 124px);
  overflow-y: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--mf-control-product-height);
  z-index: 40;
  scrollbar-width: none;
}

.scratch-studio-toolbar::-webkit-scrollbar {
  display: none;
}

.scratch-studio-header {
  -webkit-backdrop-filter: blur(28px) saturate(1.22);
          backdrop-filter: blur(28px) saturate(1.22);
}


.scratch-studio-body,
.scratch-canvas-region {
  inset: 0;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  position: absolute;
}

.scratch-studio-panel {
  background: var(--mf-color-panel);
  border-left: var(--mf-divider-rule);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  inset: 0 0 0 auto;
  min-height: 0;
  overflow: hidden;
  position: absolute;
  width: min(420px, calc(100% - 60px));
  z-index: 50;
  --mf-divider-underlay-image: none;
}

.scratch-canvas-navigation {
  bottom: var(--scratch-studio-edge);
  left: var(--scratch-studio-edge);
  position: absolute;
  width: min(208px, calc(100% - var(--scratch-studio-edge) - var(--scratch-studio-edge)));
  z-index: 30;
}

@media (max-width: 760px) {
  .scratch-studio-shell {
    --scratch-studio-edge: 8px;
  }

  .scratch-studio-header {
    min-height: 46px;
    padding-block: var(--mf-space-text);
  }

  .scratch-studio-panel {
    width: min(420px, calc(100% - 52px));
  }

  .scratch-canvas-error {
    left: 58px;
    right: var(--scratch-studio-edge);
    top: 66px;
  }
}

@media (max-width: 420px) {
  .scratch-studio-shell {
    --scratch-studio-edge: 6px;
  }

  .scratch-studio-header {
    min-height: 42px;
  }

  .scratch-studio-panel {
    width: min(420px, calc(100% - 48px));
  }
}

@media (max-height: 620px) {
  .scratch-studio-header {
    min-height: 42px;
    padding-block: var(--mf-space-text);
  }

  .scratch-studio-toolbar {
    max-height: calc(100% - 104px);
  }

  .scratch-canvas-navigation {
    left: calc(var(--scratch-studio-edge) + 50px);
    width: min(150px, calc(100% - 72px));
  }

  .scratch-canvas-error {
    top: 60px;
  }
}

@media (max-height: 420px) {
  .scratch-studio-header {
    min-height: 38px;
  }

  .scratch-studio-toolbar {
    max-height: calc(100% - 88px);
  }

  .scratch-canvas-navigation {
    width: min(112px, calc(100% - 68px));
  }
}

@media (max-width: 620px) {
  .scratch-studio-panel {
    width: min(420px, calc(100% - 62px));
  }

  .scratch-canvas-navigation {
    left: calc(var(--scratch-studio-edge) + 62px);
    width: min(150px, calc(100% - 84px));
  }
}

