/*!*************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/components/surfaces.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************/
@layer components {
  .mf-section-divider {
    --mf-section-divider-inset: 0px;

    background: var(--mf-section-divider-color);
    border: 0;
    height: var(--mf-divider-width);
    margin: 0;
    margin-inline: var(--mf-section-divider-inset);
    width: calc(100% - 2 * var(--mf-section-divider-inset));
  }

  .mf-page {
    container-name: product-page;
    container-type: inline-size;
    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;
    flex-wrap: wrap;
    gap: var(--mf-space-group);
    justify-content: space-between;
    min-width: 0;
  }

  .mf-page-header > :first-child,
  .mf-panel-header > :first-child {
    flex: 1 1 min(24rem, 100%);
    min-width: 0;
  }

  .mf-page-header h2,
  .mf-panel-header h2 {
    color: var(--mf-color-text);
  }

  .mf-page-header p,
  .mf-panel-header p {
    color: var(--mf-color-muted);
    margin-top: var(--mf-space-text);
  }

  .mf-page-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    flex: 0 1 auto;
    gap: var(--mf-space-group) var(--mf-space-inline);
    justify-content: flex-end;
    max-width: 100%;
  }

  .mf-panel {
    --mf-border-inset-space: 0px;

    background:
      linear-gradient(180deg, color-mix(in srgb, var(--mf-color-highlight) 40%, transparent), transparent 34%),
      var(--mf-surface-card-background);
    border: var(--mf-border-rule);
    border-radius: var(--mf-border-radius);
    display: flex;
    flex-direction: column;
    gap: var(--mf-page-gap);
    min-width: 0;
    padding: calc(var(--mf-surface-card-padding) + var(--mf-border-inset-space, 0px));
    transition:
      border-color 180ms var(--mf-ease-out),
      box-shadow 180ms var(--mf-ease-out),
      transform 180ms var(--mf-ease-out);
  }

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

  .muted-line {
    color: var(--mf-color-muted);
    margin-top: var(--mf-space-text);
  }

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

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

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

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

  .mf-layout-two-up {
    display: grid;
    gap: var(--mf-page-gap);
    grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr));
  }

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

  .mf-layout-section {
    align-content: start;
    display: grid;
    gap: var(--mf-space-section);
    min-width: 0;
  }

  .mf-tabs {
    --mf-border-inset-space: 0px;

    align-items: center;
    background: var(--mf-color-input);
    border: var(--mf-border-rule);
    border-radius: var(--mf-radius-pill);
    display: flex;
    gap: var(--mf-space-text);
    overflow-x: auto;
    padding: var(--mf-space-text);
  }

  .mf-tabs-vertical {
    align-items: stretch;
    flex-direction: column;
  }

  .mf-actions,
  .mf-dialog-actions,
  .mf-status-notice-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    gap: var(--mf-space-group) var(--mf-space-inline);
  }

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

  .mf-detail-list > div {
    align-items: center;
    border-bottom: var(--mf-divider-rule);
    display: flex;
    gap: var(--mf-space-group);
    justify-content: space-between;
    min-height: var(--mf-row-h);
    transition: background-color 160ms var(--mf-ease-out);
  }
  .mf-detail-list > div:last-child {
    border-bottom: 0;
  }

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

  @container product-page (max-width: 860px) {
    .mf-page-actions {
      justify-content: flex-start;
    }
  }

  @container product-page (max-width: 520px) {
    .mf-panel {
      padding: calc(var(--mf-space-surface) + var(--mf-border-inset-space, 0px));
    }
  }
}

/* The parent owns sibling spacing. A child does not add another vertical margin.
   Padding inside a surface and space on each side of a divider remain explicit. */
:where(.mf-page, .mf-layout-stack, .mf-layout-section, .mf-form-grid, .mf-actions, .mf-dialog-actions, .mf-status-notice-actions, .mf-dialog-body, .mf-detail-sections, .mf-detail-main, .mf-detail-rail, .mf-widget-content-grid, .mf-widget-content-contents) > * {
  margin-block: 0;
}

/* Opt-in work-area chain shared by plans, tax and account performance. */
.app-shell .page-content:has(.mf-widget-fill) {
  display: flex;
  flex-direction: column;
}

.app-shell .page-content:has(.mf-widget-fill) .mf-workspace-fill {
  align-content: stretch;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: auto;
  min-height: 0;
}

.mf-workspace-fill > :not(.mf-workspace-fill, .mf-widget-fill) {
  flex-shrink: 0;
}

/*!**********************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/components/forms.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************************/
@layer components {
  .eyebrow {
    color: var(--mf-color-accent);
    margin-bottom: var(--mf-space-text);
    text-transform: uppercase;
  }

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

  .mf-button {
    align-items: center;
    border: 0;
    border-radius: var(--mf-button-radius, var(--mf-radius-pill));
    display: inline-flex;
    flex: 0 0 auto;
    gap: var(--mf-button-content-gap);
    justify-content: center;
    max-width: 100%;
    min-height: var(--mf-control-h-md);
    padding: 0 var(--mf-button-padding-inline);
    transition:
      background-color 160ms var(--mf-ease-out),
      border-color 160ms var(--mf-ease-out),
      box-shadow 160ms var(--mf-ease-out),
      color 160ms var(--mf-ease-out),
      transform 160ms var(--mf-ease-out);
  }

  .mf-button-rounded {
    --mf-button-radius: var(--mf-radius-control);
  }

  .mf-icon-button {
    align-items: center;
    background: transparent;
    color: var(--mf-color-muted);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    padding: 0;
    transition:
      background-color 120ms var(--mf-ease-out),
      border-color 120ms var(--mf-ease-out),
      color 120ms var(--mf-ease-out),
      transform 120ms var(--mf-ease-out);
  }

  .mf-icon-button-compact {
    border: 0;
    border-radius: var(--mf-border-radius);
    height: 30px;
    width: 30px;
  }

  .mf-icon-button-bare {
    border: 0;
  }

  .mf-icon-button:active:not(:disabled) {
    transform: scale(0.97);
  }

  .mf-icon-button[data-press-feedback="none"]:active:not(:disabled) {
    transform: none;
  }

  .mf-icon-button.is-active {
    background: rgb(var(--accent-rgb, 126, 207, 152), 0.12);
    border-color: var(--mf-color-border);
    color: var(--mf-color-accent);
  }

  .mf-icon-button:disabled {
    cursor: not-allowed;
    opacity: 0.38;
  }

  .mf-info-tile {
    align-items: center;
    background: color-mix(in srgb, var(--mf-color-panel-raised) 76%, transparent);
    border: var(--mf-border-rule);
    border-radius: var(--mf-border-radius);
    display: grid;
    gap: var(--mf-space-group);
    grid-template-columns: auto minmax(0, 1fr);
    padding: var(--mf-space-surface) var(--mf-space-surface);
  }

  .mf-info-tile-icon {
    align-items: center;
    background: transparent;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    width: 32px;
  }

  .mf-info-tile-compact {
    background: color-mix(in srgb, var(--mf-color-panel-raised) 72%, transparent);
    min-height: 70px;
    padding: var(--mf-space-surface);
  }

  .mf-info-tile-compact .mf-info-tile-icon {
    height: 34px;
    width: 34px;
  }

  .mf-button:active:not(:disabled) {
    transform: scale(0.98);
  }

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

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

  .mf-button-secondary {
    background: color-mix(in srgb, var(--mf-color-panel-raised) 88%, transparent);
    border-color: var(--mf-color-border);
    color: var(--mf-color-text);
  }

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

  .mf-button-text {
    background: transparent;
    border: 0;
    color: var(--mf-color-muted);
    min-height: auto;
    padding: 0;
  }

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

  .mf-button-marketing-primary,
  .mf-button-marketing-secondary,
  .mf-button-marketing-ghost {
    border-radius: var(--mf-button-radius, var(--mf-radius-pill));
    gap: var(--mf-button-content-gap);
    min-height: 42px;
    padding: 0 var(--mf-space-section);
    transition:
      filter 150ms ease,
      transform 150ms ease,
      background-color 150ms ease;
  }

  .mf-button-marketing-primary {
    background: var(--mf-marketing-accent);
    border: var(--mf-border-rule);
    color: var(--mf-marketing-on-accent);
  }

  :is(.mf-button-marketing-primary, .mf-button-marketing-secondary).mf-button-compact {
    min-height: var(--mf-button-public-compact-height);
    padding-inline: var(--mf-button-padding-inline);
    position: relative;
  }

  .mf-button-marketing-secondary {
    background: var(--mf-button-public-secondary-background);
    border: var(--mf-border-rule);
    color: var(--mf-marketing-ink);
  }

  .mf-button-marketing-ghost {
    background: transparent;
    border: 0;
    color: var(--mf-marketing-accent);
  }

  :is(.mf-button-marketing-primary, .mf-button-marketing-secondary, .mf-button-marketing-ghost):active:not(:disabled) {
    filter: brightness(0.96);
    transform: scale(0.97);
  }

  .mf-tabs button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: var(--mf-radius-pill);
    color: var(--mf-color-muted);
    display: inline-flex;
    flex: 0 0 auto;
    gap: var(--mf-space-inline);
    min-height: var(--mf-control-h-sm);
    min-width: var(--mf-control-h-sm);
    padding-inline: var(--mf-field-padding-inline);
    white-space: nowrap;
    transition:
      background-color 160ms var(--mf-ease-out),
      box-shadow 160ms var(--mf-ease-out),
      color 160ms var(--mf-ease-out),
      transform 160ms var(--mf-ease-out);
  }

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

  .mf-tabs button:active {
    transform: scale(0.97);
  }

  @media (max-width: 680px), (pointer: coarse) {
    .mf-tabs button {
      min-height: 44px;
    }
  }

  .mf-field {
    align-content: start;
    color: var(--mf-color-muted);
    display: grid;
    gap: var(--mf-space-inline);
    min-width: 0;
  }

  .mf-field small {
    color: var(--mf-color-subtle);
  }

  .mf-field-error {
    color: var(--mf-color-danger) !important;
  }

  .mf-choice-group {
    border: 0;
    display: grid;
    gap: var(--mf-space-inline);
    margin: 0;
    min-width: 0;
    padding: 0;
  }

  .mf-choice-group legend {
    color: var(--mf-color-muted);
  }

  .mf-choice-group:has(> legend:not(.sr-only)) {
    /* Native legends sit outside the fieldset's grid and do not receive its gap. */
    padding-block-start: var(--mf-space-inline);
  }

  .mf-choice-grid {
    display: grid;
    gap: var(--mf-space-inline);
    grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
  }

  .mf-choice-card {
    align-items: flex-start;
    background: var(--mf-color-bg-elevated);
    border: var(--mf-border-rule);
    border-radius: var(--mf-border-radius);
    display: flex;
    gap: var(--mf-space-inline);
    padding: var(--mf-space-surface);
    transition:
      background-color 160ms var(--mf-ease-out),
      border-color 160ms var(--mf-ease-out),
      transform 160ms var(--mf-ease-out);
  }

  .mf-choice-card:has(input:checked),
  .marketing-site .public-plan-card[aria-current="true"] {
    background: color-mix(in srgb, var(--mf-color-accent) 8%, var(--mf-color-bg-elevated));
    border-color: var(--mf-color-border);
  }
  .mf-choice-card input {
    accent-color: var(--mf-color-accent);
    margin-top: var(--mf-space-text);
  }
  .mf-choice-card span,
  .mf-choice-card small {
    display: grid;
    gap: var(--mf-space-text);
  }

  .mf-choice-card-visual {
    cursor: pointer;
  }

  .mf-choice-card-appearance {
    color: var(--mf-color-muted);
    cursor: pointer;
    display: grid;
    gap: var(--mf-space-text);
    grid-template-columns: 1fr;
    min-height: 68px;
    padding: var(--mf-space-inline);
    place-items: center;
    position: relative;
    text-align: center;
  }

  .mf-choice-card-appearance:active {
    transform: scale(0.98);
  }

  .mf-choice-card-appearance:has(input:checked) {
    background: color-mix(in srgb, var(--mf-color-accent) 12%, var(--mf-color-panel));
    border-color: var(--mf-color-border);
    color: var(--mf-color-text);
  }

  .mf-choice-card-appearance:has(input:checked) > svg {
    color: var(--mf-color-accent);
  }

  .mf-choice-card-appearance > svg:last-child {
    position: absolute;
    right: 7px;
    top: 7px;
  }

  .mf-secret-control input::-ms-clear,
  .mf-secret-control input::-ms-reveal {
    display: none;
  }

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

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

  .mf-switch > span {
    --mf-switch-height: 22px;
    --mf-switch-width: 38px;
    --mf-switch-padding: 2px;
    --mf-switch-thumb-size: 16px;
    --mf-switch-thumb-travel: calc(var(--mf-switch-width) - var(--mf-switch-height));

    background: color-mix(in srgb, var(--mf-color-subtle) 72%, var(--mf-color-panel-raised));
    border: var(--mf-border-rule);
    border-radius: var(--mf-radius-pill);
    display: inline-flex;
    flex: 0 0 var(--mf-switch-width);
    height: var(--mf-switch-height);
    padding: var(--mf-switch-padding);
    transition:
      background-color 160ms var(--mf-ease-out),
      border-color 160ms var(--mf-ease-out);
    width: var(--mf-switch-width);
  }

  .mf-switch > span::after {
    background: #fff;
    border-radius: 50%;
    content: "";
    height: var(--mf-switch-thumb-size);
    transition: transform 160ms var(--mf-ease-out);
    width: var(--mf-switch-thumb-size);
  }

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

  .mf-switch input:checked + span::after {
    transform: translateX(var(--mf-switch-thumb-travel));
  }

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

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

  .mf-form-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  }

  @media (max-width: 680px), (pointer: coarse) {
    .mf-button:not(.mf-button-text, .mf-button-compact),
    .mf-icon-button-compact {
      min-height: 44px;
    }

    .mf-icon-button-compact {
      width: 44px;
    }
  }
}

