/**
 * Kitchen component styles extracted from the global stylesheet.
 */

.kitchen-overlay--utensil-pan #kitchen-recipe-overlay-backdrop {
    background: radial-gradient(circle at center, rgba(253, 224, 71, 0.6), rgba(253, 186, 116, 0.25));
}

.kitchen-overlay--utensil-pot #kitchen-recipe-overlay-backdrop {
    background: radial-gradient(circle at center, rgba(191, 219, 254, 0.65), rgba(147, 197, 253, 0.3));
}

.kitchen-overlay--utensil-grill #kitchen-recipe-overlay-backdrop {
    background: radial-gradient(circle at center, rgba(248, 113, 113, 0.6), rgba(239, 68, 68, 0.28));
}

.origin-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: none;
    background: rgba(107, 55, 20, 0.9);
    color: #fff7ed;
    border-radius: 999px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.origin-modal__close:hover,
.origin-modal__close:focus {
    background: rgba(131, 76, 32, 0.95);
    transform: scale(1.05);
}

#kitchen-corner-grid {
    display: grid;
    gap: clamp(1.75rem, 2.8vw, 3rem);
}

@media (min-width: 992px) {
    #kitchen-corner-grid {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
        align-items: start;
    }
}

#kitchen-visual-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#kitchen-dialog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kitchen-card,
.tsock-side-panel {
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    box-shadow: 0 25px 60px -28px rgba(148, 163, 184, 0.6);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.55);
}

.card-content {
    padding: 2rem;
}

.card-title {
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #0f172a;
}

.grey-text {
    color: rgba(71, 85, 105, 0.85) !important;
}

#kitchen-canvas {
    position: relative;
    margin: 1.5rem 0;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #0f172a;
    box-shadow: inset 0 20px 50px rgba(15, 23, 42, 0.28);
    aspect-ratio: 4 / 3;
    display: block;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#kitchen-canvas.kitchen-canvas--stage-select-dish {
    box-shadow: inset 0 18px 46px rgba(15, 23, 42, 0.26);
}

#kitchen-canvas.kitchen-canvas--stage-select-utensil {
    box-shadow: inset 0 28px 52px rgba(59, 130, 246, 0.18);
}

#kitchen-canvas.kitchen-canvas--stage-cook {
    box-shadow: 0 26px 52px -28px rgba(79, 70, 229, 0.4), inset 0 18px 36px rgba(15, 23, 42, 0.18);
}

#kitchen-canvas.kitchen-canvas--stage-cleanup {
    box-shadow: 0 28px 58px -28px rgba(34, 197, 94, 0.35), inset 0 16px 40px rgba(15, 118, 110, 0.18);
}

#kitchen-canvas.kitchen-canvas--stage-complete {
    box-shadow: 0 32px 60px -24px rgba(234, 179, 8, 0.35);
    transform: translateY(-4px);
}

#kitchen-canvas.kitchen-canvas--step-wait {
    animation: kitchen-pulse-wait 1.8s ease-in-out infinite;
}

#kitchen-canvas.kitchen-canvas--step-action {
    animation: kitchen-pulse-action 1.4s ease-in-out infinite;
}

#kitchen-canvas.kitchen-canvas--utensil-pan::before,
#kitchen-canvas.kitchen-canvas--utensil-pot::before,
#kitchen-canvas.kitchen-canvas--utensil-grill::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 1rem;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0.18;
}

#kitchen-canvas.kitchen-canvas--utensil-pan::before {
    background: radial-gradient(circle at center, rgba(250, 204, 21, 0.35), rgba(234, 179, 8, 0));
}

#kitchen-canvas.kitchen-canvas--utensil-pot::before {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.35), rgba(37, 99, 235, 0));
}

#kitchen-canvas.kitchen-canvas--utensil-grill::before {
    background: radial-gradient(circle at center, rgba(248, 113, 113, 0.35), rgba(239, 68, 68, 0));
}

#kitchen-canvas:focus-visible {
    outline: 3px solid rgba(14, 165, 233, 0.75);
    outline-offset: 3px;
}

#kitchen-sprite {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    user-select: none;
    transition: transform 0.6s ease, filter 0.6s ease, opacity 0.6s ease;
    will-change: transform, filter, opacity;
}

