/* GConfig v2 — minimalist green wizard */

:root {

    --green: #1a6b2f;

    --green-light: #2d9348;

    --green-pale: #e8f5e9;

    --green-muted: rgba(26, 107, 47, 0.08);

    --bg: #f4f7f6;

    --panel: #ffffff;

    --text: #2c2c2c;

    --muted: #6b7280;

    --border: #e2e8e4;

    --shadow: 0 4px 20px rgba(26, 107, 47, 0.08);

    --radius: 12px;

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    --price-fill: #fff8ef;

    --price-border: #e0b88a;

}



*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }



html, body {

    height: 100%;

    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;

    background: var(--bg);

    color: var(--text);

    overflow: hidden;

}



.hidden-iframe {

    position: fixed;

    left: -9999px;

    top: 0;

    width: 1280px;

    height: 800px;

    opacity: 0;

    pointer-events: none;

    border: 0;

}



.hidden { display: none !important; }



.app-shell {

    display: flex;

    flex-direction: column;

    height: 100vh;

    height: 100dvh;

}



/* Top bar */

.top-bar {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding: 10px 20px;

    background: var(--panel);

    border-bottom: 1px solid var(--border);

    flex-shrink: 0;

    z-index: 10;

}



.top-bar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.version-toggle {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 6px 14px;

    border-radius: 8px;

    border: 1px solid var(--border);

    background: var(--bg);

    color: var(--green);

    font-size: 0.85rem;

    font-weight: 600;

    text-decoration: none;

    transition: background var(--transition), border-color var(--transition);

}

.version-toggle:hover {

    background: var(--green-pale);

    border-color: var(--green-light);

}



.brand {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    font-size: 1.15rem;

    font-weight: 700;

    color: var(--green);

    letter-spacing: -0.02em;

}

.brand-logo {

    letter-spacing: inherit;

}

.brand-version {

    font-size: 0.7rem;

    font-weight: 600;

    background: var(--green-pale);

    padding: 2px 8px;

    border-radius: 999px;

    vertical-align: middle;

    color: var(--green);

}



.top-actions {

    display: flex;

    align-items: center;

    gap: 8px;

    flex-shrink: 0;

}



/* Slide toggles (welcome-style) */

.slide-toggle {

    position: relative;

    display: inline-flex;

    align-items: stretch;

    flex-shrink: 0;

    border: 2px solid var(--green);

    border-radius: 8px;

    background: var(--panel);

    overflow: hidden;

}



.slide-toggle-thumb {

    position: absolute;

    top: 0;

    bottom: 0;

    left: 0;

    width: 50%;

    background: var(--green);

    border-radius: 6px;

    transform: translateX(0);

    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    z-index: 0;

    pointer-events: none;

}



.slide-toggle[data-active="1"] .slide-toggle-thumb {

    transform: translateX(100%);

}



.slide-toggle-btn {

    position: relative;

    z-index: 1;

    flex: 1 1 0;

    min-width: 42px;

    border: none;

    background: transparent;

    padding: 6px 12px;

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 0.06em;

    text-transform: uppercase;

    cursor: pointer;

    color: var(--green);

    transition: color 0.2s;

    white-space: nowrap;

    font-family: inherit;

}



