/* RC59: reference-led customer Inbox. Staff console retains its own layout. */
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView{font-size:16px;--inbox-list-width:280px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-layout{border-radius:16px;background:var(--surface);border:1px solid var(--line)}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-chat{background:var(--bg);background-image:none}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-chat-head{padding:16px 20px;min-height:80px;box-sizing:border-box;gap:12px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-chat-identity strong{font-size:17px;line-height:1.4}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-chat-identity small{font-size:13px;line-height:1.5}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-owner-avatar{width:44px;height:44px;flex-basis:44px;font-size:14px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-head-action{width:auto;min-width:44px;padding:8px 12px;color:var(--brand);background:transparent;text-decoration:underline;font-size:14px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-detail-label{display:inline}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView #conciergeOrderSummary{background:transparent;border:0;max-height:min(36dvh,290px)}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView #conciergeInlineActions{padding:14px 18px 6px;gap:8px;max-height:none;overflow:visible}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .inbox-order-shortcut{border-radius:14px;padding:18px;box-shadow:0 3px 12px #00000004;gap:10px;background:var(--surface)}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .inbox-order-shortcut.is-tracking{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px 16px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .is-tracking>header{grid-template-columns:52px minmax(0,1fr);grid-column:1;gap:12px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .is-tracking>header>span{width:52px;height:52px;border-radius:50%;background:var(--surface-3);color:var(--brand)}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .is-tracking>header small{display:none}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .is-tracking header strong{font-size:18px;line-height:1.4;word-break:normal}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .is-tracking>p{display:block;grid-column:1;font-size:14px;line-height:1.5}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .is-tracking>.tracking-actions{grid-column:2;grid-row:1/4;display:grid;gap:2px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .tracking-actions :is(a,button){font-size:14px;min-height:40px;padding:9px 14px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .tracking-actions>button{text-decoration:underline}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .inbox-delivery-timeline{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;padding:0;margin:12px 0 0;gap:0;min-width:0}
.inbox-delivery-timeline li{position:relative;display:flex;flex-direction:column;gap:8px;align-items:flex-start;min-width:0;color:var(--muted)}.inbox-delivery-timeline li:not(:last-child):after{content:'';position:absolute;top:9px;left:20px;right:0;height:2px;background:var(--line)}.inbox-delivery-timeline li[data-state=complete]:after{background:var(--brand)}.inbox-delivery-timeline li>span{display:grid;place-items:center;width:20px;height:20px;border:1px solid var(--muted);border-radius:50%;background:var(--surface);box-sizing:border-box;font-size:13px}.inbox-delivery-timeline li[data-state=complete]>span{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}.inbox-delivery-timeline li[data-state=current]>span{background:var(--brand);border:4px solid var(--surface-3);box-shadow:0 0 0 1px var(--brand)}.inbox-delivery-timeline strong{font-size:12px;font-weight:500;line-height:1.4}.inbox-delivery-timeline [data-state=current] strong{color:var(--text);font-weight:750}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView #conciergeMessages{padding:20px 28px;gap:14px;background:var(--bg)}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-message{max-width:78%;width:fit-content;min-height:0;padding:14px 18px;border:0;border-radius:16px;background:var(--surface);color:var(--text);font-size:16px;line-height:1.55;box-shadow:0 2px 8px #00000004;white-space:pre-wrap;align-self:flex-start;text-align:left}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-message.is-user{align-self:flex-end;background:var(--surface-3);border-radius:16px 16px 4px 16px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-message.is-staff{border-radius:16px 16px 16px 4px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-message>small{font-size:12px;margin-bottom:5px;color:var(--brand);text-align:left}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-message.is-user>small{display:none}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-message.is-system{max-width:90%;align-self:center;padding:6px 12px;font-size:12px;color:var(--muted);background:transparent;box-shadow:none;text-align:center}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-message.is-system>small{display:none}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-message-meta{margin-top:5px;font-size:12px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-message-time{font-size:12px;color:var(--muted)}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-day-divider span{background:transparent;border:0;font-size:13px;color:var(--muted)}
.inbox-audit-event{white-space:normal}.inbox-audit-event summary{cursor:pointer;font-size:13px;min-height:28px}.inbox-audit-event p{font-size:13px;white-space:pre-wrap}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView #conciergeForm{margin:8px 18px 16px;padding:9px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:none;backdrop-filter:none}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView #conciergeInput{border:0;background:transparent;font-size:16px;min-height:44px;padding:10px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-send{border-radius:50%;width:44px;min-height:44px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-inbox-head{padding:18px;min-height:72px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-inbox-head h1{font-size:24px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-search{margin:0 16px 12px;background:var(--surface);min-height:44px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-search input{font-size:14px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-filters{padding:0 16px 12px;gap:4px;flex-wrap:wrap}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .inbox-filter{border:0;border-radius:10px;font-size:12px;min-height:38px;padding:8px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .inbox-filter.is-active{background:var(--surface-3);color:var(--brand)}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-inbox-list{padding:0 6px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-thread{min-height:94px;padding:16px 12px;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;border-radius:0;border:0;border-bottom:1px solid var(--line)}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-thread.is-active{box-shadow:none;background:var(--surface-3)}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-thread-icon{width:44px;height:44px;font-size:15px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-thread>span:nth-child(2)>small{display:none}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-thread strong{font-size:15px;line-height:1.5}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-thread em{font-size:13px;line-height:1.5;margin-top:3px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .thread-labels{display:none}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-thread.is-decision .thread-labels{display:flex}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-thread time{font-size:11px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView #conciergeDetailsPanel{background:var(--surface);border-left:1px solid var(--line)}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-detail-head{padding:18px;min-height:64px;border-bottom:0;font-size:17px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView #inboxCoordination{padding:0 16px 18px;gap:14px}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .coordination-next.is-order-summary{display:flex;flex-wrap:wrap;gap:8px;background:transparent;border:0;padding:0 0 8px;box-shadow:none;margin:0}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .coordination-next.is-order-summary>small{padding:0;border:0;background:transparent;font-size:13px;flex-basis:100%;color:var(--muted)}
.coordination-status-pill,.coordination-payment-state{display:inline-block;padding:5px 10px;border-radius:999px;background:var(--surface-3);color:var(--brand);font-size:12px;font-weight:650}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .coordination-section{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:0}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .coordination-section>summary{padding:15px;font-size:15px;font-weight:700}
html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .coordination-section-body{padding:0 15px 16px;font-size:14px;gap:10px}
.coordination-product-row{display:grid!important;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 0}.coordination-product-icon{display:grid;place-items:center;width:34px;height:38px;border-radius:8px;background:var(--surface-3);color:var(--brand)}.coordination-product-row>div{display:grid;gap:4px}.coordination-product-row strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}.coordination-product-row small{font-size:12px;color:var(--muted)}.coordination-product-row>b{font-size:13px;white-space:nowrap}.coordination-order-total{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:13px;font-size:17px}
@media(min-width:900px){body.is-concierge-app:not(.staff-crm-mode) #ikatuApp{grid-template-rows:64px minmax(0,1fr)}body.is-concierge-app:not(.staff-crm-mode) .bottom-nav{display:none!important}body.is-concierge-app:not(.staff-crm-mode) .desktop-shell{padding:0 16px 16px!important}body.is-concierge-app:not(.staff-crm-mode) .topbar{height:64px;min-height:64px}body.is-concierge-app:not(.staff-crm-mode){background:var(--surface-3)}}
@media(min-width:1280px){html body.is-concierge-app:not(.staff-crm-mode) #conciergeView #conciergeLayout.is-detail-open{grid-template-columns:minmax(240px,var(--inbox-list-width,280px)) 0 minmax(0,1fr) 320px}}
@media(max-width:899px){html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .is-tracking{grid-template-columns:minmax(0,1fr)}html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .is-tracking>.tracking-actions{grid-column:1;grid-row:auto;display:flex}html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .is-tracking>header{grid-template-columns:40px minmax(0,1fr)}html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .is-tracking>header>span{width:40px;height:40px}html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .is-tracking header strong{font-size:16px}html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .is-tracking>p{display:none}}
@media(max-width:699px){html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-layout{border:0;border-radius:0}html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-chat-head{min-height:64px;padding:10px 12px}html body.is-concierge-app:not(.staff-crm-mode) #conciergeView #conciergeInlineActions{padding:8px 10px 4px}html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .inbox-order-shortcut{padding:12px;gap:6px}html body.is-concierge-app:not(.staff-crm-mode) #conciergeView #conciergeMessages{padding:14px 12px;gap:12px}html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .concierge-message{max-width:88%;padding:12px 14px;font-size:15px}html body.is-concierge-app:not(.staff-crm-mode) #conciergeView #conciergeForm{margin:5px 10px 10px;padding:5px 8px}html body.is-concierge-app:not(.staff-crm-mode) #conciergeView #conciergeOrderSummary{max-height:34dvh}.inbox-delivery-timeline strong{font-size:10px}body.is-concierge-app:not(.staff-crm-mode)[data-concierge-pane=chat] .bottom-nav,body.is-concierge-app:not(.staff-crm-mode)[data-concierge-pane=chat] .topbar{display:none!important}body.is-concierge-app:not(.staff-crm-mode)[data-concierge-pane=chat] #ikatuApp{grid-template-rows:minmax(0,1fr)}}
@media(max-height:700px){html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .inbox-order-shortcut.is-tracking{padding:10px 12px;gap:4px}html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .is-tracking>header{grid-template-columns:34px minmax(0,1fr)}html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .is-tracking>header>span{width:34px;height:34px}html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .is-tracking>p{display:none}html body.is-concierge-app:not(.staff-crm-mode) #conciergeView .inbox-delivery-timeline{margin-top:6px}}

/* Delivery confirmation lives in a dialog, never in a nested card form. */
#deliveryLocationDialog{width:min(480px,calc(100vw - 24px));max-height:90dvh;padding:20px;border:1px solid #dce6df;border-radius:18px;color:#143c32;background:#fff;overflow-y:auto}
#deliveryLocationDialog::backdrop{background:#002c2455}
#deliveryLocationDialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}
#deliveryLocationDialog h2{font-size:22px;margin:0}
#deliveryLocationDialog form,#deliveryLocationDialog fieldset{display:grid;gap:14px}
#deliveryLocationDialog label{display:grid;gap:6px;font-size:14px}
#deliveryLocationDialog input:not([type=checkbox]){width:100%;min-height:44px;box-sizing:border-box}
#deliveryLocationDialog button{min-height:44px;border:1px solid #c9ddd3;border-radius:10px;padding:8px 14px;background:#f5faf7;color:#075a43}
#deliveryLocationDialog footer button{width:100%;background:#08785e;color:white}
#deliveryLocationDialog .delivery-other{display:flex;align-items:center}
#deliveryLocationDialog .delivery-place-options{display:grid;gap:8px}
#deliveryLocationDialog small{display:block}
#deliveryLocationDialog [hidden]{display:none!important}
@media(max-width:600px){#deliveryLocationDialog{width:100vw;height:100dvh;max-height:100dvh;max-width:100vw;margin:0;border:0;border-radius:0;box-sizing:border-box}}