#kitchen-sprite.is-switching {
    transform: scale(1.04);
    filter: saturate(1.08) brightness(1.03);
}

#kitchen-recipe-overlay {
    position: absolute;
    inset: 14% 16% 20% 20%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    padding: 12px;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(150deg, rgba(15, 23, 42, 0.58), rgba(30, 64, 175, 0.2));
    box-shadow:
        0 30px 60px -28px rgba(15, 23, 42, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform-origin: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

#kitchen-recipe-overlay-backdrop {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(253, 244, 215, 0.55), rgba(14, 116, 144, 0.25));
    opacity: 0;
    transition: opacity 0.35s ease;
}

#kitchen-recipe-overlay-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 18px 45px -30px rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

#kitchen-recipe-overlay.is-hidden,
#kitchen-recipe-overlay-backdrop.is-hidden {
    opacity: 0;
    pointer-events: none;
}

#kitchen-recipe-overlay.is-hidden img {
    opacity: 0;
}

#kitchen-recipe-overlay.kitchen-overlay--stage-select-utensil {
    background: linear-gradient(140deg, rgba(59, 130, 246, 0.45), rgba(147, 197, 253, 0.25));
}

#kitchen-recipe-overlay.kitchen-overlay--stage-cleanup {
    background: linear-gradient(140deg, rgba(34, 197, 94, 0.45), rgba(187, 247, 208, 0.25));
}

#kitchen-recipe-overlay.kitchen-overlay--stage-complete {
    background: linear-gradient(140deg, rgba(251, 191, 36, 0.45), rgba(253, 230, 138, 0.25));
}

.is-hidden {
    display: none !important;
}

#kitchen-mission-list {
    list-style: none;
    margin: 1.5rem 0 2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.kitchen-mission {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(203, 161, 114, 0.32);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.85rem 1rem;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kitchen-mission:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -26px rgba(148, 163, 184, 0.55);
    border-color: rgba(203, 161, 114, 0.6);
}

.kitchen-mission.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(245, 208, 254, 0.8), rgba(254, 249, 195, 0.92));
    box-shadow: 0 28px 54px -28px rgba(79, 70, 229, 0.45);
}

.kitchen-mission__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(203, 161, 114, 0.2);
    color: #7c2d12;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
}

.kitchen-mission.is-active .kitchen-mission__number {
    background: rgba(255, 255, 255, 0.6);
    color: #4338ca;
}

.kitchen-mission__body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.kitchen-mission__thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: inset 0 6px 18px -16px rgba(15, 23, 42, 0.35);
}

.kitchen-mission__thumb img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.22));
    transform: translateY(2px);
}

.kitchen-mission__title {
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #0f172a;
    font-size: 1rem;
}

.kitchen-mission__title-secondary {
    font-size: 0.85rem;
    color: rgba(30, 41, 59, 0.65);
}

.kitchen-mission__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.kitchen-mission__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    background: rgba(148, 163, 184, 0.18);
    color: rgba(30, 41, 59, 0.8);
}

.kitchen-mission__badge--duration {
    background: rgba(250, 204, 21, 0.2);
    color: #854d0e;
}

.kitchen-mission__badge--utensil {
    background: rgba(56, 189, 248, 0.2);
    color: #0c4a6e;
}

.kitchen-side-subtitle {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: rgba(71, 85, 105, 0.75);
}

#kitchen-progress {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
    flex-wrap: nowrap;
}

#kitchen-progress .kitchen-progress__node {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 0.25rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#kitchen-progress .kitchen-progress__node:is(:hover, :focus-visible) {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

#kitchen-progress .kitchen-progress__node:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.5), 0 10px 22px rgba(15, 23, 42, 0.18);
}

#kitchen-progress .kitchen-progress__node.is-disabled,
#kitchen-progress .kitchen-progress__node:disabled {
    cursor: default;
    opacity: 0.6;
    box-shadow: none;
    transform: none;
}

#kitchen-progress .kitchen-progress__dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(226, 232, 240, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(51, 65, 85, 0.7);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#kitchen-progress .kitchen-progress__node.is-complete .kitchen-progress__dot {
    background: linear-gradient(135deg, rgba(134, 239, 172, 0.8), rgba(59, 130, 246, 0.3));
    color: rgba(22, 101, 52, 0.85);
    box-shadow: 0 0 0 4px rgba(134, 239, 172, 0.35);
}