.slide-toggle-btn.active { color: #fff; }

.slide-toggle-btn:hover:not(.active) { color: var(--green-light); }

.slide-toggle--lang .slide-toggle-btn { min-width: 36px; }



.lang-toggle {

    display: flex;

    border: 1px solid var(--border);

    border-radius: 8px;

    overflow: hidden;

}

.lang-toggle button {

    padding: 6px 12px;

    border: none;

    background: transparent;

    font-size: 0.8rem;

    font-weight: 600;

    cursor: pointer;

    color: var(--muted);

    transition: background var(--transition), color var(--transition);

}

.lang-toggle button.active {

    background: var(--green);

    color: #fff;

}



/* Main layout */

.workspace {

    display: grid;

    grid-template-columns: minmax(300px, 380px) minmax(280px, 1fr);

    flex: 1;

    min-height: 0;

    overflow: hidden;

}



.workspace.has-3d {

    grid-template-columns: minmax(300px, 380px) minmax(400px, 1fr);

}



/* Preview + 3D split (second workspace column) */

.preview-3d-split {

    display: flex;

    flex-direction: column;

    align-items: stretch;

    min-width: 0;

    min-height: 0;

    overflow: hidden;

}



.preview-3d-top-bar {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding: 14px 16px 8px;

    flex-shrink: 0;

    min-height: 48px;

}



.preview-3d-top-bar-left {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    flex: 1 1 auto;

    min-width: 0;

}



.preview-3d-top-bar-right {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 8px;

    flex-wrap: wrap;

    flex: 1 1 auto;

    min-width: 0;

}



.preview-3d-top-bar-right[hidden] {

    display: none !important;

}



.preview-3d-body {

    display: flex;

    flex-direction: row;

    align-items: stretch;

    flex: 1 1 auto;

    min-width: 0;

    min-height: 0;

    overflow: hidden;

}



.preview-3d-split.is-3d-active .preview-3d-body .preview-panel {

    flex: 0 0 auto;

    width: calc(var(--preview-3d-ratio, 0.55) * (100% - 8px));

    max-width: calc(100% - 228px);

    min-width: 200px;

}



.preview-3d-split.is-3d-active .preview-3d-body .furniture-3d-panel {

    flex: 1 1 0;

    min-width: 220px;

}



.preview-3d-resizer {

    flex: 0 0 8px;

    width: 8px;

    position: relative;

    touch-action: none;

    user-select: none;

    cursor: col-resize;

    background: var(--border);

    z-index: 2;

}



.preview-3d-resizer[hidden] {

    display: none !important;

}



.preview-3d-resizer::before {

    content: '';

    position: absolute;

    left: 50%;

    top: 50%;

    transform: translate(-50%, -50%);

    width: 3px;

    height: 44px;

    border-radius: 2px;

    background: var(--green);

    opacity: 0.4;

    transition: height 0.15s ease, opacity 0.15s ease;

}



.preview-3d-resizer:hover::before,
.preview-3d-resizer.is-active::before,
.preview-3d-resizer:focus-visible::before {

    opacity: 1;

    height: 64px;

}



body.is-preview-3d-resizing,
body.is-preview-3d-resizing * {

    cursor: col-resize !important;

    user-select: none !important;

}



/* 3D preview column */

.furniture-3d-panel {

    display: flex;

    flex-direction: column;

    position: relative;

    min-height: 0;

    background: var(--panel);

    border-left: none;

}



.furniture-3d-panel[hidden] {

    display: none !important;

}



.furniture-3d-header {

    display: flex;

    align-items: center;

    justify-content: flex-start;

    padding: 14px 16px 8px;

    flex-shrink: 0;

    gap: 8px;

}



.furniture-3d-header-actions {

    display: flex;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;

    justify-content: flex-start;

    width: 100%;

}



.furniture-3d-dims-label {

    font-size: 0.72rem;

    color: var(--text-muted, #667);

    white-space: nowrap;

}



.slide-toggle--compact .slide-toggle-btn {

    min-width: 52px;

    padding: 0 10px;

    font-size: 0.72rem;

}



#toggle3dDims .slide-toggle-btn {

    min-width: 2.6rem;

}



.furniture-3d-header h2 {

    font-size: 0.95rem;

    color: var(--green);

    font-weight: 600;

    margin: 0;

}



.furniture-3d-expand {

    border: 1px solid var(--border);

    background: var(--bg);

    color: var(--text);

    border-radius: 8px;

    width: 32px;

    height: 32px;

    cursor: pointer;

    font-size: 0.85rem;

    line-height: 1;

}



.furniture-3d-grain {

    border: 1px solid var(--border);

    background: var(--bg);

    color: var(--text);

    border-radius: 8px;

    min-width: 40px;

    height: 32px;

    padding: 0 8px;

    cursor: pointer;

    font-size: 0.82rem;

    line-height: 1;

}


.furniture-3d-mode {

    border: 1px solid rgba(45, 106, 79, 0.45);

    background: transparent;

    color: var(--green);

    border-radius: 8px;

    min-width: 0;

    max-width: 100%;

    height: 32px;

    padding: 0 10px;

    cursor: pointer;

    font-size: 0.58rem;

    line-height: 1;

    font-weight: 700;

    letter-spacing: 0.05em;

    text-transform: uppercase;

    white-space: nowrap;

    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;

}


.furniture-3d-mode.is-active,
.furniture-3d-mode.is-grain,
.furniture-3d-mode.is-scale {

    border-color: var(--green);

    color: #fff;

    background: var(--green);

    box-shadow: 0 0 14px rgba(45, 106, 79, 0.45);

}


.furniture-3d-mode:hover:not(:disabled) {

    border-color: var(--green);

    color: var(--green-light);

}


.furniture-3d-grain:hover {

    border-color: var(--green);

    color: var(--green);

}



.furniture-3d-grain:disabled,
.furniture-3d-mode:disabled {

    opacity: 0.35;

    cursor: not-allowed;

    pointer-events: none;

}


.furniture-3d-expand:hover {

    border-color: var(--green);

    color: var(--green);

}



#furniture-3d {

    flex: 1;

    min-height: 180px;

    position: relative;

    overflow: hidden;

}