/* One field contract across product, access, public forms and Admin.
   The panel token is also the unselected surface of capsule selectors. */
.mf-field :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="button"], [type="submit"], [type="reset"], [type="hidden"], [type="image"]), select, textarea),
.scratch-name-field input,
.mf-search-field,
.mf-prefixed-control,
html:root .mf-field :is(.mf-secret-control, .mf-field-action-control) {
  background: var(--mf-color-panel);
  border: var(--mf-border-rule);
  border-radius: var(--mf-radius-pill);
  box-sizing: border-box;
  color: var(--mf-color-text);
  font-style: normal;
  font-feature-settings: normal;
  font-variant: normal;
  height: var(--mf-field-height);
  min-height: var(--mf-field-height);
  min-width: 0;
  padding: 0 var(--mf-field-padding-inline);
  text-align: start;
  text-transform: none;
  transition: border-color 160ms var(--mf-ease-out);
}

.mf-field :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="button"], [type="submit"], [type="reset"], [type="hidden"], [type="image"]), select, textarea),
.scratch-name-field input {
  width: 100%;
}

.mf-field :where(textarea, select[multiple]) {
  border-radius: var(--mf-border-radius);
  height: auto;
  padding-block: var(--mf-space-inline);
}

/* Offset the host border so the native button keeps its full compact height. */

.mf-field textarea {
  resize: vertical;
}

.mf-field :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="button"], [type="submit"], [type="reset"], [type="hidden"], [type="image"]), textarea)::placeholder,
.scratch-name-field input::placeholder {
  color: var(--mf-color-subtle);
  font: inherit;
  opacity: 1;
}

.mf-search-field,
.mf-secret-control,
.mf-prefixed-control,
.mf-field-action-control {
  align-items: center;
  display: flex;
  gap: var(--mf-space-inline);
}

/* Compound controls have one border and surface, including their icons. */
:is(.mf-search-field, .mf-secret-control, .mf-prefixed-control, .mf-field-action-control) :is(input, select) {
  background: transparent;
  border: 0;
  border-radius: inherit;
  flex: 1 1 auto;
  height: calc(var(--mf-field-height) - 2px);
  min-height: 0;
  outline: none;
  padding: 0;
}

/* Compound field errors belong to the host; the inner input stays unpainted. */
.mf-field :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="button"], [type="submit"], [type="reset"], [type="hidden"], [type="image"]), select, textarea):not(:where(.mf-search-field *, .mf-secret-control *, .mf-prefixed-control *, .mf-field-action-control *))[aria-invalid="true"],
:is(.mf-search-field, .mf-prefixed-control):has([aria-invalid="true"]),
html:root .mf-field :is(.mf-secret-control, .mf-field-action-control):has([aria-invalid="true"]) {
  border-color: var(--mf-color-border);
  outline: var(--mf-border-width) var(--mf-border-style) var(--mf-color-danger) !important;
  outline-offset: var(--mf-border-width);
}

.mf-field :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="button"], [type="submit"], [type="reset"], [type="hidden"], [type="image"]), select, textarea):disabled,
.scratch-name-field input:disabled,
.mf-prefixed-control:has(:disabled),
.mf-search-field:has(input:disabled),
html:root .mf-field :is(.mf-secret-control, .mf-field-action-control):has(input:disabled) {
  color: var(--mf-color-subtle);
  cursor: not-allowed;
}

.mf-field :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="button"], [type="submit"], [type="reset"], [type="hidden"], [type="image"]), textarea)[readonly]:not(:disabled) {
  color: var(--mf-color-text);
  cursor: text;
}

html:root .mf-search-field > svg,
html:root .mf-field:is(.mf-field-stacked, .mf-field-inline)
  :is(.mf-secret-control, .mf-field-action-control) svg {
  color: inherit;
  flex: 0 0 auto;
  height: var(--mf-field-icon-size);
  width: var(--mf-field-icon-size);
}

/* Actions are part of the field, rather than a separately painted button. */
html:root .mf-field:is(.mf-field-stacked, .mf-field-inline)
  :is(.mf-secret-control, .mf-field-action-control) > button {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  filter: none;
  flex: 0 0 auto;
  font: inherit;
  gap: var(--mf-space-inline);
  height: 100%;
  inset: auto;
  justify-content: center;
  max-height: 100%;
  min-height: 0;
  min-width: 0;
  opacity: 1;
  padding: 0;
  position: relative;
  transform: none;
  width: auto;
}

html:root .mf-field:is(.mf-field-stacked, .mf-field-inline)
  :is(.mf-secret-control, .mf-field-action-control) > button .mf-button-content-visible {
  color: inherit;
  font: inherit;
  gap: var(--mf-button-content-gap);
}

html:root .mf-field:is(.mf-field-stacked, .mf-field-inline)
  :is(.mf-secret-control, .mf-field-action-control) > button:active {
  background: transparent;
  color: inherit;
  filter: none;
  transform: none;
}

html:root .mf-field:is(.mf-field-stacked, .mf-field-inline)
  :is(.mf-secret-control, .mf-field-action-control) > button:disabled {
  color: var(--mf-color-subtle);
  cursor: not-allowed;
}

/* Blockly anchors its editing overlay to a canvas field. Keep its measured
   dimensions; use the same field material and text despite its inline font. */
/* stylelint-disable selector-class-pattern -- Blockly owns this editing class. */
.blocklyHtmlInput {
  background: var(--mf-color-panel) !important;
  border: var(--mf-border-rule) !important;
  border-radius: var(--mf-radius-pill) !important;
  color: var(--mf-color-text) !important;
  font-style: normal !important;
  box-sizing: border-box !important;
  padding: 0 max(0px, calc(var(--mf-space-3) * var(--mf-block-field-scale, 1) - var(--mf-border-width)));
}

/* The native editor reports rejected values without painting a second surface. */
html:root .blocklyHtmlInput[aria-invalid="true"] {
  /* Blockly reserves 2/3 of the warning width. Reserve its full scaled box;
     content sizing also includes that box, padding and both borders. */
  field-sizing: content;
  min-width: 100%;
  padding-inline-start: calc(var(--mf-field-height) * var(--mf-block-field-scale, 1)) !important;
  width: auto;
  border-color: var(--mf-color-border) !important;
  outline: var(--mf-border-width) var(--mf-border-style) var(--mf-color-danger) !important;
  outline-offset: var(--mf-border-width);
}

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

@media (prefers-contrast: more) {
  .mf-field :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="button"], [type="submit"], [type="reset"], [type="hidden"], [type="image"]), select, textarea),
  .scratch-name-field input,
  .mf-search-field,
  .mf-prefixed-control,
  html:root .mf-field :is(.mf-secret-control, .mf-field-action-control) {
    border-color: var(--mf-color-border);
  }
}

/* Public dialog and Auth ghost actions share the compact marketing text role. */
/* stylelint-disable selector-class-pattern -- Blockly owns these field classes. */
:is(.scratch-blockly-host, .scratch-block-preview-svg) .blocklyInputField > .blocklyFieldRect {fill:var(--mf-color-panel) !important;stroke:var(--mf-color-border) !important;stroke-width:1px;vector-effect:non-scaling-stroke;}
.scratch-blockly-host .blocklyInputField.blocklyActiveFocus > .blocklyFieldRect {stroke:var(--mf-color-border) !important;}
.scratch-blockly-host .blocklyInputField.blocklyActiveFocus {outline:var(--mf-border-width) var(--mf-border-style) var(--mf-color-muted);outline-offset:var(--mf-border-width);  .mf-choice-grid > :is(.mf-loading, .mf-async-state-embedded) {
    grid-column: 1 / -1;
  }
}
/* 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]!./node_modules/@marketforge/ui/src/styles/platform/mobile/forms.css ***!
  \***************************************************************************************************************************************************************************************************************************************************************************************************************/