#kitchen-progress .kitchen-progress__node.is-active .kitchen-progress__dot {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(233, 213, 255, 1), rgba(165, 180, 252, 0.95));
    color: #312e81;
    box-shadow: 0 0 0 6px rgba(224, 231, 255, 0.45);
}

@media (max-width: 680px) {
    #kitchen-progress {
        gap: 0.75rem;
    }

    #kitchen-progress .kitchen-progress__node {
        min-width: 28px;
    }
}

.kitchen-visual-footer {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(203, 213, 225, 0.6);
    margin-bottom: 1.8rem;
    display: flex;
    justify-content: center;
}

#kitchen-stage {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-bottom: 1.8rem;
}

#kitchen-utensils {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.kitchen-utensil {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 0.85rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(248, 250, 252, 0.92);
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.kitchen-utensil:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px -26px rgba(100, 116, 139, 0.55);
    border-color: rgba(148, 163, 184, 0.55);
}

.kitchen-utensil.is-recommended {
    border-color: rgba(99, 102, 241, 0.45);
}

.kitchen-utensil.is-selected {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(221, 214, 254, 0.75), rgba(233, 237, 254, 0.95));
    box-shadow: 0 24px 48px -24px rgba(91, 104, 205, 0.45);
}

.kitchen-utensil__media {
    width: 96px;
    height: 96px;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kitchen-utensil__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kitchen-utensil__body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.kitchen-utensil__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.kitchen-utensil__title-secondary {
    font-size: 0.85rem;
    color: rgba(30, 41, 59, 0.7);
}

.kitchen-utensil__description {
    font-size: 0.88rem;
    color: rgba(51, 65, 85, 0.95);
}

.kitchen-utensil__description-secondary {
    font-size: 0.8rem;
    color: rgba(30, 41, 59, 0.6);
}

.kitchen-utensil__flags {
    position: absolute;
    top: 12px;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.kitchen-utensil__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    background: rgba(56, 189, 248, 0.2);
    color: #0369a1;
}

.kitchen-utensil__tag--selected {
    background: rgba(99, 102, 241, 0.25);
    color: #4338ca;
}

#kitchen-utensil-hint {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(71, 85, 105, 0.85);
}

#kitchen-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

#kitchen-dialog {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 1rem;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 28px -22px rgba(148, 163, 184, 0.5);
}

#kitchen-dialog-header {
    display: inline-flex;
    alignments: baseline;
    gap: 0.2rem;
    font-family: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
    font-size: 0.95rem;
    color: rgba(71, 85, 105, 0.85);
}

#kitchen-dialog-index {
    font-weight: 700;
    color: #4338ca;
}

#kitchen-dialog-total {
    color: rgba(71, 85, 105, 0.65);
}

#kitchen-dialog-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

#kitchen-dialog-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0f172a;
}

#kitchen-dialog-title-secondary {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(30, 41, 59, 0.7);
}

#kitchen-dialog-type {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(79, 70, 229, 0.8);
}

#kitchen-dialog-type-label {
    font-weight: 600;
    color: rgba(79, 70, 229, 0.85);
}

#kitchen-dialog-type-divider {
    color: rgba(40, 54, 140, 0.5);
}

#kitchen-dialog-copy {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.9);
}

#kitchen-dialog-copy-secondary {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(30, 41, 59, 0.7);
}

#kitchen-dialog-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

#kitchen-dialog-actions .kitchen-action-btn {
    min-height: 48px;
}

#kitchen-empty {
    padding: 3rem 0;
    text-align: center;
}

#kitchen-empty p:first-child {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
}

#kitchen-empty p + p {
    margin-top: 0.5rem;
}

#kitchen-visual-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.kitchen-meta {
    display: flex;
    gap: 1.5rem;
    margin: 0;
}

.kitchen-meta__item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 120px;
}

.kitchen-meta__item dt {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: rgba(71, 85, 105, 0.7);
}

