/* Style simple et épuré */
* { box-sizing: border-box; margin: 0; padding: 0; cursor: default; }

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0c;
    color: #e0e0e0;
    overflow: hidden;
    cursor: default !important;
}

/* Layout */
.container { display: flex; height: 100vh; width: 100vw; }
.canvas-container { flex: 1; position: relative; background: #000; }
#noiseCanvas { width: 100%; height: 100%; display: block; }

/* FPS et toggle */
.fps-counter { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.8); padding: 6px 12px; border-radius: 6px; font-size: 12px; font-family: monospace; color: #888; }
.toggle-sidebar { position: fixed; top: 12px; left: 12px; width: 40px; height: 40px; background: rgba(30,30,35,0.95); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff; cursor: pointer; z-index: 100; font-size: 16px; }

/* Sidebar scrollable */
.sidebar {
    width: 400px;
    background: #121214;
    border-left: 1px solid rgba(255,255,255,0.08);
    overflow-y: auto;
    padding: 0;
}
.sidebar.hidden { display: none; }

/* Sections/Cartes simples et longues */
.card {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.card-header {
    padding: 16px 20px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.card-header h3 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.card-header .card-emoji { font-size: 16px; }

/* Header switch (toggle dans le header des cartes) */
.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.card-header .card-toggle {
    font-size: 10px;
    color: #666;
    transition: transform 0.2s;
}
.card.collapsed .card-toggle {
    transform: rotate(-90deg);
}
.card-header .card-title {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.card-header .btn-reset {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: #888;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}
.card-header .btn-reset:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}
.header-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    margin-left: 8px;
}
.header-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.header-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    border-radius: 20px;
    transition: 0.2s;
}
.header-switch-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: #888;
    border-radius: 50%;
    transition: 0.2s;
}
.header-switch input:checked + .header-switch-slider {
    background-color: #3b82f6;
}
.header-switch input:checked + .header-switch-slider:before {
    transform: translateX(16px);
    background-color: #fff;
}

.card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.card.collapsed .card-body {
    display: none;
}

/* Form rows */
.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    user-select: none;
}
.form-row label {
    font-size: 13px;
    color: #999;
    min-width: 90px;
    flex-shrink: 0;
}
.form-row input, .form-row select {
    flex: 1;
    background: #1a1a1e;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: #fff;
    padding: 10px 14px;
    font-size: 13px;
    min-width: 0;
}
.form-row select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.form-row select option {
    background: #1a1a1e;
    color: #fff;
    padding: 8px;
}
.form-row input:focus, .form-row select:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Sliders */
/* Custom Slider */
.custom-slider {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    user-select: none;
}
.custom-slider-track {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 3px;
    pointer-events: none;
}
.custom-slider-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s;
}
.custom-slider-thumb:hover {
    transform: translate(-50%, -50%) scale(1.1);
}
.custom-slider.precision-mode .custom-slider-thumb {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}
.custom-slider.dragging .custom-slider-thumb {
    transform: translate(-50%, -50%) scale(1.15);
}
.range-value {
    min-width: 55px;
    text-align: right;
    font-size: 12px;
    color: #3b82f6;
    font-family: monospace;
}

/* Switches (checkboxes stylisées) */
.form-row input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 44px;
    height: 24px;
    background: #333;
    border-radius: 12px;
    cursor: pointer;
    flex: 0 0 44px;
    position: relative;
    transition: background 0.2s;
    margin-left: auto;
}

/* Options conditionnelles */
.warp-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
    transition: opacity 0.2s;
}
.warp-options.hidden {
    display: none;
}

/* Options conditionnelles Cellular */
.cellular-options {
    display: contents;
}
.cellular-options.hidden {
    display: none;
}

.fractal-mode-options {
    display: contents;
}
.fractal-mode-options.hidden {
    display: none;
}

.form-row input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: #888;
    border-radius: 50%;
    transition: all 0.2s;
}
.form-row input[type="checkbox"]:checked {
    background: #3b82f6;
}
.form-row input[type="checkbox"]:checked::before {
    left: 23px;
    background: #ffffff85;
}

/* Options conditionnelles Warp2 */
.warp2-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
    transition: opacity 0.2s;
}
.warp2-options.hidden {
    display: none;
}