/* Solid mobile selectors share geometry and theme without background sampling. */
@media (max-width: 760px), (max-width: 1024px) and (max-height: 500px) {
  /* Safari's native date appearance adds its padding outside the field width. */
  html:root[data-mobile-device="true"] .mf-field input:is([type="date"], [type="datetime-local"], [type="time"]) {
    appearance: none;
  }

  /* Dark product fields use the application surface; public palettes stay clear. */
  html:root[data-mobile-device="true"]:not([data-theme="light"])
    :is(
      .mf-field:not(:where(.mf-search-field *)) > input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [type="button"], [type="submit"], [type="reset"], [type="hidden"], [type="image"]),
      .mf-field > textarea,
      .mf-field > select:not([multiple]),
      .mf-prefixed-control:has(select),
      .mf-search-field,
      .mf-secret-control,
      .mf-field-action-control,
      .scratch-name-field input
    ):not(:where(:is(.marketing-site, .auth-site, .support-report-portal, .mf-dialog-marketing, .mf-popover-marketing) *)) {
    background-color: var(--mf-color-bg);
  }

  /* Native SelectField keeps Web's 16 px chevron and 12 px end inset. */
  html:root[data-mobile-device="true"] .mf-field select:not([multiple]) {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right var(--mf-space-3) center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    padding-inline-end: calc(var(--mf-field-padding-inline) + var(--mf-space-surface) + var(--mf-space-inline));
  }

  html:root[data-mobile-device="true"] .mf-prefixed-control select:not([multiple]) {
    /* The compound container already supplies the 12 px exterior inset. */
    background-position: right center;
    padding-inline-end: calc(var(--mf-space-surface) + var(--mf-space-inline));
  }

  html:root[data-mobile-device="true"]:not([data-theme="light"])
    .mf-field select:not([multiple], :disabled, :where(:is(.marketing-site, .auth-site, .support-report-portal, .mf-dialog-marketing, .mf-popover-marketing) *)) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }

  html:root[data-mobile-device="true"] .mf-field select:not([multiple]):disabled {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }

  @media (forced-colors: active) {
    html:root[data-mobile-device="true"] .mf-field:is(.mf-field-stacked, .mf-field-inline) select:not([multiple]) {
      appearance: auto;
      background-image: none;
    }
  }

  /* Blockly's native editing overlay is attached outside the product shell. */
  /* stylelint-disable-next-line selector-class-pattern -- Blockly owns this editing class. */
  html:root[data-mobile-device="true"]:not([data-theme="light"]) .blocklyHtmlInput {
    background-color: var(--mf-color-bg) !important;
  }

  html:root[data-mobile-device="true"] .mf-button-product-text,
  html:root[data-mobile-device="true"] .mf-button-marketing-ghost.mf-button-sm {
    --mf-button-ghost-height: 44px;
  }

  /* Keep the public compact control's visual size and extend its touch area. */
  html[data-mobile-device="true"] :is(.mf-button-marketing-primary, .mf-button-marketing-secondary).mf-button-compact::after,
  html[data-mobile-device="true"] :is(.mf-button-public-secondary, .mf-button-product-primary, .mf-button-product-danger)::after {
    content: "";
    height: 44px;
    inset-inline: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Integrated actions keep the field geometry and a 44 px touch target. */
  html:root[data-mobile-device="true"] .mf-field:is(.mf-field-stacked, .mf-field-inline)
    :is(.mf-secret-control, .mf-field-action-control) > button::after {
    content: "";
    height: 44px;
    inset-inline: auto;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: max(100%, 44px);
  }
  /* stylelint-disable-next-line selector-class-pattern -- Blockly owns this editing class. */

  html:root[data-mobile-device="true"] .mf-selector-surface {
    --mf-floating-border: var(--mf-color-border);
    --mf-floating-ink: var(--mf-color-text);
    --mf-floating-opaque: var(--mf-color-panel);
    --mf-floating-background: var(--mf-color-panel);
    --mf-floating-filter: none;

    --mf-segmented-text: var(--mf-floating-ink);
    --mf-segmented-selected-text: var(--mf-floating-ink);
    --mf-segmented-selected: color-mix(
      in srgb,
      var(--mf-floating-ink) 12%,
      transparent
    );
    --mf-segmented-hover: var(--mf-segmented-selected);

    position: relative;
    isolation: isolate;
    overflow: var(--mf-selector-overflow, clip);
    background: var(--mf-floating-background);
    border: var(--mf-border-rule);
    border-radius: var(--mf-radius-pill);
    box-shadow: none;
    color: var(--mf-floating-ink);
    transition: none;
    /* stylelint-disable property-no-vendor-prefix -- Same material on iOS Safari. */
    -webkit-backdrop-filter: var(--mf-floating-filter);
    /* stylelint-enable property-no-vendor-prefix */
    backdrop-filter: var(--mf-floating-filter);
  }

  html:root[data-mobile-device="true"]
    .mf-selector-surface
    > :is(
      button.mf-segmented-button,
      button.mf-tab-button,
      .mf-segmented-trailing
    ) {
    position: relative;
    z-index: 2;
  }

  @media (prefers-contrast: more) {
    html:root[data-mobile-device="true"] .mf-selector-surface {
      background: var(--mf-floating-opaque);
      border-color: var(--mf-color-border);
      box-shadow: none;
      /* stylelint-disable property-no-vendor-prefix -- Accessible iOS fallback. */
      -webkit-backdrop-filter: none;
      /* stylelint-enable property-no-vendor-prefix */
      backdrop-filter: none;
    }
  }

  @media (prefers-contrast: more) {
    html:root[data-mobile-device="true"]
      .mf-selector-surface
      > :is(.is-selected, [aria-selected="true"]) {
      outline: 2px solid currentColor;
      outline-offset: -2px;
    }
  }
}

@media (max-width: 760px) and (prefers-contrast: more),
  (max-width: 1024px) and (max-height: 500px) and (prefers-contrast: more),
  (max-width: 760px) and (forced-colors: active),
  (max-width: 1024px) and (max-height: 500px) and (forced-colors: active) {
  html:root[data-mobile-device="true"] .mf-segmented-control.mf-segmented-billing > .mf-selector-surface.mf-segmented-billing-surface {
    border-color: var(--mf-color-border);
  }

  html:root[data-mobile-device="true"] .mf-selector-surface {
    background: var(--mf-floating-opaque);
    border-color: var(--mf-color-border);
    box-shadow: none;
    /* stylelint-disable property-no-vendor-prefix -- Accessible iOS fallback. */
    -webkit-backdrop-filter: none;
    /* stylelint-enable property-no-vendor-prefix */
    backdrop-filter: none;
  }

  html:root[data-mobile-device="true"]
    .mf-selector-surface
    > :is(.is-selected, [aria-selected="true"]) {
    outline: 2px solid currentColor;
    outline-offset: -2px;
  }
}

@supports not (
  ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) or (-webkit-backdrop-filter: blur(1px))
) {
  @media (max-width: 760px), (max-width: 1024px) and (max-height: 500px) {
    html:root[data-mobile-device="true"] .mf-selector-surface {
      background: var(--mf-floating-opaque);
    }
  }
}

/* Product segmented tracks match the dark page. Keep the previous material
   backdrop inside the selected option so its composed color stays unchanged. */
@media (max-width: 760px), (max-width: 1024px) and (max-height: 500px) {
  html:root[data-mobile-device="true"]:not([data-theme="light"])
    .mf-segmented-control > .mf-selector-surface:not(:where(:is(.marketing-site, .auth-site, .mf-dialog-marketing, .mf-popover-marketing) .mf-selector-surface)) {
    background: var(--mf-color-bg);
  }

  html:root[data-mobile-device="true"]:not([data-theme="light"])
    .mf-segmented-control > .mf-selector-surface:not(:where(:is(.marketing-site, .auth-site, .mf-dialog-marketing, .mf-popover-marketing) .mf-selector-surface))
    > .mf-segmented-button:is(.is-selected, [aria-pressed="true"]) {
    background:
      linear-gradient(var(--mf-segmented-billing-selected, var(--mf-segmented-selected)), var(--mf-segmented-billing-selected, var(--mf-segmented-selected))),
      var(--mf-floating-background);
  }
}

