:root {
    --ink: #17362e;
    --muted: #667b73;
    --forest: #174c3c;
    --forest-2: #23624f;
    --mint: #e8f1eb;
    --cream: #f8f5ed;
    --paper: #fffdf8;
    --orange: #e97a3c;
    --orange-soft: #fff0e5;
    --gold: #d4a646;
    --red: #b94a43;
    --red-soft: #fae9e7;
    --line: #dce5df;
    --shadow: 0 18px 50px rgba(29, 61, 50, .11);
    --radius: 24px;
    --radius-sm: 14px;
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }

.demo-banner {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 6px 18px;
    color: #fffbef;
    background: #102e26;
    font-size: 11px;
    letter-spacing: .04em;
}

.demo-banner span {
    padding: 2px 7px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 999px;
    font-size: 9px;
    letter-spacing: .13em;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto auto auto;
    align-items: center;
    gap: 24px;
    padding: 12px max(28px, calc((100vw - 1400px) / 2));
    background: rgba(255, 253, 248, .94);
    border-bottom: 1px solid rgba(23, 76, 60, .1);
    backdrop-filter: blur(18px);
}

.test-guide {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(230px, .8fr) minmax(0, 2.2fr);
    gap: 22px;
    padding: 16px max(28px, calc((100vw - 1400px) / 2));
    color: #fffdf8;
    background: linear-gradient(105deg, #174c3c, #23624f);
    box-shadow: 0 10px 28px rgba(16, 46, 38, .16);
}

.test-guide-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.test-guide-heading > div { display: grid; gap: 4px; }
.test-guide-heading span { color: #ffd695; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.test-guide-heading strong { font: 600 18px Georgia, serif; }
.test-guide-heading button { padding: 6px 9px; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; color: white; background: transparent; cursor: pointer; font-size: 9px; font-weight: 800; }
.test-guide ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 0; padding: 0; list-style: none; counter-reset: test-step; }
.test-guide li { position: relative; min-height: 52px; padding: 9px 9px 9px 34px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.08); font-size: 9px; line-height: 1.45; counter-increment: test-step; }
.test-guide li::before { content: counter(test-step); position: absolute; top: 9px; left: 9px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: #ffd695; font-size: 9px; font-weight: 900; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--forest);
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--forest);
    border-radius: 14px 14px 14px 5px;
    font: 800 23px Georgia, serif;
}

.brand strong {
    display: block;
    font: 700 23px Georgia, serif;
    line-height: 1;
}

.brand small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.role-switcher {
    display: flex;
    gap: 5px;
    padding: 5px;
    background: var(--mint);
    border-radius: 16px;
}