#furniture-3d canvas {

    display: block;

    width: 100% !important;

    height: 100% !important;

}

.furniture-3d-note {

    position: absolute;

    top: 10px;

    right: 12px;

    margin: 0;

    padding: 6px 10px;

    font-size: 0.72rem;

    line-height: 1.35;

    color: #ff6b6b;

    text-align: right;

    border: 1px solid rgba(255, 70, 70, 0.6);

    border-radius: 8px;

    background: rgba(40, 6, 6, 0.65);

    box-shadow: 0 0 14px rgba(255, 60, 60, 0.18);

    opacity: 0.9;

    pointer-events: none;

    z-index: 3;

}



.furniture-3d-modal {

    position: fixed;

    inset: 0;

    z-index: 1900;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 12px;

}



.furniture-3d-modal[hidden] {

    display: none !important;

}



.furniture-3d-modal-backdrop {

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.55);

}



.furniture-3d-modal-body {

    position: relative;

    width: min(960px, 100%);

    height: min(72vh, 640px);

    background: var(--panel);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    overflow: hidden;

}



.furniture-3d-modal-close {

    position: absolute;

    top: 8px;

    right: 8px;

    z-index: 2;

    border: none;

    background: rgba(0, 0, 0, 0.35);

    color: #fff;

    width: 32px;

    height: 32px;

    border-radius: 8px;

    cursor: pointer;

}



#furniture-3d-modal-host {

    width: 100%;

    height: 100%;

}



/* Wizard panel */

.wizard-panel {

    display: flex;

    flex-direction: column;

    background: var(--panel);

    border-right: 1px solid var(--border);

    min-height: 0;

    overflow: hidden;

}



/* Stepper */

.stepper {

    display: flex;

    padding: 16px 16px 0;

    gap: 4px;

    flex-shrink: 0;

    background: var(--panel);

}

.stepper-item {

    flex: 1;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 6px;

    cursor: pointer;

    padding: 4px 2px;

    border: none;

    background: none;

    font-family: inherit;

}

.stepper-dot {

    width: 28px;

    height: 28px;

    border-radius: 50%;

    border: 2px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 0.75rem;

    font-weight: 700;

    color: var(--muted);

    transition: all var(--transition);

}

.stepper-label {

    font-size: 0.65rem;

    color: var(--muted);

    text-align: center;

    line-height: 1.2;

    max-width: 72px;

    transition: color var(--transition);

}

.stepper-item.active .stepper-dot,

.stepper-item.done .stepper-dot {

    border-color: var(--green);

    background: var(--green);

    color: #fff;

}

.stepper-item.active .stepper-label { color: var(--green); font-weight: 600; }

.stepper-item.done .stepper-dot { background: var(--green-light); }

.stepper-item.done .stepper-dot::after {
    content: '✓';
    font-size: 0.7rem;
}

.stepper-item.done .stepper-dot {
    font-size: 0;
}

/* Wizard progress */
.wizard-progress {
    padding: 8px 20px 12px;
    flex-shrink: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
}

.wizard-progress-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
}

.wizard-progress-track {
    height: 4px;
    background: var(--green-muted);
    border-radius: 999px;
    overflow: hidden;
}