/*!*************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/components/feedback.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************/
@layer components {
  .mf-status-notice-group {
    display: grid;
    gap: var(--mf-space-group);
    min-width: 0;
  }

  .mf-status-notice {
    align-items: flex-start;
    background: rgb(var(--mf-color-info-rgb) / 7%);
    border: var(--mf-border-rule);
    border-radius: var(--mf-border-radius);
    color: var(--mf-color-info);
    display: flex;
    flex-wrap: wrap;
    gap: var(--mf-space-group);
    min-width: 0;
    padding: var(--mf-space-surface);
  }

  .mf-status-notice-success {
    background: rgb(var(--mf-color-success-rgb) / 7%);
    color: var(--mf-color-success);
  }

  .mf-status-notice-accent {
    background: color-mix(in srgb, var(--mf-color-accent) 7%, transparent);
    color: var(--mf-color-accent);
  }

  .mf-status-notice-warning {
    background: rgb(var(--mf-color-warning-rgb) / 7%);
    color: var(--mf-color-warning);
  }

  .mf-status-notice-danger {
    background: rgb(var(--mf-color-danger-rgb) / 7%);
    color: var(--mf-color-danger);
  }

  .mf-status-notice-neutral {
    background: color-mix(in srgb, var(--mf-color-muted) 7%, transparent);
    color: var(--mf-color-muted);
  }

  .mf-status-notice-copy {
    display: grid;
    flex: 1 1 24ch;
    gap: var(--mf-space-text);
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .mf-status-notice-title {
    color: var(--mf-color-text);
    margin: 0;
  }

  .mf-status-notice-body,
  .mf-status-notice-metadata {
    color: var(--mf-color-muted);
    min-width: 0;
  }

  .mf-status-notice-body > :is(p, ul, ol) {
    margin-block: 0;
  }

  .mf-status-notice-actions {
    align-self: center;
    flex: 0 1 auto;
    justify-content: flex-end;
    margin-inline-start: auto;
    max-width: 100%;
    min-width: 0;
  }

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

  .mf-state-page {
    box-sizing: border-box;
    display: grid;
    min-height: 100dvh;
    padding: max(var(--mf-space-page), env(safe-area-inset-top)) max(var(--mf-space-page), env(safe-area-inset-right)) max(var(--mf-space-page), env(safe-area-inset-bottom)) max(var(--mf-space-page), env(safe-area-inset-left));
    place-items: center;
  }

  .empty-state > svg {
    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);
    box-sizing: content-box;
    color: var(--mf-color-accent);
    padding: var(--mf-space-inline);
  }

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

  .mf-async-state {
    align-self: stretch;
  }

  :is(.mf-async-state-empty, .mf-async-state-embedded) {
    align-items: center;
    align-self: stretch;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: var(--mf-space-group);
    height: 100%;
    justify-content: center;
    min-height: 160px;
    padding: var(--mf-space-section);
    text-align: center;
    transform: none;
    width: 100%;
  }

  .mf-async-state-compact:is(.mf-async-state-empty, .mf-async-state-embedded) {
    min-height: 120px;
  }

  :is(.mf-async-state-empty-content, .mf-async-state-embedded-content) {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    gap: var(--mf-space-inline);
    justify-content: center;
    max-width: 36rem;
    max-height: 100%;
    overflow-wrap: anywhere;
    text-align: center;
    width: 100%;
  }

  :is(.mf-async-state-empty-content, .mf-async-state-embedded-content) h2,
  :is(.mf-async-state-empty-content, .mf-async-state-embedded-content) p,
  .mf-async-state-embedded-content > [role="alert"] {
    margin: 0;
  }

  :is(.mf-async-state-empty-content, .mf-async-state-embedded-content) h2 {
    color: var(--mf-color-text);
  }

  :is(.mf-async-state-empty-content, .mf-async-state-embedded-content) p,
  .mf-async-state-embedded-content > [role="alert"] {
    color: var(--mf-color-muted);
    max-width: 32rem;
  }

  :is(.mf-async-state-empty, .mf-async-state-embedded) .mf-async-state-actions {
    justify-content: center;
    margin-top: var(--mf-space-text);
    width: 100%;
  }

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

  .mf-badge {
    align-items: center;
    border: var(--mf-border-rule);
    border-radius: var(--mf-radius-pill);
    color: var(--mf-color-muted);
    display: inline-flex;
    gap: var(--mf-space-text);
    min-height: 24px;
    padding: 0 var(--mf-space-inline);
    white-space: nowrap;
  }

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

  .mf-badge-marketing {
    border-radius: var(--mf-radius-pill);
    min-height: 28px;
    padding-inline: var(--mf-space-inline);
    text-transform: uppercase;
  }

  .mf-badge-icon {
    border-radius: 50%;
    justify-content: center;
    min-height: 28px;
    min-width: 28px;
    padding: 0;
    width: 28px;
  }

  .mf-badge-icon svg {
    flex: 0 0 auto;
  }

  .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;
  }

}

/* Trailing actions retain their button material and minimum height. Long labels
   wrap instead of inheriting the compact button's single-line clipping. */
html:root .mf-status-notice-group > .mf-status-notice-actions .mf-button {
  height: auto;
  max-width: 100%;
  padding-block: var(--mf-space-inline);
  white-space: normal;
}

html:root .mf-status-notice-group > .mf-status-notice-actions .mf-button > .mf-button-content-visible,
html:root .mf-status-notice-group > .mf-status-notice-actions .mf-button > .mf-button-content-visible > :not(svg, img) {
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
}

