﻿.checklist-editor-dialog {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checklist-editor-dialog .dialog-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.checklist-editor-dialog .dialog-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.checklist-editor-dialog .dialog-copy {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

.ai-format-prompt-input,
.ai-format-editor,
.checklist-title-input,
.checklist-richtext {
    width: 100%;
}

.ai-format-prompt-input {
    min-height: 120px;
}

.ai-format-editor,
.checklist-richtext {
    min-height: 200px;
}

.ai-format-action,
.richtext-action {
    margin-top: 0.5rem;
}

.recipe-translation-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recipe-translation-panel__header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recipe-translation-panel__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.recipe-translation-panel__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.recipe-translation-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.recipe-translation-status--completed {
    background: #dcfce7;
    color: #166534;
}

.recipe-translation-status--failed {
    background: #fee2e2;
    color: #991b1b;
}

.recipe-translation-status--outdated {
    background: #fef3c7;
    color: #92400e;
}

.recipe-translation-status--pending,
.recipe-translation-status--progress {
    background: #dbeafe;
    color: #1d4ed8;
}

.recipe-translation-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recipe-translation-editor {
    width: 100%;
}

.recipe-translation-preview__section,
.recipe-translation-status-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem;
    border: 1px solid #dbe3ef;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.recipe-translation-preview__label,
.recipe-translation-status-card__title {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
}

.recipe-translation-preview__body {
    color: #0f172a;
    line-height: 1.65;
}

.recipe-translation-preview__body p:first-child {
    margin-top: 0;
}

.recipe-translation-preview__body p:last-child {
    margin-bottom: 0;
}

.recipe-translation-status-card__copy {
    color: #475569;
    line-height: 1.6;
}

.recipe-translation-debug {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #cbd5e1;
}

.recipe-translation-debug__label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7c2d12;
}

.recipe-translation-debug__content {
    margin: 0;
    padding: 0.85rem;
    border-radius: 0.85rem;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.82rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

@media (min-width: 768px) {
    .recipe-translation-panel__header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .recipe-translation-panel__title-row {
        justify-content: flex-start;
    }
}

/* =========================================
   Modern Card + Table + KPI Design
   ========================================= */



/* ---------- GENERIC CARD ---------- */
.card-block {
    background: #fff;
    border: 1px solid #e3e6e8;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
}

/* ---------- SELF COST BLOCK ---------- */
.self-cost-container {
    composes: card-block;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.self-cost-label {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.self-cost-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #005e9e;
}

/* ---------- TABLE ---------- */
.self-cost-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

    .self-cost-table-wrapper table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.92rem;
    }

    .self-cost-table-wrapper th {
        text-align: left;
        font-weight: 600;
        background: #f7f7f7;
        padding: 0.5rem;
        border-bottom: 1px solid #ddd;
    }

    .self-cost-table-wrapper td {
        padding: 0.5rem;
        border-bottom: 1px solid #eee;
    }

    .self-cost-table-wrapper tr:last-child td {
        border-bottom: none;
    }

/* ---------- PRICING CARD ---------- */
.recipe-pricing-card {
    composes: card-block;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Input Grid (2 columns desktop → 1 column mobile) */
.pricing-card__inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 1rem 2rem;
}

.pricing-portion-row {
    display: grid;
    grid-template-columns: minmax(220px, 320px);
    gap: 1rem;
}

.pricing-per-portion-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pricing-price-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.pricing-card__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* ---------- KPI Block ---------- */
.pricing-card__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

/* KPI Card */
.pricing-pill {
    background: #f4f7fa;
    border: 1px solid #dbe2e6;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.pill-label {
    font-size: 0.8rem;
    color: #555;
    font-weight: 600;
}

.pill-value {
    font-size: 1rem;
    font-weight: 700;
    color: #2a2a2a;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
    .pricing-card__inputs {
        grid-template-columns: 1fr;
    }

    .pricing-portion-row,
    .pricing-price-row {
        grid-template-columns: 1fr;
    }

    .self-cost-price {
        font-size: 1.05rem;
    }
}


/* =========================================
   Self Cost Table - Modern Spacing
   ========================================= */

.self-cost-table-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 0.5rem;
}

    .self-cost-table-wrapper table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 6px; /* Abstand zwischen Zeilen */
        font-size: 0.95rem;
    }

    .self-cost-table-wrapper thead tr th {
        background: #f3f5f7;
        padding: 0.75rem 1rem;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e4e7;
    }

    .self-cost-table-wrapper tbody tr {
        background: #ffffff;
        border-radius: 6px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }

        .self-cost-table-wrapper tbody tr td {
            padding: 0.65rem 1rem;
            border-top: 1px solid #eef0f2;
        }

            .self-cost-table-wrapper tbody tr td:first-child {
                border-left: 1px solid #eef0f2;
                border-radius: 6px 0 0 6px;
            }

            .self-cost-table-wrapper tbody tr td:last-child {
                border-right: 1px solid #eef0f2;
                border-radius: 0 6px 6px 0;
            }

        .self-cost-table-wrapper tbody tr:last-child td {
            font-weight: 700;
        }

@media (max-width: 768px) {
    .self-cost-table-wrapper table {
        font-size: 0.85rem;
    }

.self-cost-table-wrapper tbody tr td {
            padding: 0.5rem 0.75rem;
        }
}

.rz-progressbar-label {
    color: transparent;
}

.ai-emoji-options {
    margin-top: 0.75rem;
}

.ai-alert {
    margin-bottom: 0.75rem;
}

