
            /* --- CSS VARIABLES & THEME --- */
            :root {
                --white: #ffffff;
                --black: #2c1e16;
                --coffee-dark: #3b2818;
                --coffee-medium: #6f4e37;
                --coffee-light: #d1bfae;

                --bg-color: #e8dbce;
                --bg-rgb: 232, 219, 206;

                --text-muted: #6b5c53;

                --radius-pill: 50px;
                --radius-card: 20px;
                --radius-img: 16px;

                --font-main: "Vazirmatn", Tahoma, "Noto Sans Arabic", "IRANSans", "Segoe UI", Arial, sans-serif;
            }

            /* --- GLOBAL RESET --- */
            * {
                margin: 0;
                padding: 0;
                box-sizing: border-box;
                -webkit-tap-highlight-color: transparent;
            }

            body {
                font-family: var(--font-main);
                background-color: var(--bg-color);
                color: var(--black);
                line-height: 1.5;
                /* Text unselectable to feel like an app */
                -webkit-user-select: none;
                -ms-user-select: none;
                user-select: none;
            }

            .app-container {
                max-width: 500px;
                margin: 0 auto;
                background-color: var(--bg-color);
                background-image: url("data:image/svg+xml,%3Csvg width='250' height='250' viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%233b2818' opacity='0.05'%3E%3Cg transform='translate(40, 50) rotate(30) scale(1.2)'%3E%3Cpath d='M12 23c-6.07 0-11-4.93-11-11S5.93 1 12 1s11 4.93 11 11-4.93 11-11 11zm0-20.5c-1.05 3.85-3.33 6.12-3.54 9.31-.2 3 1.4 5.35 2.32 8.41 1.53-3.31 3.68-5.52 3.86-8.73.18-3.02-1.37-5.38-2.64-8.99z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
                background-attachment: fixed;
                min-height: 100vh;
                position: relative;
                box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
            }

            header {
                padding: 40px 20px 20px;
                text-align: center;
                background: linear-gradient(
                    to bottom,
                    var(--coffee-light) 0%,
                    transparent 100%
                );
                border-bottom-left-radius: 30px;
                border-bottom-right-radius: 30px;
            }

            header h1 {
                font-weight: 800;
                font-size: 2.5rem;
                color: var(--coffee-dark);
                letter-spacing: 1px;
                margin-bottom: 5px;
                text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
            }

            header p {
                font-size: 0.95rem;
                color: var(--coffee-medium);
                font-weight: 500;
            }

            /* --- REFINED STICKY NAV (SCROLLABLE) --- */
            .sticky-nav {
                position: sticky;
                top: 0;
                background: rgba(var(--bg-rgb), 0.85);
                backdrop-filter: blur(15px);
                -webkit-backdrop-filter: blur(15px);
                z-index: 100;
                padding: 12px 0;
                border-bottom: 1px solid rgba(111, 78, 55, 0.05);
            }

            .category-list {
                display: flex;
                justify-content: flex-start;
                gap: 8px;
                padding: 6px 8px;
                margin: 0 12px;
                background-color: rgba(0, 0, 0, 0.04);
                border-radius: 50px;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none; /* Firefox */
            }

            .category-list::-webkit-scrollbar {
                display: none; /* Safari and Chrome */
            }

            .cat-btn {
                flex: 0 0 auto;
                display:inline-flex;align-items:center;justify-content:center;min-height:44px;
                text-align: center;
                text-decoration: none;
                color: var(--text-muted);
                background-color: transparent;
                padding: 8px 18px;
                border-radius: 50px;
                font-size: 0.85rem;
                font-weight: 700;
                white-space: nowrap;
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                border: none;
            }

            .cat-btn.active {
                background-color: var(--white);
                color: var(--coffee-dark);
                box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
                transform: scale(1.02);
            }

            .menu-content {
                padding: 10px 20px 40px;
            }

            .category-section {
                padding-top: 20px;
                margin-bottom: 30px;
            }

            .category-section h2 {
                font-weight: 800;
                font-size: 1.5rem;
                color: var(--coffee-dark);
                margin-bottom: 15px;
                padding-right: 5px;
            }

            /* --- ITEM CARDS --- */
            .item-card {
                background-color: var(--white);
                border-radius: var(--radius-card);
                padding: 16px;
                display: flex;
                gap: 16px;
                margin-bottom: 16px;
                box-shadow: 0 10px 25px -5px rgba(59, 40, 24, 0.08);
                border: 1px solid rgba(255, 255, 255, 0.5);
                transition: transform 0.2s ease;
            }

            .item-card:active {
                transform: scale(0.98);
            }

            .item-img {
                width: 72px;
                height: 72px;
                min-width: 72px;
                border-radius: var(--radius-img);
                background-color: #f2e8df;
                display: flex;
                align-items: center;
                justify-content: center;
                overflow: hidden;
                position: relative;
                border: 1px solid rgba(111, 78, 55, 0.05);
            }

            .item-img svg {
                width: 28px;
                height: 28px;
                fill: var(--coffee-medium);
                opacity: 0.6;
            }

            .item-img img { width:100%;height:100%;object-fit:cover;display:block; }

            .item-details {
                flex: 1;
                display: flex;
                flex-direction: column;
                justify-content: center;
            }

            .item-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                gap: 8px;
            }

            .item-title {
                font-size: 1.1rem;
                font-weight: 800;
                color: var(--black);
            }

            .item-price {
                font-size: 0.95rem;
                font-weight: 700;
                color: var(--coffee-medium);
                white-space: nowrap;
            }

            .item-status {
                font-size: 0.8rem;
                font-weight: 700;
                color: #c0392b;
                background-color: #fadbd8;
                padding: 2px 8px;
                border-radius: 10px;
                white-space: nowrap;
            }

            .item-desc {
                font-size: 0.85rem;
                color: var(--text-muted);
                line-height: 1.6;
                margin-top: 4px;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            /* --- ADDON STYLING --- */
            .item-addon {
                margin-top: 10px;
                padding-top: 8px;
                border-top: 1px dashed rgba(111, 78, 55, 0.2);
                display: flex;
                justify-content: space-between;
                align-items: center;
                font-size: 0.8rem;
            }

            .item-addon-title {
                color: var(--text-muted);
                font-weight: 500;
            }

            .item-addon-price {
                color: var(--coffee-medium);
                font-weight: 700;
                background-color: rgba(111, 78, 55, 0.08);
                padding: 1px 6px;
                border-radius: 6px;
            }
        

/* Ordering experience */
button,input,textarea{font-family:var(--font-main)}button{touch-action:manipulation}.hidden{display:none!important}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.site-switch{display:inline-flex;align-items:center;min-height:44px;margin-top:15px;padding:10px 20px;border-radius:var(--radius-pill);background:rgba(255,255,255,.78);color:var(--coffee-dark);font-size:.88rem;font-weight:800;text-decoration:none;border:1px solid rgba(111,78,55,.12);box-shadow:0 4px 14px rgba(59,40,24,.08)}
.service-strip{display:grid;grid-template-columns:auto 1fr;gap:1px 9px;align-items:center;margin:8px 0 2px;padding:12px 14px;background:#fff;border:1px solid rgba(111,78,55,.12);border-radius:14px}.service-strip small{grid-column:2;color:var(--text-muted)}.service-dot{grid-row:1/3;width:9px;height:9px;border-radius:50%;background:#46a171;box-shadow:0 0 0 5px #e8f1ec}.service-strip.closed{background:#fff7f5;border-color:#f0d1cc}.service-strip.closed .service-dot{background:#e56458;box-shadow:0 0 0 5px #fce9e7}.service-strip+.category-section{padding-top:12px}
.item-card{position:relative}.item-details{min-width:0}.item-header{align-items:flex-start}.option-summary{display:inline-flex;align-self:flex-start;margin-top:10px;padding:5px 8px;border-radius:8px;background:#f6f0eb;color:var(--coffee-medium);font-size:.76rem;font-weight:700}.item-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.add-btn{width:44px;height:44px;min-width:44px;border:0;border-radius:14px;background:var(--coffee-dark);color:#fff;font-size:1.45rem;line-height:1;box-shadow:0 5px 12px rgba(59,40,24,.18);cursor:pointer}.add-btn:disabled{background:#c8bbb1;box-shadow:none;cursor:not-allowed}.add-btn.closed-add{background:#8d8178;box-shadow:none}.unavailable{opacity:.7}.unavailable .item-img{filter:grayscale(.75)}
.cartbar{position:fixed;z-index:250;bottom:max(14px,env(safe-area-inset-bottom));left:50%;width:min(468px,calc(100% - 28px));transform:translateX(-50%)}.cartbar button,.primary{width:100%;min-height:54px;border:0;border-radius:14px;background:var(--coffee-dark);color:#fff;font:700 16px var(--font-main);box-shadow:0 10px 24px rgba(59,40,24,.2);cursor:pointer}.cartbar button{display:flex;align-items:center;justify-content:space-between;padding:0 18px}.cart-count{display:inline-grid;place-items:center;min-width:28px;height:28px;margin-left:8px;border-radius:20px;background:#fff;color:var(--coffee-dark)}
dialog{box-sizing:border-box;color:var(--black);background:#f8f4f0;border:0;padding:0;box-shadow:0 24px 80px rgba(30,18,10,.38)}dialog::backdrop{background:rgba(35,23,15,.58);backdrop-filter:blur(3px)}dialog[open]{animation:dialog-in .18s ease-out}.sheet{position:fixed;inset:auto 0 0 0;width:min(500px,100%);max-width:100%;max-height:min(90dvh,780px);margin:0 auto;border-radius:24px 24px 0 0;padding:20px 20px calc(22px + env(safe-area-inset-bottom));overflow:auto}.mini-dialog,.message-dialog{width:min(430px,calc(100% - 32px));margin:auto;border-radius:20px;padding:20px}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.dialog-head h2{font-size:1.3rem}.dialog-head small{color:var(--text-muted)}.close{width:44px;height:44px;flex:0 0 44px;border:0;border-radius:12px;background:rgba(111,78,55,.1);color:var(--coffee-dark);font-size:25px;cursor:pointer}
.cart-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid rgba(111,78,55,.12)}.cart-row small{display:block;color:var(--text-muted);margin-top:2px}.cart-row span{display:block;margin-top:3px;color:var(--coffee-medium);font-size:.88rem;font-weight:700}.qty{display:flex;align-items:center;gap:7px;direction:ltr}.qty button{width:40px;height:40px;border:1px solid rgba(111,78,55,.16);background:#fff;border-radius:11px;color:var(--coffee-dark);font-size:19px}.total-row{display:flex;justify-content:space-between;padding:10px 0}.total-row.final{font-size:1.08rem;font-weight:800;border-top:1px solid rgba(111,78,55,.16);padding-top:13px}.free{color:#27704c!important;font-weight:800}.empty-cart{text-align:center;color:var(--text-muted);padding:32px 0}
.checkout-step{margin-top:18px;padding-top:18px;border-top:1px solid rgba(111,78,55,.16)}.step-title{display:flex;align-items:center;gap:11px;margin-bottom:14px}.step-title>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--coffee-dark);color:#fff;font-weight:800}.step-title h3{font-size:1.02rem}.step-title p{font-size:.78rem;color:var(--text-muted)}.phone-form{display:grid;grid-template-columns:1fr auto;gap:8px}.phone-form input,.checkout input,.checkout textarea{width:100%;border:1px solid rgba(111,78,55,.2);background:#fff;border-radius:12px;padding:13px 14px;font:16px var(--font-main);color:var(--black);user-select:text}.phone-form input{direction:ltr;text-align:left}.phone-form .compact{width:auto;min-width:92px}.checkout{display:grid;gap:13px}.checkout label{display:grid;gap:6px;color:var(--text-muted);font-size:.84rem;font-weight:700}.checkout label span{font-weight:400}.checkout input:focus,.checkout textarea:focus,.phone-form input:focus{outline:3px solid rgba(111,78,55,.13);border-color:var(--coffee-medium)}.primary.compact{min-height:48px;padding:0 18px}.primary:disabled{opacity:.55;cursor:wait}.privacy-note{padding:10px 12px;border-radius:10px;background:rgba(111,78,55,.06);color:var(--text-muted);font-size:.76rem;line-height:1.7}.saved-place{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px;background:#fff;border:1px solid rgba(111,78,55,.14);border-radius:13px;margin-bottom:14px}.saved-place p{margin-top:4px;color:var(--text-muted);font-size:.86rem;line-height:1.7;white-space:pre-line}.text-button{border:0;background:transparent;color:var(--coffee-medium);font-weight:800;padding:7px;cursor:pointer}
.option-choices{display:grid;gap:8px}.option-help{margin:0 1px 3px;color:var(--text-muted);font-size:.8rem;line-height:1.7}.option-choice{display:flex;align-items:center;gap:11px;padding:13px;border:1px solid rgba(111,78,55,.16);background:#fff;border-radius:13px;cursor:pointer}.option-choice.selected{border-color:var(--coffee-medium);box-shadow:0 0 0 2px rgba(111,78,55,.1)}.option-choice input{width:20px;height:20px;accent-color:var(--coffee-dark)}.option-choice span{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1}.option-choice small{color:var(--text-muted)}.dialog-actions{display:grid;grid-template-columns:auto 1fr;gap:9px;margin-top:16px}.secondary{min-height:48px;padding:0 18px;border:1px solid rgba(111,78,55,.16);border-radius:13px;background:#fff;color:var(--coffee-dark);font-weight:800}.message-dialog{text-align:center}.message-icon{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 12px;border-radius:14px;background:#fce9e7;color:#b7453c;font-size:24px;font-weight:800}.message-dialog p{margin:8px 0 18px;color:var(--text-muted);line-height:1.8}
.order-notice{margin:10px 0 20px;padding:14px 16px;background:#fff;border:1px solid rgba(111,78,55,.13);border-radius:16px;color:var(--coffee-dark)}.order-notice.closed{background:#fff2ef;border-color:#e6b9b0;color:#81392e}.status-card,.staff-order{background:#fff;border-radius:var(--radius-card);padding:18px;box-shadow:0 10px 25px -5px rgba(59,40,24,.08);margin-bottom:14px}.status-badge{display:inline-block;padding:5px 10px;border-radius:9px;background:rgba(111,78,55,.1);color:var(--coffee-dark);font-weight:800;font-size:.82rem}.staff-grid{display:grid;gap:12px}.actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.actions button{min-height:44px;border:0;border-radius:10px;padding:8px 13px;font-weight:700;cursor:pointer}.accept{background:#dfeee6;color:#215b3e}.reject{background:#f8e0df;color:#8b2929}.complete{background:#e4e8f2;color:#344b78}#toast{position:fixed;z-index:500;top:16px;left:50%;width:max-content;max-width:calc(100% - 32px);transform:translateX(-50%) translateY(-12px);background:#2e211a;color:#fff;padding:10px 16px;border-radius:12px;opacity:0;pointer-events:none;transition:.2s}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.loading{text-align:center;padding:60px 10px;color:var(--text-muted)}
:focus-visible{outline:3px solid #a86d3f;outline-offset:3px}@keyframes dialog-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}@media(max-width:380px){.item-card{gap:11px;padding:13px}.item-img{width:60px;height:60px;min-width:60px}.item-title{font-size:1rem}.item-price{font-size:.82rem}.phone-form{grid-template-columns:1fr}.phone-form .compact{width:100%}}@media(min-width:650px){.sheet{bottom:4vh;border-radius:24px;max-height:88vh}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Mobile-first staff workspace */
.staff-page{background:#f6f5f2}.staff-page header{padding-bottom:38px}.staff-page .menu-content{padding:0 16px 48px}.staff-login{max-width:420px;margin:-22px auto 0;padding:26px 22px;background:#fff;border:1px solid #e6e5e3;border-radius:20px;box-shadow:0 10px 28px rgba(44,44,43,.08)}.staff-login-icon{display:grid;place-items:center;width:52px;height:52px;margin-bottom:18px;border-radius:14px;background:#f2e8df;font-size:26px}.staff-login h2{font-size:1.45rem}.staff-login>p{margin:8px 0 22px;color:#6d6964;line-height:1.8}.staff-login form{display:grid;gap:9px}.staff-login label,.price-editor label{font-size:.82rem;font-weight:800;color:#625e59}.password-field{position:relative}.password-field input{width:100%;min-height:52px;padding:11px 14px 11px 54px;border:1px solid #d9d6d2;border-radius:12px;background:#fff;font:16px var(--font-main);direction:ltr}.password-field button{position:absolute;left:4px;top:4px;width:44px;height:44px;border:0;border-radius:9px;background:#f3f2ef;cursor:pointer}.staff-primary{min-height:52px;margin-top:7px;border:0;border-radius:12px;background:#3b2818;color:#fff;font:800 16px var(--font-main);cursor:pointer}.staff-primary:disabled{opacity:.6}.login-error{padding:11px 13px;border:1px solid #efc4bf;border-radius:10px;background:#fce9e7;color:#9d352c;font-size:.86rem}.staff-shell{max-width:760px;margin:-22px auto 0}.staff-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;padding:18px;background:#fff;border:1px solid #e6e5e3;border-radius:18px}.staff-toolbar small{color:#7d7a75}.staff-toolbar h2{margin-top:2px;font-size:1.3rem}.staff-logout{min-width:64px;min-height:44px;border:1px solid #dedbd7;border-radius:10px;background:#fff;color:#615d58;font-weight:800;cursor:pointer}.delivery-control{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;margin-bottom:14px;padding:16px;background:#fff;border:1px solid #e6e5e3;border-radius:16px}.delivery-control small{display:block;margin-top:3px;color:#7d7a75;font-size:.75rem}.delivery-control>div:last-child{display:flex;gap:6px}.delivery-control button{min-height:44px;padding:0 13px;border:0;border-radius:10px;font-weight:800;cursor:pointer}.staff-tabs{position:sticky;z-index:20;top:8px;display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0 0 14px;padding:4px;background:#e9e7e3;border-radius:13px}.staff-tabs button{min-height:44px;border:0;border-radius:10px;background:transparent;color:#6a6661;font:800 14px var(--font-main);cursor:pointer}.staff-tabs button.active{background:#fff;color:#2c2c2b;box-shadow:0 1px 3px rgba(0,0,0,.08)}.staff-tabs span{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-right:4px;border-radius:12px;background:#fce9e7;color:#a53e35;font-size:.72rem}.staff-menu-section{margin-bottom:22px}.staff-menu-section>h3{display:flex;align-items:center;justify-content:space-between;margin:0 4px 9px;font-size:1.08rem}.staff-menu-section>h3 span{color:#7d7a75;font-size:.72rem;font-weight:600}.product-editor{margin-bottom:9px;padding:15px;background:#fff;border:1px solid #e6e5e3;border-radius:15px}.product-editor-main{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}.product-editor-main b{display:block}.product-editor-main small{display:-webkit-box;margin-top:3px;overflow:hidden;color:#7d7a75;font-size:.75rem;line-height:1.6;-webkit-line-clamp:1;-webkit-box-orient:vertical}.availability-switch{display:grid;grid-template-columns:auto auto;align-items:center;gap:7px;cursor:pointer}.availability-switch input{position:absolute;opacity:0;pointer-events:none}.availability-switch span{position:relative;width:48px;height:28px;border-radius:16px;background:#cbc8c3;transition:.18s}.availability-switch span:after{content:"";position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:.18s}.availability-switch input:checked+span{background:#46a171}.availability-switch input:checked+span:after{transform:translateX(-20px)}.availability-switch input:focus-visible+span{outline:3px solid #a86d3f;outline-offset:3px}.availability-switch em{grid-column:1/3;text-align:center;color:#625e59;font-size:.7rem;font-style:normal;font-weight:800}.price-editor{display:grid;gap:5px;margin-top:13px;padding-top:12px;border-top:1px solid #eceae7}.price-editor>div{display:grid;grid-template-columns:1fr auto;gap:7px}.price-editor input{min-width:0;min-height:46px;padding:8px 12px;border:1px solid #d9d6d2;border-radius:10px;background:#faf9f7;font:16px var(--font-main);direction:ltr;text-align:left}.price-editor button{min-width:72px;min-height:46px;border:0;border-radius:10px;background:#e5f2fc;color:#1e67a8;font-weight:800;cursor:pointer}.price-editor button:disabled{opacity:.55}.staff-order{border:1px solid #e6e5e3;box-shadow:none}.staff-order-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.staff-order-head span{padding:5px 8px;border-radius:8px;background:#f0efed;color:#595652;font-size:.7rem;font-weight:800}.staff-order p{margin:10px 0;color:#625e59;line-height:1.8}.staff-order a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;color:#276ea8}.staff-items{padding:10px;border-radius:9px;background:#f9f8f7;font-size:.84rem}.staff-order .actions button{flex:1;min-height:46px}.staff-empty{padding:40px 20px;text-align:center;color:#7d7a75;background:#fff;border:1px solid #e6e5e3;border-radius:15px}
@media(min-width:700px){.staff-page .menu-content{padding-inline:24px}.staff-menu-section{display:grid;grid-template-columns:1fr 1fr;gap:10px}.staff-menu-section>h3{grid-column:1/-1}.product-editor{margin-bottom:0}}


/* Staff menu editor — mobile-first */
.staff-menu-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 2px 18px}.staff-menu-intro h3{font-size:1.2rem}.staff-menu-intro p{margin-top:3px;color:#625e59;font-size:.82rem}.staff-add-category,.staff-section-actions button{min-height:44px;border:1px solid #cddfeb;border-radius:10px;background:#e5f2fc;color:#175f9d;font-weight:800;padding:0 13px;cursor:pointer}.staff-menu-section{margin-bottom:16px;padding:14px;background:#fff;border:1px solid #e6e5e3;border-radius:16px}.staff-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.staff-section-head h3{font-size:1.05rem}.staff-section-head span{display:block;margin-top:2px;color:#7d7a75;font-size:.75rem}.staff-section-actions{display:flex;gap:6px}.staff-section-actions .icon-action{min-width:56px;padding:0 8px;background:#f9f8f7;border-color:#dedbd7;color:#55514c;font-size:.76rem}.staff-section-actions .danger{color:#a33b33;background:#fce9e7;border-color:#efc4bf}.staff-product-list{display:grid;gap:8px}.product-editor{margin:0;padding:0;overflow:hidden;border-radius:13px;box-shadow:none}.product-edit-main{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:68px;padding:12px;border:0;background:#fff;text-align:right;color:#2c2c2b;cursor:pointer}.product-edit-main span:first-child{min-width:0}.product-edit-main b{display:block}.product-edit-main small{display:block;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7d7a75;font-size:.78rem}.edit-hint{flex:none;color:#276ea8;font-size:.78rem;font-weight:800}.product-quick-actions{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:10px 12px;background:#f9f8f7;border-top:1px solid #eceae7}.product-quick-actions strong{text-align:center;color:#5c5853;font-size:.8rem}.danger-text{min-width:44px;min-height:44px;border:0;background:transparent;color:#a33b33;font-weight:800;cursor:pointer}.staff-empty.compact{padding:22px 14px;border:0;background:#f9f8f7}.staff-editor-dialog{width:min(520px,calc(100% - 24px));max-height:min(88vh,720px);margin:auto;padding:20px;border:0;border-radius:18px;background:#fff;color:#2c2c2b;box-shadow:0 24px 70px rgba(0,0,0,.22)}.staff-editor-dialog::backdrop{background:rgba(35,29,25,.55);backdrop-filter:blur(3px)}.staff-editor-form{display:grid;gap:14px;margin-top:18px}.staff-editor-form>label{display:grid;gap:6px;color:#625e59;font-size:.82rem;font-weight:800}.staff-editor-form label>span{font-weight:500}.staff-editor-form input,.staff-editor-form textarea,.staff-editor-form select{width:100%;min-height:48px;padding:10px 12px;border:1px solid #d9d6d2;border-radius:10px;background:#fff;color:#2c2c2b;font:16px var(--font-main);user-select:text}.staff-editor-form textarea{resize:vertical;line-height:1.7}.staff-editor-form input:focus,.staff-editor-form textarea:focus,.staff-editor-form select:focus{outline:3px solid #cfe6f8;border-color:#2783de}.staff-editor-form .editor-check{display:flex;grid-template:none;align-items:center;min-height:48px;padding:10px 12px;border:1px solid #e6e5e3;border-radius:10px;background:#f9f8f7}.editor-check input{width:22px;min-height:22px;margin-left:9px;accent-color:#2783de}.staff-editor-actions{display:grid;grid-template-columns:auto 1fr;gap:8px;margin-top:4px}.staff-editor-actions .staff-primary{margin:0}.staff-editor-actions .secondary{min-height:52px}.staff-page button:focus-visible,.staff-page input:focus-visible,.staff-page textarea:focus-visible,.staff-page select:focus-visible{outline:3px solid #2783de;outline-offset:2px}
@media(max-width:520px){.staff-page header{padding:24px 16px 32px}.staff-page header h1{font-size:2rem}.staff-page .menu-content{padding-inline:12px}.staff-shell{margin-top:-18px}.staff-toolbar,.delivery-control{border-radius:14px}.delivery-control{grid-template-columns:1fr}.delivery-control>div:last-child button{flex:1}.staff-menu-intro{align-items:flex-end}.staff-menu-intro p{display:none}.staff-section-head{align-items:flex-start;flex-direction:column}.staff-section-actions{width:100%}.staff-section-actions button:first-child{flex:1}.staff-menu-section{padding:12px}.product-quick-actions{gap:8px}.staff-editor-dialog{width:100%;max-width:none;max-height:92vh;margin:auto 0 0;border-radius:20px 20px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom))}.staff-editor-actions{position:sticky;bottom:0;padding-top:8px;background:#fff}}
@media(min-width:700px){.staff-menu-section{display:block}.staff-product-list{grid-template-columns:1fr 1fr}.staff-menu-intro{margin-top:8px}}


/* Category ordering and dated order history */
.staff-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.category-order-controls{display:flex;gap:4px}.category-order-controls button{padding:0 9px;background:#f0efed;border-color:#dedbd7;color:#55514c}.category-order-controls button:disabled{opacity:.38;cursor:not-allowed}.staff-list-heading{margin:4px 3px 14px}.staff-list-heading h3{font-size:1.08rem}.staff-list-heading p{margin-top:3px;color:#7d7a75;font-size:.78rem}.staff-order-head>div{min-width:0}.staff-order-head time{display:block;margin-top:4px;color:#6d6964;font-size:.76rem;font-weight:600}.staff-order-head>span{flex:none}
@media(max-width:520px){.staff-tabs button{font-size:.78rem}.staff-tabs span{min-width:20px;height:20px}.staff-section-actions{flex-wrap:wrap}.category-order-controls{order:2;flex:1}.category-order-controls button{flex:1}.staff-section-actions>button:nth-child(2){order:1;flex-basis:100%}.staff-section-actions>.icon-action{order:3;flex:1}.staff-order{padding:15px}.staff-order-head time{font-size:.74rem}}

/* Order rejection and permanent removal dialogs */
.remove-order{flex:0 0 auto!important;background:#fff;color:#9b3d35;border:1px solid #efc4bf!important}.order-action-dialog{width:min(440px,calc(100% - 28px));margin:auto;padding:24px;border:0;border-radius:20px;background:#fff;color:#2c2c2b;box-shadow:0 24px 70px rgba(0,0,0,.24)}.order-action-dialog::backdrop{background:rgba(35,29,25,.58);backdrop-filter:blur(3px)}.action-dialog-icon{display:grid;place-items:center;width:48px;height:48px;margin-bottom:16px;border-radius:14px;background:#fce9e7;color:#b7453c;font-size:25px;font-weight:800}.order-action-dialog h2{font-size:1.35rem}.order-action-dialog>form>p{margin:8px 0 18px;color:#6d6964;line-height:1.8}.order-action-dialog label{display:grid;gap:7px;color:#625e59;font-size:.84rem;font-weight:800}.order-action-dialog textarea{width:100%;padding:12px 13px;border:1px solid #d9d6d2;border-radius:11px;background:#fff;color:#2c2c2b;font:16px/1.7 var(--font-main);resize:vertical;user-select:text}.order-action-dialog textarea:focus{outline:3px solid #f4d2cf;border-color:#e56458}.order-action-dialog label small{color:#7d7a75;font-weight:500}.action-dialog-buttons{display:grid;grid-template-columns:auto 1fr;gap:8px;margin-top:20px}.danger-confirm{min-height:48px;border:0;border-radius:12px;background:#b9473d;color:#fff;font:800 15px var(--font-main);cursor:pointer}.danger-confirm:disabled{opacity:.55;cursor:wait}


/* Extensible dependency, packaging, and inventory UI */
.cart-packaging{margin:16px 0 8px;padding:14px;border:1px solid #dfd6cf;border-radius:14px;background:#fff}.packaging-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.packaging-title b,.packaging-title small{display:block}.packaging-title small{margin-top:2px;color:var(--text-muted);font-size:.74rem}.info-button{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #d8d2cc;border-radius:12px;background:#f9f8f7;color:var(--coffee-dark);font:800 16px Georgia,serif;cursor:pointer}.packaging-explanation{display:none;margin:10px 0 4px;padding:10px 12px;border-radius:10px;background:#e5f2fc;color:#245d8b;font-size:.76rem;line-height:1.8}.cart-packaging.explained .packaging-explanation{display:block}.packaging-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px dashed #e6e1dc;font-size:.82rem}.packaging-row:first-of-type{margin-top:8px}.packaging-row span small{display:block;margin-top:2px;color:var(--text-muted);font-size:.7rem}.packaging-row strong{white-space:nowrap;color:var(--coffee-dark);font-size:.78rem}.dependency-grid{display:grid;gap:10px}.dependency-card{overflow:hidden;border:1px solid #e6e5e3;border-radius:15px;background:#fff}.dependency-card.inactive{opacity:.62}.dependency-card-main{width:100%;padding:16px;border:0;background:#fff;color:#2c2c2b;text-align:right;cursor:pointer}.dependency-kind{display:inline-block;padding:3px 7px;border-radius:7px;background:#e5f2fc;color:#23679f;font-size:.68rem;font-weight:800}.dependency-card h4{margin:9px 0 3px;font-size:1.04rem}.dependency-card p{min-height:1.5em;margin:0;color:#7d7a75;font-size:.78rem;line-height:1.7}.dependency-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}.dependency-metrics>span{padding:9px;border-radius:9px;background:#f9f8f7}.dependency-metrics small,.dependency-metrics b{display:block}.dependency-metrics small{color:#7d7a75;font-size:.66rem}.dependency-metrics b{margin-top:2px;font-size:.75rem}.dependency-card-foot{display:flex;align-items:center;justify-content:space-between;padding:9px 14px;border-top:1px solid #eceae7;background:#f9f8f7;color:#6d6964;font-size:.72rem}.dependency-card-foot button{min-width:44px;min-height:44px;border:0;background:transparent;color:#a33b33;font-weight:800;cursor:pointer}.dependency-card-foot button:disabled{color:#aaa6a1;cursor:not-allowed}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.editor-grid label{display:grid;gap:6px;color:#625e59;font-size:.82rem;font-weight:800}.dependency-picker{display:grid;gap:8px;margin:0;padding:13px;border:1px solid #dedbd7;border-radius:12px}.dependency-picker legend{padding:0 6px;font-size:.86rem;font-weight:800}.dependency-picker>p{margin:-2px 0 4px;color:#7d7a75;font-size:.74rem}.dependency-picker>label{display:grid;grid-template-columns:auto minmax(0,1fr) 82px;align-items:center;gap:9px;padding:10px;border:1px solid #e6e5e3;border-radius:10px;background:#f9f8f7}.dependency-picker>label>input[type=checkbox]{width:20px;min-height:20px;accent-color:#2783de}.dependency-picker span b,.dependency-picker span small{display:block}.dependency-picker span small{margin-top:2px;color:#7d7a75;font-size:.68rem}.dependency-picker .dependency-quantity{min-height:40px;text-align:center}.staff-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(min-width:700px){.dependency-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.staff-tabs{overflow-x:auto;grid-template-columns:repeat(4,minmax(82px,1fr))}.editor-grid{grid-template-columns:1fr}.dependency-picker>label{grid-template-columns:auto minmax(0,1fr) 70px}.dependency-metrics{grid-template-columns:1fr}.packaging-row{font-size:.8rem}}


/* Compact dependency management cards */
.dependency-card-main{padding:12px 14px}.dependency-card h4{display:inline;margin:0 8px;font-size:.95rem}.dependency-card p{display:none}.dependency-metrics{grid-template-columns:1fr 1fr!important;gap:6px;margin-top:9px}.dependency-metrics>span{padding:7px 8px}.dependency-card-foot{padding:5px 12px}.dependency-card-foot button{min-height:36px}.dependency-kind{vertical-align:middle}


/* Super-simple packaging staff UI */
.simple-help{margin:0 0 4px;padding:10px 12px;border-radius:10px;background:#f0efed;color:#5c5853;font-size:.78rem;line-height:1.7}.count-mode{display:grid;gap:8px;margin:0;padding:0;border:0}.count-mode legend{margin-bottom:4px;font-size:.82rem;font-weight:800;color:#625e59}.mode-choice{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid #e6e5e3;border-radius:12px;background:#f9f8f7;cursor:pointer}.mode-choice:has(input:checked){border-color:#2783de;background:#e5f2fc}.mode-choice input{margin-top:3px;accent-color:#2783de}.mode-choice b,.mode-choice small{display:block}.mode-choice small{margin-top:3px;color:#7d7a75;font-size:.72rem;font-weight:500;line-height:1.6}.pack-need{align-items:center!important}.dependency-picker>p{margin:0 0 6px!important}

/* Cart, add-ons, and ordering controls */
.add-btn{position:relative}.product-cart-count{position:absolute;top:-8px;left:-8px;display:grid;place-items:center;min-width:24px;height:24px;padding:0 5px;border:2px solid #fff;border-radius:14px;background:var(--coffee-medium);color:#fff;font-size:.7rem;font-weight:800}.add-btn.added{animation:add-bump .34s}.cartbar.cart-pulse button{animation:cart-pulse .48s}.cart-fly-dot{position:fixed;z-index:1000;width:18px;height:18px;border-radius:50%;background:var(--coffee-medium);pointer-events:none}@keyframes add-bump{50%{transform:scale(1.13)}}@keyframes cart-pulse{50%{transform:scale(1.035)}}
.delivery-control{grid-template-columns:1fr}.state-badge{display:inline-block;margin-right:8px;padding:3px 9px;border-radius:8px;font-size:.72rem;font-weight:800}.delivery-state.running .state-badge{background:#dff0e7;color:#215b3e}.delivery-state.paused .state-badge{background:#f8e0df;color:#8b2929}.hours-form{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:8px}.hours-form label{display:grid;gap:5px;font-size:.76rem;font-weight:800}.hours-form input{min-width:0;min-height:44px;padding:8px;border:1px solid #d9d6d2;border-radius:10px;font:16px var(--font-main)}.hours-form .save-hours{grid-column:1/-1}.delivery-actions{display:grid}.delivery-actions button{min-height:44px}
.addon-editor{display:grid;gap:8px;padding:13px;border:1px solid #dedbd7;border-radius:12px}.addon-edit-row{display:grid;grid-template-columns:minmax(0,1fr) 100px auto;gap:7px}.addon-edit-row input{min-width:0;min-height:44px;padding:8px;border:1px solid #d9d6d2;border-radius:9px;font:16px var(--font-main)}.addon-edit-row>div{display:flex;gap:3px}.addon-edit-row button{min-width:36px;height:44px}.addon-add{min-height:44px}@media(max-width:520px){.addon-edit-row{grid-template-columns:minmax(0,1fr) 82px}.addon-edit-row>div{grid-column:1/-1}.addon-edit-row button{flex:1}}

/* Product photos — simple staff flow, automatic square crop */
.staff-product-thumb{flex:0 0 48px;width:48px;height:48px;border-radius:10px;object-fit:cover;background:#f2e8df}.staff-product-thumb.empty{display:grid;place-items:center}.staff-product-thumb.empty svg{width:22px;height:22px;fill:#6f4e37;opacity:.55}.product-edit-main>span:nth-child(2){min-width:0;flex:1}.product-image-editor{display:grid;grid-template-columns:116px minmax(0,1fr);gap:14px;padding:13px;border:1px solid #dedbd7;border-radius:13px;background:#f9f8f7}.product-image-preview{display:grid;place-items:center;width:116px;aspect-ratio:1;border:1px dashed #cfc8c2;border-radius:12px;overflow:hidden;background:#f2e8df;color:#756a61}.product-image-preview img{width:100%;height:100%;display:block;object-fit:cover}.product-image-preview>span{display:grid;place-items:center;gap:6px}.product-image-preview svg{width:28px;height:28px;fill:#6f4e37;opacity:.55}.product-image-preview small{font-size:.7rem}.product-image-controls{display:flex;flex-wrap:wrap;align-content:center;align-items:center;gap:8px}.product-image-controls>b,.product-image-controls>p,.product-image-controls>small{flex:0 0 100%}.product-image-controls>b{font-size:.9rem}.product-image-controls>b span{color:#7d7a75;font-weight:500}.product-image-controls>p,.product-image-controls>small{margin:0;color:#7d7a75;font-size:.72rem;line-height:1.6}.image-pick-button,.image-remove-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 13px;border-radius:10px;font-size:.78rem;font-weight:800;cursor:pointer}.image-pick-button{background:#e5f2fc;color:#175f9d;border:1px solid #cddfeb}.image-pick-button.busy{opacity:.55;pointer-events:none}.image-remove-button{border:1px solid #efc4bf;background:#fff;color:#a33b33}.image-remove-button.hidden{display:none}
@media(max-width:430px){.product-image-editor{grid-template-columns:96px minmax(0,1fr);gap:11px}.product-image-preview{width:96px}.image-pick-button,.image-remove-button{width:100%}}
