/* Shared landing control styles: control panels, labels, range sliders and value readouts,
   selects, text/number inputs, colour inputs and swatches, checkboxes, option/preset pills,
   brush-size popover, properties-panel controls, comic speech-bubble controls and hidden file
   inputs used by the landing apps, tools, effects and filter demos.
   Loaded once for all landing pages from Views/Shared/_LandingLayout.cshtml as the base
   control layer: before seo-pages.css, toolbar.css and apps.css, which intentionally
   override some of these rules (e.g. toolbar icon buttons restyle .filter-landing-preset),
   so keep this file loading first.
   Toolbar rules live in toolbar.css; app-unique styling lives in apps.css. */

/* ---- Control panel containers ---- */

.filter-landing-controls {
    display: flex;
    flex-direction: column;
    /* One shared row gap for every landing control panel (flex and grid panels alike). */
    gap: 0.75rem;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    z-index: 3;
    border-inline-start: 1px solid rgba(16, 24, 40, 0.1);
    padding-inline-start: 12px;
}

.filter-landing-controls-label {
    margin: 0;
    color: var(--main-200);
    font-size: 0.9rem;
    font-weight: 600;
}

.filter-landing-effect-block {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

.dark .filter-landing-controls {
    border-inline-start-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 960px) {
    .filter-landing-controls {
        border-inline-start: 0;
        padding-inline-start: 0;
        border-block-start: 1px solid rgba(16, 24, 40, 0.1);
        padding-block-start: 16px;
    }

    .dark .filter-landing-controls {
        border-block-start-color: rgba(255, 255, 255, 0.12);
    }
}

/* App panels use the base flex column above, like the filter/effect pages: rows pack at the top
   with the shared gap and the example-photo strip (.filter-landing-samples, margin-top: auto in
   seo-pages.css) sits at the bottom of the panel on every landing page. */

/* Rows use display: grid/flex, which would override [hidden]. */

.mural-mockup-landing-controls [hidden],
.street-sign-landing-controls [hidden],
.chalk-paint-landing-controls [hidden],
.letter-board-landing-controls [hidden],
.balloon-letters-landing-controls [hidden],
.text-effects-landing-controls [hidden],
.label-maker-landing-controls [hidden],
.cinema-marquee-landing-controls [hidden],
.letter-tiles-landing-controls [hidden],
.filter-landing-brush-size[hidden],
.filter-landing-comic-bubble-copy[hidden],
.filter-landing-select-dice[hidden],
.filter-landing-brush-size-popover[hidden] {
    display: none !important;
}

/* ---- Range sliders and value readouts ---- */

.filter-landing-threshold {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-basis: 100%;
    width: 100%;
    min-width: 0;
    margin: 8px 0;
    box-sizing: border-box;
}

.filter-landing-threshold .filter-landing-controls-label,
.app-slider-row .filter-landing-controls-label,
.landing-font-row > .filter-landing-controls-label {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
    min-width: 6.5rem;
}


.filter-landing-threshold .landing-slider-stepper,
.filter-landing-threshold input[type="range"] {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
}


.filter-landing-slider-value,
.filter-landing-threshold [data-filter-threshold-value],
.filter-landing-threshold [data-filter-dot-size-value],
.filter-landing-threshold [data-filter-density-value] {
    flex: 0 0 2.75rem;
    min-width: 3ch;
    text-align: right;
    font-variant-numeric: tabular-nums;
    opacity: 0.85;
    font-size: 0.9rem;
}

.filter-landing-threshold-input {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    margin: 0;
    accent-color: var(--landing-accent, #2563eb);
    cursor: pointer;
    touch-action: none;
}

.filter-landing-strength {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin: 4px 0 8px;
}

.filter-landing-strength-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    color: var(--main-200);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
}

.filter-landing-strength-value {
    min-width: 3ch;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.filter-landing-strength-input {
    width: 100%;
    margin: 0;
    accent-color: var(--landing-accent, #2563eb);
    cursor: pointer;
    touch-action: none;
}

/* ---- Selects and dropdowns ---- */

.filter-landing-flood-mode {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-basis: 100%;
    width: 100%;
    min-width: 0;
    margin: 4px 0;
}

.filter-landing-flood-mode .filter-landing-controls-label {
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: 4.5rem;
}

.filter-landing-flood-mode .filter-landing-flood-mode-select {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.filter-landing-flood-mode-select {
    width: auto;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid rgba(20, 24, 32, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--main-200);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-landing-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 0.9rem;
}

.filter-landing-select-label {
    flex: 0 0 auto;
    white-space: nowrap;
}

.filter-landing-select select {
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(20, 24, 32, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: inherit;
    font: inherit;
    line-height: 1.2;
    min-width: 12em;
    max-width: 18em;
    text-overflow: ellipsis;
    cursor: pointer;
    max-width: 160px;
}

.filter-landing-flood-mode-select:focus,
.filter-landing-select select:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.filter-landing-select-dice {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin: 0;
}

.dark .filter-landing-flood-mode-select:focus,
.filter-landing-text:focus-within,
.landing-font-picker .text-tiles-font-trigger:focus,
.landing-font-picker .text-tiles-font-trigger[aria-expanded="true"] {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}


.dark .filter-landing-select select:focus,
.dark .filter-landing-text:focus-within,
.dark .landing-font-picker .text-tiles-font-trigger:focus,
.dark .landing-font-picker .text-tiles-font-trigger[aria-expanded="true"] {
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

@media (max-width: 600px) {
    .filter-landing-threshold .filter-landing-controls-label,
    .filter-landing-flood-mode .filter-landing-controls-label {
        min-width: 5rem;
    }
}

/* ---- Text inputs ---- */

.filter-landing-text {
    display: inline-flex;
    align-items: center;
    flex: 1 1 220px;
    min-width: 160px;
    max-width: 360px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid rgba(20, 24, 32, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
}

.filter-landing-controls .filter-landing-text {
    flex: 1 1 100%;
    max-width: none;
}

/* A text box that is itself a panel row keeps its natural height (the flex: 1 1 100% above is for
   text boxes inside rows of pills; in the column panel it would stretch the box vertically). */

.filter-landing-controls > .filter-landing-text {
    flex: 0 0 auto;
}

.filter-landing-text-input {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--main-100);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.filter-landing-text-input:focus {
    outline: none;
}

.filter-landing-text-input:disabled {
    opacity: 0.7;
}

.filter-landing-text--multiline {
    align-items: flex-start;
    border-radius: 14px;
    padding: 8px 12px;
}

.filter-landing-text--multiline .filter-landing-text-input {
    display: block;
    min-height: 4.2em;
    padding: 2px 0;
    line-height: 1.35;
    font-weight: 600;
    resize: vertical;
    field-sizing: content;
}

.filter-landing-text-input::placeholder {
    color: var(--main-200);
    opacity: 0.55;
    font-weight: 600;
}

.dark .filter-landing-text {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(23, 28, 38, 0.88);
}

.dark .filter-landing-select,
.dark .filter-landing-text-input {
    color: var(--main-100, #f5f5f5);
}

/* Inputs and textareas inside the text pill: the site-wide input/textarea rules in site.css
   (border, 32px height, margin-left: auto, purple focus border) outrank the single class
   .filter-landing-text-input, so reset them here. The pill draws the border and focus ring. */

.filter-landing-text input.filter-landing-text-input:not([type="color"]):not([type="range"]):not([type="checkbox"]):not([type="file"]) {
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--main-100);
}

.filter-landing-text textarea.filter-landing-text-input {
    border: 0;
}

/* ---- Comic speech-bubble text and font-size controls ---- */

.filter-landing-comic-bubble-copy {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* ---- Colour inputs and swatches ---- */

.filter-landing-color {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 4px 12px 4px 4px;
    border: 1px solid rgba(20, 24, 32, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--main-100);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.filter-landing-color input[type="color"] {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(20, 24, 32, 0.16);
    border-radius: 50%;
    background: none;
    overflow: hidden;
    cursor: pointer;
}

.filter-landing-color input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.filter-landing-color input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}

.dark .filter-landing-color input[type="color"] {
    border-color: rgba(255, 255, 255, 0.2);
}

/* ---- Checkboxes ---- */

.filter-landing-effect-selected-only {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0 2px;
    color: var(--main-200);
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.filter-landing-effect-selected-only input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #16a34a;
    cursor: pointer;
}

.filter-landing-aligned,
.filter-landing-keep-canvas-size {
    flex-basis: 100%;
    width: 100%;
    min-height: 40px;
    margin: 0 0 8px;
}

.filter-landing-transparent {
    align-self: center;
    min-height: 40px;
    margin: 0;
    flex: 0 0 auto;
}

/* ---- Option / preset pills, brush-size and threshold pills and popover ---- */

.filter-landing-presets,
.filter-landing-prop-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


.filter-landing-presets-break {
    flex-basis: 100%;
    width: 100%;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
}

.filter-landing-presets [data-filter-remove-background] {
    align-self: center;
    min-height: 40px;
}

.filter-landing-preset {
    appearance: none;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(20, 24, 32, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--main-100);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.filter-landing-preset--layout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    border-radius: 14px;
}

.filter-landing-layout-icon {
    display: block;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    opacity: 0.8;
}

.filter-landing-layout-icon rect {
    fill: currentColor;
}

.filter-landing-preset.is-active .filter-landing-layout-icon {
    opacity: 0.88;
}

.filter-landing-preset:hover,
.filter-landing-preset:focus-visible {
    border-color: rgba(37, 99, 235, 0.45);
    background: rgba(37, 99, 235, 0.08);
    outline: none;
}

.filter-landing-preset.is-active {
    border-color: transparent;
    background: var(--landing-accent, #2563eb);
    color: #fff;
}

.filter-landing-preset:disabled {
    cursor: wait;
    opacity: 0.7;
}

.filter-landing-preset--swatch {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    border-radius: 50%;
    border-color: rgba(20, 24, 32, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    vertical-align: middle;
}

.filter-landing-preset--swatch-light {
    border-color: rgba(20, 24, 32, 0.28);
    box-shadow: inset 0 0 0 1px rgba(20, 24, 32, 0.08);
}

.filter-landing-preset--swatch:hover,
.filter-landing-preset--swatch:focus-visible {
    border-color: rgba(37, 99, 235, 0.55);
    /* Keep swatch fill from inline background-color; only ring the edge. */
    background-image: none;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.28);
}

.filter-landing-preset--swatch.is-active {
    border-color: transparent;
    color: transparent;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--landing-accent, #2563eb);
}

.filter-landing-presets:has(.filter-landing-preset--swatch) {
    gap: 6px;
    align-items: center;
}

.filter-landing-brush-size {
    position: relative;
    display: inline-flex;
}

.filter-landing-brush-size-popover {
    position: absolute;
    right: 0;
    left: auto;
    top: calc(100% + 8px);
    bottom: auto;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 188px;
    padding: 10px 12px;
    border: 1px solid rgba(20, 24, 32, 0.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}

.filter-landing-brush-size-input {
    flex: 1 1 auto;
    width: 132px;
    margin: 0;
    accent-color: var(--landing-accent, #2563eb);
    cursor: pointer;
    touch-action: none;
}

.filter-landing-brush-size-value {
    min-width: 2ch;
    color: var(--main-200);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.filter-landing-preset--threshold:hover,
.filter-landing-preset--threshold:focus-visible,
.filter-landing-preset--threshold.is-active:hover,
.filter-landing-preset--threshold.is-active:focus-visible {
    border-color: transparent;
    background: #15803d;
    color: #fff;
}

[data-filter-brush-size] .filter-landing-brush-size-input,
[data-filter-threshold] .filter-landing-brush-size-input {
    accent-color: #16a34a;
}

.dark .filter-landing-color,
.dark .filter-landing-select select,
.dark .filter-landing-flood-mode-select,
.dark .filter-landing-preset {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(23, 28, 38, 0.88);
    color: var(--main-100, #f5f5f5);
}

.dark .filter-landing-preset:hover,
.dark .filter-landing-preset:focus-visible {
    border-color: rgba(96, 165, 250, 0.55);
    background: rgba(37, 99, 235, 0.22);
}

.dark .filter-landing-preset.is-active {
    background: var(--landing-accent, #2563eb);
    color: #fff;
}

.dark .filter-landing-brush-size-popover {
    border-color: rgba(255, 255, 255, 0.12);
    background: #171c26;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.dark .filter-landing-effect-selected-only,
.dark .filter-landing-text-input::placeholder,
.dark .filter-landing-controls-label,
.dark .filter-landing-brush-size-value {
    color: var(--main-200, #d1d5db);
}

.filter-landing-preset--threshold,
.filter-landing-preset--threshold.is-active,
.dark .filter-landing-preset--threshold,
.dark .filter-landing-preset--threshold.is-active {
    border-color: transparent;
    background: #16a34a;
    color: #fff;
}

.dark .filter-landing-preset--threshold:hover,
.dark .filter-landing-preset--threshold:focus-visible,
.dark .filter-landing-preset--threshold.is-active:hover,
.dark .filter-landing-preset--threshold.is-active:focus-visible {
    border-color: transparent;
    background: #22c55e;
    color: #fff;
}

/* ---- Properties panel controls ---- */

.filter-landing-prop {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    row-gap: 6px;
    margin: 0 0 6px 0;
}

.filter-landing-prop-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    color: rgba(245, 245, 245, 0.88);
    font-size: 0.9rem;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
    min-width: 4.5rem;
}

.filter-landing-prop-value {
    min-width: 3ch;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.filter-landing-prop-range {
    width: 100%;
    margin: 0;
    accent-color: #16a34a;
    cursor: pointer;
}

/* Property panels are dark chrome — match their controls in both themes */

.filter-landing-prop .landing-slider-stepper__btn {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
}

.filter-landing-prop .landing-slider-stepper__btn:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
}

.filter-landing-prop-color,
.filter-landing-prop-select,
.filter-landing-prop-text {
    width: 100%;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
}



.filter-landing-prop-swatch {
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
}

.filter-landing-prop-select,
.filter-landing-prop-text {
    padding: 8px 10px;
}

.filter-landing-prop-text {
    background: #fff;
    color: #111;
    -webkit-text-fill-color: #111;
    caret-color: #111;
    color-scheme: light;
    appearance: none;
    -webkit-appearance: none;
    min-height: 2.4rem;
    resize: vertical;
}

textarea.filter-landing-prop-text {
    min-height: 4.8rem;
    line-height: 1.35;
}

.filter-landing-prop--boolean {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-landing-prop--boolean .filter-landing-prop-label {
    justify-content: flex-start;
}

.filter-landing-prop-check {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #16a34a;
    cursor: pointer;
}

/* ---- Labelled fields, selects and number inputs (app panels) ---- */

.app-landing-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    row-gap: 8px;
}

.app-landing-field[hidden] {
    display: none;
}

.app-landing-field > .filter-landing-controls-label {
    grid-column: 1;
}

.app-landing-field > .fractal-landing-select {
    grid-column: 2;
    width: 100%;
    max-width: 100%;
}

.fractal-landing-select,
.fractal-landing-number {
    width: 100%;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid rgba(20, 24, 32, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--main-200);
    font: inherit;
    font-size: 0.9rem;
}

.fractal-landing-number {
    padding: 9px 10px;
    font-variant-numeric: tabular-nums;
}

.dark .fractal-landing-select,
.dark .fractal-landing-number,
.dark .landing-font-picker .text-tiles-font-trigger {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
}

.dark .fractal-landing-number {
    background: rgba(15, 23, 42, 0.55);
}

/* ---- Select dropdowns: light and dark ----
   One set of colours for every app select and its open list (options, groups); any other
   select in an app panel gets the themed list too. The theme
   follows body.dark; color-scheme makes the browser draw the list, its scrollbar and the
   arrow in the same theme. Property panels are dark chrome in both themes. */

body {
    --landing-select-bg: rgba(255, 255, 255, 0.82);
    --landing-select-fg: var(--main-200, #1f2430);
    --landing-select-border: rgba(20, 24, 32, 0.12);
    --landing-select-hover-border: rgba(20, 24, 32, 0.28);
    --landing-select-focus-border: rgba(37, 99, 235, 0.45);
    --landing-select-focus-ring: rgba(37, 99, 235, 0.12);
    --landing-option-bg: #ffffff;
    --landing-option-fg: #1f2430;
    --landing-optgroup-fg: #6b7280;
    --landing-option-selected-bg: #dbe6fb;
    --landing-select-scheme: light;
}

body.dark {
    --landing-select-bg: rgba(255, 255, 255, 0.08);
    --landing-select-fg: rgba(255, 255, 255, 0.92);
    --landing-select-border: rgba(255, 255, 255, 0.14);
    --landing-select-hover-border: rgba(255, 255, 255, 0.3);
    --landing-select-focus-border: rgba(96, 165, 250, 0.55);
    --landing-select-focus-ring: rgba(37, 99, 235, 0.22);
    --landing-option-bg: #1c2230;
    --landing-option-fg: #f1f3f7;
    --landing-optgroup-fg: #9aa3b5;
    --landing-option-selected-bg: #2c4470;
    --landing-select-scheme: dark;
}

.filter-landing-prop {
    --landing-select-bg: rgba(255, 255, 255, 0.08);
    --landing-select-fg: #fff;
    --landing-select-border: rgba(255, 255, 255, 0.14);
    --landing-select-hover-border: rgba(255, 255, 255, 0.3);
    --landing-select-focus-border: rgba(96, 165, 250, 0.55);
    --landing-select-focus-ring: rgba(37, 99, 235, 0.22);
    --landing-option-bg: #1c2230;
    --landing-option-fg: #f1f3f7;
    --landing-optgroup-fg: #9aa3b5;
    --landing-option-selected-bg: #2c4470;
    --landing-select-scheme: dark;
}

.fractal-landing-select,
.filter-landing-select select,
.filter-landing-flood-mode-select,
.filter-landing-prop-select {
    border-color: var(--landing-select-border);
    background-color: var(--landing-select-bg);
    color: var(--landing-select-fg);
    color-scheme: var(--landing-select-scheme);
    cursor: pointer;
}

.fractal-landing-select:hover:not(:disabled),
.filter-landing-select select:hover:not(:disabled),
.filter-landing-flood-mode-select:hover:not(:disabled),
.filter-landing-prop-select:hover:not(:disabled) {
    border-color: var(--landing-select-hover-border);
}

.fractal-landing-select:focus,
.filter-landing-select select:focus,
.filter-landing-flood-mode-select:focus,
.filter-landing-prop-select:focus {
    outline: none;
    border-color: var(--landing-select-focus-border);
    box-shadow: 0 0 0 3px var(--landing-select-focus-ring);
}

.fractal-landing-select option,
.filter-landing-select select option,
.filter-landing-flood-mode-select option,
.filter-landing-prop-select option,
.landing-favorites-select option,
.text-tiles-font-select-native option,
.filter-landing-controls select option {
    background-color: var(--landing-option-bg);
    color: var(--landing-option-fg);
}

.fractal-landing-select optgroup,
.filter-landing-select select optgroup,
.filter-landing-prop-select optgroup,
.filter-landing-controls select optgroup {
    background-color: var(--landing-option-bg);
    color: var(--landing-optgroup-fg);
    font-style: normal;
    font-weight: 600;
}

.fractal-landing-select option:checked,
.filter-landing-select select option:checked,
.filter-landing-prop-select option:checked,
.filter-landing-controls select option:checked {
    background-color: var(--landing-option-selected-bg);
    color: var(--landing-option-fg);
}

.fractal-landing-select:disabled,
.filter-landing-select select:disabled {
    opacity: 0.55;
    cursor: default;
}

@media (max-width: 600px) {
    body.filter-app-mode .fractal-landing-select {
        padding: 7px 10px;
    }
}

/* ---- Slider rows, steppers and value readouts (app panels) ---- */

.app-slider-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}



.app-slider-row input[type="range"] {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin: 0;
}

.landing-slider-stepper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.landing-slider-stepper input[type="range"] {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    margin: 0;
}

.landing-slider-stepper__btn {
    appearance: none;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 1.55rem;
    height: 1.55rem;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.landing-slider-stepper__btn:hover:not(:disabled) {
    border-color: rgba(15, 23, 42, 0.35);
    background: #f8fafc;
}

.landing-slider-stepper__btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.dark .landing-slider-stepper__btn {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
}

.dark .landing-slider-stepper__btn:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.14);
}

.filter-landing-prop .landing-slider-stepper,
.filter-landing-controls .landing-slider-stepper {
    width: 100%;
}



.filter-landing-prop .landing-slider-stepper input[type="range"],
.filter-landing-prop .landing-slider-stepper .filter-landing-prop-range {
    width: auto;
}

.spirograph-val {
    flex: 0 0 2.75rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
    opacity: 0.85;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .app-slider-row .filter-landing-controls-label {
        min-width: 5rem;
    }
}

/* ---- Checkbox rows (app panels) ---- */

.app-check-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.1rem 0;
    cursor: pointer;
    font-weight: 600;
    color: var(--main-200);
}

.app-check-row input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
}

/* ---- Playback and colour-pair rows (app panels) ---- */

.spirograph-playback-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.85rem;
}

.spirograph-color-pair,
.banksy-street-art-color-pair,
.double-pendulum-color-pair,
.graffiti-wall-color-pair,
.lorenz-attractor-color-pair,
.lorenz-wheel-color-pair,
.painting-pendulum-color-pair {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    width: 100%;
}

.spirograph-color-pair .spirograph-style-select {
    flex: 1 1 9rem;
    min-width: 8rem;
    width: auto;
    max-width: 100%;
    margin: 0;
}

/* ---- Labelled option rows (app panels) ---- */

/* A label followed by a wrapping row of pills or swatches (letter colours, tape, felt, symbols).
   The label column lines up with .app-slider-row and the font picker row. */

.landing-option-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.landing-option-row > .filter-landing-controls-label {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 6.5rem;
    min-height: 28px;
    margin: 0;
    white-space: nowrap;
}

.landing-option-row > .filter-landing-presets {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 600px) {
    .landing-option-row > .filter-landing-controls-label {
        min-width: 5rem;
    }
}

/* ---- Colour swatch pickers ---- */

.tessellation-colors .filter-landing-color--swatch,
.mc-escher-colors .filter-landing-color--swatch {
    padding: 4px;
    gap: 0;
}

/* ---- Hidden file inputs ---- */

.banksy-file-input,
.minimalism-file-input,
.pop-art-file-input,
.mural-file-input,
.neon-file-input,
.photo-physics-file-input,
.reaction-diffusion-file-input,
.sign-file-input,
.board-file-input,
.balloon-file-input,
.tfx-file-input,
.label-file-input,
.marquee-file-input,
.tiles-file-input,
.chalk-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Shared landing font picker (Views/SeoLanding/_LandingFontPicker.cshtml) */

.landing-font-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Same label column as .app-slider-row and .landing-option-row. */



@media (max-width: 600px) {
    .landing-font-row > .filter-landing-controls-label {
        min-width: 5rem;
    }
}

.landing-font-picker {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

/* The trigger uses the editor's chrome by default; in landing panels give it the same box as the
   shared select (.fractal-landing-select) so the Font row matches the rows around it. */

.landing-font-picker .text-tiles-font-trigger {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(20, 24, 32, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--main-200);
    font-size: 0.9rem;
}



@media (max-width: 600px) {
    body.filter-app-mode .landing-font-picker .text-tiles-font-trigger {
        height: 36px;
        padding: 0 10px;
    }
}

.landing-font-picker .text-tiles-font-popover {
    z-index: 60;
    right: 0;
    width: auto;
    max-width: none;
}

/* Wall apps: a checkerboard shows through when the wall is set to Transparent. */

.filter-landing-stage.is-transparent-wall {
    background-color: var(--component-checker-bg, #fff) !important;
    background-image: repeating-conic-gradient(var(--component-checker-square, #e5e5e5) 0deg 90deg, var(--component-checker-bg, #fff) 90deg 180deg) !important;
    background-size: var(--component-square-size, 16px) var(--component-square-size, 16px) !important;
}