.pricing-threshold-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pricing-threshold-group {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pricing-threshold-button {
    flex: 1 1 220px;
    min-height: 48px;
    text-align: left;
    justify-content: flex-start;
    white-space: normal;
    line-height: 1.25;
    border-radius: 10px;
}

.pricing-threshold-label {
    font-size: 0.82rem;
    font-weight: 700;
}

.pricing-threshold-value {
    font-size: 0.95rem;
    font-weight: 700;
}

.recipe-missing-data-fullwidth-row {
    width: 100%;
}

.recipe-missing-data-fullwidth-button {
    width: 100%;
    justify-content: center;
}

.pricing-formula-hint {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.35;
}

.pricing-portion-row {
    align-items: end;
}

.pricing-portion-formula {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.35;
    align-self: center;
    padding-bottom: 0.2rem;
}

.pricing-netto-input input,
.pricing-netto-input .rz-inputtext {
    font-weight: 700;
}

:root {
    --recipe-editor-space-1: 8px;
    --recipe-editor-space-2: 12px;
    --recipe-editor-space-3: 16px;
    --recipe-editor-space-4: 24px;
    --recipe-editor-radius: 12px;
    --recipe-editor-radius-sm: 10px;
    --recipe-editor-border: #dbe3ec;
    --recipe-editor-surface: #ffffff;
    --recipe-editor-surface-alt: #f8fafc;
    --recipe-editor-surface-muted: #eef4ff;
    --recipe-editor-text: #0f172a;
    --recipe-editor-text-muted: #475569;
    --recipe-editor-primary: #2563eb;
    --recipe-editor-primary-hover: #1d4ed8;
    --recipe-editor-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.checklist-editor-dialog {
    min-height: 100dvh;
    padding: 0 var(--recipe-editor-space-4) var(--recipe-editor-space-4);
    background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
}

@media (max-width: 992px) 
{
    .checklist-editor-dialog {
        min-height: 100dvh;
        padding: 0 5px;
        background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
    }

}

    .recipe-editor-header {
        position: sticky;
        top: 0px;
        z-index: 20;
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        padding: 0.75rem 0.9rem;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--recipe-editor-border);
    }

    @media (max-width: 992px) {
        .recipe-editor-header {
            position: sticky;
            top: 0px;
            z-index: 20;
            display: flex;
            flex-direction: column;
            gap: 0.65rem;
            padding: 0.75rem 0.9rem;
            background: rgba(255, 255, 255, 0.94);
            backdrop-filter: blur(14px);
            border-bottom: 1px solid var(--recipe-editor-border);
        }
    }

    .recipe-editor-header__title {
        margin: 0;
        font-size: clamp(1.05rem, 2.4vw, 1.65rem);
        line-height: 1.1;
        color: var(--recipe-editor-text);
    }

    .recipe-editor-header__meta,
    .recipe-editor-header__actions,
    .recipe-editor-header__toggle {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.55rem;
    }

    .recipe-editor-header__actions {
        flex-wrap: nowrap;
    }

        .recipe-editor-header__actions .rz-button {
            flex: 1 1 0;
            min-width: 0;
            min-height: 2.35rem;
            padding: 0.35rem 0.7rem;
            font-size: 0.88rem;
        }

    .recipe-editor-switch {
        appearance: none;
        border: 1px solid #d7e2f0;
        border-radius: 999px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        color: var(--recipe-editor-text);
        display: inline-flex;
        align-items: center;
        gap: 0.65rem;
        min-height: 2.35rem;
        padding: 0.35rem 0.75rem 0.35rem 0.45rem;
        cursor: pointer;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
        transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    }

        .recipe-editor-switch:hover,
        .recipe-editor-switch:focus-visible {
            border-color: #93c5fd;
            box-shadow: 0 10px 24px rgba(37, 99, 235, 0.14);
            outline: none;
        }

        .recipe-editor-switch.is-active {
            border-color: #2563eb;
            background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
        }

    .recipe-editor-switch__track {
        position: relative;
        width: 2.35rem;
        height: 1.35rem;
        border-radius: 999px;
        background: #cbd5e1;
        flex: 0 0 auto;
        transition: background 0.18s ease;
    }

    .recipe-editor-switch.is-active .recipe-editor-switch__track {
        background: #2563eb;
    }

    .recipe-editor-switch__thumb {
        position: absolute;
        top: 0.16rem;
        left: 0.16rem;
        width: 1.03rem;
        height: 1.03rem;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
        transition: transform 0.18s ease;
    }

    .recipe-editor-switch.is-active .recipe-editor-switch__thumb {
        transform: translateX(0.98rem);
    }

    .recipe-editor-switch__label {
        font-size: 0.84rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .recipe-composer-layout {
        display: flex;
        flex-direction: column;
        gap: var(--recipe-editor-space-4);
    }

    .recipe-composer-main {
        display: flex;
        flex-direction: column;
        gap: var(--recipe-editor-space-4);
    }

    .recipe-composer-row {
        margin: 0;
    }

    .recipe-compact-status {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: var(--recipe-editor-space-2);
        padding: 12px 16px;
        margin-top: 0;
        border: 1px solid #fed7aa;
        border-radius: var(--recipe-editor-radius-sm);
        background: #fff7ed;
    }

    .recipe-compact-status__text {
        color: #9a3412;
        font-weight: 600;
    }

    .recipe-kpi-bar {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.45rem;
        min-width: 0;
    }

    .recipe-kpi-layout {
        display: flex;
        flex-direction: column;
        gap: var(--recipe-editor-space-3);
    }

    .recipe-kpi-bar__item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.15rem;
        flex: 1 1 0;
        min-width: 0;
        padding: clamp(0.45rem, 1.3vw, 0.75rem) clamp(0.42rem, 1.4vw, 0.85rem);
        border: 1px solid var(--recipe-editor-border);
        border-radius: var(--recipe-editor-radius-sm);
        background: var(--recipe-editor-surface);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
        overflow: hidden;
    }

    .recipe-kpi-bar__item--attention {
        border-color: #fdba74;
        background: #fff7ed;
    }

    .recipe-kpi-bar__item--action {
        justify-content: center;
        min-width: 180px;
    }

    .recipe-kpi-actions-card {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--recipe-editor-space-2);
        padding: 16px;
        border: 1px solid var(--recipe-editor-border);
        border-radius: var(--recipe-editor-radius-sm);
        background: var(--recipe-editor-surface);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    }

    .recipe-kpi-actions-card .rz-button {
        min-width: 0;
    }

    .recipe-kpi-bar__label,
    .recipe-kpi-bar__subvalue {
        color: var(--recipe-editor-text-muted);
        font-size: clamp(0.62rem, 1.25vw, 0.8rem);
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .recipe-kpi-bar__value {
        font-weight: 700;
        color: var(--recipe-editor-text);
        font-variant-numeric: tabular-nums;
        font-size: clamp(0.76rem, 1.7vw, 1.02rem);
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .recipe-section-card,
    .recipe-import-status-card,
    .recipe-data-completeness,
    .recipe-derived-sidebar__card {
        background: var(--recipe-editor-surface);
        border: 1px solid var(--recipe-editor-border);
        border-radius: var(--recipe-editor-radius);
        box-shadow: var(--recipe-editor-shadow);
    }

        .recipe-section-card .rz-fieldset-content {
            padding: 20px 24px 24px;
        }

        .recipe-section-card > legend,
        .recipe-section-card .rz-fieldset-legend {
            font-weight: 700;
            color: var(--recipe-editor-text);
        }

    .recipe-import-status-card,
    .recipe-data-completeness,
    .recipe-derived-sidebar__card {
        padding: 20px 24px;
    }

    .recipe-import-status-card__header,
    .recipe-import-status-card__items,
    .recipe-data-completeness__grid,
    .recipe-derived-sidebar__metrics,
    .recipe-derived-sidebar__actions {
        display: flex;
        flex-direction: column;
        gap: var(--recipe-editor-space-2);
    }

    .recipe-import-status-card__summary,
    .recipe-import-status-card__notice,
    .recipe-data-completeness__label,
    .recipe-derived-sidebar__label,
    .recipe-derived-sidebar__subvalue {
        color: var(--recipe-editor-text-muted);
    }

    .recipe-import-status-card__items,
    .recipe-data-completeness__grid {
        gap: var(--recipe-editor-space-3);
    }

    .recipe-import-status-card__item,
    .recipe-data-completeness__metric,
    .recipe-derived-sidebar__metric {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 12px 14px;
        border-radius: var(--recipe-editor-radius-sm);
        background: var(--recipe-editor-surface-alt);
    }

    .recipe-data-completeness__metric--attention,
    .checklist-item-missing-product {
        background: #fff7ed;
        border: 1px solid #fdba74;
    }

    .recipe-derived-sidebar__value,
    .recipe-data-completeness__value,
    .recipe-import-status-card__value {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--recipe-editor-text);
        font-variant-numeric: tabular-nums;
    }

    .recipe-top-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .recipe-top-actions-primary {
        min-width: 15rem;
    }

    .recipe-secondary-actions-menu {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.85rem;
        border: 1px solid #dbe2e8;
        border-radius: 14px;
        background: #f8fafc;
    }

    .richtext-action {
        opacity: 0.9;
    }

    .group-inline-create {
        display: flex;
        width: 100%;
    }

    .group-inline-create-input,
    .group-inline-add-input {
        width: 100%;
    }

    .group-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .checklist-editor-dialog .property-accordion {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .checklist-editor-dialog .property-accordion__header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }

    .checklist-editor-dialog .property-accordion__toggle {
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        min-width: 0;
        padding: 0.75rem 0.9rem;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #ffffff;
        color: #0f172a;
        font-weight: 700;
        text-align: left;
        appearance: none;
        cursor: pointer;
    }

        .checklist-editor-dialog .property-accordion__toggle:hover {
            border-color: #cbd5e1;
            background: #f8fafc;
        }

        .checklist-editor-dialog .property-accordion__toggle:focus-visible {
            outline: none;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
        }

    .checklist-editor-dialog .property-accordion__title {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .checklist-editor-dialog .property-accordion__chevron {
        flex: 0 0 auto;
        font-size: 1rem;
        transform: rotate(0deg);
        transition: transform 140ms ease;
    }

    .checklist-editor-dialog .property-accordion__toggle[aria-expanded="true"] .property-accordion__chevron {
        transform: rotate(180deg);
    }

    .checklist-editor-dialog .property-accordion__content {
        width: 100%;
        padding-top: 0.25rem;
    }

    .checklist-group-accordion__delete {
        flex: 0 0 auto;
    }

    .checklist-group-accordion__editor {
        padding-bottom: 0.9rem;
    }

    .recipe-media-layout {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .recipe-media-layout__capture,
    .recipe-media-layout__youtube,
    .recipe-media-layout__gallery {
        width: 100%;
    }

    .recipe-media-panel,
    .recipe-media-gallery__header {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.95rem 1rem;
        border: 1px solid #dbe3ec;
        border-radius: 14px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    }

    .recipe-media-panel__title,
    .recipe-media-gallery__title {
        font-size: 0.96rem;
        font-weight: 800;
        color: #0f172a;
    }

    .recipe-media-panel__copy,
    .recipe-media-gallery__copy {
        color: #475569;
        line-height: 1.45;
    }

    .recipe-media-panel__input {
        width: 100%;
    }

    .youtube-input {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        margin-top: 0.2rem;
    }

    .media-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.85rem;
    }

    .media-item-wrapper {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
        width: 100%;
        max-width: 100%;
        padding: 0.75rem;
        border: 1px solid #dbe3ec;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    }

    .media-item {
        width: 100%;
        max-width: 100%;
        min-height: 160px;
        object-fit: cover;
        border-radius: 12px;
        background: #e2e8f0;
    }

    @media (min-width: 768px) {
        .youtube-input {
            flex-direction: row;
            align-items: center;
        }

        .recipe-media-layout__gallery .media-list {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (min-width: 1100px) {
        .recipe-media-layout {
            display: grid;
            grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
            gap: 1rem;
        }

        .recipe-media-layout__gallery {
            grid-column: 1 / -1;
        }

            .recipe-media-layout__gallery .media-list {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
    }

    .group-card,
    section.group-card,
    .group-container > section {
        padding: 20px;
        border-radius: var(--recipe-editor-radius);
        background: var(--recipe-editor-surface);
        box-shadow: var(--recipe-editor-shadow);
        border: 1px solid var(--recipe-editor-border) !important;
    }

    .group-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding-bottom: 0.9rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .group-name-inline-input {
        flex: 1 1 auto;
    }

    .group-name-inline-input__control {
        width: 100%;
    }

    .group-content {
        display: flex;
        flex-direction: column;
        gap: 0.9rem;
        padding-top: 0.9rem;
    }

    .group-inline-add {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .group-inline-suggestions {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.4rem;
        border: 1px solid #dbe2e8;
        border-radius: 12px;
        background: #ffffff;
    }

    .group-inline-suggestion {
        display: flex;
        width: 100%;
        padding: 0.65rem 0.75rem;
        border: none;
        border-radius: 10px;
        background: #eff6ff;
        color: #0f172a;
        text-align: left;
    }

        .group-inline-suggestion:hover {
            background: #dbeafe;
        }

    .group-inline-suggestion-name {
        font-weight: 600;
    }

    .item-list {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .checklist-item {
        display: flex;
        align-items: flex-start;
        gap: var(--recipe-editor-space-2);
        padding: 14px 16px;
        border: 1px solid var(--recipe-editor-border);
        border-left: 4px solid transparent;
        border-radius: var(--recipe-editor-radius-sm);
        background: var(--recipe-editor-surface);
    }

    .recipe-item-row--linked {
        background: linear-gradient(180deg, #dcfce7 0%, #c7f9d8 100%) !important;
        border-color: #86efac;
        border-left-color: #16a34a;
        box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.22);
    }

    .recipe-item-row--manual {
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        border-left-color: #94a3b8;
    }

    .checklist-item-missing-product {
        border-left-color: #f97316;
    }

    .item-inline-row {
        display: flex;
        flex-wrap: wrap;
        column-gap: 0.6rem;
        row-gap: 0.6rem;
        width: 100%;
        align-items: flex-start;
    }

    .floating-inline-field {
        position: relative;
        min-width: 0;
    }

        .floating-inline-field.has-value {
            padding-top: 0.8rem;
        }

    .floating-inline-field__label {
        position: absolute;
        top: 0.08rem;
        left: 0;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #64748b;
        opacity: 0;
        transform: translateY(0.2rem);
        pointer-events: none;
        transition: opacity 0.16s ease, transform 0.16s ease;
    }

    .floating-inline-field.has-value .floating-inline-field__label {
        opacity: 1;
        transform: translateY(0);
    }

    .floating-inline-field__control {
        width: 100%;
    }

        .item-inline-input .rz-inputtext,
        .item-inline-input input,
        .item-inline-input .rz-dropdown,
        .floating-inline-field__control .rz-inputtext,
        .floating-inline-field__control input,
        .floating-inline-field__control .rz-dropdown,
        .group-inline-create-input .rz-inputtext,
        .group-inline-create-input input,
        .group-inline-add-input .rz-inputtext,
        .group-inline-add-input input,
        .group-name-inline-input .rz-inputtext,
        .group-name-inline-input input,
        .group-name-inline-input__control .rz-inputtext,
        .group-name-inline-input__control input {
            border: none;
            border-bottom: 1px solid #cbd5e1;
            border-radius: 0;
            background: transparent;
            box-shadow: none;
            padding-left: 0;
            padding-right: 0;
        }

    .item-inline-name {
        order: 1;
        flex: 1 1 calc(100% - 2.95rem);
        width: 100%;
        font-size: 1rem;
        font-weight: 600;
        align-self: stretch;
    }

    .item-inline-quantity,
    .item-inline-unit,
    .item-inline-note {
        width: 100%;
    }

    .item-inline-quantity {
        order: 2;
        flex: 1 1 calc(100% - 6rem);
    }

    .item-inline-unit {
        order: 3;
        flex: 0 0 5.4rem;
    }

    .item-inline-note {
        order: 4;
        flex: 1 1 100%;
    }

    .item-inline-delete {
        order: 5;
        align-self: stretch;
        justify-self: end;
        width: 2.35rem;
        min-width: 2.35rem;
        height: 2.5rem;
        padding: 0;
        margin-top: 0.8rem;
    }

    .item-inline-name .recipe-link-search__input {
        min-height: 2.5rem;
    }

    .recipe-link-search {
        position: relative;
        width: 100%;
    }

    .recipe-link-search__input {
        width: 100%;
    }

    .recipe-link-search__menu {
        position: absolute;
        top: calc(100% + 0.2rem);
        left: 0;
        right: 0;
        z-index: 30;
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        padding: 0.35rem;
        border: 1px solid #dbe2e8;
        border-radius: 0.8rem;
        background: #fff;
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
        max-height: 16rem;
        overflow-y: auto;
    }

    .recipe-link-search__option {
        width: 100%;
        border: none;
        background: transparent;
        border-radius: 0.6rem;
        padding: 0.6rem 0.7rem;
        text-align: left;
        color: #0f172a;
        font-size: 0.95rem;
        cursor: pointer;
    }

    .recipe-link-search__option:hover,
    .recipe-link-search__option:focus-visible {
        background: #e2e8f0;
        outline: none;
    }

    .floating-inline-field.has-value .rz-inputtext,
    .floating-inline-field.has-value input,
    .floating-inline-field.has-value .rz-dropdown,
    .floating-inline-field.has-value .rz-numeric-input {
        padding-top: 0.25rem;
    }

    @media (min-width: 992px) {
        .recipe-editor-header {
            display: flex;
            align-items: center;
            gap: var(--recipe-editor-space-2);
            padding: var(--recipe-editor-space-3) var(--recipe-editor-space-4);
            flex-direction: row;
        }

        .recipe-composer-main {
            min-width: 0;
        }

        .item-inline-row {
            display: flex;
            flex-wrap: nowrap;
            align-items: center;
            gap: 12px;
        }

        .item-inline-name {
            order: 1;
            flex: 3.2 1 360px;
            min-width: 0;
        }

        .item-inline-quantity {
            order: 2;
            flex: 1 1 100px;
            min-width: 0;
        }

        .item-inline-unit {
            order: 3;
            flex: 0 0 110px;
            min-width: 0;
        }

        .item-inline-note {
            order: 4;
            flex: 1.6 1 220px;
            min-width: 0;
        }

        .item-inline-delete {
            order: 5;
            margin-left: 0;
        }

        .recipe-kpi-layout {
            display: flex;
            grid-template-columns: minmax(0, 1fr) 280px;
            
        }

        .recipe-editor-header__actions .rz-button {
            flex: 0 0 auto;
            min-width: 8.5rem;
            font-size: 0.92rem;
        }

        .recipe-editor-switch__label {
            font-size: 0.88rem;
        }
    }

    @media (max-width: 1240px) {
        .recipe-kpi-actions-card .rz-button {
            width: 2.5rem;
            min-width: 2.5rem;
            padding-inline: 0;
            justify-content: center;
        }

        .recipe-kpi-actions-card .rz-button .rz-button-text {
            display: none;
        }

        .recipe-kpi-actions-card .rz-button .rz-button-icon-left {
            margin-right: 0;
        }
    }

/* Recipe editor tab shell: clean light B2B SaaS theme */
.checklist-editor-dialog .recipe-editor-tabs {
    display: block;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.checklist-editor-dialog .recipe-editor-tabs > .rz-tabview-nav {
    padding: 0 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    gap: 0.25rem;
    overflow-x: auto;
}

.checklist-editor-dialog .recipe-editor-tabs > .rz-tabview-nav li a,
.checklist-editor-dialog .recipe-editor-tabs > .rz-tabview-nav li .rz-tabview-title {
    color: #4b5563;
    font-size: 0.92rem;
    font-weight: 700;
}

.checklist-editor-dialog .recipe-editor-tabs > .rz-tabview-nav li.rz-tabview-selected a,
.checklist-editor-dialog .recipe-editor-tabs > .rz-tabview-nav li.rz-tabview-selected .rz-tabview-title {
    color: #2563eb;
}

.checklist-editor-dialog .recipe-editor-tabs > .rz-tabview-nav li.rz-tabview-selected {
    border-bottom: 2px solid #2563eb;
}

.checklist-editor-dialog .recipe-editor-tabs > .rz-tabview-panels,
.checklist-editor-dialog .recipe-editor-tabs .rz-tabview-panel {
    background: #f8fafc;
}

.checklist-editor-dialog .recipe-editor-tabs .rz-tabview-panel {
    padding: 1rem;
}

.checklist-editor-dialog .recipe-editor-tabs .recipe-composer-row {
    margin: 0 0 1rem;
}

.checklist-editor-dialog .recipe-editor-tabs .recipe-section-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.recipe-editor-action-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 1rem 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.recipe-editor-action-panel__title {
    margin: 0 0 0.25rem;
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
}

.recipe-editor-action-panel p,
.recipe-editor-action-panel__hint {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .checklist-editor-dialog .recipe-editor-tabs > .rz-tabview-nav {
        padding: 0 0.75rem;
    }

    .checklist-editor-dialog .recipe-editor-tabs .rz-tabview-panel {
        padding: 0.75rem;
    }

    .recipe-editor-action-panel {
        align-items: stretch;
        flex-direction: column;
        margin-inline: 0;
    }
}

/* Recipe workspace follows JansApp_Rezepteditor.html; ordinary checklists keep their layout. */
.rz-dialog.rz-open:has(.checklist-editor-dialog--recipe) { width: min(1220px, calc(100vw - 48px)) !important; height: min(960px, calc(100dvh - 48px)); max-width: none; max-height: none; padding: 0; border-radius: 17px; overflow: hidden; }
.rz-dialog:has(.checklist-editor-dialog--recipe) > .rz-dialog-titlebar { display: none; }
.rz-dialog:has(.checklist-editor-dialog--recipe) > .rz-dialog-content { padding: 0 !important; height: 100%; overflow: hidden; }
.checklist-editor-dialog--recipe { --recipe-line: #e5eaf1; --recipe-muted: #637188; display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 0; gap: 0; background: #fff; color: #172238; font-size: 13px; }
.checklist-editor-dialog--recipe .recipe-editor-header { display: flex; flex-wrap: nowrap; flex: 0 0 auto; position: static; padding: 24px 30px 21px; gap: 15px; margin: 0; border: 0; border-radius: 0; background: #fff; box-shadow: none; backdrop-filter: none; }
.recipe-editor-header__emblem { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid #dce5f6; border-radius: 13px; background: #eef3ff; color: #2e5bdf; }
.checklist-editor-dialog--recipe .recipe-editor-header__identity { flex: 1; min-width: 0; }
.recipe-editor-header__context { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--recipe-muted); }
.checklist-editor-dialog--recipe .recipe-editor-header__title { margin: 4px 0 0; font-size: 24px; font-weight: 650; letter-spacing: -.6px; line-height: 1.3; overflow-wrap: anywhere; }
.checklist-editor-dialog--recipe .recipe-editor-header__meta { flex: 0 0 auto; }
.checklist-editor-dialog--recipe .recipe-editor-header__actions { display: flex; flex-wrap: nowrap; gap: 12px; width: auto; }
.checklist-editor-dialog--recipe .recipe-editor-header__actions .rz-button { min-width: 0; min-height: 40px; background: transparent !important; color: var(--recipe-muted) !important; box-shadow: none; border: 0; font-size: 12px; font-weight: 500; }
.checklist-editor-dialog--recipe .recipe-editor-switch__label { font-size: 12px; color: var(--recipe-muted); font-weight: 400; }
.checklist-editor-dialog--recipe .recipe-editor-switch { gap: 8px; }
.recipe-editor-header__close, .recipe-more-button { border: 0; background: transparent; color: #637188; width: 36px; height: 36px; padding: 0; display: inline-flex; justify-content: center; align-items: center; border-radius: 7px; flex-shrink: 0; }
.recipe-editor-header__close:hover, .recipe-more-button:hover { background: #f0f3f8; color: #172238; }
.checklist-editor-dialog--recipe .recipe-composer-layout, .checklist-editor-dialog--recipe .recipe-composer-main { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; gap: 0; padding: 0; margin: 0; overflow: hidden; }
.checklist-editor-dialog--recipe .recipe-editor-tabs { display: flex; flex-direction: column; flex: 1; min-height: 0; border: 0; border-radius: 0; overflow: hidden; }
.checklist-editor-dialog--recipe .recipe-editor-tabs > .weather-tab-list { flex: 0 0 auto; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 8px 30px; margin: 0; border-top: 1px solid #f0f3f8; border-bottom: 1px solid var(--recipe-line); background: #fff; border-radius: 0; }
.checklist-editor-dialog--recipe .weather-tab-button { min-height: 38px; padding: 8px 13px; border: 0; border-radius: 7px; background: transparent; color: #637188; font-size: 12px; font-weight: 600; box-shadow: none; white-space: nowrap; flex-shrink: 0; }
.checklist-editor-dialog--recipe .weather-tab-button:hover { color: #172238; background: #f0f3f8; }
.checklist-editor-dialog--recipe .weather-tab-button.active, .checklist-editor-dialog--recipe .weather-tab-button.is-active { background: #172238; color: #fff; box-shadow: none; }
.checklist-editor-dialog--recipe .recipe-editor-tabs > .weather-tab-panel { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 26px 30px 30px; margin: 0; border: 0; background: #f7f9fc; scrollbar-width: thin; }
.recipe-panel-intro { margin-bottom: 20px; }
.recipe-panel-intro h3 { margin: 0 0 6px; color: #172238; font-size: 20px; font-weight: 650; letter-spacing: -.35px; }
.recipe-panel-intro p { margin: 0; color: var(--recipe-muted); font-size: 12px; line-height: 1.5; }
.recipe-tab-count { display: inline-flex; vertical-align: middle; margin-left: 6px; padding: 1px 5px; border-radius: 4px; font-size: 10px; font-weight: 600; background: #e9eef6; color: #637188; }
.weather-tab-button.active .recipe-tab-count { background: #ffffff26; color: #fff; }
.checklist-editor-dialog--recipe button:focus-visible { outline: 2px solid #2e5bdf; outline-offset: 2px; }
.checklist-editor-dialog--recipe .recipe-composer-row { padding: 0 !important; margin: 0 0 18px; gap: 18px; }
.checklist-editor-dialog--recipe .recipe-section-card { min-width: 0; padding: 0; border: 0 !important; border-radius: 0; background: transparent; box-shadow: none; }
.checklist-editor-dialog--recipe .recipe-section-card > .rz-fieldset-content-wrapper > .rz-fieldset-content, .checklist-editor-dialog--recipe .recipe-section-card > .rz-fieldset-content { padding: 0; }
.checklist-editor-dialog--recipe .recipe-section-card > .rz-fieldset-legend { margin: 0 0 10px; padding: 0; font-size: 13px; font-weight: 600; }
.checklist-editor-dialog--recipe #recipe-panel-ingredients .recipe-section-card > .rz-fieldset-legend { display: none; }
.checklist-editor-dialog--recipe .recipe-compact-status { margin: 0 0 18px; padding: 12px 15px; gap: 12px; border: 1px solid #efdfbd; border-radius: 9px; background: #fff8e9; color: #89571b; font-size: 12px; font-weight: 400; }
.checklist-editor-dialog--recipe .recipe-compact-status .rz-button { background: #fffdf7; border: 1px solid #e7d6b5; color: #89571b; box-shadow: none; font-size: 12px; }
.checklist-editor-dialog--recipe .group-container { display: flex; flex-direction: column; gap: 14px; }
.checklist-editor-dialog--recipe .group-inline-create { order: 2; padding: 0; margin: 0; }
.checklist-editor-dialog--recipe .group-inline-create-input { width: 100%; min-height: 44px; border: 1px dashed #c7d2e2; border-radius: 9px; background: transparent; font-size: 12px; text-align: center; }
.checklist-editor-dialog--recipe .group-card { padding: 0; border: 1px solid var(--recipe-line); border-radius: 11px; background: #fff; box-shadow: none; }
.checklist-editor-dialog--recipe .property-accordion { border: 0; border-radius: 11px; box-shadow: none; background: transparent; }
.checklist-editor-dialog--recipe .checklist-group-accordion__header { padding: 9px 15px; min-height: 53px; gap: 8px; border: 0; background: transparent; }
.checklist-editor-dialog--recipe .property-accordion__toggle { border: 0; padding: 4px 0; min-height: 36px; color: #172238; background: none; font-size: 13px; font-weight: 600; }
.checklist-editor-dialog--recipe .property-accordion__title { font-size: 13px; font-weight: 600; }
.checklist-editor-dialog--recipe .checklist-group-accordion__toggle { flex-direction: row-reverse; justify-content: flex-end; gap: 10px; }
.checklist-editor-dialog--recipe .property-accordion__chevron { margin: 0; }
.checklist-editor-dialog--recipe .group-handle { order: -1; color: #9aa8bd; }
.checklist-editor-dialog--recipe .checklist-group-accordion__content { padding: 0; }
.checklist-editor-dialog--recipe .checklist-group-accordion__editor { margin: 0; padding: 8px 15px; }
.checklist-editor-dialog--recipe .group-content { display: flex; flex-direction: column; padding: 0; margin: 0; gap: 0; min-height: 0; }
.checklist-editor-dialog--recipe .group-inline-add { order: 2; padding: 8px 18px; margin: 0; border-top: 1px solid var(--recipe-line); }
.checklist-editor-dialog--recipe .group-inline-add-input { width: 100%; }
.checklist-editor-dialog--recipe .group-inline-add .recipe-link-search__input { border-color: transparent; background: transparent; font-size: 12px; min-height: 36px; }
.checklist-editor-dialog--recipe .group-inline-add .recipe-link-search__input:focus { border-color: #91a9ed; background: #f7f9fc; }
.checklist-editor-dialog--recipe .recipe-link-search__menu { z-index: 50; min-width: 0; max-width: 100%; }
.checklist-editor-dialog--recipe .item-list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; }
.checklist-editor-dialog--recipe .checklist-item { padding: 9px 17px; margin: 0; border: 0; border-bottom: 1px solid #eef1f6; border-radius: 0; background: #fff; box-shadow: none; overflow: visible; }
.checklist-editor-dialog--recipe .checklist-item:last-child { border-bottom: 0; }
.checklist-editor-dialog--recipe .recipe-item-row--linked { background: #fff !important; box-shadow: none; }
.checklist-editor-dialog--recipe .checklist-item-missing-product { background: #fffdf8; }
.checklist-editor-dialog--recipe .item-inline-row, .recipe-ingredient-columns { display: grid; grid-template-columns: minmax(0,1fr) 89px 108px 36px 36px; align-items: center; column-gap: 10px; }
.recipe-ingredient-columns { padding: 7px 17px; border-top: 1px solid var(--recipe-line); border-bottom: 1px solid var(--recipe-line); background: #fafbfd; color: var(--recipe-muted); font-size: 11px; }
.checklist-editor-dialog--recipe .item-inline-row > * { min-width: 0; margin: 0; order: 0; grid-column: auto; grid-row: auto; }
.checklist-editor-dialog--recipe .item-inline-row .floating-inline-field { padding: 0; width: 100%; }
.checklist-editor-dialog--recipe .item-inline-row .floating-inline-field__label { display: none; }
.checklist-editor-dialog--recipe .item-inline-row .floating-inline-field__control { height: 34px; width: 100%; min-width: 0; border-radius: 6px; border-color: var(--recipe-line); font-size: 13px; background: #fff; }
.checklist-editor-dialog--recipe .item-inline-row .recipe-link-search__input { height: 30px; padding: 3px 4px; margin-left: -4px; border-color: transparent; font-weight: 550; background: transparent; text-overflow: ellipsis; }
.checklist-editor-dialog--recipe .item-inline-row .recipe-link-search__input:hover { border-color: var(--recipe-line); }
.checklist-editor-dialog--recipe .recipe-ingredient-status { position: static; display: flex; align-items: center; gap: 4px; margin-top: 2px; color: #637188; font-size: 11px; line-height: 1.5; }
.checklist-editor-dialog--recipe .recipe-ingredient-status .rzi { font-size: 14px; flex-shrink: 0; }
.checklist-editor-dialog--recipe .recipe-ingredient-status > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checklist-editor-dialog--recipe .recipe-item-row--linked .recipe-ingredient-status { color: #15745b; }
.checklist-editor-dialog--recipe .checklist-item-missing-product .recipe-ingredient-status { color: #89571c; }
.checklist-editor-dialog--recipe .ingredient-note-disclosure { display: flex; align-items: center; }
.checklist-editor-dialog--recipe .ingredient-note-toggle { position: relative; width: 36px; height: 36px; border: 0; border-radius: 7px; padding: 0; background: transparent; color: #637188; }
.checklist-editor-dialog--recipe .ingredient-note-toggle.has-note { color: #2e5bdf; background: #eef3ff; }
.checklist-editor-dialog--recipe .ingredient-note-dot { position: absolute; width: 4px; height: 4px; border-radius: 50%; right: 6px; top: 6px; background: currentColor; }
.checklist-editor-dialog--recipe .item-inline-note { display: flex; flex-direction: column; gap: 5px; margin: 8px 0 4px; padding: 0; width: 100%; }
.checklist-editor-dialog--recipe .item-inline-note .floating-inline-field__label { position: static; order: -1; font-size: 11px; color: #637188; opacity: 1; transform: none; }
.checklist-editor-dialog--recipe .item-inline-note textarea { resize: vertical; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #dce5f5; border-radius: 7px; background: #f8faff; }
.checklist-editor-dialog--recipe .recipe-editor-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 30px; background: #fff; border-top: 1px solid var(--recipe-line); }
.recipe-editor-footer__hint { font-size: 11px; color: #637188; }
.recipe-editor-footer__actions { display: flex; gap: 9px; }
.checklist-editor-dialog--recipe .recipe-editor-footer .rz-button { min-height: 40px; padding: 9px 14px; border-radius: 8px; font-size: 12px; box-shadow: none; }
.checklist-editor-dialog--recipe .recipe-kpi-layout { display: block; padding: 0; margin: 0 0 20px; }
.checklist-editor-dialog--recipe .recipe-kpi-bar { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; padding: 0; border: 1px solid var(--recipe-line); border-radius: 10px; background: #fff; overflow: hidden; }
.checklist-editor-dialog--recipe .recipe-kpi-bar__item { min-width: 0; padding: 16px 20px; background: transparent; border: 0; border-right: 1px solid var(--recipe-line); border-radius: 0; box-shadow: none; gap: 5px; }
.checklist-editor-dialog--recipe .recipe-kpi-bar__label, .checklist-editor-dialog--recipe .recipe-kpi-bar__subvalue { color: #637188; font-size: 11px; }
.checklist-editor-dialog--recipe .recipe-kpi-bar__value { font-size: 20px; font-weight: 600; }
.checklist-editor-dialog--recipe .recipe-translation-preview__section { padding: 0; border: 0; background: transparent; }
.checklist-editor-dialog--recipe .recipe-translation-panel { gap: 12px; }
.checklist-editor-dialog--recipe .recipe-translation-panel__header { padding: 0; }
.checklist-editor-dialog--recipe .recipe-translation-controls { display: flex; gap: 8px; margin-bottom: 12px; }
.checklist-editor-dialog--recipe .recipe-translation-status { padding: 3px 7px; font-size: 11px; font-weight: 500; }
.checklist-editor-dialog--recipe .recipe-auto-translation { background: #eaf7f1; color: #15745b; font-size: 11px; }
.checklist-editor-dialog--recipe .weather-tab-panel .weather-tab-list { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; padding: 0; background: transparent; }
.checklist-editor-dialog--recipe .rz-html-editor { min-width: 0; border: 1px solid var(--recipe-line); border-radius: 9px; background: #fff; }
.checklist-editor-dialog--recipe .rz-html-editor-toolbar { flex-wrap: wrap; background: #fafbfd; }
.checklist-editor-dialog--recipe .recipe-editor-action-panel { padding: 18px 20px; margin: 0 0 14px; border: 1px solid var(--recipe-line); border-radius: 10px; background: #fff; }
.checklist-editor-dialog--recipe .recipe-editor-action-panel__title, .checklist-editor-dialog--recipe .recipe-media-panel__title, .checklist-editor-dialog--recipe .recipe-media-gallery__title { font-size: 14px; font-weight: 600; }
.checklist-editor-dialog--recipe .recipe-editor-action-panel p, .checklist-editor-dialog--recipe .recipe-media-panel__copy, .checklist-editor-dialog--recipe .recipe-media-gallery__copy { font-size: 12px; color: #637188; line-height: 1.6; }
.checklist-editor-dialog--recipe .recipe-media-panel, .checklist-editor-dialog--recipe .recipe-media-gallery__header, .checklist-editor-dialog--recipe .media-item-wrapper { background: #fff; border: 1px solid var(--recipe-line); border-radius: 10px; box-shadow: none; }
.checklist-editor-dialog--recipe .capture-shell { padding: 18px; border: 1px dashed #c7d2e2; border-radius: 10px; background: #fff; box-shadow: none; }
.checklist-editor-dialog--recipe .capture-stage:has(.capture-stage__placeholder) { min-height: 0; background: #f7f9fc; border: 0; }
.checklist-editor-dialog--recipe .capture-stage__placeholder { min-height: 0; padding: 20px; color: #637188; }
.checklist-editor-dialog--recipe .capture-stage__placeholder .capture-stage__title { font-size: 15px; font-weight: 600; }
.checklist-editor-dialog--recipe .capture-action-button { min-height: 44px; box-shadow: none; }
.checklist-editor-dialog--recipe .recipe-yield-grid { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px !important; }
.checklist-editor-dialog--recipe .recipe-yield-grid small { grid-column: 1 / -1; font-size: 12px; color: #637188; }
.checklist-editor-dialog--recipe .recipe-yield-grid .rz-numeric { width: 100%; }
.checklist-editor-dialog--recipe .recipe-pricing-card { padding: 0; gap: 16px; box-shadow: none; }
.checklist-editor-dialog--recipe .pricing-price-row, .checklist-editor-dialog--recipe .pricing-pill-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.checklist-editor-dialog--recipe .pricing-pill { background: #fff; border: 1px solid var(--recipe-line); border-radius: 8px; box-shadow: none; }
.checklist-editor-dialog--recipe .pricing-threshold-button { min-height: 44px; font-weight: 500; }
.checklist-editor-dialog--recipe .self-cost-box { padding: 18px; border: 1px solid var(--recipe-line); border-radius: 10px; background: #fff; box-shadow: none; }
.checklist-editor-dialog--recipe .self-cost-values { display: flex; gap: 24px; padding: 10px 0; }
.checklist-editor-dialog--recipe .self-cost-value { display: flex; flex-direction: column; gap: 4px; }
.checklist-editor-dialog--recipe .self-cost-amount { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
 .rz-dialog.rz-open:has(.checklist-editor-dialog--recipe) { width: 100% !important; height: 100dvh; border-radius: 0; }
 .checklist-editor-dialog--recipe .recipe-editor-header { display: grid; grid-template-columns: 36px minmax(0,1fr) 36px; gap: 12px; padding: 16px; }
 .recipe-editor-header__emblem { width: 36px; height: 36px; border-radius: 10px; }
 .checklist-editor-dialog--recipe .recipe-editor-header__title { font-size: 20px; }
 .recipe-editor-header__context { font-size: 9px; }
 .checklist-editor-dialog--recipe .recipe-editor-header__meta { grid-row: 2; grid-column: 1 / 3; }
 .checklist-editor-dialog--recipe .recipe-editor-header__actions { display: contents; }
 .checklist-editor-dialog--recipe .recipe-editor-header__actions .rz-button { grid-row: 2; grid-column: 3; justify-self: end; padding: 0 4px; }
 .checklist-editor-dialog--recipe .recipe-editor-header__actions .rz-button-text { display: none; }
 .recipe-editor-header__close { grid-row: 1; grid-column: 3; }
 .checklist-editor-dialog--recipe .recipe-editor-tabs > .weather-tab-list { padding: 6px 14px; gap: 2px; }
 .checklist-editor-dialog--recipe .weather-tab-button { min-height: 40px; padding: 8px 11px; }
 .checklist-editor-dialog--recipe .recipe-editor-tabs > .weather-tab-panel { padding: 20px 14px; }
 .checklist-editor-dialog--recipe .recipe-editor-footer { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); gap: 8px; }
 .recipe-editor-footer__hint { max-width: 110px; font-size: 10px; }
 .checklist-editor-dialog--recipe .recipe-editor-footer .rz-button { min-height: 44px; padding-inline: 12px; }
 .checklist-editor-dialog--recipe .recipe-kpi-bar { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .checklist-editor-dialog--recipe .recipe-yield-grid, .checklist-editor-dialog--recipe .pricing-price-row, .checklist-editor-dialog--recipe .pricing-pill-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
 .recipe-ingredient-columns { display: none; }
 .checklist-editor-dialog--recipe .group-handle { display: none; }
 .checklist-editor-dialog--recipe .checklist-group-accordion__header { padding: 9px 12px; }
 .checklist-editor-dialog--recipe .checklist-item { padding: 12px; }
 .checklist-editor-dialog--recipe .item-inline-row { grid-template-columns: minmax(0,1fr) minmax(80px, .85fr) 44px; gap: 8px; }
 .checklist-editor-dialog--recipe .item-inline-name { grid-column: 1 / 3; grid-row: 1; }
 .checklist-editor-dialog--recipe .item-inline-row > .recipe-more-button { grid-column: 3; grid-row: 1; }
 .checklist-editor-dialog--recipe .item-inline-quantity { grid-column: 1; grid-row: 2; }
 .checklist-editor-dialog--recipe .item-inline-unit { grid-column: 2; grid-row: 2; }
 .checklist-editor-dialog--recipe .ingredient-note-disclosure { grid-column: 3; grid-row: 2; align-self: end; }
 .checklist-editor-dialog--recipe .ingredient-note-toggle, .checklist-editor-dialog--recipe .recipe-more-button { width: 44px; height: 44px; }
 .checklist-editor-dialog--recipe .item-inline-row .floating-inline-field__control { height: 40px; }
 .checklist-editor-dialog--recipe .item-inline-row .recipe-link-search__input { height: 32px; }
 .checklist-editor-dialog--recipe .item-inline-quantity, .checklist-editor-dialog--recipe .item-inline-unit { padding-top: 17px; }
 .checklist-editor-dialog--recipe .item-inline-quantity .floating-inline-field__label, .checklist-editor-dialog--recipe .item-inline-unit .floating-inline-field__label { display: block; top: 0; left: 0; opacity: 1; transform: none; font-size: 10px; color: #637188; }
 .checklist-editor-dialog--recipe .recipe-compact-status { flex-wrap: wrap; }
}
/* Override inherited legacy form chrome only within the recipe workspace. */
.checklist-editor-dialog--recipe, .checklist-editor-dialog--recipe button, .checklist-editor-dialog--recipe input, .checklist-editor-dialog--recipe textarea, .checklist-editor-dialog--recipe .rz-inputtext, .checklist-editor-dialog--recipe .rz-dropdown-label { font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif; }
.checklist-editor-dialog--recipe .recipe-section-card { background: transparent !important; }
.checklist-editor-dialog--recipe .recipe-section-card > .rz-fieldset-content-wrapper > .rz-fieldset-content { padding: 0 !important; }
.checklist-editor-dialog--recipe .recipe-editor-switch { border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
.checklist-editor-dialog--recipe .recipe-editor-header__actions .rz-button { border: 0 !important; }
.checklist-editor-dialog--recipe .recipe-editor-tabs > .weather-tab-list { scrollbar-width: none; }
.checklist-editor-dialog--recipe .recipe-editor-tabs > .weather-tab-list::-webkit-scrollbar { display: none; }
.checklist-editor-dialog--recipe .floating-inline-field__label { text-transform: none; letter-spacing: 0; font-weight: 500; }
.checklist-editor-dialog--recipe .item-inline-row .floating-inline-field__control { box-shadow: none; }
.checklist-editor-dialog--recipe .recipe-compact-status__text { font-weight: 500; color: #89571b; }
.checklist-editor-dialog--recipe #recipe-panel-basis .recipe-section-card > .rz-fieldset-legend,
.checklist-editor-dialog--recipe #recipe-panel-media .recipe-section-card > .rz-fieldset-legend { display: none; }
.checklist-editor-dialog--recipe #recipe-panel-basis .weather-tabs { border: 0; background: #fff; border-radius: 10px; padding: 18px 20px; }
.checklist-editor-dialog--recipe #recipe-panel-basis .weather-tab-list { border: 0; border-radius: 0; }
.checklist-editor-dialog--recipe #recipe-panel-basis .recipe-translation-language-tabs .weather-tab-button.active { color: #2e5bdf; background: #eef3ff; }
.checklist-editor-dialog--recipe #recipe-panel-basis .checklist-title-input { font-size: 15px; min-height: 44px; }
@media (max-width: 560px) {
 .checklist-editor-dialog--recipe .item-inline-row .item-inline-quantity,
 .checklist-editor-dialog--recipe .item-inline-row .item-inline-unit { padding-top: 18px; }
 .checklist-editor-dialog--recipe .item-inline-row .floating-inline-field__label { top: 0; left: 0; }
 .checklist-editor-dialog--recipe #recipe-panel-basis .weather-tabs { padding: 14px 12px; }
}
.checklist-editor-dialog--recipe .recipe-section-card .rz-fieldset-content { padding: 0 !important; }
.checklist-editor-dialog--recipe .checklist-item { display: block; }
.checklist-editor-dialog--recipe .item-inline-row { width: 100%; }
.checklist-editor-dialog--recipe .recipe-ingredient-status { font-weight: 400; }
.checklist-editor-dialog--recipe .item-inline-row .rz-dropdown { border: 1px solid var(--recipe-line) !important; }
.checklist-editor-dialog--recipe #recipe-panel-pricing .recipe-yield-grid { padding: 16px; }
@media (min-width: 768px) and (max-width: 1023px) {
 .checklist-editor-dialog--recipe .recipe-editor-header { display: grid; grid-template-columns: 48px minmax(0,1fr) 36px; gap: 12px; }
 .checklist-editor-dialog--recipe .recipe-editor-header__meta { grid-row: 2; grid-column: 1 / 3; }
 .checklist-editor-dialog--recipe .recipe-editor-header__actions { display: contents; }
 .checklist-editor-dialog--recipe .recipe-editor-header__actions .rz-button { grid-row: 2; grid-column: 3; justify-self: end; }
 .checklist-editor-dialog--recipe .recipe-editor-header__close { grid-row: 1; grid-column: 3; }
 .checklist-editor-dialog--recipe .recipe-editor-header__title { font-size: 22px; }
}
/* Idle capture stays compact; the active camera/video stage is untouched. */
.checklist-editor-dialog--recipe .capture-shell:has(.capture-stage__placeholder) { grid-template-columns: minmax(0,1fr); }
.checklist-editor-dialog--recipe .capture-stage__placeholder { display: flex; align-items: center; gap: 12px; padding: 12px; }
.checklist-editor-dialog--recipe .capture-stage__placeholder .capture-stage__text { display: none; }
.checklist-editor-dialog--recipe .capture-stage__placeholder .capture-stage__title { margin: 0; font-size: 14px; }
.checklist-editor-dialog--recipe .capture-stage__placeholder .capture-stage__icon { margin: 0; flex-shrink: 0; }
.checklist-editor-dialog--recipe .capture-shell:has(.capture-stage__placeholder) .capture-button-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.checklist-editor-dialog--recipe .capture-shell:has(.capture-stage__placeholder) .capture-action-button { width: 100%; margin: 0; min-width: 0; white-space: normal; border-radius: 8px; font-size: 12px; }