/* Options conditionnelles Réaction-Diffusion */
.rd-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
    transition: opacity 0.2s;
}
.rd-options.hidden {
    display: none;
}
.rd-options .rd-info {
    font-size: 11px;
    color: #888;
    padding: 8px 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}
.rd-options .rd-info small {
    display: block;
}
/* Sous-sections RD */
.rd-subsection {
    margin-top: 8px;
}
.rd-subsection .subsection-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #aaa;
    margin-bottom: 10px;
}
/* Options de modulation noise RD */
.rd-noise-mod-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.rd-noise-mod-options.hidden {
    display: none;
}
/* Options conditionnelles Fluid Simulation */
.fluid-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
    transition: opacity 0.2s;
}
.fluid-options.hidden {
    display: none;
}
.fluid-noise-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.fluid-noise-options.hidden {
    display: none;
}
.fluid-bloom-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.fluid-bloom-options.hidden {
    display: none;
}
.fluid-sunrays-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.fluid-sunrays-options.hidden {
    display: none;
}
.fluid-subsection {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fluid-subsection .subsection-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #aaa;
    margin-bottom: 0;
}

/* FlowField subsections */
.flowfield-subsection {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.flowfield-subsection .subsection-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #aaa;
    margin-bottom: 0;
}
.flowfield-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.flowfield-particles-options,
.flowfield-sticks-options,
.flowfield-bg-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.flowfield-particles-options.hidden,
.flowfield-sticks-options.hidden,
.flowfield-bg-options.hidden {
    display: none;
}

/* Palette filters section */
.palette-filters-section {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* AA categories in effects */
.aa-category {
    font-size: 11px;
    color: #888;
    margin-top: 8px;
    margin-bottom: 4px;
    font-weight: 500;
}
.aa-category:first-of-type {
    margin-top: 0;
}

/* Subsection divider */
.subsection-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 8px 0;
}

.rd-warp-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
    padding-left: 8px;
    border-left: 2px solid rgba(59, 130, 246, 0.3);
}
.rd-warp-options.hidden {
    display: none;
}
.rd-warp-options .rd-info {
    font-size: 11px;
    color: #888;
    padding: 8px 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

/* Options animation masquables */
.noise-anim-options,
.warp-anim-options,
.warp2-anim-options,
.palette-anim-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.noise-anim-options.hidden,
.warp-anim-options.hidden,
.warp2-anim-options.hidden,
.palette-anim-options.hidden {
    display: none;
}

/* Interpolation Controls */
.interpolation-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.interpolation-controls label {
    flex: 0 0 auto;
    font-size: 12px;
    color: #aaa;
}
.interpolation-controls select {
    flex: 1;
    padding: 4px 8px;
    font-size: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
}
.interpolation-controls select:hover {
    border-color: rgba(255,255,255,0.4);
}

/* Stop Noise Panel */
.stop-noise-panel {
    margin-top: 6px;
}
.stop-noise-panel.hidden {
    display: none;
}
.stop-noise-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 8px;
    border-left: 2px solid rgba(255,255,255,0.2);
    margin-top: 4px;
}
.stop-noise-options.hidden {
    display: none;
}
.stop-simple-options.hidden,
.stop-carto-options.hidden {
    display: none;
}

