/* Shared neutral surfaces; compact cards keep three orders visible on a phone. */
#app .orders-screen{max-width:760px;padding:14px 16px calc(var(--nav-space,92px) + 14px)}
#app .orders-screen .section-top{margin:0 0 10px;min-height:30px;align-items:center}
#app .orders-screen h2{font-size:21px;margin:0}
#app .orders-screen .section-top>button{font-size:12px;padding:6px 12px}
#app .orders-screen .category-chips{margin:0 0 12px;gap:6px;white-space:nowrap;overflow-x:auto;scrollbar-width:none}
#app .orders-screen .category-chips>button{font-size:11px;padding:7px 12px;min-height:32px}
.order-cards{display:grid;gap:10px}
.order-mini-card{background:#f7f7f5;border:1px solid #f0efec;border-radius:20px;padding:11px 13px;min-width:0}
.order-mini-heading{display:flex;justify-content:space-between;gap:10px;width:100%;align-items:center;padding:0!important;background:none!important;text-align:left;min-height:23px}
.order-mini-heading>span:first-child{font-size:14px;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-mini-heading>span:last-child{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:400;color:#888178;white-space:nowrap}
.small-chevron{width:6px;height:6px;border-right:1px solid currentColor;border-top:1px solid currentColor;transform:rotate(45deg);display:inline-block}
.order-use-date{display:block;font-size:10px;color:#918c84;line-height:17px}
.order-preview{display:flex;width:100%;justify-content:space-between;align-items:center;padding:7px 0!important;background:none!important;min-height:56px;text-align:left}
.order-thumbnails{display:flex;align-items:center;gap:6px;min-width:0;overflow:hidden}
.order-thumb{width:40px;height:40px;border-radius:12px;background:#fff;flex-shrink:0;display:grid;place-items:center;overflow:hidden}
.order-thumb img{width:100%;height:100%;object-fit:contain}.order-thumb>span{color:#9a9389;font-size:12px}
.order-more{font-size:11px;color:#928b82}.order-quantity{flex-shrink:0;font-size:12px;text-align:right;color:#5a544e;padding-left:8px}.order-quantity small{display:block;font-size:10px;color:#9a938a;line-height:17px}
.order-mini-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:2px}
#app .order-mini-actions>button{border-radius:15px;background:#eeece8;font-size:11px;min-height:28px;padding:4px 14px}
#app .order-mini-actions>.order-detail-link{background:#302d29;color:#fff}
.order-undo{display:flex;justify-content:space-between;align-items:center;font-size:12px;padding:8px 12px;background:#f0eee8;border-radius:15px;margin-bottom:10px}.order-undo button{padding:4px 8px;text-decoration:underline;background:none}
#app .order-detail-screen{max-width:760px;padding:18px 18px calc(var(--nav-space,24px) + 28px)}
.order-detail-status{padding:4px 0 20px}.order-detail-status .eyebrow{margin:0 0 9px!important}.order-detail-status h2{margin:0 0 7px}
.order-detail-paper{background:#f7f7f5;border-radius:22px;padding:16px;margin-bottom:12px}.order-detail-paper h3{margin:0 0 10px!important;display:flex;justify-content:space-between;align-items:center;font-size:14px!important}.order-detail-paper h3 small{font-size:11px;color:#928b82;font-weight:400}
.order-meta-line{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:11px;line-height:24px}.order-meta-line>span:first-child{color:#918b82;flex-shrink:0}.order-meta-line strong{font-weight:500;text-align:right}.order-meta-line>span:last-child{text-align:right;overflow-wrap:anywhere}
.order-food-line{display:flex;align-items:center;gap:12px;min-width:0;padding:14px 0;border-bottom:1px solid #e8e5e0}.order-food-line:last-child{border-bottom:0}.order-food-line>img,.order-food-line>.order-photo-empty{width:56px;height:62px;border-radius:13px;background:white;flex-shrink:0;object-fit:contain}
.order-photo-empty{display:grid;place-items:center;color:#9a9389;font-size:15px}.order-food-copy{min-width:0;flex:1}.order-food-copy strong{display:block;font-size:13px;line-height:20px;font-weight:500}.order-food-copy>span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;color:#979087;line-height:17px;margin-top:5px}.order-food-count{font-size:12px;color:#888178;flex-shrink:0}
.order-remark{font-size:12px;margin-top:12px;padding-top:12px;border-top:1px solid #e8e5e0}.order-remark>span{color:#918b82}.order-remark p{margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.order-notification{text-align:center;display:block;margin:16px 0}
#app .order-detail-screen .primary-button,#app .order-detail-screen .secondary{display:block;width:100%;border-radius:24px;min-height:44px;font-size:13px;margin-top:10px}
.cart-backdrop{position:fixed;inset:0;z-index:103;background:#302d294c}
.cart-sheet{position:fixed;z-index:104;bottom:calc(var(--nav-space,92px) + 64px);left:12px;right:12px;max-width:700px;margin:auto;background:#fff;border-radius:26px 26px 18px 18px;padding:7px 16px 8px;box-shadow:0 -8px 40px #302d2914;transform-origin:bottom center}
.cart-sheet-handle{width:32px;height:3px;border-radius:3px;background:#dedbd6;margin:0 auto 8px}
.cart-sheet-header{display:flex;justify-content:space-between;align-items:center;padding:0 0 9px;border-bottom:1px solid #e8e5e0;gap:8px}
#app .cart-sheet-header h3{font-size:14px;line-height:24px;margin:0!important;font-weight:500}.cart-sheet-header>div{display:flex;align-items:center;gap:10px}.cart-sheet-header button{background:none;font-size:11px;padding:4px 6px}.cart-sheet-header .cart-close{font-size:21px;line-height:24px;min-width:30px}
.cart-sheet-items{display:block;max-height:min(48dvh,390px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
.cart-food-row{display:flex;gap:12px;align-items:center;position:relative;padding:13px 0;border-bottom:1px solid #efede9}.cart-food-row:last-child{border-bottom:0}
.cart-food-row>img,.cart-food-row>.order-photo-empty{width:58px;height:70px;flex-shrink:0;object-fit:contain;border-radius:14px;background:#f7f6f3}
.cart-food-copy{min-width:0;flex:1;padding-right:16px}.cart-food-copy>strong{font-weight:500;font-size:13px;line-height:20px;display:block}.cart-food-copy>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;color:#979087;line-height:16px;margin-top:3px;min-height:16px}
#app .cart-food-copy .quantity{justify-content:flex-end;margin-top:7px;gap:10px}#app .cart-food-copy .quantity>button{width:27px;height:27px;background:#f0eee9!important;color:#302d29!important;font-size:17px;border-radius:50%}#app .cart-food-copy .quantity>span{font-size:12px;min-width:13px;text-align:center}
.cart-remove{position:absolute;top:9px;right:-4px;width:24px;height:24px;background:none!important;color:#aaa297;font-size:17px}
.cart-empty{text-align:center;font-size:14px;color:#7a736a;padding:35px 10px}.cart-empty small{display:block;color:#aaa297;font-size:11px;margin-top:7px}
#app .order-shop:has(.cart-sheet) .shopping-bag{z-index:105}#app .order-shop:has(.cart-sheet) .shopping-bag .bag-summary{color:#302d29}
.action-overlay{position:fixed;inset:0;z-index:400;display:grid;place-items:center;padding:24px;background:#302d2955;animation:cart-fade .18s ease-out}
.action-dialog{max-width:340px;width:100%;background:#fff;border-radius:26px;padding:24px;box-shadow:0 16px 50px #302d2920;animation:dialog-enter .24s cubic-bezier(.22,1,.36,1)}.action-dialog h3{font-size:17px;line-height:1.5;margin:0 0 9px}.action-dialog p{font-size:13px;line-height:1.8;color:#91887f;margin:0 0 22px}.action-dialog>div{display:flex;gap:10px}.action-dialog button{flex:1;border-radius:22px;padding:11px;font-size:13px;background:#f3f1ed}.action-dialog .confirm-danger{background:#302d29;color:white}
#app .delete-action{display:block;background:#f6f3f0;color:#9a6655;border:1px solid #eee7e0;min-height:44px;border-radius:24px;font-size:13px;width:100%;margin:12px 0 24px;padding:11px}#app .editor-delete{width:calc(100% - 36px);max-width:724px;margin:0 auto 28px}#app .card-tools .delete-menu-action{color:#9a6655}
@keyframes cart-open{from{opacity:.4;transform:translateY(26px) scale(.98)}to{opacity:1;transform:none}}@keyframes cart-fade{from{opacity:0}to{opacity:1}}@keyframes dialog-enter{from{opacity:0;transform:translateY(9px) scale(.96)}to{opacity:1;transform:none}}@keyframes order-appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.cart-sheet,.cart-backdrop,.action-overlay,.action-dialog,.order-mini-card{animation:none!important}}
@media(max-width:360px){#app .orders-screen{padding-left:12px;padding-right:12px}.order-mini-card{padding:10px 11px}.order-thumb{width:34px;height:36px}.order-thumbnails{gap:5px}.order-mini-heading>span:first-child{font-size:13px}}

.order-food-photo-link{padding:0;border:0;background:transparent;border-radius:16px;overflow:hidden;display:block;width:100%;height:100%;min-width:0}.order-food-photo-link img{width:100%;height:100%;object-fit:contain}.order-food-title-link{padding:0!important;border:0;background:transparent!important;border-radius:0!important;text-align:left;font:inherit;font-size:14px!important;font-weight:600!important;line-height:1.45;color:inherit}.order-food-title-link:focus-visible,.order-food-photo-link:focus-visible{outline:2px solid #a69884;outline-offset:3px}
