.kitchen-launch {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    border: 1px solid rgba(77, 231, 178, .45);
    border-radius: 999px;
    padding: 12px 18px;
    color: #07130f;
    background: linear-gradient(135deg, #63efc0, #b6ffdc);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .38);
    font: 700 14px/1 system-ui, sans-serif;
    cursor: pointer;
}

.kitchen-editor {
    position: fixed;
    inset: 0;
    z-index: 35;
    overflow: auto;
    padding: 28px;
    color: #eaf5f1;
    background:
        radial-gradient(circle at 75% 5%, rgba(65, 187, 148, .17), transparent 36rem),
        #07100e;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.kitchen-editor[hidden] { display: none; }

.kitchen-editor__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    max-width: 1500px;
    margin: 0 auto 22px;
}

.kitchen-editor__header h2 {
    margin: 4px 0 7px;
    font-size: clamp(28px, 4vw, 48px);
    letter-spacing: -.035em;
}

.kitchen-editor__header p { margin: 0; color: #9db5ad; }
.kitchen-kicker { color: #63efc0 !important; font-size: 12px; font-weight: 800; letter-spacing: .16em; }

.kitchen-close,
.kitchen-views button {
    border: 1px solid #29443a;
    border-radius: 9px;
    padding: 9px 13px;
    color: #cfe0da;
    background: #0d1c18;
    cursor: pointer;
}

.kitchen-grid {
    display: grid;
    grid-template-columns: minmax(320px, .86fr) minmax(420px, 1.45fr);
    gap: 16px;
    max-width: 1500px;
    margin: 0 auto;
}

.kitchen-panel {
    min-width: 0;
    padding: 20px;
    border: 1px solid #213a32;
    border-radius: 16px;
    background: rgba(12, 28, 23, .88);
    box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.kitchen-panel__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.kitchen-panel__title h3 { margin: 0; font-size: 17px; }
.kitchen-panel__title span { color: #73d9b6; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.safe-badge { color: #ffce78 !important; }

.kitchen-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.kitchen-fields label {
    display: grid;
    gap: 6px;
    color: #a9beb7;
    font-size: 12px;
    font-weight: 700;
}

.kitchen-fields input {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #2c4d42;
    border-radius: 9px;
    padding: 10px 11px;
    color: #f4fbf8;
    background: #081511;
    font: inherit;
    font-size: 15px;
}

.kitchen-fields input:focus { outline: 2px solid #48cf9f; outline-offset: 1px; }

.kitchen-exports {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 18px 0;
    border: 0;
    padding: 0;
    color: #b8cac4;
    font-size: 13px;
}

.kitchen-exports legend { margin-bottom: 8px; color: #f4fbf8; font-weight: 750; }
.kitchen-exports label { display: flex; align-items: center; gap: 6px; }

.kitchen-primary {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 13px;
    color: #06110d;
    background: #63efc0;
    font-weight: 850;
    cursor: pointer;
}

.kitchen-primary:disabled { opacity: .55; cursor: wait; }
.kitchen-message { min-height: 2.7em; margin: 12px 0 0; color: #9eb4ac; font-size: 12px; }
.kitchen-message.error { color: #ff9e9e; }
.kitchen-message.success { color: #79edbf; }

.cabinet-scene {
    --kw: 320px;
    --kh: 340px;
    --kd: 120px;
    position: relative;
    width: min(76%, var(--kw));
    height: min(50vh, var(--kh));
    min-height: 300px;
    margin: 22px auto 34px;
    transform-style: preserve-3d;
    transform: rotateX(-12deg) rotateY(28deg);
    transition: transform .25s ease;
}

.cabinet-scene.front { transform: rotateX(0) rotateY(0); }
.cabinet-scene.top { transform: rotateX(-82deg) rotateY(0); }
.cabinet-part { position: absolute; border: 1px solid rgba(141, 255, 213, .3); background: linear-gradient(145deg, #5e8f7d, #284d40); box-shadow: inset 0 0 20px rgba(255,255,255,.05); }
.cabinet-side { top: 0; bottom: 0; width: 18px; }
.cabinet-side.left { left: 0; }
.cabinet-side.right { right: 0; }
.cabinet-bottom { left: 18px; right: 18px; bottom: 0; height: 18px; }
.cabinet-rail { left: 18px; right: 18px; top: 0; height: 18px; }
.cabinet-shelf { left: 18px; right: 18px; top: 50%; height: 10px; background: #3e6c5c; }
.cabinet-back { inset: 14px 18px 18px; background: #18352c; transform: translateZ(-36px); }
.cabinet-door { inset: 3px; opacity: .32; background: #76c7aa; transform: translateZ(16px); }

.kitchen-views { display: flex; justify-content: center; gap: 8px; }
.kitchen-views button.active { border-color: #63efc0; color: #63efc0; }

.kitchen-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0 0;
}

.kitchen-summary div { min-width: 0; padding: 10px; border-radius: 9px; background: #091813; }
.kitchen-summary dt { color: #7f9d93; font-size: 10px; text-transform: uppercase; }
.kitchen-summary dd { overflow: hidden; margin: 5px 0 0; color: #eaf5f1; font-size: 12px; text-overflow: ellipsis; }

.kitchen-table-wrap { overflow-x: auto; }
.kitchen-bom table { width: 100%; border-collapse: collapse; font-size: 12px; }
.kitchen-bom th, .kitchen-bom td { padding: 9px 8px; border-bottom: 1px solid #203b31; text-align: left; white-space: nowrap; }
.kitchen-bom th { color: #78988d; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.kitchen-output ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 0; padding: 0; list-style: none; }
.kitchen-output li { padding: 11px; border-radius: 8px; color: #afc4bd; background: #091813; font-size: 12px; }

@media (max-width: 900px) {
    .kitchen-editor { padding: 18px; }
    .kitchen-grid { grid-template-columns: 1fr; }
    .kitchen-summary { grid-template-columns: repeat(2, 1fr); }
    .kitchen-launch { right: 14px; bottom: 14px; }
}

@media (max-width: 520px) {
    .kitchen-fields { grid-template-columns: 1fr; }
    .kitchen-editor__header { align-items: center; }
}