.role-button {
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.role-button:hover { color: var(--forest); }
.role-button.active { color: white; background: var(--forest); box-shadow: 0 6px 18px rgba(23,76,60,.2); }

.sync-state {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.sync-state i, .online-pill i {
    width: 8px;
    height: 8px;
    background: #38a975;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(56,169,117,.12);
}

.sync-state.busy i { background: var(--gold); }
.sync-state.error i { background: var(--red); }

.pwa-install-button {
    border: 1px solid #c7dacf;
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--forest);
    background: #f0f7f3;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}

.pwa-command-center {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 16px 0 4px;
    padding: 12px 14px;
    border: 1px solid #cfe0d6;
    border-radius: 14px;
    background: #f3f9f5;
}
.pwa-command-center > div { display: flex; align-items: center; gap: 10px; }
.pwa-command-center > div > div { display: grid; gap: 2px; }
.pwa-command-center strong { font-size: 11px; }
.pwa-command-center small { color: var(--muted); font-size: 9px; }
.pwa-state-dot { width: 10px; height: 10px; border-radius: 50%; background: #38a975; box-shadow: 0 0 0 5px rgba(56,169,117,.12); }
.pwa-command-center.pending { border-color: #efd49c; background: #fff8e9; }
.pwa-command-center.pending .pwa-state-dot { background: var(--gold); box-shadow: 0 0 0 5px rgba(212,166,70,.14); }
.pwa-command-center.offline { border-color: #e9bbb6; background: var(--red-soft); }
.pwa-command-center.offline .pwa-state-dot { background: var(--red); box-shadow: 0 0 0 5px rgba(185,74,67,.12); }

.kitchen-focus-board {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 10px;
    margin: 20px 0 8px;
}
.kitchen-focus-board article { min-height: 125px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.kitchen-focus-board article:first-child { border-color: #eccb8e; background: #fff8e9; }
.kitchen-focus-board h3 { margin: 4px 0 6px; font: 700 17px Georgia, serif; }
.kitchen-focus-board p:not(.eyebrow), .kitchen-focus-board small { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.kitchen-focus-board .focus-empty { color: #85968f; font-size: 10px; }
.pending-command-badge { display: inline-flex; align-items: center; margin-top: 8px; padding: 5px 8px; border-radius: 999px; color: #805b16; background: #fff0c9; font-size: 8px; font-weight: 850; }
.offer-card.has-pending-command, .job-card.has-pending-command { border-color: #e5bf70; }
.offer-card button:disabled, .job-card button:disabled { cursor: wait; opacity: .55; }

.pwa-install-content { position: relative; padding: 28px; }
.pwa-install-content h2 { margin: 0 0 12px; font: 700 27px Georgia, serif; }
.pwa-install-content > p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.65; }
.pwa-update-banner { position: fixed; z-index: 90; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; width: min(92vw, 460px); padding: 12px 14px; border: 1px solid #d8b56a; border-radius: 14px; color: var(--ink); background: #fff8e9; box-shadow: var(--shadow); font-size: 11px; font-weight: 750; }

.view { display: none; }
.view.active { display: block; }

.hero {
    max-width: 1400px;
    min-height: 520px;
    margin: 0 auto;
    padding: 78px 70px;
}

.consumer-hero {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    align-items: center;
    gap: 70px;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 20%, rgba(233,122,60,.24), transparent 22%),
        radial-gradient(circle at 70% 90%, rgba(212,166,70,.2), transparent 24%),
        var(--forest);
    color: white;
    border-radius: 0 0 42px 42px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.consumer-hero .eyebrow { color: #ffb681; }

.hero h1, .kitchen-main h1, .dispatch-title h1 {
    margin: 0;
    font: 600 clamp(42px, 5vw, 70px)/.98 Georgia, serif;
    letter-spacing: -.035em;
}

.hero h1 em { color: #f8c688; font-weight: 400; }

.hero-copy {
    max-width: 670px;
    margin: 26px 0;
    color: rgba(255,255,255,.76);
    font-size: 17px;
    line-height: 1.65;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 13px;
    padding: 11px 18px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--orange); box-shadow: 0 10px 24px rgba(233,122,60,.2); }
.button.primary:hover { background: #d96b30; }
.button.ghost { color: white; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); }
.button.secondary { color: var(--forest); background: var(--mint); }
.button.outline { color: var(--forest); background: transparent; border: 1px solid var(--line); }
.button.danger-subtle { color: var(--red); background: var(--red-soft); }
.button.urgent { color: white; background: var(--red); box-shadow: 0 8px 20px rgba(173,63,55,.22); }
.button.wide { width: 100%; }
.button.small { min-height: 36px; padding: 8px 12px; font-size: 11px; }
.button[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.hero-flow-card {
    position: relative;
    padding: 27px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 26px;
    box-shadow: 0 26px 80px rgba(0,0,0,.18);
    backdrop-filter: blur(16px);
}

.mini-label {
    color: rgba(255,255,255,.6);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hero-flow-card ol { list-style: none; margin: 21px 0 0; padding: 0; }
.hero-flow-card li { position: relative; display: flex; align-items: center; gap: 13px; min-height: 58px; }
.hero-flow-card li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 46px; width: 1px; height: 24px; background: rgba(255,255,255,.2); }
.hero-flow-card b { flex: 0 0 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #f5c57f; color: var(--forest); }
.hero-flow-card span { color: rgba(255,255,255,.86); font-size: 13px; line-height: 1.35; }

.content-shell, .dispatch-shell { max-width: 1400px; margin: 0 auto; padding: 70px 48px 100px; }

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.section-heading.compact { align-items: center; margin-bottom: 22px; }
.section-heading h1 { font-size: clamp(38px, 4vw, 54px); }
.section-heading h2, .panel-title h2, .board-section h2 { margin: 0; font: 600 30px/1.1 Georgia, serif; }
.section-heading.compact h2, .panel-title h2, .board-section h2 { font-size: 22px; }

.mode-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.mode-tabs button { border: 0; padding: 9px 12px; border-radius: 10px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; cursor: pointer; }
.mode-tabs button.active { color: white; background: var(--forest); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.product-card, .order-card, .offer-card, .job-card, .stat-card, .dispatch-orders-panel, .dispatch-detail-panel {
    background: var(--paper);
    border: 1px solid rgba(23,76,60,.11);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(29,61,50,.05);
}

.product-card { overflow: hidden; display: flex; flex-direction: column; min-height: 310px; }
.product-visual { min-height: 112px; display: flex; align-items: center; justify-content: space-between; padding: 22px; background: linear-gradient(135deg, var(--mint), #f3ead7); }
.product-visual.has-image { position: relative; min-height: 172px; padding: 0; overflow: hidden; }
.product-visual.has-image img { width: 100%; height: 172px; object-fit: cover; }
.product-visual.has-image .mode-chip { position: absolute; top: 14px; right: 14px; }
.product-icon { font-size: 56px; filter: drop-shadow(0 8px 10px rgba(23,76,60,.12)); }
.mode-chip, .status-badge, .tag, .count-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.mode-chip.ready_stock { color: #176344; background: #dff3e7; }
.mode-chip.made_to_order { color: #95501f; background: #fff0dd; }
.mode-chip.custom_request { color: #624494; background: #efe7fb; }
.product-body { flex: 1; display: flex; flex-direction: column; padding: 21px; }
.product-category { margin: 0 0 6px; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.product-body h3 { margin: 0; font: 600 23px/1.1 Georgia, serif; }
.product-description { min-height: 42px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.product-readiness { display: grid; gap: 3px; margin: 5px 0 12px; padding: 10px 12px; border-radius: 11px; color: #704b14; background: #fff1d7; }
.product-readiness.available { color: #176344; background: #dff3e7; }
.product-readiness.full { color: #7a4a00; background: #fff0c7; }
.product-readiness.unavailable { color: var(--red); background: var(--red-soft); }
.product-readiness b { font-size: 11px; }
.product-readiness small { font-size: 9px; line-height: 1.35; }
.product-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.product-specs span, .order-product-options span { display: grid; gap: 3px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.product-specs b, .order-product-options b { color: var(--forest); font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
.product-allergen, .product-delivery { margin: 0 0 9px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.product-allergen { color: #7a531c; }
.product-allergen b, .product-delivery b { color: var(--ink); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.tag { color: var(--forest); background: var(--mint); letter-spacing: 0; text-transform: none; }
.product-footer { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.price strong { display: block; color: var(--forest); font: 700 23px Georgia, serif; }
.price small { color: var(--muted); font-size: 10px; }

.orders-heading { margin-top: 74px; }
.consumer-active-orders .orders-heading { margin-top: 0; }
.catalog-heading { margin-top: 74px; scroll-margin-top: 95px; }
.soft-note { color: var(--muted); font-size: 11px; }
.order-list { display: grid; gap: 13px; }
.order-card { padding: 20px 22px; }
.order-card-top { display: grid; grid-template-columns: 1.3fr .8fr auto; gap: 24px; align-items: center; }
.order-title-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.order-title-row h3 { margin: 0; font: 600 20px Georgia, serif; }
.order-meta, .detail-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 7px; color: var(--muted); font-size: 11px; }
.order-price { text-align: right; }
.order-price strong { display: block; font: 700 20px Georgia, serif; }
.order-price small { color: var(--muted); }
.consumer-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 17px; }
.consumer-progress span { display: grid; gap: 6px; color: var(--muted); text-align: center; }
.consumer-progress span i { height: 6px; background: var(--line); border-radius: 99px; }
.consumer-progress span small { font-size: 8px; font-weight: 750; }
.consumer-progress span.done i { background: var(--orange); }
.consumer-progress span.current { color: var(--forest); }
.consumer-progress span.current small { font-weight: 900; }
.privacy-note, .counter-box { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--mint); color: var(--forest); font-size: 11px; line-height: 1.45; }
.consumer-traceability { margin-top: 13px; padding: 11px 13px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 3px 10px; border: 1px dashed #a8c9b7; border-radius: 11px; background: #f4faf6; }
.consumer-traceability span, .consumer-traceability small { color: var(--muted); font-size: 9px; }
.consumer-traceability b { color: var(--forest); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.consumer-traceability small { grid-column: 1 / -1; }
.counter-box { background: #fff5dd; color: #765713; }
.counter-actions { display: flex; gap: 8px; margin-top: 10px; }
.information-request { display: grid; gap: 11px; margin-top: 14px; padding: 15px; border: 1px solid #e7bd70; border-radius: 14px; background: #fff7e8; color: #684715; }
.information-request p { margin: 5px 0 0; line-height: 1.5; }
.information-request label span { display: block; margin-bottom: 5px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.information-request textarea { width: 100%; min-height: 65px; padding: 10px; border: 1px solid #dfc99c; border-radius: 10px; background: white; resize: vertical; }
.information-request .button { justify-self: start; }

.status-badge { color: var(--forest); background: var(--mint); }
.status-badge.submitted, .status-badge.offered, .status-badge.matching { color: #8a5d19; background: #fff1d7; }
.status-badge.waiting { color: var(--red); background: var(--red-soft); }
.status-badge.counteroffered { color: #624494; background: #efe7fb; }
.status-badge.payment_pending { color: #8a5d19; background: #fff1d7; }
.status-badge.expired { color: var(--red); background: var(--red-soft); }
.status-badge.accepted, .status-badge.completed { color: #176344; background: #dff3e7; }
.status-badge.preparing, .status-badge.ready { color: #95501f; background: #fff0dd; }

.app-shell { max-width: 1400px; min-height: calc(100vh - 106px); margin: 0 auto; display: grid; grid-template-columns: 285px 1fr; }
.kitchen-sidebar { padding: 42px 24px; background: #123c31; color: white; }
.kitchen-sidebar .eyebrow { color: #ffb681; }
.provider-select { width: 100%; padding: 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: white; background: rgba(255,255,255,.08); }
.provider-select option { color: var(--ink); background: white; }
.provider-profile { margin-top: 28px; }
.provider-avatar { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 22px 22px 22px 7px; background: #e7b86f; color: var(--forest); font: 700 22px Georgia, serif; }
.provider-profile h2 { margin: 14px 0 3px; font: 600 23px Georgia, serif; }
.provider-profile p { margin: 4px 0; color: rgba(255,255,255,.65); font-size: 11px; line-height: 1.4; }
.provider-rating { display: inline-flex; margin-top: 12px; padding: 6px 9px; border-radius: 99px; color: #ffe0a2; background: rgba(255,255,255,.09); font-size: 10px; font-weight: 800; }
.sidebar-note { margin-top: 34px; padding: 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.05); }
.sidebar-note b { color: #ffd69e; font-size: 11px; }
.sidebar-note p { margin: 6px 0 0; color: rgba(255,255,255,.58); font-size: 10px; line-height: 1.55; }
.kitchen-main { padding: 48px; background: #f3f5ef; }
.online-pill { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 99px; background: white; border: 1px solid var(--line); font-size: 10px; font-weight: 800; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card { padding: 17px; border-radius: 17px; }
.stat-card small { display: block; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.stat-card strong { display: block; margin-top: 7px; font: 700 27px Georgia, serif; }
.stat-card span { color: var(--muted); font-size: 10px; }
.board-section { margin-top: 34px; }
.offer-list, .job-board { display: grid; gap: 12px; }
.offer-card { position: relative; padding: 21px; border-left: 4px solid var(--orange); }
.offer-card.urgent-offer:not(.acknowledged) { border-left-color: var(--red); animation: urgent-offer-pulse 1.6s ease-in-out 2; }
.offer-card.urgent-offer.acknowledged { border-left-color: #38a975; }
.offer-card-head, .job-card-head { display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.offer-card h3, .job-card h3 { margin: 0; font: 600 20px Georgia, serif; }
.offer-timer { text-align: right; color: var(--red); }
.offer-timer strong { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.offer-timer small { color: var(--muted); font-size: 9px; }
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.data-cell { padding: 10px; background: var(--cream); border-radius: 10px; }
.data-cell small { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.data-cell b { display: block; margin-top: 4px; font-size: 11px; }
.offer-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.offer-receipt { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 12px; border-radius: 10px; font-size: 10px; font-weight: 850; }
.offer-receipt.acknowledged { color: #176344; background: #dff3e7; }
html.urgent-kitchen-alert .notification-toggle { animation: urgent-offer-pulse .8s ease-in-out 3; }
@keyframes urgent-offer-pulse { 50% { box-shadow: 0 0 0 7px rgba(173,63,55,.16), 0 16px 36px rgba(173,63,55,.18); } }
.job-board { grid-template-columns: repeat(2, 1fr); }
.job-card { padding: 19px; }
.job-stage { margin-top: 15px; display: flex; gap: 4px; }
.job-stage span { flex: 1; height: 4px; background: var(--line); border-radius: 99px; }
.job-stage span.done { background: var(--orange); }
.job-footer { margin-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.job-footer small { color: var(--muted); }

/* Basit Mutfak Modu: ev üreticisinin yalnızca sıradaki işi görmesini sağlar. */
.simple-kitchen-shell { display: block; max-width: 1180px; background: #f3f5ef; }
.simple-kitchen-main { min-height: calc(100vh - 106px); padding: 34px 42px 70px; }
.simple-kitchen-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
    align-items: center;
    gap: 28px;
    padding: 30px 32px;
    border-radius: 26px;
    color: white;
    background: linear-gradient(135deg, #123c31, #1d5a47);
    box-shadow: 0 18px 44px rgba(18,60,49,.16);
}
.simple-kitchen-header .eyebrow { color: #ffd19d; }
.simple-kitchen-header .kitchen-welcome-copy h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; }
.kitchen-welcome-copy > p:last-child { max-width: 570px; margin: 13px 0 0; color: rgba(255,255,255,.76); font-size: 13px; line-height: 1.55; }
.kitchen-availability {
    width: 100%;
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: center;
    gap: 13px;
    padding: 18px 20px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 18px;
    color: white;
    background: rgba(255,255,255,.11);
    text-align: left;
    cursor: pointer;
}
.kitchen-availability > i { width: 14px; height: 14px; border-radius: 50%; background: #42d38e; box-shadow: 0 0 0 6px rgba(66,211,142,.15); }
.kitchen-availability > span { display: grid; gap: 3px; }
.kitchen-availability small { color: rgba(255,255,255,.7); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.kitchen-availability strong { font-size: 16px; }
.kitchen-availability em { color: rgba(255,255,255,.58); font-size: 9px; font-style: normal; }
.kitchen-availability.busy > i, .kitchen-availability.paused > i { background: #efbd56; box-shadow: 0 0 0 6px rgba(239,189,86,.15); }
.kitchen-availability.offline > i, .kitchen-availability.unreachable > i { background: #aab4b0; box-shadow: 0 0 0 6px rgba(170,180,176,.15); }
.kitchen-identity-strip { display: flex; align-items: center; gap: 14px; margin: 14px 0 4px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.kitchen-identity-strip .provider-select { max-width: 260px; color: var(--ink); background: white; border-color: var(--line); }
.kitchen-identity-strip .provider-profile { display: flex; align-items: center; gap: 11px; margin: 0; }
.kitchen-identity-strip .provider-avatar { width: 42px; height: 42px; border-radius: 13px; font-size: 15px; }
.kitchen-identity-strip .provider-profile h2 { margin: 0 0 3px; color: var(--ink); font: 700 14px/1.2 system-ui, sans-serif; }
.kitchen-identity-strip .provider-profile p { margin: 0; color: var(--muted); font-size: 9px; }
.simple-kitchen-main .provider-tabs { position: sticky; z-index: 12; top: 70px; margin: 14px 0; box-shadow: 0 8px 22px rgba(18,60,49,.06); }
.simple-kitchen-main .provider-tabs button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; font-size: 11px; }
.simple-kitchen-main .provider-tabs button > span { font-size: 15px; }
.simple-kitchen-main .stat-card { border: 1px solid var(--line); box-shadow: none; }
.simple-kitchen-main .stat-card:first-child { border-color: #f0c78a; background: #fff8e9; }
.simple-kitchen-main .stat-card small { font-size: 10px; }
.simple-kitchen-main .stat-card span { display: block; margin-top: 3px; }
.simple-kitchen-main .kitchen-focus-board article { min-height: 116px; }
.simple-kitchen-main .kitchen-focus-board article:first-child { border-width: 2px; }
.simple-kitchen-main .board-section > .section-heading h2 { margin: 0; font: 700 25px Georgia, serif; }
.simple-kitchen-main .soft-note { max-width: 310px; font-size: 10px; line-height: 1.4; }
.simple-kitchen-main .offer-card { padding: 25px; border: 2px solid #e6b35e; border-left: 7px solid var(--orange); border-radius: 20px; }
.simple-kitchen-main .offer-card h3 { font-size: 27px; }
.simple-kitchen-main .offer-timer { min-width: 120px; padding: 9px 12px; border-radius: 12px; background: var(--red-soft); }
.simple-kitchen-main .offer-timer small { display: block; margin-bottom: 3px; }
.simple-kitchen-main .offer-grid { gap: 9px; }
.simple-kitchen-main .data-cell { padding: 13px; }
.simple-kitchen-main .data-cell b { font-size: 12px; line-height: 1.35; }
.simple-order-warning { display: flex; gap: 9px; margin: 10px 0; padding: 11px 13px; border-radius: 11px; color: #7a451e; background: #fff0dd; font-size: 10px; }
.simple-order-note { margin: 10px 0; color: var(--muted); font-size: 10px; }
.simple-kitchen-main .offer-actions { display: grid; gap: 9px; margin-top: 16px; }
.kitchen-primary-action { width: 100%; min-height: 54px; border-radius: 14px; font-size: 14px; letter-spacing: .02em; }
.offer-secondary-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.offer-secondary-actions .button, .offer-secondary-actions .offer-receipt { flex: 1; justify-content: center; }
.simple-kitchen-main .job-card { display: grid; align-content: start; border: 1px solid var(--line); box-shadow: none; }
.job-next-step { margin-top: 14px; padding: 11px 13px; border-radius: 11px; color: #176344; background: #e8f6ee; font-size: 10px; font-weight: 800; line-height: 1.45; }
.simple-kitchen-main .job-footer { align-items: stretch; flex-direction: column; }
.kitchen-next-action { width: 100%; min-height: 46px; border-radius: 12px; font-size: 11px; }
.kitchen-quality-check { margin-top: 13px; padding: 13px; display: grid; gap: 7px; border: 1px solid #edc66f; border-radius: 12px; background: #fff8e7; }
.kitchen-quality-check b { color: #704c00; font-size: 12px; }
.kitchen-quality-check span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.kitchen-quality-check.complete { border-color: #9fd0b3; background: #edf8f1; }
.kitchen-quality-check.complete b { color: #176344; }
.kitchen-quality-action { width: 100%; min-height: 44px; }
.simple-empty-state { min-height: 190px; border: 1px dashed #c8d7d0; border-radius: 17px; background: rgba(255,255,255,.55); }
.simple-kitchen-main .management-toolbar { padding-top: 5px; }

.dispatch-shell { padding-top: 48px; }
.dispatch-title h1 { font-size: clamp(38px, 4vw, 54px); }
.dispatch-stats { margin-bottom: 18px; }
.distribution-pool-panel { margin: 0 0 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.distribution-pool-panel .management-toolbar { margin-bottom: 14px; }
.distribution-pool-panel .soft-note { display: block; margin: 6px 0 0; }
.traceability-search-panel { margin: 0 0 18px; padding: 20px; display: grid; grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.2fr); gap: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.traceability-search-panel h2 { margin: 2px 0; }
.traceability-search-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; }
.traceability-search-form label { display: grid; gap: 6px; }
.traceability-search-form label span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.traceability-search-form input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; }
.traceability-search-results { grid-column: 1 / -1; display: grid; gap: 8px; }
.traceability-result { width: 100%; padding: 11px 12px; display: grid; grid-template-columns: 1fr 1.2fr 1fr .8fr; gap: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); color: inherit; text-align: left; }
button.traceability-result { cursor: pointer; }
button.traceability-result:hover { border-color: var(--orange); }
.traceability-result span { display: grid; gap: 3px; }
.traceability-result small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.traceability-result b { font-size: 10px; overflow-wrap: anywhere; }
.distribution-pool-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.distribution-pool-card { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.distribution-pool-card:hover { transform: translateY(-1px); border-color: var(--sage); }
.distribution-pool-card.active { border-color: var(--forest); box-shadow: 0 0 0 2px rgba(28, 73, 52, .12); background: var(--mint); }
.distribution-pool-card.attention.active, .distribution-pool-card.review.active { background: #fff4df; }
.distribution-pool-card small, .distribution-pool-card span { display: block; }
.distribution-pool-card small { min-height: 30px; color: var(--muted); font-weight: 700; }
.distribution-pool-card strong { display: block; margin: 4px 0 2px; font: 700 25px Georgia, serif; }
.distribution-pool-card span { color: var(--muted); font-size: 10px; }
.worker-health-panel { margin-bottom: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.worker-health-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.worker-health-heading h2 { margin: 4px 0 0; font: 600 25px Georgia, serif; }
.worker-health-actions { display: flex; align-items: center; gap: 12px; }
.worker-health-actions span { color: var(--muted); font-size: 9px; }
.worker-health-summary { display: flex; gap: 9px; margin-bottom: 14px; }
.health-summary-item { min-width: 120px; padding: 10px 12px; border-radius: 11px; background: var(--paper); }
.health-summary-item small { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.health-summary-item strong { display: block; margin-top: 3px; font-size: 18px; }
.health-summary-item.ok { background: #eaf8f1; }
.health-summary-item.warning { background: #fff4df; }
.worker-health-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.worker-health-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.worker-health-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.worker-health-card > header > div { display: flex; align-items: center; gap: 8px; }
.worker-health-card > header strong { font-size: 11px; }
.worker-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #aab4b0; box-shadow: 0 0 0 4px rgba(170,180,176,.18); }
.worker-health-card.online .worker-status-dot, .worker-health-card.scheduled .worker-status-dot { background: #25a56f; box-shadow: 0 0 0 4px rgba(37,165,111,.16); }
.worker-health-card.stale .worker-status-dot, .worker-health-card.stopped .worker-status-dot { background: #e79c2b; box-shadow: 0 0 0 4px rgba(231,156,43,.16); }
.worker-health-card.error .worker-status-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(183,65,55,.14); }
.worker-status-label { padding: 5px 7px; border-radius: 99px; color: var(--muted); background: white; font-size: 8px; font-weight: 800; }
.worker-health-card > p { min-height: 31px; margin: 11px 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.worker-instance-meta { display: grid; gap: 4px; padding: 9px; border-radius: 9px; background: white; color: var(--muted); font-size: 8px; }
.worker-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 10px; }
.worker-metric { padding: 8px; border-radius: 9px; background: white; }
.worker-metric small { display: block; color: var(--muted); font-size: 7px; text-transform: uppercase; }
.worker-metric strong { display: block; margin-top: 3px; font-size: 15px; }
.worker-metric.warning { background: #fff4df; }
.worker-metric.danger { color: var(--red); background: #fcecea; }
.worker-metric.ok { background: #eaf8f1; }
.oldest-wait { display: block; margin-top: 9px; color: #9b671a; font-size: 8px; font-weight: 800; }
.oldest-wait.ok { color: #238157; }
.worker-last-error { min-height: 0 !important; margin: 9px 0 0 !important; padding-top: 8px; border-top: 1px solid var(--line); color: var(--red) !important; overflow-wrap: anywhere; }
.dispatch-grid { display: grid; grid-template-columns: 390px 1fr; gap: 16px; min-height: 550px; }
.dispatch-orders-panel, .dispatch-detail-panel { overflow: hidden; }
.panel-title { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.count-badge { color: white; background: var(--forest); }
.dispatch-order-list { max-height: 680px; overflow: auto; }
.dispatch-order-item { width: 100%; display: block; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.dispatch-order-item:hover, .dispatch-order-item.active { background: var(--mint); }
.dispatch-order-item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dispatch-order-item strong { font-size: 12px; }
.dispatch-order-item h3 { margin: 7px 0 5px; font: 600 17px Georgia, serif; }
.dispatch-order-item p { margin: 0; color: var(--muted); font-size: 10px; }
.distribution-order-meta { display: flex; align-items: center; gap: 7px; margin-top: 10px; color: var(--muted); font-size: 10px; font-weight: 700; }
.distribution-lane { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: var(--mint); color: var(--forest); }
.distribution-lane.yellow { background: #fff1d7; color: #8a5d19; }
.distribution-lane.red { background: var(--red-soft); color: var(--red); }
.dispatch-detail { padding: 25px; }
.distribution-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; padding: 15px; border-left: 4px solid var(--forest); border-radius: 12px; background: var(--mint); }
.distribution-detail.yellow { border-left-color: #c7892a; background: #fff7e8; }
.distribution-detail.red { border-left-color: var(--red); background: var(--red-soft); }
.distribution-detail small, .distribution-detail strong { display: block; }
.distribution-detail small { margin-bottom: 3px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.distribution-detail p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; }
.operation-ownership { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: -8px 0 18px; }
.operation-ownership > div { padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.operation-ownership small, .operation-ownership strong, .operation-ownership span { display: block; }
.operation-ownership small { margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.operation-ownership strong { font-size: 13px; }
.operation-ownership span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.operation-sla.due_soon { border-color: #e7bd70; background: #fff7e8; }
.operation-sla.overdue, .operation-sla.attention { border-color: #e7a7a0; background: var(--red-soft); }
.sla-badge { display: inline-flex; padding: 4px 7px; border-radius: 999px; color: var(--forest); background: var(--mint); }
.sla-badge.due_soon { color: #8a5d19; background: #fff1d7; }
.sla-badge.overdue, .sla-badge.attention { color: var(--red); background: var(--red-soft); }
.operation-information { margin: -7px 0 18px; padding: 14px 16px; border-left: 4px solid #c7892a; border-radius: 12px; background: #fff7e8; }
.operation-information small { display: block; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.operation-information p { margin: 5px 0 12px; font-size: 12px; line-height: 1.45; }
.operation-information p.answer { padding: 9px 11px; border-radius: 9px; background: white; color: var(--forest); }
.operation-information b { display: block; color: #8a5d19; font-size: 11px; }
.operation-traceability { margin: -7px 0 18px; padding: 14px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; border: 1px solid #a8c9b7; border-radius: 12px; background: #f4faf6; }
.operation-traceability div { display: grid; gap: 3px; }
.operation-traceability small { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.operation-traceability strong { color: var(--forest); font-size: 12px; }
.operation-traceability > span { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.detail-header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.detail-header h2 { margin: 5px 0 0; font: 600 29px Georgia, serif; }
.detail-price { text-align: right; }
.detail-price strong { font: 700 24px Georgia, serif; }
.detail-price span { display: block; color: var(--muted); font-size: 9px; }
.candidate-strip { margin: 22px 0; }
.candidate-strip h3, .timeline h3 { margin: 0 0 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.candidate-row { display: flex; flex-wrap: wrap; gap: 8px; }
.candidate { padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; background: white; font-size: 10px; }
.candidate.current { color: white; background: var(--orange); border-color: var(--orange); }
.candidate.assigned { color: white; background: var(--forest); border-color: var(--forest); }
.candidate.tried { opacity: .55; }
.admin-actions { display: flex; gap: 8px; margin: 16px 0 22px; }
.timeline-list { list-style: none; margin: 0; padding: 0; }
.timeline-list li { position: relative; padding: 0 0 18px 28px; }
.timeline-list li::before { content: ""; position: absolute; left: 5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.timeline-list li:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 18px; bottom: 3px; width: 1px; background: var(--line); }
.timeline-list time { display: block; color: var(--muted); font-size: 9px; }
.timeline-list p { margin: 4px 0 0; font-size: 11px; line-height: 1.4; }
.empty-state { min-height: 270px; display: grid; place-items: center; align-content: center; padding: 30px; text-align: center; color: var(--muted); }
.empty-state span { font-size: 38px; color: #b8c7c0; }
.empty-state h3 { margin: 12px 0 4px; color: var(--ink); font: 600 20px Georgia, serif; }
.empty-state p { max-width: 310px; margin: 0; font-size: 11px; line-height: 1.5; }

.provider-invitation { margin-top: 54px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 28px 32px; border: 1px solid #cfdfd5; border-radius: 22px; background: linear-gradient(135deg, #f2f8f4, #fff8eb); }
.provider-invitation h2 { margin: 0; font: 600 25px Georgia, serif; }
.provider-invitation p:not(.eyebrow) { max-width: 720px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.provider-invitation .button { flex: 0 0 auto; }

.provider-tabs { display: flex; gap: 5px; margin: 18px 0; padding: 5px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: white; }
.provider-tabs button { flex: 1; min-width: max-content; padding: 10px 12px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.provider-tabs button.active { color: white; background: var(--forest); }
.online-pill { cursor: pointer; }
.online-pill.busy i, .online-pill.paused i { background: var(--gold); box-shadow: 0 0 0 4px rgba(212,166,70,.15); }
.online-pill.offline i, .online-pill.unreachable i { background: #aab4b0; box-shadow: 0 0 0 4px rgba(170,180,176,.16); }

.management-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 23px 0 17px; }
.management-toolbar h2 { margin: 0; font: 600 25px Georgia, serif; }
.management-toolbar > div:last-child { display: flex; gap: 8px; flex-wrap: wrap; }
.schedule-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.schedule-day { display: grid; gap: 5px; padding: 13px 10px; border: 1px solid #cfe1d6; border-radius: 13px; background: #f4faf6; }
.schedule-day b { font-size: 11px; }
.schedule-day span { font-size: 10px; font-weight: 750; }
.schedule-day small { color: var(--muted); font-size: 8px; line-height: 1.35; }
.schedule-day.closed { border-color: #e5d8d5; background: #faf2f0; opacity: .75; }
.calendar-legend { display: flex; gap: 16px; margin: 18px 2px 10px; color: var(--muted); font-size: 9px; }
.calendar-legend span { display: flex; align-items: center; gap: 6px; }
.calendar-legend i { width: 8px; height: 8px; border-radius: 50%; background: #46a977; }
.calendar-legend i.busy { background: var(--orange); }
.calendar-legend i.closed { background: #b77770; }
.capacity-calendar { display: grid; gap: 11px; }
.capacity-day { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: white; }
.capacity-day > header { display: flex; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--mint); font-size: 10px; }
.capacity-day-body { display: grid; gap: 8px; padding: 11px; }
.capacity-slot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; width: 100%; padding: 11px 12px 15px; border: 1px solid var(--line); border-radius: 11px; background: white; text-align: left; cursor: pointer; }
.capacity-slot > span { display: grid; gap: 3px; }
.capacity-slot > span:last-of-type { text-align: right; }
.capacity-slot b { font-size: 10px; }
.capacity-slot small { color: var(--muted); font-size: 8px; }
.capacity-slot > i { position: absolute; right: 11px; bottom: 6px; left: 11px; height: 3px; overflow: hidden; border-radius: 99px; background: var(--line); }
.capacity-slot > i em { display: block; height: 100%; background: var(--orange); }
.capacity-slot.closed, .capacity-slot.paused { background: #faf2f0; opacity: .75; }
.calendar-job { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px; background: var(--cream); }
.calendar-job b { font-size: 10px; }
.calendar-job small { color: var(--muted); font-size: 8px; }

.management-list { display: grid; gap: 11px; }
.management-card { display: grid; grid-template-columns: minmax(240px, 1fr) auto auto; align-items: center; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.management-card h3 { margin: 6px 0 4px; font: 600 19px Georgia, serif; }
.management-card p { margin: 0; color: var(--muted); font-size: 10px; }
.management-metrics { display: flex; gap: 8px; }
.management-metrics span { min-width: 100px; display: grid; gap: 4px; padding: 9px; border-radius: 10px; background: var(--cream); }
.management-metrics small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.management-metrics b { font-size: 10px; }
.management-metrics .metric-warning { color: var(--red); background: var(--red-soft); }
.management-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }

.profile-status-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.verification-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: white; background: var(--gold); font-size: 22px; font-weight: 900; }
.verification-icon.verified { background: #2e9a68; }
.verification-icon.rejected { background: var(--red); }
.profile-status-card h3 { margin: 2px 0 4px; font: 600 20px Georgia, serif; }
.profile-status-card p:not(.eyebrow) { margin: 0 0 4px; color: var(--muted); font-size: 10px; }
.profile-status-card small { color: var(--muted); font-size: 8px; }
.profile-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 11px 0; }
.profile-facts article { display: grid; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.profile-facts small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.profile-facts b { font-size: 10px; line-height: 1.4; }
.skill-management { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.skill-management h3 { margin: 0 0 12px; font: 600 18px Georgia, serif; }
.skill-management > div { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-management span { display: grid; gap: 3px; padding: 9px 11px; border-radius: 10px; background: var(--mint); }
.skill-management b { font-size: 10px; }
.skill-management small { color: var(--muted); font-size: 8px; }

.verification-panel { margin: 20px 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.verification-panel .management-toolbar { margin: 0 0 13px; }
.verification-queue { display: grid; gap: 9px; }
.verification-card { display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: center; gap: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.verification-card h3 { margin: 3px 0; font: 600 18px Georgia, serif; }
.verification-card p { margin: 0; color: var(--muted); font-size: 9px; }
.verification-card small { color: var(--muted); font-size: 8px; }
.verification-checks { display: grid; gap: 4px; font-size: 9px; }
.decision-note { padding: 9px; border-radius: 9px; background: var(--cream); }

.payment-callout { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 14px; border: 1px solid #f0c783; border-radius: 13px; background: #fff7e8; }
.payment-callout > div { display: grid; gap: 3px; }
.payment-callout b { font-size: 11px; }
.payment-callout span { color: var(--muted); font-size: 9px; }
.payment-callout .payment-deadline { color: #8a5d19; font-weight: 700; }
.payment-callout .payment-deadline strong, .payment-waiting span { font-variant-numeric: tabular-nums; }
.payment-waiting { color: #9b681c; font-size: 9px; }

dialog { border: 0; padding: 0; color: var(--ink); background: transparent; }
dialog::backdrop { background: rgba(11,36,29,.64); backdrop-filter: blur(4px); }
.auth-user { display: flex; align-items: center; gap: 8px; justify-self: end; font-size: 10px; font-weight: 750; }
.auth-user[hidden] { display: none; }
.auth-user button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; font-size: 9px; font-weight: 800; }
.notification-toggle { position: relative; }
.notification-toggle > span { color: var(--orange); font-size: 8px; }
.notification-toggle b { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border-radius: 999px; color: white; background: var(--red); font-size: 9px; }
.login-dialog { width: min(460px, calc(100vw - 28px)); max-height: calc(100vh - 28px); overflow: auto; border-radius: 24px; }
.login-dialog form { padding: 31px; background: var(--paper); }
.login-dialog h2 { margin: 7px 0 0; font: 600 29px Georgia, serif; }
.login-copy { margin: 8px 0 22px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 25px; color: var(--forest); }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { font: 700 21px Georgia, serif; }
.login-brand small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.login-dialog .field { margin-top: 13px; }
.login-dialog .button { margin-top: 20px; }
.login-error { margin: 13px 0 0; padding: 10px 12px; border-radius: 10px; color: var(--red); background: var(--red-soft); font-size: 11px; }
.login-pwa-entry { margin-top: 24px; padding: 16px; border: 1px solid #c7dacf; border-radius: 16px; background: #f0f7f3; }
.login-pwa-entry > div { display: flex; align-items: center; gap: 10px; }
.login-pwa-entry strong, .login-pwa-entry small { display: block; }
.login-pwa-entry strong { color: var(--forest); font-size: 12px; }
.login-pwa-entry small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.login-pwa-entry .button { margin-top: 13px; }
.login-pwa-entry p { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.login-pwa-icon { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 10px; color: white; background: var(--forest); font: 700 18px Georgia, serif; }
.beta-test-entry { margin-top: 14px; padding: 14px 16px; border: 1px solid #ead8ae; border-radius: 14px; background: #fff9ea; }
.beta-test-entry strong { color: #6d531c; font-size: 11px; }
.beta-test-entry p { margin: 7px 0 10px; color: var(--muted); font-size: 10px; }
.beta-test-entry ol { margin: 8px 0; padding-left: 18px; color: var(--ink); font-size: 9px; line-height: 1.55; }
.beta-test-entry small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.live-test-links { display: grid; gap: 7px; }
.live-test-links a { display: grid; gap: 3px; padding: 11px 13px; border-radius: 10px; color: white; background: var(--forest); text-align: left; text-decoration: none; }
.live-test-links a b { font-size: 11px; }
.live-test-links a span { color: rgba(255,255,255,.78); font-size: 9px; font-weight: 500; line-height: 1.35; }
.live-test-links a:hover { background: var(--forest-2); }
.member-login-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0 4px; color: var(--muted); font-size: 9px; font-weight: 800; }
.member-login-divider::before, .member-login-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.demo-login-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.demo-login-options p { grid-column: 1 / -1; margin: 0 0 2px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.demo-login-options button { padding: 9px 7px; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; font-size: 9px; font-weight: 750; }
.order-dialog { width: min(720px, calc(100vw - 28px)); max-height: calc(100vh - 30px); overflow: auto; border-radius: 24px; }
.counter-dialog { width: min(480px, calc(100vw - 28px)); border-radius: 24px; }
.notification-dialog { width: min(590px, calc(100vw - 28px)); max-height: calc(100vh - 30px); border-radius: 24px; }
.notification-shell { background: var(--paper); }
.notification-shell > header { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 27px 29px 19px; border-bottom: 1px solid var(--line); }
.notification-shell h2 { margin: 3px 0 0; font: 600 27px Georgia, serif; }
.notification-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 20px; background: var(--mint); color: var(--muted); font-size: 10px; }
.push-settings { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 20px; border-bottom: 1px solid var(--line); background: #f6fbf8; }
.push-settings > div { display: grid; gap: 4px; }
.push-settings strong { font-size: 11px; }
.push-settings small { max-width: 350px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.push-settings .button { flex: 0 0 auto; }
.push-settings .push-setting-actions { display: flex; align-items: center; gap: 8px; }
.notification-list { max-height: min(570px, calc(100vh - 190px)); overflow: auto; }
.notification-item { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--line); background: white; }
.notification-item.unread { background: #fff9ef; }
.notification-dot { width: 8px; height: 8px; border-radius: 50%; background: #c5d0cc; }
.notification-item.unread .notification-dot { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.notification-item strong { display: block; font-size: 11px; line-height: 1.4; }
.notification-item p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.notification-item small { color: var(--muted); font-size: 9px; }
.notification-item button { border: 0; color: var(--forest); background: transparent; cursor: pointer; font-size: 9px; font-weight: 800; }
.notification-empty { min-height: 230px; display: grid; place-items: center; align-content: center; padding: 30px; color: var(--muted); text-align: center; }
.notification-empty span { font-size: 32px; color: #38a975; }
.notification-empty strong { margin-top: 10px; color: var(--ink); }
.notification-empty p { margin: 5px 0 0; font-size: 10px; }
.order-dialog form, .counter-dialog form { position: relative; padding: 29px; background: var(--paper); }
.dialog-close { position: absolute; z-index: 2; top: 15px; right: 15px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(23,54,46,.08); font-size: 22px; cursor: pointer; }
.dialog-product-summary { display: flex; align-items: center; gap: 15px; padding: 0 45px 22px 0; border-bottom: 1px solid var(--line); }
.dialog-product-summary .product-icon { font-size: 42px; }
.dialog-product-summary h2, .counter-dialog h2 { margin: 0; font: 600 27px Georgia, serif; }
.dialog-product-summary p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.form-grid, .custom-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 19px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.checkout-summary { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; margin: 18px 0; padding: 14px; border-radius: 12px; background: var(--mint); }
.checkout-summary span { font-size: 10px; }
.checkout-summary strong { font: 700 20px Georgia, serif; }
.checkout-summary small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }
.counter-dialog .field { margin-top: 15px; }
.counter-dialog .button { margin-top: 19px; }

.management-dialog { width: min(790px, calc(100vw - 28px)); max-height: calc(100vh - 28px); overflow: auto; border-radius: 24px; }
.management-dialog.compact-dialog { width: min(530px, calc(100vw - 28px)); }
.management-dialog form { position: relative; padding: 29px; background: var(--paper); }
.management-dialog h2 { margin: 2px 45px 7px 0; font: 600 28px Georgia, serif; }
.dialog-copy { margin: 0 0 18px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.check-group, .attestation-list { margin: 18px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.check-group legend, .attestation-list legend { padding: 0 5px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.check-grid label, .attestation-list label, .check-line { display: flex; align-items: start; gap: 7px; color: var(--ink); font-size: 10px; line-height: 1.4; }
.attestation-list { display: grid; gap: 9px; }
.management-dialog > form > .button.wide { margin-top: 19px; }
.field small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.schedule-form-days { display: grid; gap: 7px; margin: 18px 0; }
.schedule-form-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.2fr; align-items: end; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.schedule-form-row label { display: grid; gap: 4px; }
.schedule-form-row label > span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.schedule-form-row input { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.schedule-form-row .day-toggle { display: flex; align-items: center; gap: 7px; padding-bottom: 8px; font-size: 10px; }
.schedule-form-row small { color: var(--muted); font-size: 7px; }
.payment-order-summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 18px 0; padding: 15px; border-radius: 13px; background: var(--mint); }
.payment-order-summary span { display: grid; gap: 4px; }
.payment-order-summary small { color: var(--muted); font-size: 9px; }
.payment-order-summary strong { font: 700 22px Georgia, serif; }
.payment-choice { display: flex; gap: 10px; margin-top: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; }
.payment-choice span { display: grid; gap: 3px; }
.payment-choice b { font-size: 11px; }
.payment-choice small, .secure-note { color: var(--muted); font-size: 9px; line-height: 1.45; }
.secure-note { padding: 10px; border-radius: 9px; background: var(--cream); }

.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: 360px; padding: 13px 16px; border-radius: 13px; color: white; background: var(--forest); box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translateY(15px); pointer-events: none; transition: .2s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--red); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cart-toggle { position: relative; color: white; border-color: var(--forest) !important; background: var(--forest) !important; }
.cart-toggle b { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border-radius: 999px; color: white; background: var(--orange); font-size: 9px; }
.catalog-controls { display: grid; grid-template-columns: minmax(230px, 1.4fr) minmax(170px, .7fr) auto; align-items: center; gap: 10px; margin: 18px 0 10px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.catalog-controls input, .catalog-controls select { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--paper); outline: none; }
.catalog-controls input:focus, .catalog-controls select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.catalog-result-count { padding: 0 7px; color: var(--muted); font-size: 10px; font-weight: 800; white-space: nowrap; }
.catalog-availability-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.catalog-availability-summary span { padding: 8px 11px; border-radius: 999px; color: var(--muted); background: var(--mint); font-size: 9px; }
.catalog-availability-summary b { color: var(--forest); }
.catalog-empty { grid-column: 1 / -1; }
.product-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.product-detail-dialog { width: min(880px, calc(100vw - 28px)); max-height: calc(100vh - 28px); overflow: auto; border-radius: 24px; background: var(--paper); }
#product-detail-content { position: relative; padding: 28px; }
.product-detail-layout { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.3fr); gap: 27px; }
.product-detail-visual { position: relative; min-height: 330px; display: grid; place-items: center; overflow: hidden; border-radius: 19px; background: linear-gradient(145deg, var(--mint), var(--cream)); }
.product-detail-visual img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-visual .mode-chip { position: absolute; top: 15px; left: 15px; }
.product-detail-icon { font-size: 92px; }
.product-detail-body { padding: 8px 38px 4px 0; }
.product-detail-body h2 { margin: 4px 0 10px; font: 600 34px/1.08 Georgia, serif; }
.product-detail-description { color: var(--muted); font-size: 13px; line-height: 1.65; }
.product-facts { margin-top: 14px; padding: 12px 14px; border-radius: 11px; background: white; }
.product-facts.allergen { background: #fff6e9; }
.product-facts b { font-size: 10px; }
.product-facts p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.product-detail-buy { display: grid; gap: 12px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.order-product-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.detail-quantity { display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; font-weight: 800; }
.detail-quantity input { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.stock-truth { padding: 10px 12px; border-radius: 10px; color: var(--muted); background: var(--mint); font-size: 10px; line-height: 1.45; }
.stock-truth b { color: var(--forest); }
.cart-dialog { width: min(790px, calc(100vw - 20px)); max-height: calc(100vh - 20px); overflow: auto; border-radius: 24px; background: var(--paper); }
.cart-shell { padding: 27px; }
.cart-heading { position: relative; display: flex; justify-content: space-between; padding-right: 45px; margin-bottom: 17px; }
.cart-heading h2 { margin: 2px 0 0; font: 600 31px Georgia, serif; }
.cart-items { display: grid; gap: 9px; }
.cart-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.cart-item.unavailable { border-color: #dfb3a8; background: #fff8f5; }
.cart-item-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--cream); font-size: 25px; }
.cart-item-main h3 { margin: 0; font-size: 12px; }
.cart-item-main p { margin: 4px 0 8px; color: var(--muted); font-size: 9px; }
.cart-quantity { display: inline-flex; align-items: center; gap: 9px; }
.cart-quantity button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; color: var(--forest); background: var(--paper); cursor: pointer; font-size: 17px; }
.cart-quantity b { min-width: 80px; font-size: 10px; text-align: center; }
.cart-item-total { display: grid; justify-items: end; gap: 9px; }
.cart-item-total strong { font: 700 18px Georgia, serif; }
.cart-item-total button { padding: 0; border: 0; color: var(--red); background: transparent; cursor: pointer; font-size: 9px; font-weight: 800; }
.cart-error { color: var(--red); font-size: 9px; }
.cart-warning, .cart-privacy { display: grid; gap: 3px; margin-bottom: 12px; padding: 12px 14px; border-radius: 11px; font-size: 10px; }
.cart-warning { color: #6d321e; background: #ffeadc; }
.cart-privacy { color: var(--muted); background: var(--mint); }
.cart-empty { min-height: 220px; }
#cart-checkout-form { margin-top: 17px; padding-top: 2px; border-top: 1px solid var(--line); }
.cart-total { display: grid; grid-template-columns: 1fr auto; gap: 8px 15px; margin: 17px 0; padding: 14px; border-radius: 12px; background: var(--mint); font-size: 10px; }
.cart-total strong { text-align: right; }
.cart-total b { padding-top: 8px; border-top: 1px solid rgba(23,76,60,.15); font: 700 18px Georgia, serif; }
.cart-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.cart-actions #cart-checkout-button { min-width: 230px; min-height: 48px; }
.conditional-address[hidden] { display: none !important; }
.optional-order-note { margin-top: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.optional-order-note summary { color: var(--forest); cursor: pointer; font-size: 11px; font-weight: 850; }
.optional-order-note .field { margin-top: 12px; }
.consumer-order-history { margin-top: 24px; padding: 0; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.58); }
.consumer-order-history > summary { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; color: var(--forest); cursor: pointer; font-size: 12px; font-weight: 850; list-style: none; }
.consumer-order-history > summary::-webkit-details-marker { display: none; }
.consumer-order-history > summary::after { content: '+'; font-size: 20px; }
.consumer-order-history[open] > summary::after { content: '−'; }
.consumer-order-history > summary span { min-width: 25px; padding: 4px 7px; border-radius: 999px; color: white; background: var(--forest); text-align: center; font-size: 9px; }
.consumer-order-history .order-list { padding: 0 13px 13px; }
.consumer-order-history .order-card { background: white; box-shadow: none; }
.compact-empty { min-height: 150px; padding: 25px; }
.order-item-list { display: grid; gap: 5px; margin: 12px 0; padding: 11px 13px; border-radius: 10px; background: var(--paper); }
.order-item-list span { display: grid; grid-template-columns: 1fr auto; gap: 12px; font-size: 9px; }

@media (max-width: 1050px) {
    .topbar { grid-template-columns: auto minmax(0, 1fr) auto auto auto; padding: 12px 20px; }
    .brand small, .role-button span { display: none; }
    .consumer-hero { grid-template-columns: 1fr; gap: 35px; padding: 60px 42px; }
    .hero-flow-card { max-width: 600px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .app-shell { grid-template-columns: 235px 1fr; }
    .kitchen-main { padding: 35px 28px; }
    .job-board { grid-template-columns: 1fr; }
    .dispatch-grid { grid-template-columns: 330px 1fr; }
    .distribution-pool-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .worker-health-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .demo-banner { text-align: center; font-size: 9px; }
    .topbar { position: static; grid-template-columns: 1fr auto; gap: 10px; }
    .test-guide { grid-template-columns: 1fr; gap: 12px; padding: 15px 14px; }
    .test-guide ol { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
    .test-guide li { flex: 0 0 82%; scroll-snap-align: start; }
    .role-switcher { grid-column: 1 / -1; order: 3; width: 100%; }
    .role-button { flex: 1; padding: 9px 6px; font-size: 11px; }
    .sync-state { font-size: 10px; }
    .pwa-install-button { padding: 7px 9px; font-size: 0; }
    .pwa-install-button::after { content: 'Yükle'; font-size: 9px; }
    #auth-user-name { display: none; }
    .auth-user { gap: 5px; }
    .auth-user button { padding: 7px; }
    .hero { min-height: auto; }
    .consumer-hero { margin: 0; padding: 50px 24px; border-radius: 0 0 28px 28px; }
    .hero h1 { font-size: 44px; }
    .hero-copy { font-size: 14px; }
    .content-shell, .dispatch-shell { padding: 48px 17px 75px; }
    .section-heading { align-items: start; flex-direction: column; }
    .mode-tabs { width: 100%; overflow-x: auto; }
    .mode-tabs button { white-space: nowrap; }
    .catalog-controls { grid-template-columns: 1fr; }
    .catalog-result-count { padding: 2px; }
    .product-grid { grid-template-columns: 1fr; }
    .product-card { min-height: 280px; }
    .product-footer { align-items: stretch; flex-direction: column; }
    .product-actions { justify-content: stretch; }
    .product-actions .button { flex: 1; }
    #product-detail-content, .cart-shell { padding: 22px 16px; }
    .product-detail-layout { grid-template-columns: 1fr; }
    .product-detail-visual { min-height: 220px; }
    .product-detail-body { padding: 0; }
    .product-detail-body h2 { font-size: 28px; }
    .cart-item { grid-template-columns: 45px minmax(0, 1fr); }
    .cart-item-icon { width: 42px; height: 42px; }
    .cart-item-total { grid-column: 2; grid-template-columns: 1fr auto; justify-items: start; align-items: center; }
    .cart-actions { display: grid; grid-template-columns: 1fr; justify-content: stretch; }
    .cart-actions .button { width: 100%; }
    .cart-actions #cart-checkout-button { min-width: 0; min-height: 54px; }
    .order-card-top { grid-template-columns: 1fr; gap: 10px; }
    .order-price { text-align: left; }
    .consumer-progress span small { font-size: 7px; }
    .orders-heading { margin-top: 48px; }
    .consumer-active-orders .orders-heading { margin-top: 0; }
    .catalog-heading { margin-top: 48px; }
    .consumer-order-history > summary { padding: 16px; }
    .app-shell { display: block; }
    .kitchen-sidebar { padding: 27px 20px; }
    .provider-profile { display: grid; grid-template-columns: 55px 1fr; gap: 3px 13px; align-items: center; }
    .provider-avatar { width: 55px; height: 55px; grid-row: span 3; }
    .provider-profile h2 { margin: 0; }
    .sidebar-note { display: none; }
    .kitchen-main { padding: 33px 17px 70px; }
    .simple-kitchen-main { padding: 16px 12px 92px; }
    .simple-kitchen-header { grid-template-columns: 1fr; gap: 18px; padding: 24px 20px; border-radius: 22px; }
    .simple-kitchen-header .kitchen-welcome-copy h1 { font-size: 32px; }
    .kitchen-welcome-copy > p:last-child { font-size: 12px; }
    .kitchen-availability { padding: 16px; }
    .kitchen-identity-strip { margin-top: 10px; padding: 10px 12px; }
    .kitchen-identity-strip .provider-profile { display: flex; grid-template-columns: none; }
    .kitchen-identity-strip .provider-avatar { width: 38px; height: 38px; grid-row: auto; }
    .simple-kitchen-main .provider-tabs { position: fixed; z-index: 80; top: auto; right: 0; bottom: 0; left: 0; margin: 0; padding: 7px 8px max(7px, env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: 0; box-shadow: 0 -8px 24px rgba(18,60,49,.12); }
    .simple-kitchen-main .provider-tabs button { min-height: 49px; min-width: 0; flex-direction: column; gap: 2px; padding: 5px 3px; font-size: 9px; }
    .simple-kitchen-main .provider-tabs button > span { font-size: 17px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .distribution-pool-panel { padding: 15px; }
    .traceability-search-panel { grid-template-columns: 1fr; padding: 15px; }
    .traceability-search-form { grid-template-columns: 1fr; }
    .traceability-search-results { grid-column: auto; }
    .traceability-result { grid-template-columns: 1fr 1fr; }
    .distribution-pool-stats { display: flex; overflow-x: auto; padding-bottom: 4px; }
    .distribution-pool-card { flex: 0 0 145px; }
    .pwa-command-center { align-items: stretch; flex-direction: column; }
    .pwa-command-center .button { width: 100%; }
    .kitchen-focus-board { grid-template-columns: 1fr; }
    .kitchen-focus-board article { min-height: 0; }
    .offer-grid { grid-template-columns: repeat(2, 1fr); }
    .simple-kitchen-main .offer-card { padding: 19px 15px; }
    .simple-kitchen-main .offer-card-head { align-items: stretch; flex-direction: column; }
    .simple-kitchen-main .offer-card h3 { font-size: 25px; }
    .simple-kitchen-main .offer-timer { min-width: 0; text-align: left; }
    .simple-kitchen-main .offer-timer small, .simple-kitchen-main .offer-timer strong { display: inline; margin-right: 6px; }
    .offer-secondary-actions { display: grid; grid-template-columns: 1fr; }
    .offer-secondary-actions .button { width: 100%; }
    .simple-kitchen-main .board-section > .section-heading { gap: 5px; }
    .dispatch-grid { display: block; }
    .dispatch-orders-panel { margin-bottom: 15px; }
    .dispatch-order-list { max-height: 340px; }
    .operation-ownership, .distribution-detail { grid-template-columns: 1fr; }
    .admin-actions { flex-wrap: wrap; }
    .admin-actions .button { flex: 1 1 190px; }
    .information-request .button { width: 100%; justify-self: stretch; }
    .worker-health-heading, .worker-health-actions { align-items: stretch; flex-direction: column; }
    .worker-health-summary { display: grid; grid-template-columns: repeat(3, 1fr); }
    .health-summary-item { min-width: 0; }
    .form-grid, .custom-fields { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .custom-fields { grid-template-columns: 1fr 1fr; }
    .custom-fields .field.full { grid-column: 1 / -1; }
    .order-dialog form, .counter-dialog form { padding: 23px 18px; }
    .login-dialog form { padding: 25px 20px; }
    .demo-login-options { grid-template-columns: 1fr; }
    .demo-login-options p { grid-column: auto; }
    .push-settings { align-items: stretch; flex-direction: column; }
    .push-settings .button { width: 100%; }
    .push-settings .push-setting-actions { align-items: stretch; flex-direction: column; }
    .provider-invitation, .management-toolbar, .payment-callout { align-items: stretch; flex-direction: column; }
    .provider-invitation .button { width: 100%; }
    .schedule-week { grid-template-columns: repeat(2, 1fr); }
    .capacity-slot, .management-card, .profile-status-card, .verification-card { grid-template-columns: 1fr; }
    .capacity-slot > span:last-of-type { text-align: left; }
    .calendar-job { grid-template-columns: auto 1fr; }
    .calendar-job small { grid-column: 2; }
    .management-metrics { display: grid; grid-template-columns: repeat(2, 1fr); }
    .management-actions { justify-content: flex-start; }
    .profile-facts { grid-template-columns: repeat(2, 1fr); }
    .check-grid { grid-template-columns: 1fr; }
    .schedule-form-row { grid-template-columns: 1fr 1fr; }
    .management-dialog form { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .offer-card.urgent-offer, html.urgent-kitchen-alert .notification-toggle { animation: none !important; }
}

.history-more {
    display: block;
    margin: 16px auto 4px;
}
.history-more[hidden] { display: none; }