/*!*************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/components/widgets/widgets.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************/
@layer components {
  .mf-widget {
    background: var(--mf-color-panel);
    container-name: widget;
    container-type: inline-size;
    position: relative;
  }

  .mf-widget-section {
    --mf-border-inset-space:
      0px;

    background: var(--mf-surface-card-background);
    border: var(--mf-border-rule);
    border-radius: var(--mf-border-radius);
    display: grid;
    gap: var(--mf-space-group);
    min-height: 0;
    padding: calc(var(--mf-space-surface) + var(--mf-border-inset-space, 0px));
  }

  .mf-widget-record {
    display: grid;
    gap: var(--mf-space-group);
    min-height: 0;
    padding: calc(var(--mf-space-surface) + var(--mf-border-inset-space, 0px));
  }

  .mf-widget-record .mf-widget-heading {
    overflow-wrap: anywhere;
  }

  .mf-widget-record > .mf-widget-footer {
    border-top: 0;
    margin: 0 calc(var(--mf-space-group) * -1) calc(var(--mf-space-group) * -1);
    padding-block: calc(var(--mf-space-text) + var(--mf-divider-width)) var(--mf-space-text);
    --mf-divider-before-image: linear-gradient(var(--mf-section-divider-color), var(--mf-section-divider-color));
    --mf-divider-before-content:
      "";
    --mf-divider-inline-inset: var(--mf-space-surface);
  }

  .mf-widget-record-actions {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
  }

  .mf-widget-inset {
    background: color-mix(in srgb, var(--mf-color-bg) 86%, var(--mf-color-panel));
  }

  .mf-widget-accented {
    background: linear-gradient(135deg, color-mix(in srgb, var(--mf-color-accent) 7%, transparent), transparent 42%), var(--mf-color-panel);
  }

  .mf-widget-borderless {
    border: 0;
  }

  .mf-widget-borderless > .mf-widget-footer {
    border-top: 0;
  }

  .mf-widget-bot {
    background: var(--mf-color-panel);
  }

  .mf-attribute-badge {
    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;
    padding: var(--mf-space-text) var(--mf-space-inline);
  }

  .mf-widget-brand {
    background: radial-gradient(circle at 0 0, rgb(var(--exchange-brand-rgb, 91, 96, 109), 0.12), transparent 34%), var(--mf-color-panel);
  }

  .mf-widget-danger {
    background: var(--mf-surface-card-background);
  }

  .mf-widget-asset,
  .mf-widget-exchange {
    --mf-border-inset-space:
      0px;

    background: var(--mf-color-panel);
    border: var(--mf-border-rule);
    border-radius: var(--mf-border-radius);
  }

  .mf-widget-preview {
    --mf-border-inset-space:
      0px;

    background: var(--mf-color-panel);
    border: var(--mf-border-rule);
    border-radius: var(--mf-border-radius);
    padding: calc(var(--mf-panel-pad) + var(--mf-border-inset-space, 0px));
  }

  .mf-widget-resource {
    --mf-border-inset-space:
      0px;

    background: color-mix(in srgb, var(--mf-color-panel-raised) 72%, transparent);
    border: var(--mf-border-rule);
    border-radius: var(--mf-border-radius);
    padding: calc(var(--mf-space-surface) + var(--mf-border-inset-space, 0px));
  }

  .mf-widget-resource:active {
    transform: scale(0.98);
  }

  .mf-widget-summary {
    padding: calc(var(--mf-space-surface) + var(--mf-border-inset-space, 0px));
  }

  .mf-widget-workspace {
    --mf-border-inset-space:
      0px;

    background: var(--mf-color-panel);
    border: var(--mf-border-rule);
    border-radius: var(--mf-border-radius);
    gap: 0;
    padding: calc(0px + var(--mf-border-inset-space, 0px));
  }

  .mf-widget-workspace:fullscreen {
    border: 0;
    border-radius: 0;
  }

  .mf-widget-padding-hero {
    padding: calc(var(--mf-space-section) + var(--mf-border-inset-space, 0px));
  }

  .mf-widget-padding-none {
    padding: calc(0px + var(--mf-border-inset-space, 0px));
  }

  .mf-widget-padding-spacious {
    padding: calc(var(--mf-space-section) + var(--mf-border-inset-space, 0px));
  }

  .mf-widget-click-target {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font: inherit;
    height: 100%;
    min-height: inherit;
    padding: calc(0px + var(--mf-border-inset-space, 0px));
    position: relative;
    text-align: left;
    text-decoration: none;
    width: 100%;
    z-index: 1;
  }

  .mf-widget-marketing,
  .mf-widget-marketing-dark {
    --mf-border-inset-space:
      0px;

    background: var(--mf-marketing-card-background);
    border: var(--mf-border-rule);
    border-radius: var(--mf-border-radius);
    color: var(--mf-marketing-ink);
    min-height: 0;
    padding: calc(var(--mf-marketing-card-padding) + var(--mf-border-inset-space, 0px));
  }

  .mf-widget-marketing-dark {
    --mf-color-border: var(--mf-marketing-dark-line);
    --mf-color-border-subtle: var(--mf-color-border);
    --mf-border-rule: var(--mf-border-width) var(--mf-border-style) var(--mf-color-border);
    --mf-divider-rule: var(--mf-border-rule);
    --mf-section-divider-color: var(--mf-color-border);

    background: var(--mf-marketing-dark-surface);
    border-color: var(--mf-color-border);
    color: var(--mf-marketing-dark-ink);
  }

  :is(.mf-widget-marketing, .mf-widget-marketing-dark).mf-widget-padding-none {
    padding: 0;
  }

  :is(.mf-widget-marketing, .mf-widget-marketing-dark).mf-panel-compact {
    padding: var(--mf-marketing-card-padding-compact);
  }

  :is(.mf-widget-marketing, .mf-widget-marketing-dark).mf-panel-tall {
    padding: var(--mf-marketing-card-padding-hero);
  }

  :is(.mf-widget-marketing, .mf-widget-marketing-dark) > .mf-widget-content {
    min-height: 0;
  }

  /* Public story surfaces stay owned by the marketing Widget variants. */
  .mf-widget.market-card {
    padding: calc(var(--mf-marketing-card-padding) + var(--mf-border-inset-space, 0px));
    background: radial-gradient(circle at 72% 16%, rgb(0 113 227 / 0.2), transparent 34%), linear-gradient(145deg, #ffffff, #edf5ff);
    border-radius: var(--mf-border-radius);
  }

  .mf-widget.market-card:nth-child(2) {
    background: radial-gradient(circle at 72% 16%, rgb(191 90 242 / 0.2), transparent 34%), linear-gradient(145deg, #ffffff, #f5efff);
  }

  .mf-widget.market-card:nth-child(3) {
    background: radial-gradient(circle at 72% 16%, rgb(255 159 10 / 0.18), transparent 34%), linear-gradient(145deg, #ffffff, #fff7e9);
  }

  .mf-widget.platform-card {
    padding: calc(var(--mf-marketing-card-padding) + var(--mf-border-inset-space, 0px));
    background: radial-gradient(circle at 72% 16%, rgb(0 113 227 / 0.24), transparent 42%), linear-gradient(145deg, #1d2b3b, #1c1c1e 68%);
    border-radius: var(--mf-border-radius);
  }

  .platform-card-link:nth-child(2) > .mf-widget.platform-card {
    background: radial-gradient(circle at 72% 16%, rgb(94 92 230 / 0.24), transparent 42%), linear-gradient(145deg, #2a2235, #1c1c1e 68%);
  }

  .platform-card-link:nth-child(3) > .mf-widget.platform-card {
    background: radial-gradient(circle at 72% 16%, rgb(255 159 10 / 0.2), transparent 42%), linear-gradient(145deg, #332b1d, #1c1c1e 68%);
  }

  .mf-widget.detail-card,
  .mf-widget.public-plan-card {
    padding: calc(var(--mf-marketing-card-padding) + var(--mf-border-inset-space, 0px));
  }

  .mf-widget.detail-card {
    background: radial-gradient(circle at 78% 12%, rgb(0 113 227 / 0.22), transparent 38%), linear-gradient(145deg, #1d2b3b, #1c1c1e 68%);
  }

  .mf-widget.detail-card:nth-child(2) {
    background: radial-gradient(circle at 78% 12%, rgb(94 92 230 / 0.24), transparent 38%), linear-gradient(145deg, #2a2235, #1c1c1e 68%);
  }

  .mf-widget.detail-card:nth-child(3) {
    background: radial-gradient(circle at 78% 12%, rgb(52 199 89 / 0.2), transparent 38%), linear-gradient(145deg, #1d3025, #1c1c1e 68%);
  }

  .mf-widget.detail-card:nth-child(4) {
    background: radial-gradient(circle at 78% 12%, rgb(255 159 10 / 0.2), transparent 38%), linear-gradient(145deg, #332b1d, #1c1c1e 68%);
  }

  .mf-widget-marketing.detail-card {
    color: var(--mf-marketing-ink);
    background: radial-gradient(circle at 78% 12%, rgb(0 113 227 / 0.14), transparent 38%), linear-gradient(145deg, #ffffff, #edf5ff);
    border-color: var(--mf-color-border);
  }

  .mf-widget-marketing.detail-card:nth-child(2) {
    background: radial-gradient(circle at 78% 12%, rgb(94 92 230 / 0.14), transparent 38%), linear-gradient(145deg, #ffffff, #f5f1ff);
  }

  .mf-widget-marketing.detail-card:nth-child(3) {
    background: radial-gradient(circle at 78% 12%, rgb(52 199 89 / 0.13), transparent 38%), linear-gradient(145deg, #ffffff, #edf9f0);
  }

  .mf-widget.pricing-faq-list {
    background: radial-gradient(circle at 100% 0%, rgb(0 113 227 / 0.16), transparent 42%), linear-gradient(145deg, #111820, #1c1c1e 72%);
  }

  .mf-widget.public-plan-card-featured {
    background: radial-gradient(circle at 100% 0%, rgb(0 113 227 / 0.17), transparent 38%), #fff;
    border-color: var(--mf-color-border);
  }

  .mf-widget.resource-action {
    padding: calc(var(--mf-space-section) + var(--mf-border-inset-space, 0px));
    background: #eef6ff;
    border-color: var(--mf-color-border);
  }

  .mf-widget.resource-document {
    padding: calc(var(--mf-marketing-card-padding) + var(--mf-border-inset-space, 0px));
  }

  .mf-widget.shared-profile-hero,
  .mf-widget.shared-profile-status {
    background: radial-gradient(circle at 50% 0%, rgb(0 113 227 / 0.16), transparent 42%), linear-gradient(145deg, #ffffff, #f4f8ff);
  }

  @media (max-width: 680px) {
    .mf-widget:is(.market-card, .platform-card, .detail-card) {
      border-radius: var(--mf-border-radius);
    }

    .mf-widget.resource-document {
      padding: calc(var(--mf-marketing-card-padding) + var(--mf-border-inset-space, 0px));
      border-radius: var(--mf-border-radius);
    }
  }

  .mf-widget-auth {
    --mf-border-inset-space:
      0px;

    overflow: hidden;
    background: var(--auth-surface, var(--mf-auth-surface));
    border: var(--mf-border-rule);
    border-radius: var(--mf-border-radius);
    gap: 0;
    min-height: 0;
    padding: calc(0px + var(--mf-border-inset-space, 0px));
  }

  .mf-widget-auth::before {
    content: none;
  }

  .mf-widget-auth .auth-page-heading {
    position: relative;
    display: grid;
    gap: 0;
    overflow: hidden;
    padding: var(--mf-space-display);
    text-align: center;
    background:
      radial-gradient(circle at 50% -15%, rgb(41 151 255 / 0.34), transparent 14rem),
      linear-gradient(145deg, var(--mf-auth-header-surface), var(--mf-auth-header-surface-deep));
  }

  .mf-widget-auth .auth-page-heading::before,
  .mf-widget-auth .auth-page-heading::after {
    --mf-border-inset-space:
      0px;

    position: absolute;
    width: 8rem;
    aspect-ratio: 1;
    border: var(--mf-border-rule);
    border-radius: 50%;
    content: "";
  }

  .mf-widget-auth .auth-page-heading::before {
    top: -4.5rem;
    left: -2rem;
  }

  .mf-widget-auth .auth-page-heading::after {
    right: -2rem;
    bottom: -4.5rem;
  }

  .mf-widget-auth .auth-page-heading > * {
    margin: 0;
  }

  .mf-widget-auth .auth-page-heading .eyebrow {
    color: var(--mf-auth-header-accent);
    margin-bottom: var(--mf-space-group);
    text-transform: none;
  }

  .mf-widget-auth .auth-page-heading h1 {
    color: var(--mf-auth-header-ink);
    text-wrap: balance;
  }

  .mf-widget-auth .auth-page-heading > p:last-child {
    max-width: 23rem;
    margin: var(--mf-space-group) auto 0;
    color: var(--mf-auth-header-muted);
    text-wrap: pretty;
  }

  .mf-widget-auth > .mf-widget-content {
    display: grid;
    gap: 0;
    padding: 0;
  }

  .mf-widget-auth .mf-form-grid {
    display: grid;
    gap: var(--mf-space-group);
  }

  .mf-widget-auth > .mf-widget-content > .auth-form {
    padding: var(--mf-space-display);
  }

  .mf-widget-auth .mf-field {
    color: #3a3a3c;
    gap: var(--mf-space-inline);
  }

  .mf-widget-auth .mf-secret-control button {
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--auth-muted, var(--mf-color-muted));
    height: 2.625rem;
    right: 0.1875rem;
    width: 2.625rem;
  }

  .mf-widget-auth .mf-button:not(:where(.mf-button-marketing-primary.mf-button-compact, .mf-button-marketing-ghost.mf-button-sm)) {
    min-height: 3rem;
    border-radius: var(--mf-radius-pill);
  }

  .mf-widget-auth .mf-button:is(.mf-button-public-secondary, .mf-button-product-primary, .mf-button-product-danger, .mf-button-marketing-primary.mf-button-compact, .mf-button-marketing-secondary.mf-button-compact) {
    width: 100%;
  }

  .mf-widget-auth .mf-button-primary {
    --mf-border-inset-space:
      0px;

    background: var(--auth-accent, var(--mf-auth-accent));
    border: var(--mf-border-rule);
    border-radius: var(--mf-radius-pill);
    color: #ffffff;
    width: 100%;
  }

  .mf-widget-auth .mf-button-marketing-primary.mf-button-compact {
    width: 100%;
  }

  .mf-widget-auth .mf-button-secondary {
    --mf-border-inset-space:
      0px;

    width: 100%;
    color: var(--auth-ink, var(--mf-auth-ink));
    background: rgb(255 255 255 / 0.76);
    border: var(--mf-border-rule);
  }

  .mf-widget-auth .mf-button-ghost {
    width: 100%;
    min-height: 2.375rem;
    justify-self: stretch;
    padding-inline: var(--mf-space-inline);
    color: var(--auth-accent, var(--mf-auth-accent));
    background: transparent;
    border: 0;
  }

  @media (max-width: 560px) {
    .mf-widget-auth .auth-page-heading {
      padding: var(--mf-space-section);
    }

    .mf-widget-auth .mf-button-ghost {
      min-height: 2.75rem;
    }

    .mf-widget-auth > .mf-widget-content > .auth-form {
      padding: var(--mf-space-section);
    }
  }

  @media (prefers-reduced-transparency: reduce) {
    .mf-widget-auth {
      background: #fff;
      -webkit-backdrop-filter: none;
              backdrop-filter: none;
    }
  }

  @media (prefers-contrast: more) {
    .mf-widget-auth {
      border-color: var(--mf-color-border);
    }
  }

  .mf-widget-header,
  .mf-widget-heading,
  .mf-widget-actions,
  .mf-widget-toolbar {
    align-items: center;
    display: flex;
  }

  .mf-widget-header {
    flex-wrap: wrap;
    gap: var(--mf-space-group);
    justify-content: space-between;
    min-height: var(--mf-widget-header-min-height, var(--mf-control-h-md));
    place-self: stretch;
    text-align: left;
    width: 100%;
  }

  .mf-widget-header-inline {
    flex-wrap: nowrap;
    gap: var(--mf-space-inline);
  }

  .mf-widget-header-inline .mf-widget-heading {
    flex-basis: auto;
  }

  .mf-widget-header-inline .mf-widget-actions {
    flex-wrap: nowrap;
  }

  .mf-widget-heading {
    flex: 1 1 min(20rem, 100%);
    gap: var(--mf-widget-heading-gap);
    justify-content: flex-start;
    margin: 0;
    min-width: 0;
    text-align: left;
  }

  .mf-widget-heading > div {
    min-width: 0;
    text-align: left;
  }

  .mf-widget-heading > svg {
    color: var(--mf-color-accent);
    flex: 0 0 auto;
    filter: none;
  }

  .mf-widget-header-centered .mf-widget-heading {
    align-items: center;
    flex-direction: column;
    gap: var(--mf-space-inline);
    text-align: center;
  }

  .mf-widget-header-centered .mf-widget-heading > div {
    display: grid;
    gap: var(--mf-space-inline);
    text-align: center;
    width: 100%;
  }

  .mf-widget-header-centered .mf-widget-heading p {
    margin: 0;
  }

  .mf-widget-navigation-grid {
    align-self: start;
    display: grid;
    gap: var(--mf-space-group);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    grid-template-rows: auto auto auto 1fr;
    min-height: min-content;
    width: 100%;
  }

  .mf-widget-navigation-grid > .mf-widget {
    container-type: normal;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: var(--mf-space-inline);
  }

  .mf-widget-navigation-grid .mf-widget-header-centered,
  .mf-widget-navigation-grid .mf-widget-heading,
  .mf-widget-navigation-grid .mf-widget-heading > div {
    display: contents;
  }

  .mf-widget-navigation-grid .mf-widget-heading > svg {
    justify-self: center;
  }

  .mf-widget-navigation-grid .mf-widget-heading > svg,
  .mf-widget-navigation-grid .mf-widget-heading > div > * {
    align-self: start;
  }

  .mf-widget-navigation-grid .mf-widget-heading p {
    margin-block-start: var(--mf-space-inline);
  }

  @container widget (min-width: 75rem) {
    .mf-widget-navigation-grid {
      height: calc((100% - var(--mf-space-3)) / 2);
    }
  }

  .mf-widget-actions {
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: var(--mf-space-group) var(--mf-space-inline);
    justify-content: flex-end;
    max-width: 100%;
  }

  .mf-widget-toolbar {
    flex-wrap: wrap;
    gap: var(--mf-space-inline);
  }

  .mf-widget-content {
    display: grid;
    gap: var(--mf-widget-content-gap);
    min-height: 0;
    min-width: 0;
  }

  .mf-widget-content-contents {
    display: contents;
  }

  .mf-widget-footer {
    border-top: var(--mf-divider-rule);
    padding-top: var(--mf-space-surface);
  }

  .mf-table-widget > .mf-widget-content,
  .mf-table-widget .mf-table-scroll {
    min-height: 0;
  }

  .mf-table-widget {
    container-name: widget table-widget;
    container-type: inline-size;
  }

  .mf-table-widget > .mf-widget-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
  }

  .mf-table-widget .mf-table-scroll {
    flex: 1 1 auto;
  }

  .mf-table-widget-mobile-content {
    display: none;
  }

  .mf-table-widget-standard-content {
    display: contents;
  }

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

  .mf-table-toolbar {
    width: 100%;
  }

  .mf-table-toolbar > * {
    min-width: 0;
  }

  .mf-table-toolbar-filters {
    max-width: 100%;
  }

  .mf-table-toolbar-actions {
    margin-left: auto;
  }

  .mf-search-field {
    align-items: center;
    display: flex;
    min-width: min(100%, 220px);
    transition:
      background-color 160ms var(--mf-ease-out),
      border-color 160ms var(--mf-ease-out),
      box-shadow 160ms var(--mf-ease-out);
  }

  .mf-search-field > svg {
    flex: 0 0 auto;
  }

  .mf-search-field .mf-field {
    flex: 1 1 auto;
    gap: 0;
  }

  .mf-search-label-hidden .mf-field > span:first-child {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .mf-search-field .mf-field input[type="search"]::-webkit-search-cancel-button {
    appearance: none;
    display: none;
  }

  .mf-search-field .mf-field input[type="search"]::-ms-clear {
    display: none;
  }

  .mf-segmented-control {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
  }

  .mf-segmented-control > div {
    --mf-border-inset-space:
      0px;

    background: var(--mf-segmented-background, #2c2c2e);
    border: var(--mf-border-rule);
    border-radius: var(--mf-radius-pill);
    display: inline-flex;
    gap: var(--mf-space-text);
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    padding: var(--mf-segmented-track-padding);
  }

  .mf-segmented-control > div:has(.mf-segmented-trailing) {
    overflow: visible;
  }

  .mf-segmented-trailing {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
  }

  .mf-segmented-control > div::-webkit-scrollbar {
    display: none;
  }

  .mf-segmented-control .mf-segmented-button {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: var(--mf-radius-pill);
    color: var(--mf-segmented-text, #a1a1a6);
    cursor: pointer;
    flex: 0 0 auto;
    min-height: var(--mf-control-h-sm);
    min-width: var(--mf-control-h-sm);
    padding: 0 var(--mf-segmented-padding-inline);
    white-space: nowrap;
    transition:
      background-color 160ms var(--mf-ease-out),
      color 160ms var(--mf-ease-out),
      transform 160ms var(--mf-ease-out);
  }

  .mf-segmented-control .mf-segmented-button:active {
    transform: scale(0.97);
  }

  .mf-segmented-control .mf-segmented-button:is(.is-selected, [aria-pressed="true"]) {
    background: var(--mf-segmented-selected, #f5f5f7);
    color: var(--mf-segmented-selected-text, #1d1d1f);
  }

  @media (max-width: 520px) {
    .mf-widget-workspace {
      border-radius: var(--mf-border-radius);
    }
  }

  .mf-entity-cell {
    align-items: center;
    color: inherit;
    display: inline-flex;
    gap: var(--mf-space-group);
    min-width: 0;
    text-decoration: none;
  }

  .mf-entity-avatar {
    --mf-border-inset-space:
      0px;

    align-items: center;
    background: var(--mf-color-input);
    border: var(--mf-border-rule);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 auto;
    height: 34px;
    justify-content: center;
    width: 34px;
  }

  .mf-entity-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .mf-entity-copy small {
    color: var(--mf-color-muted);
  }

  .mf-pagination,
  .mf-pagination-pages {
    align-items: center;
    display: flex;
    gap: var(--mf-space-text);
  }

  .mf-pagination {
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
  }

  .mf-pagination .mf-button {
    min-width: var(--mf-control-h-sm);
  }

  .mf-pagination-pages {
    flex-wrap: nowrap;
    justify-content: center;
  }

  .mf-detail-page {
    container-name: detail-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;
    width: 100%;
  }

  .mf-detail-page-actions,
  .mf-detail-page-summary,
  .mf-detail-sections,
  .mf-detail-main,
  .mf-detail-rail {
    display: grid;
    gap: var(--mf-page-gap);
    min-width: 0;
  }

  .mf-detail-grid {
    align-items: stretch;
    display: grid;
    gap: var(--mf-page-gap);
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .mf-detail-grid[data-has-rail="true"] {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  }

  .mf-description-list {
    display: grid;
    gap: var(--mf-space-inline);
    grid-template-columns: repeat(var(--mf-description-columns, 3), minmax(0, 1fr));
    margin: 0;
  }

  .mf-description-list[data-columns="1"] {
    --mf-description-columns: 1;
  }

  .mf-description-list[data-columns="2"] {
    --mf-description-columns: 2;
  }

  .mf-description-list[data-columns="3"] {
    --mf-description-columns: 3;
  }

  .mf-description-list[data-columns="4"] {
    --mf-description-columns: 4;
  }

  .mf-description-item {
    --mf-border-inset-space:
      0px;

    background: var(--mf-color-input);
    border: var(--mf-border-rule);
    border-radius: var(--mf-border-radius);
    display: grid;
    gap: var(--mf-space-text);
    min-width: 0;
    padding: var(--mf-space-surface);
    transition:
      background-color 160ms var(--mf-ease-out),
      border-color 160ms var(--mf-ease-out);
  }

  .mf-description-item dt,
  .mf-description-item small {
    color: var(--mf-color-muted);
  }

  .mf-description-item dd {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--mf-space-inline);
    justify-content: space-between;
    margin: 0;
    min-width: 0;
  }

  .mf-description-item dd small {
    flex-basis: 100%;
  }

  .mf-description-value {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .mf-description-action {
    flex: 0 0 auto;
  }

  .mf-table-notice {
    margin-bottom: var(--mf-space-group);
  }

  .mf-table-error {
    color: var(--mf-color-danger);
  }

  .mf-metric {
    container-name: widget metric-widget;
    container-type: inline-size;
    display: block;
    height: auto;
    min-height: var(--mf-kpi-h);
    overflow: hidden;
    position: relative;
  }

  .mf-metric::before {
    background: none;
    content: "";
    height: 150px;
    pointer-events: none;
    position: absolute;
    right: -58px;
    top: -82px;
    width: 150px;
    --mf-divider-underlay-image:
      none;
  }

  .mf-metric > .mf-widget-content,
  .mf-metric-link {
    align-items: center;
    display: grid;
    gap: var(--mf-space-inline) var(--mf-space-group);
    grid-template-columns: minmax(0, 1fr) auto;
    height: 100%;
    min-width: 0;
  }

  .mf-metric > .mf-widget-content:has(> .mf-metric-link) {
    display: block;
  }

  .mf-metric-link {
    color: inherit;
    text-decoration: none;
  }

  .mf-metric-trend > .mf-widget-content,
  .mf-metric-trend .mf-metric-link,
  .mf-metric-radial > .mf-widget-content,
  .mf-metric-radial .mf-metric-link {
    grid-template-columns: minmax(0, 1fr) clamp(52px, 24cqi, 86px);
  }

  .mf-metric-trend > .mf-widget-content,
  .mf-metric-trend .mf-metric-link {
    grid-template-columns: minmax(0, 1fr) clamp(76px, 38cqi, 132px);
  }

  .mf-metric-summary > .mf-widget-content,
  .mf-metric-summary .mf-metric-link {
    grid-template-columns: minmax(0, 1fr) clamp(66px, 24cqi, 86px);
  }

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

  .mf-metric-positive .mf-metric-copy > strong {
    color: var(--mf-color-success);
  }

  .mf-metric-negative .mf-metric-copy > strong {
    color: var(--mf-color-danger);
  }

  .mf-metric-warning .mf-metric-copy > strong {
    color: var(--mf-color-warning);
  }

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

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

  .mf-metric-copy > strong {
    margin-top: var(--mf-space-text);
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
  }

  .mf-metric-detail {
    color: var(--mf-color-muted);
    display: grid;
    gap: var(--mf-space-text);
    margin-top: var(--mf-space-inline);
  }

  .mf-metric-trailing,
  .mf-metric-action {
    align-items: center;
    display: inline-flex;
    justify-content: center;
  }

  .mf-metric-action {
    grid-column: 1 / -1;
  }

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

  .mf-metric-summary-icon svg {
    height: clamp(34px, 16cqi, 42px);
    width: clamp(34px, 16cqi, 42px);
    filter: none;
    position: relative;
    z-index: 1;
  }

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

  .mf-metric > .mf-widget-content > svg,
  .mf-metric-link > svg {
    color: var(--mf-color-muted);
  }

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

  .mf-metric-trend > .mf-widget-content > svg,
  .mf-metric-trend .mf-metric-link > svg,
  .mf-metric-radial > .mf-widget-content > svg,
  .mf-metric-radial .mf-metric-link > svg {
    display: none;
  }

  .mf-metric-visual {
    align-items: center;
    align-self: center;
    display: flex;
    height: clamp(46px, 18cqi, 72px);
    justify-content: center;
    min-width: 0;
    width: 100%;
  }

  .mf-metric-trend .mf-metric-visual {
    --mf-border-inset-space:
      0px;

    background: var(--mf-color-input);
    border: var(--mf-border-rule);
    border-radius: var(--mf-border-radius);
    overflow: hidden;
    padding: var(--mf-space-text);
    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-radial .mf-metric-visual {
    aspect-ratio: 1 / 1;
    height: auto;
    justify-self: center;
    max-height: calc(var(--mf-kpi-h) - var(--mf-surface-card-padding) * 2 - 2px);
    max-width: calc(var(--mf-kpi-h) - var(--mf-surface-card-padding) * 2 - 2px);
  }

  .mf-radial-progress {
    align-items: center;
    display: flex;
    height: var(--mf-radial-size, 100%);
    justify-content: center;
    max-height: 100%;
    max-width: 100%;
    min-height: 42px;
    min-width: 42px;
    position: relative;
    width: var(--mf-radial-size, 100%);
  }

  .mf-radial-progress[data-size="sm"] {
    --mf-radial-size: 42px;
  }

  .mf-radial-progress[data-size="lg"] {
    --mf-radial-size: 88px;
  }

  .mf-radial-progress progress {
    appearance: none;
    background: var(
      --mf-radial-background,
      conic-gradient(var(--mf-radial-color, var(--mf-color-accent)) var(--mf-radial-progress, 0%), var(--mf-color-border) 0)
    );
    border: 0;
    border-radius: 50%;
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
    animation: mf-radial-enter 480ms var(--mf-ease-out) both;
    filter: none;
    transform-origin: center;
  }

  .mf-radial-progress progress::-webkit-progress-bar,
  .mf-radial-progress progress::-webkit-progress-value {
    background: transparent;
  }

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

  .mf-radial-progress[data-thickness="thick"]::after {
    height: 64%;
    width: 64%;
  }

  .mf-radial-progress > span {
    color: var(--mf-color-text);
    position: relative;
    z-index: 1;
  }

  .mf-radial-progress[data-tone="danger"] {
    --mf-radial-color: var(--mf-color-danger);
  }

  .mf-radial-progress[data-tone="success"] {
    --mf-radial-color: var(--mf-color-success);
  }

  .mf-radial-progress[data-tone="warning"] {
    --mf-radial-color: var(--mf-color-warning);
  }

  .mf-radial-progress[data-tone="neutral"] {
    --mf-radial-color: var(--mf-color-muted);
  }

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

  .mf-sparkline-line {
    fill: none;
    filter: none;
    stroke: var(--mf-sparkline-color, var(--mf-color-accent));
    stroke-width: 2;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    vector-effect: non-scaling-stroke;
    animation: mf-sparkline-draw 360ms var(--mf-ease-out) both;
  }

  .mf-sparkline-area {
    fill: color-mix(in srgb, var(--mf-sparkline-color, var(--mf-color-accent)) 16%, transparent);
    stroke: none;
    animation: mf-chart-area-enter 320ms var(--mf-ease-out) 40ms both;
  }

  .mf-sparkline-empty {
    stroke: var(--mf-color-border);
    stroke-width: 1;
  }

  .mf-sparkline-point {
    fill: var(--mf-sparkline-color, var(--mf-color-accent));
    animation: mf-chart-point-enter 220ms var(--mf-ease-out) 180ms both;
    transform-box: fill-box;
    transform-origin: center;
  }

  .mf-sparkline[data-tone="danger"] {
    --mf-sparkline-color: var(--mf-color-danger);
  }

  .mf-sparkline[data-tone="neutral"] {
    --mf-sparkline-color: var(--mf-color-muted);
  }

  .mf-sparkline[data-tone="success"] {
    --mf-sparkline-color: var(--mf-color-success);
  }

  @keyframes mf-radial-enter {
    from {
      opacity: 0;
      transform: scale(0.94) rotate(-8deg);
    }
    to {
      opacity: 1;
      transform: scale(1) rotate(0);
    }
  }

  @keyframes mf-sparkline-draw {
    from {
      opacity: 0.35;
      stroke-dashoffset: 1;
    }
    to {
      opacity: 1;
      stroke-dashoffset: 0;
    }
  }

  @keyframes mf-chart-area-enter {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes mf-chart-point-enter {
    from {
      opacity: 0;
      transform: scale(0.86);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .mf-radial-progress progress,
    .mf-sparkline-area,
    .mf-sparkline-line,
    .mf-sparkline-point {
      animation: none;
    }
  }

  @container metric-widget (min-width: 281px) {
    :is(.mf-metric-trend, .mf-metric-radial) .mf-metric-detail {
      align-items: center;
      display: flex;
      gap: 0;
      margin-top: var(--mf-space-text);
      min-width: 0;
      white-space: nowrap;
    }

    :is(.mf-metric-trend, .mf-metric-radial) .mf-metric-detail > span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    :is(.mf-metric-trend, .mf-metric-radial) .mf-metric-detail > small {
      flex: 0 0 auto;
      margin-left: var(--mf-space-text);
      white-space: nowrap;
    }

    :is(.mf-metric-trend, .mf-metric-radial) .mf-metric-detail > small::before {
      color: var(--mf-color-subtle);
      content: "\00b7";
      margin-right: var(--mf-space-text);
    }
  }

  @container detail-page (max-width: 1100px) {
    .mf-detail-grid[data-has-rail="true"] {
      grid-template-columns: minmax(0, 1fr);
    }

    .mf-description-list[data-columns="3"],
    .mf-description-list[data-columns="4"] {
      --mf-description-columns: 2;
    }
  }

  @container widget (max-width: 800px) {
    .mf-description-list[data-columns="3"],
    .mf-description-list[data-columns="4"] {
      --mf-description-columns: 2;
    }
  }

  @container widget (max-width: 680px) {

    .mf-widget-actions,
    .mf-widget-toolbar {
      justify-content: flex-start;
    }

    .mf-table-toolbar-search,
    .mf-table-toolbar-search .mf-search-field {
      width: 100%;
    }

    .mf-table-toolbar-actions {
      margin-left: 0;
    }
  }

  @container widget (max-width: 440px) {
    .mf-description-list {
      --mf-description-columns: 1 !important;
    }

    .mf-widget-header {
      gap: var(--mf-space-group);
    }
  }

  @container metric-widget (max-width: 280px) {
    .mf-metric-trend > .mf-widget-content,
    .mf-metric-trend .mf-metric-link {
      gap: var(--mf-space-inline);
      grid-template-columns: minmax(0, 1fr) minmax(48px, 62px);
    }

    .mf-metric-radial > .mf-widget-content,
    .mf-metric-radial .mf-metric-link,
    .mf-metric-summary > .mf-widget-content,
    .mf-metric-summary .mf-metric-link {
      gap: var(--mf-space-inline);
      grid-template-columns: minmax(0, 1fr) 44px;
    }

    .mf-metric-detail {
      margin-top: var(--mf-space-text);
    }

    :is(.mf-metric-trend, .mf-metric-radial) .mf-metric-detail {
      align-items: start;
      display: grid;
      white-space: normal;
    }

    :is(.mf-metric-trend, .mf-metric-radial) .mf-metric-detail > small {
      margin-left: 0;
      white-space: normal;
    }

    :is(.mf-metric-trend, .mf-metric-radial) .mf-metric-detail > small::before {
      content: none;
    }

    .mf-metric-summary-icon {
      --mf-summary-icon-underline-offset: 8px;
    }

    .mf-metric-visual {
      height: 52px;
    }
  }
}

/* Neighbour labels use the native disabled opacity while their buttons stay enabled. */
.mf-pagination-pages .mf-button:not(.is-current, :disabled) > .mf-button-ghost-label {
  opacity: var(--mf-control-disabled-opacity);
}

.mf-scroll-pagination {
  min-height: var(--mf-space-1);
}

/* Paged tables retain horizontal scrolling; complete rows are distributed by the shared controller. */
.mf-table-paginated {
  overflow-y: hidden;
}

.mf-scroll-loading {
  align-items: center;
  display: flex;
  justify-content: center;
}

.mf-scroll-loading-icon {
  cursor: default;
  pointer-events: none;
}

.mf-scroll-loading-icon > svg {
  animation: mf-scroll-loading-rotate 800ms linear infinite;
  animation-play-state: paused;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes mf-scroll-loading-rotate {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mf-scroll-loading-icon > svg {
    animation: none;
  }
}

/* Full-height surfaces keep chrome fixed and scroll only overflowing real content. */
.mf-widget.mf-widget-fill {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  min-height: min-content;
}

.mf-widget-fill > :is(.mf-widget-header, .mf-widget-toolbar, .mf-widget-footer) {
  flex: 0 0 auto;
}

.mf-widget-fill > .mf-widget-content-grid {
  align-content: stretch;
  flex: 1 1 auto;
  min-height: min-content;
  overflow: auto;
}

/* Flat comparison columns live inside a single shared surface. */

/* A resource state occupies the same body area without data or content controls. */
.mf-widget > .mf-widget-content-pending {
  align-items: stretch;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
}

/*!****************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/auth.css ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************/
@layer pages {
  .brand-mark {
    align-items: center;
    color: var(--mf-color-accent);
    display: inline-flex;
    justify-content: center;
  }
}

/*!**************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/platform/mobile/auth.css ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************************/
/* Auth becomes a calm, continuous handheld screen only after the shared
   device detector has selected the mobile composition. */
@media (max-width: 760px), (max-width: 1024px) and (max-height: 500px) {
  html[data-mobile-device="true"]:has(.auth-site:not([hidden])),
  html[data-mobile-device="true"] body:has(.auth-site:not([hidden])) {
    background: var(--mf-auth-surface);
  }

  html[data-mobile-device="true"] .auth-site {
    --auth-mobile-inset-end: max(var(--mf-space-page), env(safe-area-inset-right));
    --auth-mobile-inset-start: max(var(--mf-space-page), env(safe-area-inset-left));

    display: block;
    min-height: 100dvh;
    overflow: clip auto;
    padding: 0;
    background: var(--mf-auth-surface);
  }

  html[data-mobile-device="true"] .auth-site :where(a, button, input) {
    touch-action: manipulation;
  }

  html[data-mobile-device="true"] .auth-stage {
    display: grid;
    width: 100%;
    min-height: 100dvh;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
  }

  html[data-mobile-device="true"] .auth-brand {
    justify-self: start;
    margin-block: max(var(--mf-space-group), env(safe-area-inset-top)) 0;
    margin-inline: var(--auth-mobile-inset-start) var(--auth-mobile-inset-end);
  }

  html[data-mobile-device="true"] .auth-brand > svg {
    display: none;
  }

  html[data-mobile-device="true"] .auth-brand::before {
    display: block;
    width: 24px;
    height: 30px;
    flex: 0 0 24px;
    content: "";
    background: url("/icon.svg") center / contain no-repeat;
  }

  html[data-mobile-device="true"] .auth-page.mf-widget-auth {
    display: block;
    min-height: 0;
    align-self: stretch;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  html[data-mobile-device="true"] .mf-widget-auth .auth-page-heading {
    box-sizing: border-box;
    display: grid;
    width: min(100%, 30rem);
    min-height: 0;
    gap: 0;
    margin-block-start: var(--mf-space-group);
    margin-inline: auto;
    padding-block: 0;
    padding-inline: var(--auth-mobile-inset-start) var(--auth-mobile-inset-end);
    border-radius: 0;
    text-align: start;
    background: transparent;
  }

  html[data-mobile-device="true"] .mf-widget-auth .auth-page-heading::before,
  html[data-mobile-device="true"] .mf-widget-auth .auth-page-heading::after {
    content: none;
  }

  html[data-mobile-device="true"] .mf-widget-auth .auth-page-heading .eyebrow {
    display: none;
  }

  html[data-mobile-device="true"] .mf-widget-auth .auth-page-heading h1 {
    color: var(--auth-ink);
  }

  html[data-mobile-device="true"] .mf-widget-auth .auth-page-heading > p:last-child {
    max-width: 26rem;
    margin: var(--mf-space-group) 0 0;
    color: var(--auth-muted);
  }

  html[data-mobile-device="true"] .auth-page.mf-widget-auth > .mf-widget-content {
    min-height: 0;
    padding: 0;
    background: transparent;
  }

  html[data-mobile-device="true"] .mf-widget-auth > .mf-widget-content > .auth-form {
    box-sizing: border-box;
    width: min(100%, 30rem);
    margin-block: var(--mf-space-display) 0;
    margin-inline: auto;
    padding-block: 0 max(var(--mf-space-display), calc(var(--mf-space-section) + env(safe-area-inset-bottom)));
    padding-inline: var(--auth-mobile-inset-start) var(--auth-mobile-inset-end);
  }

}

/*!**********************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/auth.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************/


/*!**************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/app/(auth)/auth.css ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************/
html:has(.auth-site:not([hidden])),
body:has(.auth-site:not([hidden])) {
  background: var(--mf-auth-page-start);
  color-scheme: light;
}

.auth-site {
  --auth-accent: var(--mf-auth-accent);
  --auth-accent-soft: rgb(0 113 227 / 10%);
  --auth-border: rgb(0 0 0 / 9%);
  --auth-ink: var(--mf-auth-ink);
  --auth-muted: var(--mf-auth-muted);
  --auth-surface: rgb(255 255 255 / 94%);
  --mf-surface-card-shadow: var(--mf-marketing-card-shadow);

  position: relative;
  display: grid;
  min-width: 0;
  min-height: 100svh;
  place-items: center;
  overflow: hidden auto;
  padding: var(--mf-space-section) var(--mf-space-section);
  color: var(--auth-ink);
  background: linear-gradient(180deg, var(--mf-auth-page-start), var(--mf-auth-page) 56%, var(--mf-auth-page-end));
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
}

/* Access fields keep the public palette within the shared field recipe. */
.auth-site .mf-field,
.auth-site .mf-search-field {
  --mf-color-panel: var(--auth-surface);
  --mf-color-text: var(--auth-ink);
  --mf-color-muted: var(--auth-muted);
  --mf-color-subtle: var(--auth-muted);
}

.auth-site :where(svg.mf-icon) {
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.auth-site :where(a, button, input) {
  -webkit-tap-highlight-color: transparent;
}

.auth-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-self: center;
  gap: var(--mf-space-inline);
  padding: 0;
  color: var(--auth-ink);
  text-decoration: none;
  background: transparent;
  border: 0;
}

.auth-brand svg {
  color: var(--mf-marketing-accent);
  width: 24px;
  height: 30px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.auth-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 34rem);
  gap: var(--mf-space-group);
}

.auth-page {
  width: 100%;
}

.auth-form,
.auth-form-actions {
  display: grid;
  gap: var(--mf-space-group);
}

.auth-form-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--mf-space-inline);
  margin-top: 0;
  padding-top: var(--mf-space-surface);
  border-top: var(--mf-divider-rule);
}

.auth-form-actions .mf-button-secondary {
  justify-self: stretch;
  max-width: none;
}

.auth-inline-note,
.auth-form > p {
  color: var(--auth-muted);
}

.auth-site:has(.paywall) {
  display: block;
  overflow: visible;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
  background: var(--mf-auth-page);
}

.auth-stage:has(.paywall) {
  width: 100%;
  gap: 0;
}

.auth-stage:has(.paywall) > .auth-brand {
  position: absolute;
  top: var(--mf-space-5);
  left: max(var(--mf-space-6), calc((100% - 1280px) / 2));
  z-index: 2;
}

.paywall {
  --mf-color-bg-elevated: var(--auth-surface);
  --mf-color-panel: var(--auth-surface);
  --mf-color-text: var(--auth-ink);
  --mf-color-muted: var(--auth-muted);
  --mf-color-subtle: var(--auth-muted);
  --mf-color-border-strong: var(--auth-accent);
  --mf-color-accent: var(--auth-accent);
  --mf-color-success: rgb(var(--mf-marketing-success-rgb));
  --mf-color-success-rgb: var(--mf-marketing-success-rgb);
  --mf-segmented-background: var(--mf-auth-page);
  --mf-segmented-border: var(--auth-border);
  --mf-segmented-hover: var(--auth-accent-soft);
  --mf-segmented-text: var(--auth-muted);
  --mf-segmented-selected: var(--auth-surface);
  --mf-segmented-selected-text: var(--auth-ink);

  display: flex;
  min-height: 100svh;
  flex-direction: column;
}

.paywall-topbar {
  display: grid;
  width: min(calc(100% - 48px), 1280px);
  min-height: 88px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--mf-space-section);
  margin-inline: auto;
  border-bottom: var(--mf-border-rule);
}

.paywall-login {
  grid-column: 3;
  justify-self: end;
}

.paywall-progress {
  display: flex;
  grid-column: 2;
  justify-content: center;
  gap: var(--mf-space-section);
  margin: 0;
  padding: 0;
  list-style: none;
}

.paywall-progress li {
  display: flex;
  align-items: center;
  gap: var(--mf-space-inline);
  color: var(--auth-muted);
}

.paywall-progress li > span {
  display: grid;
  flex: 0 0 var(--mf-space-8);
  width: var(--mf-space-8);
  height: var(--mf-space-8);
  place-items: center;
  border: var(--mf-border-rule);
  border-radius: var(--mf-radius-pill);
  transition:
    background-color 180ms ease-out,
    color 180ms ease-out;
}

.paywall-progress li[aria-current],
.paywall-progress li[data-complete="true"] {
  color: var(--auth-ink);
}

.paywall-progress li[aria-current] > span,
.paywall-progress li[data-complete="true"] > span {
  color: white;
  background: var(--auth-accent);
  border-color: var(--mf-color-border);
}

.paywall-step {
  display: grid;
  width: min(calc(100% - 48px), 1280px);
  min-width: 0;
  flex: 1 1;
  align-content: start;
  gap: var(--mf-space-display);
  margin-inline: auto;
  padding-block: var(--mf-space-surface);
}

.paywall-step[data-direction]:not([data-direction="0"]) {
  animation: paywall-enter 240ms var(--mf-ease-out) both;
}

.paywall-step[data-direction="-1"] {
  --paywall-enter-x: -16px;
}

.paywall-step-heading {
  text-align: center;
}

.paywall-step-heading h1 {
  margin: 0 0 var(--mf-space-section);
  text-wrap: balance;
  scroll-margin-top: var(--mf-space-6);
}

.paywall-step-heading h1 span {
  color: var(--mf-marketing-accent);
}

@media (forced-colors: active) {
  .paywall-step-heading h1 span {
    color: CanvasText;
    background: none;
  }
}

.paywall-step-heading :is(p, output) {
  max-width: 44rem;
  margin: 0 auto;
  color: var(--auth-muted);
}

.paywall-plan-controls {
  display: grid;
  justify-items: center;
  gap: var(--mf-space-group);
}

.paywall-plan-controls p,
.paywall-status {
  margin: 0;
  color: var(--auth-muted);
  text-align: center;
}

.paywall-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  align-items: stretch;
  gap: var(--mf-space-section);
}

.paywall-details {
  display: grid;
  width: min(100%, 1040px);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: var(--mf-space-group);
  margin-inline: auto;
}

.paywall-form-panel {
  grid-area: 1 / 2;
  margin-top: var(--mf-space-display);
}

.paywall-selected-plan {
  min-width: 0;
  grid-area: 1 / 1;
}

.paywall-selection-label {
  margin: 0 0 var(--mf-space-group);
  color: var(--auth-muted);
}

.paywall-details[data-complete="true"] {
  max-width: 36rem;
  grid-template-columns: minmax(0, 1fr);
}

.paywall-details[data-complete="true"] > .paywall-form-panel {
  grid-area: auto;
}

.paywall-footer {
  display: flex;
  justify-content: center;
  gap: var(--mf-space-section);
  padding: var(--mf-space-section) var(--mf-space-section) calc(var(--mf-space-section) + env(safe-area-inset-bottom));
}

.paywall-footer a {
  color: var(--auth-muted);
  text-underline-offset: var(--mf-space-1);
}

@media (max-width: 800px) {
  .paywall-details {
    max-width: 36rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .paywall-details > .paywall-form-panel {
    grid-area: 1 / 1;
    margin-top: 0;
  }

  .paywall-selected-plan {
    grid-area: 2 / 1;
  }
}

@media (max-width: 700px) {
  .paywall-topbar {
    min-height: 140px;
    grid-template-columns: minmax(0, 1fr);
    padding-block: var(--mf-space-section);
  }

  .paywall-progress {
    grid-column: 1;
    grid-row: 2;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--mf-space-inline);
  }

  .paywall-login {
    grid-column: 1;
    grid-row: 1;
    position: static;
  }

  .paywall-step-heading h1 span {
    display: block;
  }
}

.paywall-summary {
  display: grid;
  gap: var(--mf-space-group);
  margin: 0;
}

.paywall-summary > div,
.paywall-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--mf-space-group);
}

.paywall-summary dt {
  color: var(--auth-muted);
}

.paywall-summary dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.paywall-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--mf-space-inline);
}

.paywall-discount {
  display: flex;
  align-items: center;
  gap: var(--mf-space-inline);
  margin: 0;
  color: var(--auth-accent);
}

.paywall-total {
  padding-top: var(--mf-space-surface);
  border-top: var(--mf-divider-rule);
}

.paywall-total strong {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  animation: paywall-enter 200ms ease-out both;
}

@keyframes paywall-enter {
  from {
    opacity: 0;
    transform: translateX(var(--paywall-enter-x, 16px));
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 560px) {
  .auth-site {
    min-height: 100dvh;
    align-items: start;
    padding: calc(var(--mf-space-surface) + env(safe-area-inset-top)) max(var(--mf-space-surface), env(safe-area-inset-right)) calc(var(--mf-space-surface) + env(safe-area-inset-bottom))
      max(var(--mf-space-surface), env(safe-area-inset-left));
  }

  .auth-brand {
    min-height: 40px;
  }

  .auth-stage {
    width: 100%;
    min-height: 0;
    gap: var(--mf-space-group);
  }

  .auth-form-links {
    gap: var(--mf-space-text);
  }
}

@media (max-width: 360px) {
  .auth-form-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .paywall-progress li {
    flex-direction: column;
    gap: var(--mf-space-text);
  }

}

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

