/* Isolate the editor from the application's page header/footer and button styles. */
dialog.sc-layout-dialog {
    --sc-editor-accent: var(--main-color, #fb641c);
    --sc-editor-text: #26313e;
    --sc-editor-muted: #78818e;
    --sc-editor-border: #e5e8ed;
    box-sizing: border-box;
    width: min(1120px, calc(100vw - 40px));
    max-width: none;
    height: min(800px, calc(100dvh - 40px));
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid #ffffff99;
    border-radius: 18px;
    background: #fff;
    color: var(--sc-editor-text);
    box-shadow: 0 28px 90px #14213140, 0 4px 16px #1421311a;
    font-family: var(--ruma-font-family, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: normal;
}
dialog.sc-layout-dialog[open] { display: flex; flex-direction: column; }
.sc-layout-dialog::backdrop { background: #14213180; backdrop-filter: blur(3px); }
.sc-layout-dialog *, .sc-layout-dialog *::before, .sc-layout-dialog *::after { box-sizing: border-box; }
.sc-layout-dialog svg { display: block; flex: none; width: 18px; height: 18px; pointer-events: none; }
.sc-layout-dialog button, .sc-layout-dialog select { font: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.sc-layout-dialog button { display: inline-flex; position: relative; align-items: center; justify-content: center; gap: 7px; margin: 0; padding: 9px 13px; border: 1px solid var(--sc-editor-border); border-radius: 8px; background: #fff; box-shadow: none; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.sc-layout-dialog button::before, .sc-layout-dialog button::after { content: none; }
.sc-layout-dialog button:hover:not(:disabled) { background: #f7f8fa; border-color: #cbd2db; }
.sc-layout-dialog button:focus-visible, .sc-layout-dialog select:focus-visible { outline: 3px solid #ff923d66; outline-offset: 2px; }
.sc-layout-dialog button:disabled { opacity: .5; cursor: default; }
.sc-layout-dialog > .sc-layout-header { display: flex; position: static; flex: none; align-items: center; gap: 13px; width: auto; min-height: 88px; margin: 0; padding: 20px 26px; border: 0; border-bottom: 1px solid var(--sc-editor-border); background: #fff; color: inherit; box-shadow: none; }
.sc-layout-title-icon { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border: 1px solid #ffe0ca; border-radius: 12px; background: #fff4eb; color: var(--sc-editor-accent); }
.sc-layout-title-icon svg { width: 22px; height: 22px; }
.sc-layout-dialog .sc-layout-header h2 { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 650; letter-spacing: -.5px; color: inherit; }
.sc-layout-dialog .sc-layout-header p { margin: 3px 0 0; font-size: 12px; color: var(--sc-editor-muted); }
.sc-layout-grid-badge { margin-left: auto; padding: 5px 10px; border: 1px solid var(--sc-editor-border); border-radius: 6px; background: #f8f9fb; color: #667080; font-size: 11px; font-weight: 600; white-space: nowrap; }
.sc-layout-dialog .sc-layout-close { flex: none; width: 32px; height: 32px; padding: 7px; border-color: transparent; color: #78818e; }
.sc-layout-body { display: grid; flex: 1; min-height: 0; grid-template-columns: 224px minmax(0, 1fr); overflow: auto; }
.sc-layout-sidebar { padding: 24px 20px; border-right: 1px solid var(--sc-editor-border); background: #fafbfc; }
.sc-layout-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #697484; font-size: 10px; font-weight: 700; letter-spacing: 1.1px; }
.sc-layout-section-heading > span:last-child:not(:first-child) { color: #a2aab5; font-size: 10px; letter-spacing: 0; font-weight: 500; }
.sc-layout-dialog .sc-layout-hint { margin: 7px 0 18px; color: var(--sc-editor-muted); font-size: 11px; line-height: 1.6; }
.sc-layout-presets { display: grid; gap: 12px; margin: 0; }
.sc-layout-dialog .sc-layout-presets > button { display: flex; min-width: 0; flex-direction: column; align-items: stretch; gap: 9px; padding: 10px; border-radius: 10px; text-align: left; }
.sc-layout-dialog .sc-layout-presets > button[aria-pressed="true"] { border-color: var(--sc-editor-accent); background: #fff; box-shadow: 0 0 0 2px #fb641c12; }
.sc-layout-thumbnail { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(6, 1fr); height: 58px; gap: 3px; padding: 4px; border-radius: 5px; background: #f3f5f8; }
.sc-layout-thumbnail > span { display: flex; align-items: center; justify-content: center; border: 1px solid #dce3ec; border-radius: 3px; background: #e8edf4; color: #7d899b; font-size: 8px; font-weight: 650; }
.sc-layout-thumbnail > [data-preview-frame="tech"] { background: #e3ecfa; border-color: #d4e1f5; color: #6b86af; }
.sc-layout-thumbnail > [data-preview-frame="wait"] { background: #fbefdc; border-color: #f2e4cc; color: #b39562; }
.sc-layout-thumbnail > [data-preview-frame="inservice"] { background: #e2eee8; border-color: #d3e5da; color: #6f9981; }
.sc-layout-thumbnail > [data-preview-frame="pending"] { background: #ede7f4; border-color: #e2d8ee; color: #9a83b4; }
.sc-layout-preset-caption { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; font-weight: 600; }
.sc-layout-preset-check { display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid #dfe3e9; border-radius: 50%; }
.sc-layout-preset-check svg { width: 11px; height: 11px; visibility: hidden; }
[aria-pressed="true"] > .sc-layout-preset-caption > .sc-layout-preset-check { border-color: var(--sc-editor-accent); background: var(--sc-editor-accent); color: #fff; }
[aria-pressed="true"] > .sc-layout-preset-caption > .sc-layout-preset-check svg { visibility: visible; }
.sc-layout-sidebar-note { display: flex; align-items: center; gap: 10px; margin-top: 23px; color: #8d96a3; font-size: 11px; line-height: 1.7; }
.sc-layout-sidebar-note > svg { width: 17px; height: 17px; }
.sc-layout-workspace { min-width: 0; padding: 24px; }
.sc-layout-palette { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.sc-layout-dialog .sc-layout-palette button { padding: 6px 9px; gap: 6px; font-size: 10px; font-weight: 550; touch-action: none; cursor: grab; }
.sc-layout-palette svg { width: 13px; height: 13px; }
.sc-layout-dialog .sc-layout-palette button:disabled { opacity: 1; color: #929ba7; border-color: #edf0f3; background: #f8f9fb; cursor: default; }
.sc-layout-board-wrap { padding: 9px; border: 1px solid #e1e5eb; border-radius: 12px; background: #f5f7fa; }
.sc-layout-board { display: grid; position: relative; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); height: clamp(210px, 40vh, 370px); isolation: isolate; gap: 5px; }
.sc-layout-cell { min-width: 0; min-height: 0; padding: 3px; border: 1px dashed #d4dce6; border-radius: 4px; background: #ffffff77; color: #b4bdc8; font-size: 8px; pointer-events: none; }
.sc-layout-frame { position: relative; z-index: 1; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid #ccd5e1; border-radius: 7px; background: #fff; box-shadow: 0 2px 4px #1e293b06; }
.sc-layout-frame[data-selected="true"] { border-color: var(--sc-editor-accent); background: #fffaf6; box-shadow: 0 0 0 1px var(--sc-editor-accent), 0 3px 8px #fb641c0c; }
.sc-layout-dialog .sc-layout-move { display: flex; width: 100%; height: 100%; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 7px; padding: 13px 26px 16px 12px; border: 0; border-radius: 0; background: transparent; font-size: 12px; font-weight: 600; text-align: left; cursor: grab; touch-action: none; user-select: none; }
.sc-layout-dialog .sc-layout-move:hover:not(:disabled) { background: #f7f9fb88; }
.sc-layout-frame-name { display: flex; align-items: center; gap: 7px; max-width: 100%; }
.sc-layout-frame-name > svg { width: 14px; height: 14px; color: #8593a7; }
.sc-layout-frame-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-layout-move small { padding: 2px 6px; border: 1px solid #e6eaf0; border-radius: 4px; background: #f5f7fa; color: #8792a1; font-size: 9px; font-weight: 500; white-space: nowrap; }
.sc-layout-frame[data-selected="true"] small { border-color: #ffe0ca; background: #fff0e4; color: #cb7739; }
.sc-layout-drag-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #c8d1dd; opacity: .55; }
.sc-layout-drag-mark svg { width: 21px; height: 21px; }
.sc-layout-dialog .sc-layout-remove, .sc-layout-dialog .sc-layout-resize { position: absolute; right: 3px; width: 23px; height: 23px; padding: 5px; border: 0; background: transparent; color: #9aa5b4; }
.sc-layout-dialog .sc-layout-remove svg { width: 12px; height: 12px; }
.sc-layout-dialog .sc-layout-resize svg { width: 18px; height: 18px; }
.sc-layout-remove { top: 3px; }
.sc-layout-dialog .sc-layout-resize { right: 1px; bottom: 1px; cursor: nwse-resize; touch-action: none; }
.sc-layout-ghost { z-index: 2; border: 2px solid #24a17c; border-radius: 6px; background: #24a17c33; pointer-events: none; }
.sc-layout-ghost[data-invalid="true"] { border-color: #dc4747; background: #dc474733; }
.sc-layout-fields { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 13px 14px; border: 1px solid var(--sc-editor-border); border-radius: 9px; background: #fafbfc; }
.sc-layout-selected { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.sc-layout-selected > span { color: #929ba7; font-size: 8px; font-weight: 600; letter-spacing: 1px; }
.sc-layout-selected > strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.sc-layout-dimensions { display: flex; gap: 10px; }
.sc-layout-fields label { display: flex; flex-direction: column; gap: 4px; margin: 0; color: #8792a1; font-size: 9px; }
.sc-layout-fields select { width: 54px; min-height: 29px; padding: 4px 6px; border: 1px solid #dfe4eb; border-radius: 5px; background: #fff; color: #455263; font-size: 11px; }
.sc-layout-dialog .sc-layout-status { min-height: 17px; margin: 10px 1px 0; color: #8a94a3; font-size: 10px; line-height: 1.6; }
.sc-layout-dialog > .sc-layout-footer { display: flex; position: static !important; inset: auto !important; z-index: auto; flex: none; align-items: center; justify-content: space-between; gap: 12px; width: auto; height: auto; min-height: 76px; margin: 0; padding: 16px 24px; border: 0; border-top: 1px solid var(--sc-editor-border); border-radius: 0; background: #fff; color: inherit; box-shadow: none; transform: none; }
.sc-layout-footer-tools, .sc-layout-footer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.sc-layout-dialog .sc-layout-footer-tools > button { padding: 7px 8px; border-color: transparent; background: transparent; color: #8892a0; font-size: 10px; }
.sc-layout-footer-tools svg { width: 13px; height: 13px; }
.sc-layout-dialog .sc-layout-footer-actions > button { min-height: 36px; padding: 8px 15px; font-size: 11px; font-weight: 600; }
.sc-layout-dialog [data-layout-save] { border-color: var(--sc-editor-accent); background: var(--sc-editor-accent); color: #fff; box-shadow: 0 2px 5px #fb641c26; }
.sc-layout-dialog [data-layout-save]:hover:not(:disabled) { border-color: var(--sc-editor-accent); background: var(--sc-editor-accent); filter: brightness(.96); }
.sc-layout-dialog [data-layout-save] svg { width: 15px; height: 15px; }
@media (max-width: 800px) {
    dialog.sc-layout-dialog { width: calc(100vw - 24px); height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); border-radius: 12px; }
    .sc-layout-body { display: block; }
    .sc-layout-sidebar { padding: 16px 20px; border-right: 0; border-bottom: 1px solid var(--sc-editor-border); }
    .sc-layout-sidebar .sc-layout-hint, .sc-layout-sidebar-note { display: none; }
    .sc-layout-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
    .sc-layout-thumbnail { height: 43px; }
    .sc-layout-workspace { padding: 20px; }
    .sc-layout-dialog > .sc-layout-header { min-height: 75px; padding: 16px 20px; }
    .sc-layout-dialog > .sc-layout-footer { padding: 12px 16px; }
}
@media (max-width: 520px) {
    .sc-layout-grid-badge { display: none; }
    .sc-layout-dialog .sc-layout-close { margin-left: auto; }
    .sc-layout-dialog .sc-layout-header h2 { font-size: 18px; }
    .sc-layout-title-icon { width: 35px; height: 35px; }
    .sc-layout-workspace, .sc-layout-sidebar { padding: 14px; }
    .sc-layout-fields { align-items: stretch; flex-direction: column; }
    .sc-layout-dimensions { justify-content: space-between; }
    .sc-layout-preset-caption { font-size: 9px; }
    .sc-layout-preset-check { width: 12px; height: 12px; }
    .sc-layout-dialog .sc-layout-presets > button { padding: 6px; }
    .sc-layout-dialog > .sc-layout-footer { align-items: stretch; flex-direction: column; gap: 8px; }
    .sc-layout-footer-tools { justify-content: center; }
    .sc-layout-footer-actions { justify-content: flex-end; }
    .sc-layout-dialog .sc-layout-move { padding-left: 5px; }
    .sc-layout-frame-name > svg, .sc-layout-drag-mark { display: none; }
}
[data-sc-settings-header] { gap: 8px; }
[data-sc-settings-header]:not([hidden]) { display: flex; align-items: center; }
@media (min-width: 1025px) {
    #salon-center-page-body-id[data-sc-custom-grid] {
        transition: none;
        grid-template-areas: none !important;
        grid-template-columns: var(--sc-live-columns, repeat(12, minmax(0, 1fr))) !important;
        grid-template-rows: var(--sc-live-rows, repeat(6, minmax(0, 1fr))) !important;
    }
    #salon-center-page-body-id[data-sc-custom-grid] > .column-gap {
        grid-area: auto !important;
        grid-column: var(--sc-frame-column) !important;
        grid-row: var(--sc-frame-row) !important;
        width: auto !important;
        height: auto !important;
        min-width: 0;
        min-height: 0;
        max-width: none !important;
    }
    #salon-center-page-body-id[data-sc-custom-grid] > .sc-frame-splitter { display: none !important; }
    #salon-center-page-body-id[data-sc-custom-grid] > .column-gap > .body-append-form { flex: 1; min-height: 0; overflow: auto; }
}
@media (max-width: 600px) {
    .sc-layout-dialog { padding: 12px; }
    .sc-layout-dialog button { font-size: 12px; }
    .sc-layout-palette { gap: 5px; }
    .sc-layout-fields { gap: 8px; }
}

.sc-grid-expand, .sc-grid-splitter { display: none; }
@media (min-width: 1025px) {
    #salon-center-page-body-id[data-sc-custom-grid] > .column-gap.collapsed { min-height: 0 !important; min-width: 0 !important; }
    #salon-center-page-body-id[data-sc-custom-grid] > .sc-grid-splitter { display: block; position: absolute; z-index: 6; touch-action: none; background: transparent; }
    #salon-center-page-body-id[data-sc-custom-grid] > .sc-grid-splitter--columns { width: 10px; cursor: col-resize; }
    #salon-center-page-body-id[data-sc-custom-grid] > .sc-grid-splitter--rows { height: 10px; cursor: row-resize; }
    #salon-center-page-body-id[data-sc-custom-grid] > .sc-grid-splitter::before {
        content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
        background: var(--theme-mode-border, #d5ddd8); pointer-events: none; opacity: 0;
    }
    #salon-center-page-body-id[data-sc-custom-grid] > .sc-grid-splitter--columns::before { width: 2px; height: 100%; }
    #salon-center-page-body-id[data-sc-custom-grid] > .sc-grid-splitter--rows::before { height: 2px; width: 100%; }
    #salon-center-page-body-id[data-sc-custom-grid] > .sc-grid-splitter > .sc-grid-splitter__grip {
        position: absolute; z-index: 1; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center;
        width: 16px; height: 22px; transform: translate(-50%, -50%); font-size: 10px; line-height: 1;
        color: #4b5563; background: var(--theme-mode-bs-200, #fff); border: 1px solid var(--theme-mode-border, #d8dee8);
        border-radius: 8px; box-shadow: 0 1px 4px #0f172a2e; pointer-events: none; opacity: 0;
        transition: opacity .15s ease, color .15s ease, background .15s ease, border-color .15s ease;
    }
    #salon-center-page-body-id[data-sc-custom-grid] > .sc-grid-splitter--rows > .sc-grid-splitter__grip { transform: translate(-50%, -50%) rotate(90deg); }
    #salon-center-page-body-id[data-sc-custom-grid] > .sc-grid-splitter:is(:hover, :focus-visible, .is-dragging)::before { opacity: 1; background: transparent; }
    #salon-center-page-body-id[data-sc-custom-grid] > .sc-grid-splitter:is(:hover, :focus-visible, .is-dragging) > .sc-grid-splitter__grip {
        opacity: 1; color: #fff; background: var(--main-color, #fb641c); border-color: var(--main-color, #fb641c); box-shadow: 0 2px 6px #0f172a33;
    }
    #salon-center-page-body-id[data-sc-custom-grid] > .sc-grid-splitter:focus-visible { outline: 2px solid var(--main-color, #fb641c); }
    #salon-center-page-body-id.is-grid-resizing * { pointer-events: none; }
    #salon-center-page-body-id.is-grid-resizing > .sc-grid-splitter { pointer-events: auto; }
    #salon-center-page-body-id.is-grid-resizing, #salon-center-page-body-id.is-grid-resizing * { user-select: none !important; transition: none !important; }
}

.sc-grid-direction-icon { display: block; }
@media (min-width: 1025px) {
    #salon-center-page-body-id[data-sc-custom-grid] .heading-title > i { display: none !important; }
    #salon-center-page-body-id[data-sc-custom-grid] .sc-grid-direction-icon { display: inline-block; flex: none; width: 16px; height: 16px; border: 0; transform: rotate(calc(var(--sc-collapse-angle) - 135deg)) !important; }
    #salon-center-page-body-id[data-sc-custom-grid] > .column-gap.collapsed .heading-title > .sc-grid-direction-icon { transform: rotate(calc(var(--sc-expand-angle) - 135deg)) !important; }
}

.sc-frame-collapsed-name { display: none; }
@media (min-width: 1025px) {
    #salon-center-page-body-id > .column-gap.collapsed > .header-salon-center > .sc-frame-collapsed-name {
        display: block; flex: none; align-self: center; margin-top: 8px;
        writing-mode: vertical-rl; text-orientation: upright; white-space: nowrap;
        color: var(--main-color, #fb641c); font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: 2px;
    }
    #salon-center-page-body-id[data-sc-custom-grid] > .column-gap.collapsed[data-sc-collapse-axis="rows"] > .header-salon-center > .sc-frame-collapsed-name,
    #salon-center-page-body-id:not([data-sc-custom-grid]):not(.off-tech):not(.off-wait) > .pending-form.collapsed > .header-salon-center > .sc-frame-collapsed-name { display: none; }
}

/* Keep the original live header, filters, counts and options when a frame collapses. */
@media (min-width: 1025px) {
    #salon-center-page-body-id[data-sc-custom-grid] > .column-gap.collapsed { overflow: visible; }
    #salon-center-page-body-id[data-sc-custom-grid] > .column-gap.collapsed > .body-append-form { display: none !important; }
    #salon-center-page-body-id[data-sc-custom-grid] > .column-gap.collapsed > .header-salon-center {
        display: flex !important; flex: 1 1 auto !important; min-height: 0 !important; height: 100% !important;
        border-bottom: 0; box-sizing: border-box;
    }
    #salon-center-page-body-id[data-sc-custom-grid] > .column-gap.collapsed[data-sc-collapse-axis="columns"] > .header-salon-center {
        flex-direction: column !important; align-items: center !important; justify-content: flex-start; gap: 14px; padding: 10px 0 !important;
    }
    #salon-center-page-body-id[data-sc-custom-grid] > .column-gap.collapsed[data-sc-collapse-axis="columns"] .tab-filter-area {
        display: flex !important; flex: 0 0 auto !important; flex-direction: column !important; align-self: center; align-items: center;
        width: 32px !important; gap: 6px; overflow: visible;
    }
    #salon-center-page-body-id[data-sc-custom-grid] > .column-gap.collapsed[data-sc-collapse-axis="columns"] .tab-filter-area > button.btn {
        display: inline-flex; flex: none; justify-content: center; width: 32px !important; height: 32px !important; padding: 0;
    }
    #salon-center-page-body-id[data-sc-custom-grid] > .column-gap.collapsed[data-sc-collapse-axis="columns"] .tab-filter-area > button > :is(.text, .sc-header-short) { display: none !important; }
    #salon-center-page-body-id[data-sc-custom-grid] > .column-gap.collapsed[data-sc-collapse-axis="rows"] > .header-salon-center {
        flex-direction: row !important; align-items: center !important; justify-content: flex-start; gap: 6px; padding: 0 10px !important;
    }
    #salon-center-page-body-id[data-sc-custom-grid] > .column-gap.collapsed[data-sc-collapse-axis="rows"] .heading-title { flex-direction: row !important; }
    #salon-center-page-body-id[data-sc-custom-grid] > .column-gap.collapsed[data-sc-collapse-axis="rows"] .tab-filter-area {
        display: flex !important; flex: 1 1 auto !important; flex-direction: row !important; align-self: stretch; align-items: center;
        width: auto !important; gap: 2px; overflow-x: auto; overflow-y: hidden;
    }
    #salon-center-page-body-id[data-sc-custom-grid] > .column-gap.collapsed[data-sc-collapse-axis="rows"] .tab-filter-area > button.btn {
        display: inline-flex; flex: 0 0 auto; justify-content: flex-start; width: auto !important; height: 100% !important; gap: 6px; padding: 6px 8px 9px;
    }
    #salon-center-page-body-id[data-sc-custom-grid] > .column-gap.collapsed[data-sc-collapse-axis="rows"] .tab-filter-area > button > .text { display: inline !important; }
    #salon-center-page-body-id[data-sc-custom-grid] > .column-gap.collapsed[data-sc-collapse-axis="rows"] .tab-filter-area > button > .sc-header-short { display: none !important; }
    #salon-center-page-body-id[data-sc-custom-grid] > .column-gap.collapsed .action-more { display: block; flex: none; }
}

/* Presets are previews; editing is available only in Custom. */
.sc-layout-dialog:not([data-layout-mode="custom"]) .sc-layout-drag-mark,
.sc-layout-dialog:not([data-layout-mode="custom"]) .sc-layout-remove,
.sc-layout-dialog:not([data-layout-mode="custom"]) .sc-layout-resize { display: none; }
.sc-layout-dialog:not([data-layout-mode="custom"]) .sc-layout-move:disabled { opacity: 1; cursor: default; }
.sc-layout-dialog .sc-layout-custom-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px dashed #d8dfe9; background: #f6f8fb; }
.sc-layout-dialog .sc-layout-custom-preview > svg { width: 20px; height: 20px; color: #8a98ab; }
.sc-layout-dialog .sc-layout-custom-preview > span { border: 0; background: none; font-size: 8px; font-weight: 500; color: #8a98ab; }
.sc-layout-dialog .sc-layout-thumbnail { height: 48px; }
@media (min-width: 521px) and (max-width: 800px) { .sc-layout-presets { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sc-layout-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Clear, readable type and large controls for everyday salon use. */
dialog.sc-layout-dialog { --sc-editor-text: #172b41; --sc-editor-muted: #40536a; --sc-editor-border: #c7d1dd; font-size: 15px; }
.sc-layout-dialog .sc-layout-header h2 { font-size: 24px; font-weight: 750; }
.sc-layout-dialog .sc-layout-header p { font-size: 14px; font-weight: 600; color: #40536a; }
.sc-layout-dialog .sc-layout-grid-badge { font-size: 13px; font-weight: 700; color: #334a63; }
.sc-layout-dialog .sc-layout-section-heading { font-size: 12px; font-weight: 750; letter-spacing: .5px; color: #344b64; }
.sc-layout-dialog .sc-layout-section-heading > span:last-child:not(:first-child) { font-size: 12px; font-weight: 650; color: #40536a; }
.sc-layout-dialog .sc-layout-hint, .sc-layout-dialog .sc-layout-sidebar-note { font-size: 13px; font-weight: 600; color: #40536a; }
.sc-layout-dialog .sc-layout-preset-caption { font-size: 14px; font-weight: 700; }
.sc-layout-dialog .sc-layout-thumbnail { height: 40px; }
.sc-layout-dialog .sc-layout-thumbnail > span { font-size: 11px; font-weight: 750; }
.sc-layout-dialog .sc-layout-custom-preview > span { font-size: 10px; font-weight: 650; color: #40536a; }
.sc-layout-dialog .sc-layout-palette button { min-height: 36px; font-size: 12px; font-weight: 650; padding: 7px 10px; }
.sc-layout-dialog .sc-layout-palette button:disabled { color: #526278; background: #edf1f6; border-color: #d3dce7; }
.sc-layout-dialog .sc-layout-frame-name { font-size: 15px; font-weight: 750; }
.sc-layout-dialog .sc-layout-frame-name > svg { color: #465c76; width: 16px; height: 16px; }
.sc-layout-dialog .sc-layout-move small { font-size: 12px; font-weight: 700; color: #40536a; border-color: #cdd7e3; }
.sc-layout-dialog .sc-layout-frame[data-selected="true"] small { color: #934311; border-color: #f5b98b; }
.sc-layout-dialog .sc-layout-drag-mark { color: #637b98; opacity: 1; }
.sc-layout-dialog .sc-layout-remove, .sc-layout-dialog .sc-layout-resize { color: #465c76; }
.sc-layout-dialog .sc-layout-fields { padding: 14px; gap: 14px; }
.sc-layout-dialog .sc-layout-selected > span { color: #40536a; font-size: 11px; font-weight: 700; letter-spacing: .4px; }
.sc-layout-dialog .sc-layout-selected > strong { font-size: 16px; font-weight: 750; }
.sc-layout-dialog .sc-layout-fields label { color: #344b64; font-size: 13px; font-weight: 700; gap: 6px; }
.sc-layout-dialog .sc-layout-dimensions { gap: 10px; }
.sc-layout-dialog .sc-layout-number-select { justify-content: space-between; width: 70px; min-height: 44px; padding: 8px 10px; border: 1px solid #aab9cb; border-radius: 7px; background: #fff; color: #172b41; font-size: 18px; font-weight: 750; }
.sc-layout-dialog .sc-layout-number-select > svg { width: 16px; height: 16px; }
.sc-layout-dialog .sc-layout-number-select[aria-expanded="true"] { border-color: var(--sc-editor-accent); box-shadow: 0 0 0 3px #fb641c26; }
.sc-layout-dialog .sc-layout-number-select:disabled { opacity: 1; color: #526278; background: #eaf0f6; border-color: #ccd7e3; }
.sc-layout-dialog .sc-layout-status { color: #40536a; font-size: 13px; font-weight: 600; }
.sc-layout-dialog .sc-layout-footer-tools > button { font-size: 13px; font-weight: 650; color: #344b64; min-height: 40px; }
.sc-layout-dialog .sc-layout-footer-actions > button { font-size: 15px; font-weight: 750; min-height: 44px; padding: 9px 17px; }
.sc-layout-dialog .sc-layout-footer-tools > button:disabled { opacity: 1; color: #65748a; }
.sc-layout-dialog button:focus-visible { outline: 3px solid #e65f13; outline-offset: 2px; }
.sc-layout-dialog .sc-layout-number-picker { display: block; position: absolute; z-index: 40; width: 254px; padding: 14px; border: 1px solid #aab9cb; border-radius: 12px; background: #fff; box-shadow: 0 10px 32px #172b4133, 0 2px 6px #172b4114; color: #172b41; }
.sc-layout-picker-title { display: flex; align-items: flex-start; flex-direction: column; gap: 2px; margin-bottom: 12px; font-size: 16px; font-weight: 750; }
.sc-layout-picker-title > span { color: #40536a; font-size: 12px; font-weight: 600; }
.sc-layout-number-options { display: grid; grid-template-columns: repeat(var(--sc-number-columns), minmax(0, 1fr)); gap: 7px; }
.sc-layout-dialog .sc-layout-number-options > button { display: flex; min-width: 0; min-height: 44px; padding: 6px; border: 1px solid #c3cedc; border-radius: 7px; color: #172b41; background: #fff; font-size: 18px; font-weight: 750; }
.sc-layout-dialog .sc-layout-number-options > button[aria-selected="true"] { background: #fff0e4; color: #883708; border: 2px solid var(--sc-editor-accent); }
.sc-layout-dialog .sc-layout-number-options > button:hover { border-color: var(--sc-editor-accent); background: #fff4eb; }
@media (min-width: 801px) {
    .sc-layout-dialog .sc-layout-workspace { display: flex; flex-direction: column; }
    .sc-layout-dialog .sc-layout-board-wrap { display: flex; flex: 1; min-height: 220px; }
    .sc-layout-dialog .sc-layout-board { flex: 1; height: auto; min-height: 200px; }
}
@media (max-width: 520px) {
    .sc-layout-dialog .sc-layout-header h2 { font-size: 21px; }
    .sc-layout-dialog .sc-layout-header p { font-size: 13px; }
    .sc-layout-dialog .sc-layout-frame-name { font-size: 13px; }
    .sc-layout-dialog .sc-layout-number-select { width: 64px; }
    .sc-layout-dialog .sc-layout-fields { padding: 11px; }
    .sc-layout-dialog .sc-layout-preset-caption { font-size: 13px; }
    .sc-layout-dialog .sc-layout-footer-tools { gap: 2px; }
    .sc-layout-dialog .sc-layout-footer-tools > button { font-size: 12px; padding: 6px; }
}
.sc-layout-dialog .sc-layout-thumbnail > span { color: #344b64; }
@media (min-width: 801px) {
    .sc-layout-dialog .sc-layout-board-wrap { flex: 1 0 auto; height: clamp(240px, 33vh, 330px); }
    .sc-layout-dialog .sc-layout-board { height: 100%; min-height: 0; }
}
.sc-layout-dialog [data-layout-save]:disabled { opacity: 1; border-color: #bbc8d8; background: #e5ebf2; color: #40536a; box-shadow: none; }
.sc-layout-dialog .sc-layout-close { color: #40536a; }