.wizard-progress-fill {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--green), var(--green-light));
    border-radius: 999px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-step-title {
    display: none;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green);
}

.field-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.35;
}

:focus-visible {
    outline: 2px solid var(--green-light);
    outline-offset: 2px;
}

.lang-toggle button:focus-visible,
.hw-chip:focus-visible,
.stepper-item:focus-visible,
.slide-toggle-btn:focus-visible {
    outline: 2px solid var(--green-light);
    outline-offset: 2px;
}



/* Step content */

.wizard-body {

    flex: 1;

    overflow-y: auto;

    padding: 16px 20px 12px;

    scroll-behavior: smooth;

}



.wizard-step {

    display: none;

    opacity: 0;

    transform: translateY(10px);

    transition: opacity 0.35s ease, transform 0.35s ease;

}

.wizard-step.active {

    display: block;

    opacity: 1;

    transform: translateY(0);

    animation: fadeSlideIn 0.35s ease;

}



@keyframes fadeSlideIn {

    from { opacity: 0; transform: translateY(8px); }

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

}



.step-title {

    font-size: 1.05rem;

    font-weight: 700;

    color: var(--green);

    margin-bottom: 4px;

}

.step-desc {

    font-size: 0.82rem;

    color: var(--muted);

    margin-bottom: 16px;

    line-height: 1.45;

}



.wizard-v1-link {

    margin-top: 8px;

    font-size: 0.82rem;

}

.wizard-v1-link a {

    color: var(--green);

    font-weight: 600;

    text-decoration: none;

}

.wizard-v1-link a:hover { text-decoration: underline; }



/* Cards & fields */

.card {

    background: var(--bg);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 14px 16px;

    margin-bottom: 12px;

    transition: box-shadow var(--transition);

}

.card:hover {
    box-shadow: var(--shadow);
}

.card:focus-within {
    box-shadow: 0 0 0 2px rgba(26, 107, 47, 0.15);
}

.card h3 {

    font-size: 0.8rem;

    text-transform: uppercase;

    letter-spacing: 0.04em;

    color: var(--green);

    margin-bottom: 12px;

    padding-bottom: 8px;

    border-bottom: 1px solid var(--border);

}



.field-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px 12px;

}

.field-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.field.full { grid-column: 1 / -1; }



.field label {

    display: block;

    font-size: 0.78rem;

    color: var(--muted);

    margin-bottom: 4px;

}

.field input[type="number"],

.field input[type="text"],

.field select {

    width: 100%;

    padding: 8px 10px;

    border: 1px solid var(--border);

    border-radius: 8px;

    font-size: 0.9rem;

    background: var(--panel);

    color: var(--text);

    transition: border-color var(--transition), box-shadow var(--transition);

}

.field input:focus,

.field select:focus {

    outline: none;

    border-color: var(--green-light);

    box-shadow: 0 0 0 3px var(--green-muted);

}



.countertop-fields.hidden { display: none; }

.shelf-spacing-block {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
}
.shelf-spacing-block > label {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 6px;
}
.range-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.range-row input[type="range"] {
    flex: 1;
    accent-color: var(--green);
}
.spacing-val {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--green);
    min-width: 64px;
    text-align: right;
}



.drawer-fields { display: none; }

.drawer-fields.visible,
.card.drawer-fields.visible { display: block; }

.section-disabled {
    opacity: 0.38;
    pointer-events: none;
    user-select: none;
}

.field-hint--drawer-warn {
    color: #e8a020;
    font-size: 0.82em;
    margin: 4px 0 6px;
}