/* Noise Curve Canvas */
.noise-curve-canvas {
    width: 100%;
    height: 50px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    margin-bottom: 4px;
}
#noiseCanvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Stop Controls Bar */
.stop-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}
.stop-controls-bar .controls-left {
    display: flex;
    gap: 4px;
}
.stop-controls-bar .btn-small {
    width: 32px;
    height: 28px;
    padding: 0;
    font-size: 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.stop-controls-bar .btn-small:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

/* Gradient Editor */
.gradient-preview {
    position: relative;
    padding-bottom: 40px;
    overflow: visible;
}
.gradient-bar {
    height: 24px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
}
.gradient-stops {
    position: relative;
    height: 30px;
}
.gradient-stop {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    cursor: grab;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gradient-stop:active { cursor: grabbing; }
.gradient-stop.selected .stop-arrow { border-bottom-color: #fff; }
.stop-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid #666;
    transition: border-color 0.15s;
}
.gradient-stop.dragging .stop-arrow { border-bottom-color: #fff; }
.stop-color-box {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 2px solid #666;
    border-radius: 4px;
    cursor: grab;
    transition: transform 0.1s, border-color 0.15s;
}
.stop-color-box:active { cursor: grabbing; }
.gradient-stop.selected .stop-color-box { border-color: #fff; }
.stop-color-box::-webkit-color-swatch-wrapper { padding: 0; }
.stop-color-box::-webkit-color-swatch { border: none; border-radius: 2px; }
.stop-controls {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
}
.stop-controls .btn-small {
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stop-controls .btn-small:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

/* Bouton Reset dans les cartes */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-reset {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-reset:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Palette couleurs */
.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}
.color-item { position: relative; }
.color-item input[type="color"] {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
}
.color-item input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.color-item input[type="color"]::-webkit-color-swatch { border: none; border-radius: 4px; }
.color-remove {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: #ef4444;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.color-add {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Boutons */
.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}
.btn-primary {
    background: #3b82f6;
    color: #fff;
}
.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #ccc;
}
.btn-group {
    display: flex;
    gap: 8px;
}

/* Presets */
.presets-section {
    margin-bottom: 12px;
}
.presets-title {
    font-size: 11px;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.presets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.preset-btn {
    padding: 10px 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: #aaa;
    font-size: 11px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
}
.preset-btn:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
/* Preset personnalisé avec bouton supprimer */
.custom-preset-item {
    position: relative;
    display: flex;
}
.custom-preset-item .preset-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}
.preset-delete {
    width: 28px;
    background: rgba(220,53,69,0.3);
    border: 1px solid rgba(220,53,69,0.4);
    border-left: none;
    border-radius: 0 6px 6px 0;
    color: #dc3545;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.preset-delete:hover {
    background: rgba(220,53,69,0.5);
    color: #fff;
}
.presets-order-hint {
    margin: 0 0 8px;
    color: #777;
    font-size: 11px;
    line-height: 1.35;
}
.custom-preset-item {
    cursor: grab;
}
.custom-preset-item .preset-handle {
    width: 18px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-right: none;
    border-radius: 6px 0 0 6px;
    background:
        radial-gradient(circle, rgba(255,255,255,0.45) 1px, transparent 1.4px) 4px 6px / 6px 6px repeat-y,
        rgba(255,255,255,0.03);
    cursor: grab;
}
.custom-preset-item .preset-btn {
    border-radius: 0;
}
.custom-preset-item.is-dragging {
    opacity: 0.4;
    cursor: grabbing;
}
.custom-preset-item.drag-over {
    outline: 1px dashed rgba(242,242,242,0.7);
    outline-offset: 1px;
}
/* Sauvegarde de preset */
.presets-empty {
    color: #666;
    font-size: 12px;
    text-align: center;
    padding: 15px;
    font-style: italic;
}

.presets-io-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.presets-io-row .btn {
    flex: 1;
    font-size: 12px;
    padding: 6px 10px;
}

.save-preset-row {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.preset-name-input {
    flex: 1;
    padding: 8px 10px;
    background: #1a1a1e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 12px;
}
.preset-name-input:focus {
    outline: none;
    border-color: #3b82f6;
}
.save-preset-row .btn {
    white-space: nowrap;
}

/* Info navigation */
.nav-info {
    font-size: 11px;
    color: #666;
    padding: 10px;
    line-height: 1.5;
    background: rgba(0,0,0,0.15);
    border-radius: 6px;
}

/* Permalink input */
.permalink-input {
    width: 100%;
    height: 60px;
    background: #1a1a1e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #888;
    padding: 10px;
    font-size: 10px;
    font-family: monospace;
    resize: none;
    margin-bottom: 8px;
}
.permalink-input:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Séparateur */
.separator {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 6px 0;
}

/* Scrollbar */
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* Color Picker Dropdown - Flottant dans le body */
.color-picker-dropdown {
    position: fixed;
    width: 380px;
    max-height: 85vh;
    overflow-y: auto;
    background: #1a1a1e;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    padding: 18px;
    z-index: 10000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.color-picker-dropdown::-webkit-scrollbar { width: 6px; }
.color-picker-dropdown::-webkit-scrollbar-track { background: transparent; }
.color-picker-dropdown::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

.color-picker-dropdown .form-row {
    margin-bottom: 8px;
}
.color-picker-dropdown .separator {
    margin: 12px 0;
}
.color-picker-dropdown .stop-contour-options,
.color-picker-dropdown .stop-noise-options {
    margin-top: 8px;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
}

.color-picker-main {
    position: relative;
    margin-bottom: 10px;
}
.color-picker-main canvas {
    display: block;
    width: 100%;
    height: 150px;
    border-radius: 4px;
    cursor: crosshair;
}
.color-picker-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
    pointer-events: none;
    transform: translate(-50%, -50%);
    top: 0;
    left: 0;
}

.color-picker-hue {
    position: relative;
    margin-bottom: 10px;
}
.color-picker-hue canvas {
    display: block;
    width: 100%;
    height: 20px;
    border-radius: 4px;
    cursor: crosshair;
}
.hue-marker {
    position: absolute;
    width: 4px;
    height: 100%;
    background: #fff;
    border: 1px solid #333;
    border-radius: 2px;
    pointer-events: none;
    top: 0;
    left: 0;
}

.color-picker-preview {
    display: flex;
    gap: 10px;
    align-items: center;
}
.color-preview-box {
    width: 40px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    background: #fff;
}
.color-hex-input {
    flex: 1;
    background: #222;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: #e0e0e0;
    padding: 6px 10px;
    font-size: 12px;
    font-family: monospace;
}
.color-hex-input:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Onglets Palette */
.palette-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    background: rgba(0,0,0,0.2);
    padding: 4px;
    border-radius: 6px;
}
.palette-tab {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #888;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.palette-tab:hover {
    color: #ccc;
    background: rgba(255,255,255,0.05);
}
.palette-tab.active {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}
.palette-tab-content {
    display: block;
}
.palette-tab-content.hidden {
    display: none;
}

/* ============================================================================
   CARTE PERFORMANCE - Bride de FPS
   ============================================================================ */

/* Indicateurs de status en haut de la carte */
.perf-status {
    display: flex;
    gap: 20px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 16px;
}

.perf-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.perf-label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.perf-value {
    font-size: 20px;
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', monospace;
    color: #4ade80; /* Vert par défaut */
    transition: color 0.3s ease;
}

.perf-info {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
}

.perf-info small {
    color: #888;
    font-size: 11px;
    line-height: 1.4;
}


/* === Mode Couleurs Buttons === */
.color-mode-selector {
    margin: 12px 0;
}

.color-mode-selector .mode-label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mode-buttons {
    display: flex;
    gap: 8px;
}

.mode-btn {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.mode-btn.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    color: #60a5fa;
}

.color-mode-options {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.color-mode-options.hidden {
    display: none;
}

.mode-info {
    font-size: 11px;
    color: #666;
    font-style: italic;
    margin-top: 8px;
    padding: 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
}

/* === Renewal Section === */
.renewal-section {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.renewal-title {
    font-size: 12px;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 6px;
}

.renewal-info {
    font-size: 10px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.slider-hint {
    font-size: 10px;
    color: #60a5fa;
    margin-top: -8px;
    margin-bottom: 12px;
    padding: 4px 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    text-align: center;
}

/* ============================================================================
   NOISE LAB — Habillage du site Erwan Bayeul
   Inspiré du principe visuel d'IronMail : fond nocturne, interfaces légères,
   séparations fines et lumière bleu-violet. Les contrôles du moteur restent
   identiques : seul leur habillage est changé.
   ============================================================================ */

:root {
    --noise-bg: #090a10;
    --noise-surface: rgba(15, 16, 26, 0.92);
    --noise-line: rgba(255, 255, 255, 0.09);
    --noise-line-strong: rgba(151, 128, 255, 0.32);
    --noise-text: #f7f5ff;
    --noise-muted: #a9a6bb;
    --noise-accent: #8170ff;
    --noise-accent-soft: rgba(129, 112, 255, 0.18);
}

html, body.noise-app {
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: var(--noise-bg);
}

body.noise-app {
    color: var(--noise-text);
    font-family: Inter, "SF Pro Text", "Segoe UI", sans-serif;
    position: relative;
    isolation: isolate;
}

body.noise-app::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 28% -8%, rgba(30, 115, 150, 0.18), transparent 32%),
        radial-gradient(circle at 83% 8%, rgba(117, 54, 214, 0.16), transparent 28%),
        var(--noise-bg);
}

.noise-appbar {
    height: 66px;
    padding: 0 clamp(18px, 3vw, 42px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(9, 10, 16, 0.8);
    border-bottom: 1px solid var(--noise-line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.noise-brand, .noise-app-actions, .noise-app-actions a {
    display: flex;
    align-items: center;
}

.noise-brand {
    gap: 10px;
    color: var(--noise-text);
    text-decoration: none;
    font-weight: 750;
    font-size: 17px;
    letter-spacing: -0.04em;
}

.noise-brand > span:last-child > span { color: #a783ff; }

.noise-brand-mark {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(175, 145, 255, 0.42);
    border-radius: 10px;
    color: white;
    background: linear-gradient(135deg, #317be8, #a044ee 75%);
    box-shadow: 0 7px 22px rgba(103, 68, 245, 0.35);
    font-size: 14px;
}

.noise-app-actions { gap: 9px; }
.noise-app-actions a {
    min-height: 34px;
    padding: 0 12px;
    gap: 7px;
    border-radius: 10px;
    color: var(--noise-muted);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.noise-app-actions a:hover { color: white; background: rgba(255,255,255,.06); }
.noise-app-actions .noise-app-action-primary {
    color: white;
    background: linear-gradient(105deg, #537fea, #9347ef);
    box-shadow: 0 8px 24px rgba(103, 66, 230, .22);
}
.noise-app-actions .noise-app-action-primary:hover { transform: translateY(-1px); background: linear-gradient(105deg, #668cf1, #a456f5); }

.noise-workspace { height: calc(100vh - 66px); min-height: 0; padding: 14px; }
.noise-workspace .container {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--noise-line);
    border-radius: 16px;
    background: rgba(4, 5, 9, 0.7);
    box-shadow: 0 18px 50px rgba(0,0,0,.3);
}

.noise-workspace .canvas-container { background: #05060a; }

.noise-workspace .sidebar {
    width: min(420px, 35vw);
    padding-bottom: 16px;
    background: linear-gradient(180deg, rgba(19,20,32,.98), rgba(11,12,20,.98));
    border-left-color: var(--noise-line);
    scrollbar-color: rgba(147, 119, 255, .5) transparent;
}

.noise-workspace .sidebar::-webkit-scrollbar { width: 8px; }
.noise-workspace .sidebar::-webkit-scrollbar-thumb { background: rgba(147,119,255,.38); border: 2px solid transparent; background-clip: padding-box; border-radius: 10px; }

.noise-workspace .toggle-sidebar {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    border-color: var(--noise-line);
    color: var(--noise-text);
    background: rgba(15,16,28,.82);
    box-shadow: 0 10px 24px rgba(0,0,0,.24);
    backdrop-filter: blur(12px);
    cursor: pointer !important;
}

.noise-workspace .toggle-sidebar:hover { border-color: var(--noise-line-strong); background: rgba(42,32,78,.88); }
.noise-workspace .fps-counter { top: 14px; right: 14px; color: #d7cffc; background: rgba(15,16,28,.76); border: 1px solid var(--noise-line); border-radius: 9px; backdrop-filter: blur(10px); }

.sidebar .card { border-bottom-color: var(--noise-line); }
.sidebar .card-header { padding: 17px 20px; background: rgba(255,255,255,.018); border-bottom-color: rgba(255,255,255,.045); }
.sidebar .card-header:hover { background: rgba(129,112,255,.055); }
.sidebar .card-header .card-title, .sidebar .card-header h3 { color: var(--noise-text); font-size: 11px; letter-spacing: .09em; }
.sidebar .card-body { padding: 16px 18px; gap: 12px; }
.sidebar .form-row label { color: var(--noise-muted); font-size: 12px; }
.sidebar .form-row input, .sidebar .form-row select, .sidebar .preset-name-input, .sidebar .permalink-input {
    color: var(--noise-text);
    background: rgba(255,255,255,.045);
    border-color: var(--noise-line);
}
.sidebar .form-row input:focus, .sidebar .form-row select:focus, .sidebar .preset-name-input:focus, .sidebar .permalink-input:focus { border-color: var(--noise-accent); box-shadow: 0 0 0 3px rgba(129,112,255,.12); }
.sidebar .range-value { color: #b9aaff; }
.sidebar .custom-slider { background: rgba(255,255,255,.1); }
.sidebar .custom-slider-track { background: linear-gradient(90deg, #4d83ee, #9d4df3); }
.sidebar .custom-slider-thumb { background: #b59aff; box-shadow: 0 0 0 4px rgba(181,154,255,.12); cursor: grab !important; }
.sidebar .form-row input[type="checkbox"]:checked, .sidebar .header-switch input:checked + .header-switch-slider { background: linear-gradient(90deg, #5084ec, #9d4df3); }
.sidebar .palette-tab.active, .sidebar .mode-btn.active { color: #d9ceff; border-color: rgba(157,77,243,.42); background: rgba(129,112,255,.18); }
.sidebar .btn-primary { background: linear-gradient(105deg, #537fea, #9347ef); }
.sidebar .btn-secondary, .sidebar .preset-btn, .sidebar .mode-btn, .sidebar .stop-controls .btn-small, .sidebar .stop-controls-bar .btn-small { border-color: var(--noise-line); background: rgba(255,255,255,.045); color: var(--noise-muted); }
.sidebar .btn-primary, .sidebar button, .sidebar select, .sidebar input[type="checkbox"], .sidebar input[type="color"], .sidebar .preset-btn, .sidebar .gradient-stop, .sidebar .stop-color-box { cursor: pointer !important; }
.sidebar .rd-options .rd-info, .sidebar .perf-info, .sidebar .slider-hint { color: var(--noise-muted); border-left-color: var(--noise-accent); background: var(--noise-accent-soft); }

@media (max-width: 760px) {
    .noise-appbar { height: 58px; padding: 0 14px; }
    .noise-workspace { height: calc(100vh - 58px); padding: 8px; }
    .noise-workspace .container { border-radius: 12px; }
    .noise-workspace .sidebar { width: min(390px, 92vw); }
    .noise-app-actions .noise-app-action-primary span { display: none; }
    .noise-app-actions .noise-app-action-primary { padding: 0 11px; }
}

/* Intégration dans erwanbayeul.com : la page /noise emploie la même barre et
   les mêmes contrôles que les filtres de la galerie. */
body.noise-page {
    background: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.noise-page::before { display: none; }

.noise-page .noise-workspace {
    height: calc(100dvh - var(--app-header-height));
    min-height: 0;
    padding: 0;
}

.noise-page .noise-workspace .container {
    height: 100%;
    border: 0;
    border-radius: 0;
    background: var(--bg-dark);
    box-shadow: none;
}

.noise-page .noise-workspace .canvas-container { background: #050506; }

.noise-page .noise-workspace .sidebar {
    width: min(400px, 38vw);
    padding-bottom: 0;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    scrollbar-color: var(--bg-surface-elevated) var(--bg-card);
}

.noise-page .noise-workspace .sidebar::-webkit-scrollbar { width: 6px; }
.noise-page .noise-workspace .sidebar::-webkit-scrollbar-thumb { border: 0; background: var(--bg-surface-elevated); border-radius: var(--radius-full); }

.noise-page .noise-workspace .toggle-sidebar {
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    border-color: var(--border-color);
    background: var(--glass-bg);
    color: var(--text-main);
    box-shadow: var(--shadow-md);
}

.noise-page .noise-workspace .toggle-sidebar:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-surface-elevated);
}

.noise-page .noise-workspace .fps-counter {
    top: 12px;
    right: 12px;
    border-color: var(--border-color);
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    color: var(--text-muted);
    font-family: "SF Pro Text", "Segoe UI", sans-serif;
    font-variant-numeric: tabular-nums;
}

.noise-page .sidebar .card { border-bottom-color: var(--border-color); }
.noise-page .sidebar .card-header {
    padding: 15px 18px;
    background: var(--bg-card);
    border-bottom-color: rgba(255,255,255,.05);
}
.noise-page .sidebar .card-header:hover { background: var(--bg-card-hover); }
.noise-page .sidebar .card-header .card-title,
.noise-page .sidebar .card-header h3 {
    color: var(--text-main);
    font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    letter-spacing: .04em;
}
.noise-page .sidebar,
.noise-page .sidebar button,
.noise-page .sidebar input,
.noise-page .sidebar select,
.noise-page .sidebar textarea {
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.noise-page .sidebar .card-body { padding: 14px 16px; gap: 11px; }
.noise-page .sidebar .form-row label { color: var(--text-muted); font-size: 12px; }

.noise-page .sidebar .form-row input,
.noise-page .sidebar .form-row select,
.noise-page .sidebar .preset-name-input,
.noise-page .sidebar .permalink-input {
    background: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-main);
    border-radius: var(--radius-sm);
}

.noise-page .sidebar .form-row input:focus,
.noise-page .sidebar .form-row select:focus,
.noise-page .sidebar .preset-name-input:focus,
.noise-page .sidebar .permalink-input:focus {
    border-color: rgba(242,242,242,.88);
    box-shadow: 0 0 0 2px rgba(242,242,242,.14);
}

/* Même potard que les filtres Galerie et Photos : piste fine grise,
   progression blanche, disque sombre cerclé de blanc. */
.noise-page .sidebar .custom-slider {
    height: 1.8rem;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}
.noise-page .sidebar .custom-slider::before {
    content: "";
    position: absolute;
    inset: auto 0;
    top: 50%;
    height: .28rem;
    transform: translateY(-50%);
    border-radius: var(--radius-full);
    background: #3d3d3d;
}
.noise-page .sidebar .custom-slider-track {
    z-index: 1;
    top: 50%;
    height: .28rem;
    transform: translateY(-50%);
    border-radius: var(--radius-full);
    background: #f2f2f2;
}
.noise-page .sidebar .custom-slider-thumb {
    z-index: 2;
    width: 1.45rem;
    height: 1.45rem;
    border: 5px solid #f2f2f2;
    border-radius: 50%;
    background: #101010;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.noise-page .sidebar .custom-slider-thumb:hover,
.noise-page .sidebar .custom-slider.dragging .custom-slider-thumb {
    background: #202024;
    box-shadow: 0 0 0 1px rgba(255,255,255,.28);
}
.noise-page .sidebar .custom-slider.precision-mode .custom-slider-thumb {
    background: #f2f2f2;
    border-color: #101010;
    box-shadow: 0 0 0 1px rgba(255,255,255,.7);
}
.noise-page .sidebar .range-value { color: var(--text-muted); font-family: "SF Pro Text", "Segoe UI", sans-serif; }

.noise-page .sidebar .form-row input[type="checkbox"]:checked,
.noise-page .sidebar .header-switch input:checked + .header-switch-slider { background: #f2f2f2; }
.noise-page .sidebar .form-row input[type="checkbox"]:checked::before { background: #151515; }
.noise-page .sidebar .header-switch input:checked + .header-switch-slider:before { background: #151515; }

.noise-page .sidebar .palette-tab.active,
.noise-page .sidebar .mode-btn.active {
    border-color: rgba(242,242,242,.4);
    background: #f2f2f2;
    color: #111113;
}
.noise-page .sidebar .btn-primary { border: 0; background: #fff; color: #000; }
.noise-page .sidebar .btn-primary:hover { background: #e4e4e7; color: #000; }
.noise-page .sidebar .btn-secondary,
.noise-page .sidebar .preset-btn,
.noise-page .sidebar .mode-btn,
.noise-page .sidebar .stop-controls .btn-small,
.noise-page .sidebar .stop-controls-bar .btn-small {
    border-color: var(--border-color);
    background: var(--bg-surface);
    color: var(--text-main);
    border-radius: var(--radius-sm);
}
.noise-page .sidebar .btn-secondary:hover,
.noise-page .sidebar .preset-btn:hover,
.noise-page .sidebar .mode-btn:hover,
.noise-page .sidebar .stop-controls .btn-small:hover,
.noise-page .sidebar .stop-controls-bar .btn-small:hover { background: var(--bg-surface-elevated); border-color: var(--border-color-hover); }
.noise-page .sidebar .rd-options .rd-info,
.noise-page .sidebar .perf-info,
.noise-page .sidebar .slider-hint { color: var(--text-muted); border-left-color: #f2f2f2; background: rgba(255,255,255,.05); }

@media (max-width: 760px) {
    .noise-page .noise-workspace .sidebar { width: min(390px, 92vw); }
}

/* Menus déroulants, boutons et éditeurs : mêmes surfaces et états que les
   panneaux de filtres du site. */
.noise-page .sidebar select,
.noise-page .sidebar .form-row select,
.noise-page .sidebar .interpolation-controls select {
    min-height: 2.15rem;
    padding: .45rem 2rem .45rem .58rem;
    border: 1px solid rgba(242,242,242,.55);
    border-radius: .42rem;
    outline: none;
    background-color: #111113;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23f2f2f2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .62rem center;
    box-shadow: inset 0 1px rgba(255,255,255,.04);
    color: #f2f2f2;
    font: inherit;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.noise-page .sidebar select:hover,
.noise-page .sidebar .interpolation-controls select:hover { border-color: rgba(242,242,242,.88); background-color: #171719; }
.noise-page .sidebar select:focus,
.noise-page .sidebar .interpolation-controls select:focus { border-color: #f2f2f2; box-shadow: 0 0 0 2px rgba(242,242,242,.14); }
.noise-page .sidebar select option,
.noise-page .sidebar .interpolation-controls select option { background: #111113; color: #f2f2f2; }

.noise-page .sidebar .btn-reset {
    padding: .28rem .48rem;
    border-color: var(--border-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
}
.noise-page .sidebar .btn-reset:hover { background: var(--bg-surface-elevated); border-color: var(--border-color-hover); color: #fff; }

.noise-page .sidebar .palette-tabs {
    padding: .22rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #111113;
}
.noise-page .sidebar .palette-tab {
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 650;
}
.noise-page .sidebar .palette-tab:hover { color: #fff; background: var(--bg-surface-elevated); }

.noise-page .sidebar .color-palette,
.noise-page .sidebar .mode-info,
.noise-page .sidebar .nav-info,
.noise-page .sidebar .renewal-section {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.025);
}
.noise-page .sidebar .color-item input[type="color"] {
    border-color: var(--border-color-hover);
    border-radius: var(--radius-sm);
    background: #111113;
}
.noise-page .sidebar .color-add { border-color: var(--border-color-hover); color: var(--text-muted); }
.noise-page .sidebar .color-add:hover { border-color: #f2f2f2; color: #fff; }

.noise-page .sidebar .gradient-bar {
    border-color: var(--border-color-hover);
    border-radius: var(--radius-sm);
}
.noise-page .sidebar .gradient-stop.selected .stop-color-box { border-color: #f2f2f2; box-shadow: 0 0 0 2px rgba(242,242,242,.14); }
.noise-page .sidebar .stop-color-box { border-color: var(--border-color-hover); border-radius: var(--radius-sm); }
.noise-page .sidebar .stop-arrow { border-bottom-color: var(--text-muted); }
.noise-page .sidebar .gradient-stop.selected .stop-arrow,
.noise-page .sidebar .gradient-stop.dragging .stop-arrow { border-bottom-color: #f2f2f2; }

.noise-page .sidebar .presets-order-hint { color: var(--text-muted); }
.noise-page .sidebar .custom-preset-item .preset-handle {
    border-color: var(--border-color);
    background:
        radial-gradient(circle, rgba(242,242,242,0.55) 1px, transparent 1.4px) 4px 6px / 6px 6px repeat-y,
        var(--bg-surface);
}
.noise-page .sidebar .custom-preset-item.drag-over { outline-color: #f2f2f2; }
.noise-page .sidebar .preset-delete {
    border-color: rgba(255,120,120,.28);
    background: transparent;
    color: #ffb0b0;
}
.noise-page .sidebar .preset-delete:hover { background: rgba(239,68,68,.15); border-color: rgba(255,120,120,.65); }
.noise-page .sidebar .save-preset-row { border-top-color: var(--border-color); }
.noise-page .sidebar .presets-title,
.noise-page .sidebar .perf-label,
.noise-page .sidebar .subsection-title,
.noise-page .sidebar .aa-category { color: var(--text-dim); }

.noise-page .sidebar .perf-status {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #111113;
}
.noise-page .sidebar .perf-value { color: #f2f2f2; }
.noise-page .sidebar .separator,
.noise-page .sidebar .subsection-divider,
.noise-page .sidebar .palette-filters-section,
.noise-page .sidebar .color-mode-options { border-color: var(--border-color); }

.noise-page .color-picker-dropdown {
    border-color: rgba(242,242,242,.28);
    border-radius: var(--radius-md);
    background: #111113;
    box-shadow: var(--shadow-lg);
}
.noise-page .color-picker-dropdown .stop-contour-options,
.noise-page .color-picker-dropdown .stop-noise-options { background: rgba(255,255,255,.025); }
.noise-page .color-hex-input { border-color: var(--border-color); border-radius: var(--radius-sm); background: #18181b; color: #f2f2f2; }
.noise-page .color-hex-input:focus { border-color: #f2f2f2; box-shadow: 0 0 0 2px rgba(242,242,242,.14); }



.presets-file-hint {
    margin: 0.35rem 0 0.7rem;
    color: rgba(242, 242, 242, 0.62);
    font-size: 0.75rem;
    line-height: 1.35;
}