.kitchen-meta__item dd {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.kitchen-meta__value {
    font-weight: 600;
    color: #0f172a;
}

.kitchen-meta__value-secondary {
    font-size: 0.85rem;
    color: rgba(71, 85, 105, 0.7);
}

.kitchen-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.kitchen-steps li {
    margin: 0;
    padding: 0;
}

.kitchen-step {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: rgba(15, 23, 42, 0.9);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kitchen-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -24px rgba(148, 163, 184, 0.55);
    border-color: rgba(148, 163, 184, 0.4);
}

.kitchen-step.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(221, 214, 254, 0.65), rgba(233, 237, 254, 0.9));
    box-shadow: 0 22px 48px -24px rgba(99, 102, 241, 0.45);
}

.kitchen-step.is-complete {
    opacity: 0.75;
    background: rgba(221, 214, 254, 0.35);
    border-color: transparent;
}

.kitchen-step__index {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(15, 23, 42, 0.75);
}

.kitchen-step__copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: flex-start;
}

.kitchen-step__label {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.kitchen-step__label-secondary {
    font-size: 0.85rem;
    color: rgba(30, 41, 59, 0.65);
}

.kitchen-step__typegroup {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: flex-end;
}

.kitchen-step__type {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(79, 70, 229, 0.75);
}

.kitchen-step__type-secondary {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(79, 70, 229, 0.55);
}

.kitchen-step.is-placeholder {
    justify-content: center;
    text-align: center;
    color: rgba(71, 85, 105, 0.8);
    font-style: italic;
}

#kitchen-cleanup {
    margin-top: 0.5rem;
}

#kitchen-cleanup h3 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(71, 85, 105, 0.8);
}

#kitchen-cleanup-list {
    margin: 0;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: rgba(30, 41, 59, 0.85);
}

.kitchen-cleanup__item strong {
    display: block;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.kitchen-cleanup__item p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: rgba(71, 85, 105, 0.85);
}

.kitchen-cleanup__item {
    position: relative;
    padding-left: 0.35rem;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.kitchen-cleanup__item::marker {
    color: rgba(99, 102, 241, 0.55);
}

.kitchen-cleanup__item.is-active {
    color: #1e293b;
    font-weight: 600;
}

.kitchen-cleanup__item.is-active::marker {
    color: rgba(99, 102, 241, 0.95);
}

.kitchen-cleanup__item.is-complete {
    opacity: 0.5;
    text-decoration: line-through;
}

.kitchen-cleanup__secondary {
    margin-top: 0.2rem;
    font-size: 0.85rem;
    color: rgba(30, 41, 59, 0.6);
}

@media (max-width: 720px) {
    #kitchen-mission-list {
        margin-bottom: 1.5rem;
    }

    .kitchen-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .kitchen-step {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "index label"
            "index type";
    }

    .kitchen-step__index {
        grid-area: index;
    }

    .kitchen-step__copy {
        grid-area: label;
        align-items: flex-start;
    }

    .kitchen-step__typegroup {
        grid-area: type;
        align-items: flex-start;
    }
}

@media (min-width: 601px) {
    .tsock-header {
        /* padding: 1.8rem 2.5rem 2.8rem; */
    }
}

@media (min-width: 993px) {
    .tsock-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
        /* padding: 2rem 4vw 3rem; */
        border-radius: 0;
        text-align: left;
    }

    .tsock-header-controls {
        width: auto;
        justify-content: flex-end;
    }
}

@media (max-width: 600px) {
    .card-content {
        padding: 1.5rem;
    }

    #kitchen-bubble {
        padding: 0.85rem 1rem;
    }

    .tsock-side-actions {
        gap: 0.5rem;
    }
}

@media (min-width: 992px) {
    .tsock-header__filler {
        display: block;
        position: absolute;
        top: -12px;
        right: -18px;
        width: 50%;
        height: 180px;
        background-image: url('assets/img/header_filler_top_right.webp');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        pointer-events: none;
        transform: rotate(4deg);
        opacity: 0.3;
        z-index: 1;
    }
}

#kitchen-bubble {
    width: 100%;
    max-width: 420px;
    padding: 1rem 1.25rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.kitchen-bubble__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: rgba(71, 85, 105, 0.8);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kitchen-bubble__counter {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    font-weight: 700;
    color: #312e81;
}

.kitchen-bubble__counter-index {
    font-size: 1rem;
}