.drawer-auto-label {
    display: block;
    font-size: 0.82em;
    margin-top: 4px;
    min-height: 1.2em;
    transition: color 0.2s;
}
.drawer-auto-label[data-state="ok"]   { color: #16a34a; }
.drawer-auto-label[data-state="warn"] { color: #dc2626; }

.drawer-type-rows {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drawer-type-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-type-label {
    font-size: 0.82em;
    min-width: 62px;
    color: var(--text-secondary, #888);
    flex-shrink: 0;
}

.drawer-type-rows .hw-chips {
    gap: 4px;
}

.drawer-type-rows .hw-chip {
    padding: 3px 10px;
    font-size: 0.78em;
}



.back-fit-row {

    margin-top: 12px;

}

.back-fit-row > label {

    display: block;

    font-size: 0.78rem;

    color: var(--muted);

    margin-bottom: 6px;

}



.gas-hint {

    display: none;

    margin-top: 10px;

    font-size: 0.78rem;

    color: var(--muted);

    font-style: italic;

    line-height: 1.4;

}

.gas-hint.visible { display: block; }



/* Mode toggle */

.mode-toggle {

    display: flex;

    gap: 8px;

    margin-bottom: 14px;

}

.mode-toggle button {

    flex: 1;

    padding: 10px;

    border: 2px solid var(--border);

    border-radius: 10px;

    background: var(--panel);

    font-weight: 600;

    font-size: 0.88rem;

    cursor: pointer;

    transition: all var(--transition);

}

.mode-toggle button.active {

    border-color: var(--green);

    background: var(--green-pale);

    color: var(--green);

}



/* Hardware chips */

.hw-group { margin-bottom: 10px; }

.hw-group > label {

    display: block;

    font-size: 0.78rem;

    color: var(--muted);

    margin-bottom: 6px;

}

.hw-chips {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;

}

.hw-chip {

    padding: 6px 12px;

    border-radius: 999px;

    border: 1px solid var(--border);

    background: var(--panel);

    font-size: 0.8rem;

    cursor: pointer;

    transition: all var(--transition);

}

.hw-chip.active {

    background: var(--green);

    border-color: var(--green);

    color: #fff;

}



.checkbox-field {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 8px 0;

}

.checkbox-field input { width: auto; accent-color: var(--green); }

.checkbox-field span { font-size: 0.88rem; }



.beds-only { display: none; }

.beds-mode .closets-only { display: none !important; }

.beds-mode .beds-only { display: block; }

.beds-mode .stepper-item[data-step="2"],
.beds-mode .stepper-item[data-step="3"] { display: none !important; }



/* Wizard nav */

.wizard-nav {

    display: flex;

    gap: 10px;

    padding: 12px 20px 16px;

    border-top: 1px solid var(--border);

    flex-shrink: 0;

    background: var(--panel);

}

.wizard-nav button {

    flex: 1;

    padding: 11px 16px;

    border-radius: 10px;

    font-size: 0.9rem;

    font-weight: 600;

    cursor: pointer;

    border: none;

    transition: transform 0.15s, background var(--transition);

}

.wizard-nav button:active { transform: scale(0.98); }

.btn-back {

    background: var(--bg);

    color: var(--text);

    border: 1px solid var(--border) !important;

}

.btn-back:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-next {

    background: var(--green);

    color: #fff;

}

.btn-next:hover { background: var(--green-light); }



/* Preview panel */

.preview-panel {

    display: flex;

    flex-direction: column;

    flex: 1 1 auto;

    min-width: 0;

    min-height: 0;

    background: linear-gradient(180deg, #fafcfb 0%, var(--bg) 100%);

    overflow: hidden;

}



.preview-header-title {

    margin: 0;

    font-size: 0.95rem;

    color: var(--green);

    font-weight: 600;

    flex-shrink: 0;

}



.preview-header-actions {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;

}

.preview-header-actions--model-cta {

    padding: 4px 8px;

    border-radius: 10px;

    border: 1px solid rgba(0, 214, 153, 0.38);

    background: linear-gradient(135deg, rgba(0, 214, 153, 0.08), rgba(0, 157, 255, 0.08));

    box-shadow: 0 0 10px rgba(0, 214, 153, 0.16);

}

.preview-header-actions--model-cta .preview-3d-toggle-label {

    font-weight: 700;

    letter-spacing: 0.11em;

}

.preview-header-actions--model-cta .slide-toggle--3d {

    box-shadow: 0 0 0 1px rgba(0, 214, 153, 0.28), 0 0 12px rgba(0, 214, 153, 0.2);

}



.preview-3d-toggle-label {

    font-size: 0.75rem;

    color: var(--text-muted, #666);

    white-space: nowrap;

}



.slide-toggle--3d .slide-toggle-btn {

    min-width: 36px;

    font-size: 0.68rem;

    padding: 0 8px;

}



.preview-canvas-wrap {

    flex: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 12px 20px 8px;

    min-height: 0;

    overflow: auto;

}

.preview-canvas-wrap canvas {

    max-width: 100%;

    max-height: 100%;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    background: #fff;

}



.preview-dock {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 12px 16px;

    padding: 8px 20px 12px;

    flex-shrink: 0;

    border-top: 1px solid var(--border);

}



.preview-meta {

    flex: 1 1 auto;

    min-width: 0;

    margin: 0;

    padding: 0;

    font-size: 0.8rem;

    color: var(--muted);

    text-align: center;

}



/* Price mirror — always visible, v1 beige styling */

.price-mirror-wrap {

    display: flex;

    flex-direction: column;

    flex: 0 0 auto;

    margin-left: auto;

    max-width: min(100%, 320px);

    overflow-y: auto;

    flex-shrink: 0;

}

.price-mirror-wrap .price-summary {

    --price-fill: #fff8ef;

    background: var(--price-fill);

    border: 1px solid var(--price-border);

    border-radius: 8px;

    padding: 14px 18px;

    font-size: 0.85rem;

    width: fit-content;

    max-width: 100%;

}

.price-mirror-wrap .price-summary h4 {

    margin: 0 0 10px 0;

    color: #9a5b12;

    font-size: 1em;

}

.price-mirror-wrap table {

    margin: 0;

    font-size: 0.82rem;

    width: auto;

    border-collapse: collapse;

    background: var(--price-fill);

}

.price-mirror-wrap tbody,

.price-mirror-wrap tr,

.price-mirror-wrap tr:nth-child(even),

.price-mirror-wrap tr:nth-child(odd) {

    background: var(--price-fill) !important;

}

.price-mirror-wrap th,

.price-mirror-wrap td {

    border: none !important;

    padding: 4px 0;

    text-align: left;

    background: var(--price-fill) !important;

}

.price-mirror-wrap .price-label {

    text-align: left;

    font-weight: normal;

    color: #6b4423;

    padding-right: 12px;

    white-space: nowrap;

}

.price-mirror-wrap .price-value {

    text-align: right;

    white-space: nowrap;

    color: #333;

    padding-left: 4px;

}

.price-mirror-wrap .price-total-row .price-label,

.price-mirror-wrap .price-total-row .price-value {

    padding-top: 10px;

    font-weight: 600;

    color: #7a3e00;

    border-top: 1px solid var(--price-border);

}

.price-mirror-wrap .price-total-row .price-value {

    font-size: 1.15em;

    font-weight: 700;

}

.price-mirror-wrap .price-meta {

    margin-top: 8px;

    font-size: 0.85em;

    color: #8a6a4a;

}

.price-mirror-wrap.is-loading .price-meta,

.price-mirror-wrap .price-summary.is-loading .price-meta {

    color: #9a5b12;

}

.price-mirror-wrap.is-error .price-meta,

.price-mirror-wrap .price-summary.is-error .price-meta {

    color: #b94a48;

}



/* Export actions */

.export-actions {

    display: none;

    gap: 8px;

    padding: 0 20px 20px;

    flex-shrink: 0;

}

.export-actions.visible {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

}

.export-actions button {

    padding: 10px 8px;

    border: none;

    border-radius: 10px;

    font-size: 0.78rem;

    font-weight: 600;

    cursor: pointer;

    color: #fff;

    transition: background var(--transition), transform 0.15s;

}

.export-actions button:hover { filter: brightness(1.08); }

.export-actions button:active { transform: scale(0.97); }

.btn-pdf { background: #374151; }

.btn-excel { background: #06642a; }

.btn-order { background: var(--green); }



.loading-overlay {

    position: fixed;

    inset: 0;

    background: rgba(244, 247, 246, 0.92);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 12px;

    z-index: 100;

    transition: opacity 0.4s;

}

.loading-overlay.hidden {

    opacity: 0;

    pointer-events: none;

}

.spinner {

    width: 40px;

    height: 40px;

    border: 3px solid var(--border);

    border-top-color: var(--green);

    border-radius: 50%;

    animation: spin 0.8s linear infinite;

}

@keyframes spin { to { transform: rotate(360deg); } }



@media (max-width: 900px) {

    .furniture-3d-expand {

        display: inline-flex;

        align-items: center;

        justify-content: center;

    }

    html, body { overflow: auto; }

    .app-shell { height: auto; min-height: 100dvh; overflow: visible; }

    .workspace,
    .workspace.has-3d {

        grid-template-columns: 1fr;

        grid-template-rows: auto auto auto;

        overflow: visible;

    }

    .preview-3d-split {

        order: 1;

    }

    .preview-3d-top-bar {

        flex-wrap: wrap;

        padding: 12px 14px 8px;

    }

    .preview-3d-top-bar-left,
    .preview-3d-top-bar-right {

        flex: 1 1 100%;

        justify-content: flex-start;

    }

    .preview-3d-body {

        flex-direction: column;

    }

    .preview-3d-split.is-3d-active .preview-3d-body .preview-panel {

        width: auto !important;

        max-width: none;

        flex: 1 1 auto;

    }

    .preview-3d-resizer {

        display: none !important;

    }

    .preview-panel {

        min-height: 42vh;

    }

    .furniture-3d-panel {

        min-height: 52vh;

        border-left: none;

        border-bottom: 1px solid var(--border);

    }

    #furniture-3d {
        min-height: 46vh;
    }

    .wizard-panel {

        border-right: none;

        border-top: 1px solid var(--border);

        max-height: none;

        order: 3;

        overflow: visible;

    }

    .stepper {

        position: sticky;

        top: 0;

        z-index: 5;

        box-shadow: 0 2px 8px rgba(0,0,0,0.06);

    }

    .stepper-label { display: none; }

    .mobile-step-title { display: block; }

    .wizard-progress-label { display: none; }

    .wizard-nav {
        position: sticky;
        bottom: 0;
        z-index: 6;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    }

    .wizard-body { padding-bottom: 8px; }

    .export-actions.visible { display: none; }

    body.mobile-last-step .export-actions.visible {
        display: grid;
        grid-template-columns: 1fr;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
        z-index: 40;
        padding: 0;
        gap: 8px;
    }

    body.mobile-last-step .export-actions.visible button {
        min-height: 46px;
    }

    .preview-dock {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .preview-meta { order: 1; }

    .price-mirror-wrap {
        order: 2;
        margin-left: 0;
        align-self: flex-end;
        max-width: 100%;
    }

}



@media (min-width: 901px) {

    .furniture-3d-expand { display: none; }

}



@media (max-width: 480px) {

    .field-grid { grid-template-columns: 1fr; }

    .top-bar { padding: 8px 12px; }

    .brand { font-size: 1rem; }

}

/* ── Order modal (v2 shell) ─────────────────────────────── */
.v2-send-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.45);
}

.v2-send-modal-overlay[hidden] { display: none; }

.v2-send-modal {
    position: relative;
    width: min(420px, 95vw);
    padding: 28px 32px;
    border-radius: 10px;
    background: var(--panel-bg, #fff);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.v2-send-modal h3 {
    margin: 0 0 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg, #eee);
    color: var(--green, #1a7f37);
    font-size: 1.2em;
}

.v2-send-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: none;
    color: #999;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.v2-send-modal-close:hover { color: #333; }

.v2-sm-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 0.9em;
}

.v2-sm-field label { font-weight: 600; color: #444; }

.v2-sm-field input,
.v2-sm-field textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font: inherit;
    font-size: 0.95em;
}

.v2-sm-field textarea { min-height: 70px; resize: vertical; }

.v2-sm-hint {
    margin: 8px 0 0;
    color: #888;
    font-size: 0.8em;
}

.v2-sm-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.v2-sm-actions button {
    flex: 1;
    margin: 0;
    padding: 8px 10px;
    font-size: 13px;
}

.v2-sm-actions .btn-cancel {
    background: #aaa;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.v2-sm-actions .btn-cancel:hover { background: #888; }

.v2-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 2100;
    max-width: min(90vw, 420px);
    padding: 12px 18px;
    border-radius: 8px;
    background: var(--green, #1a7f37);
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.25s, transform 0.25s;
}

.v2-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.v2-toast.error { background: #c0392b; }


