.bottom-tab {
    align-items: center;
    border-radius: 0.75rem;
    color: rgb(82 82 91);
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    font-weight: 700;
    gap: 0.2rem;
    min-height: 3.25rem;
    justify-content: center;
}

.bottom-tab svg,
.icon-button svg {
    height: 1.25rem;
    width: 1.25rem;
}

.bottom-tab.is-active {
    background: rgb(236 253 245);
    color: rgb(4 120 87);
}

.icon-button {
    align-items: center;
    background: white;
    border: 1px solid rgb(228 228 231);
    border-radius: 0.75rem;
    color: rgb(63 63 70);
    display: inline-flex;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.segmented-control {
    background: rgb(244 244 245);
    border: 1px solid rgb(228 228 231);
    border-radius: 0.9rem;
    display: grid;
    gap: 0.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0.25rem;
}

.plan-mode {
    border-radius: 0.7rem;
    color: rgb(82 82 91);
    font-size: 0.85rem;
    font-weight: 800;
    min-height: 2.35rem;
}

.plan-mode.is-active {
    background: white;
    box-shadow: 0 1px 2px rgb(24 24 27 / 0.08);
    color: rgb(4 120 87);
}

.field {
    background: white;
    border: 1px solid rgb(228 228 231);
    border-radius: 0.75rem;
    outline: none;
    padding: 0.8rem 0.9rem;
    width: 100%;
}

.field:focus {
    border-color: rgb(4 120 87);
    box-shadow: 0 0 0 3px rgb(167 243 208 / 0.55);
}

.meal-card {
    align-items: center;
    background: white;
    border: 1px solid rgb(228 228 231);
    border-radius: 1rem;
    display: flex;
    gap: 0.9rem;
    min-height: 7rem;
    padding: 0.75rem;
    box-shadow: 0 1px 2px rgb(24 24 27 / 0.06);
}

.empty-slot {
    align-items: center;
    background: white;
    border: 1px dashed rgb(161 161 170);
    border-radius: 1rem;
    color: rgb(63 63 70);
    display: flex;
    justify-content: space-between;
    min-height: 5.75rem;
    padding: 1rem;
    width: 100%;
}

.recipe-tile {
    background: white;
    border: 1px solid rgb(228 228 231);
    border-radius: 1rem;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 1px 2px rgb(24 24 27 / 0.06);
}

.recipe-tile img {
    aspect-ratio: 1.15;
    background: rgb(244 244 245);
    object-fit: cover;
    width: 100%;
}

.week-card,
.month-calendar {
    background: white;
    border: 1px solid rgb(228 228 231);
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgb(24 24 27 / 0.06);
}

.week-card {
    padding: 0.9rem;
}

.meal-chip {
    align-items: center;
    background: rgb(250 250 250);
    border: 1px solid rgb(244 244 245);
    border-radius: 0.8rem;
    display: flex;
    gap: 0.65rem;
    min-height: 3.25rem;
    padding: 0.45rem;
    text-align: left;
    width: 100%;
}

.meal-chip img {
    border-radius: 0.65rem;
    height: 2.35rem;
    object-fit: cover;
    width: 2.35rem;
}

.month-calendar {
    display: grid;
    gap: 0.35rem;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    padding: 0.65rem;
}

.month-day {
    aspect-ratio: 1;
    border-radius: 0.85rem;
    display: flex;
    flex-direction: column;
    font-size: 0.72rem;
    font-weight: 800;
    justify-content: space-between;
    min-width: 0;
    padding: 0.35rem;
    text-align: left;
}

.month-day.is-muted {
    color: rgb(161 161 170);
}

.month-day.has-plan {
    background: rgb(236 253 245);
    color: rgb(4 120 87);
}

.month-day.is-selected {
    background: rgb(4 120 87);
    color: white;
}

.month-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.12rem;
}

.month-dot {
    background: currentColor;
    border-radius: 999px;
    height: 0.25rem;
    opacity: 0.75;
    width: 0.25rem;
}

.editor-steps {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.editor-days {
    display: grid;
    gap: 0.4rem;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.editor-day {
    background: rgb(244 244 245);
    border: 1px solid rgb(228 228 231);
    border-radius: 0.85rem;
    color: rgb(82 82 91);
    font-size: 0.7rem;
    font-weight: 800;
    min-height: 3.15rem;
    padding: 0.3rem;
    text-align: center;
}

.editor-day.is-active {
    background: rgb(4 120 87);
    color: white;
}

.editor-day.is-complete:not(.is-active) {
    background: rgb(236 253 245);
    color: rgb(4 120 87);
}

.editor-step {
    background: rgb(244 244 245);
    border: 1px solid rgb(228 228 231);
    border-radius: 0.85rem;
    color: rgb(82 82 91);
    font-size: 0.72rem;
    font-weight: 800;
    min-height: 3rem;
    padding: 0.35rem;
    text-align: center;
}

.editor-step.is-active {
    background: rgb(4 120 87);
    color: white;
}

.editor-step.is-complete:not(.is-active) {
    background: rgb(236 253 245);
    color: rgb(4 120 87);
}

.editor-summary {
    background: white;
    border: 1px solid rgb(228 228 231);
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgb(24 24 27 / 0.06);
    padding: 1rem;
}

#view-editor {
    display: block;
}

#view-editor.hidden {
    display: none;
}

#view-editor > * + * {
    margin-top: 1rem;
}

#editorDateLabel {
    color: rgb(113 113 122);
    font-size: 0.9rem;
    font-weight: 700;
}

.editor-recipe-grid {
    display: grid;
    gap: 0.9rem;
}

.editor-recipe-card {
    background: white;
    border: 1px solid rgb(228 228 231);
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgb(24 24 27 / 0.06);
    overflow: hidden;
}

.editor-recipe-card img {
    aspect-ratio: 16 / 9;
    background: rgb(244 244 245);
    object-fit: cover;
    width: 100%;
}

.editor-recipe-body {
    padding: 0.95rem;
}

.editor-recipe-meta {
    color: rgb(4 120 87);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.editor-recipe-title {
    color: rgb(24 24 27);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    margin-top: 0.25rem;
}

.editor-recipe-prep {
    color: rgb(82 82 91);
    display: -webkit-box;
    font-size: 0.85rem;
    line-height: 1.35;
    margin-top: 0.55rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.editor-recipe-actions {
    align-items: center;
    display: flex;
    gap: 0.6rem;
    justify-content: space-between;
    margin-top: 0.85rem;
}

.editor-preview-button {
    color: rgb(82 82 91);
    font-size: 0.8rem;
    font-weight: 800;
}

.editor-select-button {
    background: rgb(4 120 87);
    border-radius: 0.8rem;
    color: white;
    font-size: 0.85rem;
    font-weight: 800;
    min-height: 2.35rem;
    padding: 0 0.9rem;
}