.kitchen-bubble__counter-divider,
.kitchen-bubble__counter-total {
    font-size: 0.85rem;
    color: rgba(71, 85, 105, 0.75);
}

.kitchen-bubble__type {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: rgba(79, 70, 229, 0.85);
}

.kitchen-bubble__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.kitchen-bubble__title-secondary {
    margin: -0.15rem 0 0;
    font-size: 0.9rem;
    color: rgba(30, 41, 59, 0.7);
}

.kitchen-bubble__body {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.9);
    line-height: 1.5;
}

.kitchen-bubble__body-secondary {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(30, 41, 59, 0.7);
    line-height: 1.45;
}

.kitchen-waiting::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(2px);
    animation: tsock-waiting 1.4s ease-in-out infinite;
}

#kitchen-canvas.kitchen-plating::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.28);
    pointer-events: none;
    animation: kitchen-plating-fade 1.4s ease forwards;
}

#kitchen-recipe-overlay.is-plating {
    animation: omleta-serve-overlay 1.4s ease forwards;
}

#kitchen-recipe-overlay-image.is-plating {
    animation: omleta-serve-plate 1.4s ease forwards;
}

#kitchen-recipe-overlay-backdrop.is-plating {
    opacity: 0.85;
    animation: omleta-serve-backdrop 1.4s ease forwards;
}

@keyframes tsock-waiting {
    0% { opacity: 0.55; }
    50% { opacity: 0.85; }
    100% { opacity: 0.55; }
}

@keyframes kitchen-plating-fade {
    0% { opacity: 0; }
    35% { opacity: 0.18; }
    100% { opacity: 0; }
}

@keyframes omleta-serve-overlay {
    0% { transform: scale(1); opacity: 1; }
    55% { transform: scale(0.9); opacity: 0.95; }
    100% { transform: scale(0.75) translateY(18px); opacity: 0; }
}

@keyframes omleta-serve-plate {
    0% { transform: scale(1); opacity: 1; }
    45% { transform: scale(0.88); opacity: 0.95; }
    100% { transform: scale(0.65) translateY(24px); opacity: 0; }
}

@keyframes omleta-serve-backdrop {
    0% { opacity: 0; }
    20% { opacity: 0.7; }
    60% { opacity: 0.85; }
    100% { opacity: 0; }
}

@keyframes kitchen-pulse-wait {
    0% { box-shadow: 0 26px 48px -32px rgba(59, 130, 246, 0.45); }
    50% { box-shadow: 0 30px 56px -28px rgba(59, 130, 246, 0.6); }
    100% { box-shadow: 0 26px 48px -32px rgba(59, 130, 246, 0.45); }
}

@keyframes kitchen-pulse-action {
    0% { box-shadow: 0 28px 54px -26px rgba(244, 114, 182, 0.55); }
    50% { box-shadow: 0 34px 64px -22px rgba(244, 114, 182, 0.72); }
    100% { box-shadow: 0 28px 54px -26px rgba(244, 114, 182, 0.55); }
}

#kitchen-complete {
    padding: 1.4rem 1.6rem;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, rgba(224, 231, 255, 0.8), rgba(255, 255, 255, 0.9));
    text-align: center;
    box-shadow: 0 24px 44px -26px rgba(148, 163, 184, 0.4);
}

#kitchen-complete h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    color: #312e81;
    font-weight: 700;
}

#kitchen-complete p {
    margin: 0;
    color: rgba(30, 41, 59, 0.85);
}

.kitchen-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.7rem 1.15rem;
    border-radius: 0.9rem;
    border: none;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    color: #78350f;
    box-shadow: 0 16px 36px -24px rgba(251, 191, 36, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.kitchen-action-btn--ghost {
    background: rgba(226, 232, 240, 0.65);
    color: #1f2937;
    box-shadow: none;
}

.kitchen-action-btn--ghost:hover:not(:disabled) {
    filter: none;
    transform: translateY(-1px);
    background: rgba(203, 213, 225, 0.9);
}

.kitchen-action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px -24px rgba(251, 191, 36, 0.9);
    filter: saturate(1.05);
}

.kitchen-action-btn:disabled,
.kitchen-action-btn[aria-disabled='true'] {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    background: rgba(226, 232, 240, 0.9);
    color: rgba(71, 85, 105, 0.85);
}
