/* Shared Fordwell shell proportions, with Fulfill's own brand palette. */
:root{--shell-header:56px;--shell-rail:84px;--shell-expanded:286px}
.ui-icon{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
button>.ui-icon,a>.ui-icon{margin-right:7px}.square-button>.ui-icon,.quick-navigation .ui-icon,#quick-toggle .ui-icon,#mobile-nav .ui-icon{margin:0}
button:has(>.ui-icon){display:inline-flex;align-items:center;justify-content:center;gap:0}
.square-button,.icon-button{display:inline-grid;place-items:center;width:44px;height:44px;min-height:44px;padding:10px;border:1px solid var(--line);background:white;border-radius:8px;color:var(--ink)}
.square-button:disabled{opacity:.4}.icon-button>.ui-icon{margin:0}
.text-button[data-view]>.ui-icon,.setup-card button>.ui-icon,[data-fulfillment].text-button>.ui-icon{margin-left:7px;margin-right:0}
.topbar{position:sticky;top:0;z-index:35;height:var(--shell-header);padding:0 22px;gap:12px}
.brand{gap:10px}.brand img{height:32px;width:32px}.brand strong{font-size:18px;letter-spacing:-.4px}.brand small{font-size:9px;letter-spacing:1.2px}
.account-actions{margin-left:auto;gap:10px}.account-actions #account{display:flex;align-items:center;gap:12px;max-width:min(460px,55vw);border-color:transparent;background:transparent;padding:4px 8px;min-height:44px}
.account-actions #account:hover,.account-actions #account[aria-expanded=true]{background:#faf0f3;border-color:#d8aab6}
.account-name{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-actions .avatar{width:32px;height:32px;font-size:12px}
.workspace{grid-template-columns:var(--shell-rail) minmax(0,1fr);min-height:calc(100dvh - var(--shell-header));transition:grid-template-columns 220ms cubic-bezier(.2,.8,.2,1)}
.sidebar{position:sticky;top:var(--shell-header);height:calc(100dvh - var(--shell-header));overflow-x:hidden;overflow-y:auto;background:#fcf0f3;border-right:1px solid #e4c7cf;padding:16px 7px;gap:16px;z-index:25}
#nav{display:grid;gap:8px;margin:0;overflow:visible;padding:0}
#nav button{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;width:68px;min-height:70px;padding:8px 4px 18px;border:1px solid #dfd5d9;border-radius:11px;background:white;color:var(--ink);text-align:left;white-space:normal}
#nav button>.ui-icon{width:21px;height:21px;margin:0;color:var(--brand)}
#nav button::after{content:attr(data-short);position:absolute;bottom:6px;left:1px;right:1px;font-size:9px;font-weight:600;text-align:center;color:#71545d}
#nav button:hover{border-color:#cc8f9f;background:#fcf7f8}#nav button.active{border-color:#ca8799;background:#f6e4ea}
.sidebar .nav-copy,#nav .count{display:none}
#nav .nav-copy strong{display:block;font-size:14px;line-height:1.4;font-weight:750;color:#3c2630}
#nav .nav-copy small{display:block;font-size:11px;line-height:1.45;color:#806976;font-weight:400;margin-top:2px}
.sidebar-foot{display:block;margin-top:auto;padding:0;border:0}
#install-fulfill{width:100%;min-height:46px;display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 5px;background:#faf6f7;border:1px solid transparent;font-size:11px;font-weight:400;white-space:nowrap}
#install-fulfill:hover{border-color:#dcb9c4;background:white}#install-fulfill img{height:22px;width:22px;flex:none}
#mobile-nav{display:none}
.shell-popover{background:white;border:1px solid #e4d0d7;border-radius:14px;box-shadow:0 14px 34px #48212e2b;color:#422c35}
#account-menu{position:absolute;right:14px;top:calc(100% + 6px);width:370px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 80px);overflow:auto;padding:13px}
.account-menu-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:2px 2px 12px}.account-menu-head strong{font-size:13px}.account-menu-head small{display:block;font-size:11px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
.account-current{display:flex;gap:10px;align-items:center;padding:12px 8px;background:#faf0f3;border-radius:7px}.account-current>div{flex:1}.account-current strong{display:block;font-size:12px;line-height:1.5}.account-current small{display:block;font-size:10px;color:var(--muted);margin-top:3px}
.account-links{display:grid;grid-template-columns:1fr 1fr;gap:12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:5px 0 10px}
.account-links h3{font-size:11px;color:var(--brand);margin:13px 8px 8px}.account-links button,.account-links a{display:flex;align-items:center;text-align:left;width:100%;padding:8px;font-size:12px;line-height:1.5;min-height:34px;border:0;border-radius:5px;background:none;text-decoration:none;font-weight:400;color:var(--ink)}
.account-links button:hover,.account-links a:hover{background:#fbf2f5}.account-links .ui-icon{width:13px;height:13px;margin-left:5px;margin-right:0}
.account-menu-row{width:100%;display:flex!important;justify-content:flex-start!important;gap:7px;border:0;padding:10px 8px;font-size:12px;font-weight:400}.account-menu-row .ui-icon{height:18px;width:18px}.account-menu-row.sign-out{border-top:1px solid var(--line);border-radius:0;margin-top:4px;padding-top:12px}
#quick-tools{position:fixed;bottom:18px;right:18px;z-index:40;display:flex;flex-direction:column;align-items:flex-end;gap:10px}
#quick-toggle{width:54px;height:54px;min-height:54px;border-radius:50%;border:0;display:grid;place-items:center;padding:14px;background:var(--brand);color:white;box-shadow:0 7px 22px #572b3630}
#quick-toggle:hover{background:var(--brand-hover)}#quick-toggle .ui-icon{width:25px;height:25px}
#quick-panel{width:360px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 155px);overflow:auto;padding:10px}
.quick-navigation{display:flex;gap:6px;padding-bottom:10px;flex-wrap:wrap}.quick-navigation button{flex:1;min-width:44px;height:44px;min-height:44px;padding:10px;background:#faf4f6;border-color:#e7d7dd;color:var(--brand)}
.quick-navigation button:first-child{flex:1.2}.quick-navigation button.active{background:#f3dfe6;border-color:#c58194}
.quick-context{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px;position:relative}.quick-context small{display:block;font-size:11px;color:var(--muted)}.quick-context strong{display:block;margin-top:4px;font-size:13px;font-weight:500;line-height:1.5}
.quick-actions{padding:7px 0}.quick-actions button{width:100%;display:flex;align-items:center;justify-content:flex-start;text-align:left;border:0;border-radius:6px;background:transparent;min-height:45px;padding:10px;font-weight:400;font-size:13px;gap:8px}.quick-actions .ui-icon{color:var(--brand)}.quick-actions button:hover{background:#faf1f4}
.customize-tools{width:100%;text-align:left;border:0;border-top:1px solid var(--line);border-radius:0;padding:12px;font-size:12px;font-weight:400;color:var(--brand)}
.shell-dialog{width:min(490px,calc(100vw - 28px));padding:20px;max-height:90dvh;overflow:auto}.shell-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.shell-dialog h2{margin:4px 0;font-size:21px}.shell-dialog p,.shell-dialog li{font-size:13px;color:var(--muted);line-height:1.6}.shell-dialog li{margin-bottom:10px}
.shortcut-tabs{display:flex;gap:6px;margin:14px 0 10px}.shortcut-tabs button{min-height:44px}.shortcut-tabs button[aria-selected=true]{background:#f3e1e7;color:var(--brand);border-color:#d7b0bc}
.shell-dialog-head{position:sticky;top:-20px;background:white;z-index:2;padding:8px 0}
#shortcut-list{display:grid;gap:7px}.shortcut-row{display:flex;align-items:center;gap:8px;background:#fbf5f7;border:1px solid #e5d2da;border-radius:9px;padding:7px}.shortcut-row>strong{flex:1;font-size:12px;line-height:1.4}.shortcut-row>.ui-icon{color:var(--brand);width:18px;height:18px}.drag-handle{cursor:grab;color:#92747e;display:grid;place-items:center;width:22px;flex:none}.drag-handle:active{cursor:grabbing}.drag-handle .ui-icon{stroke-width:3.5;width:15px}
.shortcut-toggle{width:48px;flex:none;padding:5px;font-size:11px;min-height:30px;background:#f3ebee;border-color:#cfafba}.shortcut-toggle[aria-pressed=true]{background:var(--brand);border-color:var(--brand);color:white}
.shortcut-row .square-button{width:36px;min-width:36px;height:40px;min-height:40px;padding:8px}.shortcut-row .square-button .ui-icon{width:15px;height:15px}.shell-dialog .dialog-actions{position:sticky;bottom:-20px;background:white;padding:16px 0 0;margin-top:16px;flex-wrap:wrap}.shell-dialog .dialog-actions button{min-height:44px}
main{padding:24px clamp(20px,2.2vw,40px) 20px}footer{padding-bottom:60px}
@media(min-width:801px){
 .workspace:has(.sidebar:hover),.workspace:has(.sidebar:focus-within),.workspace:has(.sidebar.is-pinned){grid-template-columns:var(--shell-expanded) minmax(0,1fr)}
 .sidebar.is-pinned{box-shadow:inset -4px 0 #e5b6c4;background:#fbedf2}
 .sidebar:hover .nav-copy,.sidebar:focus-within .nav-copy,.sidebar.is-pinned .nav-copy{display:block}
 .sidebar:hover #nav button,.sidebar:focus-within #nav button,.sidebar.is-pinned #nav button{width:100%;min-height:64px;flex-direction:row;justify-content:flex-start;padding:10px 16px;gap:16px}
 .sidebar:hover #nav button::after,.sidebar:focus-within #nav button::after,.sidebar.is-pinned #nav button::after{display:none}
 .sidebar:hover #nav .count,.sidebar:focus-within #nav .count,.sidebar.is-pinned #nav .count{display:block;margin-left:auto}
}
@media(max-width:800px){
 :root{--shell-header:56px}.topbar{padding:0 12px;gap:8px}.brand{gap:7px}.brand strong{font-size:17px}.brand img{width:29px;height:29px}#mobile-nav:not([hidden]){display:grid;flex:none;width:38px;border-color:transparent;padding:7px}
 .account-actions #account{padding:4px;max-width:38vw}.account-name{display:none}
 .workspace{display:block}.sidebar{display:none;position:fixed;left:0;top:var(--shell-header);height:calc(100dvh - var(--shell-header));width:min(286px,85vw);z-index:32;padding:16px 7px;border-right:1px solid var(--line);border-bottom:0;gap:16px;box-shadow:8px 0 30px #572b3620}
 .sidebar.mobile-open{display:flex}.sidebar .nav-copy{display:block}#nav button{width:100%;min-height:64px;flex-direction:row;justify-content:flex-start;padding:10px 16px;gap:16px}#nav button::after{display:none}#nav .count{display:block;margin-left:auto}.sidebar-foot{display:block}
 #mobile-shade{position:fixed;inset:var(--shell-header) 0 0;background:#43202855;z-index:30}.page-head{flex-wrap:wrap}.page-head .actions button{font-size:12px;min-height:44px}main{padding:22px 16px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.toolbar{align-items:stretch}.account-links{gap:6px}
 .shortcut-row{gap:5px;padding:7px 5px}.shortcut-row>.ui-icon{display:none}.shortcut-row .square-button{width:32px;min-width:32px}.drag-handle{width:17px}.shell-dialog{padding:17px}.shell-dialog .dialog-actions{bottom:-17px}.shell-dialog .dialog-actions button{padding:10px}
}
@media(prefers-reduced-motion:reduce){.workspace{transition:none}}
@media print{.topbar,#quick-tools,#account-menu,#mobile-shade,.shell-dialog{display:none!important}}

/* Use the available workspace, with compact controls and right-side detail panels. */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
main{padding:16px;display:flex;min-width:0}
#content{max-width:none;margin:0;width:100%;min-height:calc(100dvh - var(--shell-header) - 32px);display:flex;flex-direction:column;gap:16px}
body:has(#preview-banner:not([hidden])) #content{min-height:calc(100dvh - var(--shell-header) - 66px)}
.workspace-panel{flex:1;display:flex;flex-direction:column;min-width:0}
.workspace-panel>.toolbar{flex:none}.toolbar{padding:14px 18px;gap:10px}.toolbar .actions{margin-left:auto}.toolbar .result-count{margin-left:0;white-space:nowrap}
#order-results{flex:1;display:flex;flex-direction:column;min-height:0}.workspace-panel .empty,.overview-orders>.empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:240px}
.empty>.ui-icon{width:40px;height:40px}.empty button>.ui-icon{width:20px;height:20px;stroke:currentColor;stroke-width:1.7}.empty .primary{min-height:42px}
.stats{margin:0;gap:14px}.stat{padding:16px 20px}.stat strong{margin:7px 0 4px}
.columns{flex:1;min-width:0;gap:16px}.overview-orders{display:flex;flex-direction:column;min-width:0}.card-head{padding:14px 18px;min-height:66px}
.columns>.stack{gap:16px;grid-template-columns:1fr}.columns .setup-card{padding:20px}.mini-list .section-note{padding:14px 0}
.campaign-grid{padding:18px;align-content:start;flex:1;grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr))}.campaign-grid>.empty{grid-column:1/-1;min-height:240px;border:0}.workspace-panel>.hint{padding:12px 18px;margin:0;border-top:1px solid var(--line)}
.panel-note{margin-top:auto!important}.settings-grid{gap:16px}.section-gap{margin:0;flex:1}.section-gap .mini-list{padding:0 18px 10px}
.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}.location-summary{margin:20px 0}.location-summary h3{font-size:13px;margin:24px 0 6px}.location-summary>strong{font-size:15px}
#content[data-view=settings]>.settings-grid{flex:1;align-items:stretch}#content[data-view=settings] .settings-stack{grid-template-columns:1fr;grid-template-rows:auto 1fr}
/* The dialog remains native so focus is trapped and Escape dismisses it. */
body:has(#dialog[open]){overflow:hidden}
#dialog.workspace-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(780px,calc(100vw - 24px));height:100dvh;max-height:100dvh;max-width:none;border:0;border-left:1px solid #dfcbd3;border-radius:0;box-shadow:-18px 0 52px #47213033;padding:0;overflow:hidden;background:white}
#dialog.workspace-drawer[data-panel=order]{width:min(1040px,calc(100vw - 24px))}
#dialog.workspace-drawer[open]{display:grid;grid-template-rows:auto minmax(0,1fr);animation:fulfillDrawerIn 180ms ease-out}
#dialog::backdrop{background:#3b243b55;backdrop-filter:none}
#dialog .dialog-top{padding:14px 20px;min-height:84px;background:#fffafb;gap:16px}
#dialog .dialog-top h2{font-size:20px;line-height:1.4;margin:4px 0 0;overflow-wrap:anywhere}
#dialog #close-dialog{flex:none}
#dialog-content{min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 24px;scroll-padding:16px}
#dialog-content>form{min-height:100%;align-content:start;grid-template-rows:auto}
#dialog-content .dialog-actions{position:sticky;bottom:-20px;background:white;z-index:2;padding:16px 0;margin-top:8px;box-shadow:0 -7px 12px #ffffffd9;align-self:end}
.order-detail-tabs{position:sticky;top:-20px;z-index:3;background:white;display:flex;gap:8px;border-bottom:1px solid var(--line);padding:16px 0;margin:0 0 20px}
.order-detail-tabs button{flex:1;min-height:60px;text-align:left;justify-content:flex-start;padding:12px 16px;background:#fff;border-color:#dbc4cd}
.order-detail-tabs button[aria-selected=true]{background:#f7e8ed;border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand);color:var(--brand)}
#dialog-content [role=tabpanel]{border:1px solid var(--line);border-radius:12px;padding:20px;margin-bottom:18px}
#dialog-content .detail-grid{margin:0;gap:20px}.detail-grid>div{padding:16px;border:1px solid var(--line);border-radius:9px;background:#fffcfd}.detail-grid strong{font-size:14px}
.drawer-order-actions{position:sticky;bottom:-20px;background:white;padding:16px 0;border-top:1px solid var(--line);box-shadow:0 -7px 12px #ffffffd9;z-index:2}
@keyframes fulfillDrawerIn{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(min-width:801px){#sidebar #nav button{height:68px;min-height:68px}.sidebar:hover #nav button,.sidebar:focus-within #nav button,.sidebar.is-pinned #nav button{padding-top:8px;padding-bottom:8px}}
@media(max-width:1150px){.columns{grid-template-columns:minmax(0,1fr)}.columns>.stack{grid-template-columns:1fr 1fr}.overview-orders{min-height:300px}}
@media(max-width:800px){main{padding:12px}#content{min-height:calc(100dvh - var(--shell-header) - 24px);gap:12px}.toolbar{padding:12px}.toolbar input{max-width:none;flex-basis:100%}.toolbar .actions{flex-wrap:wrap}.toolbar .actions button{min-height:44px}.columns>.stack{grid-template-columns:1fr}.stats{gap:10px}.stat{padding:14px}.card-head{gap:10px;flex-wrap:wrap}.card-head .actions{margin-left:auto}.campaign-grid{padding:12px}.settings-grid{grid-template-columns:1fr}#content[data-view=settings] .settings-stack{grid-template-rows:auto}.workspace-panel .empty{padding:32px 16px}
 #dialog.workspace-drawer,#dialog.workspace-drawer[data-panel=order]{width:100vw}#dialog .dialog-top{padding:12px 16px;min-height:76px}#dialog-content{padding:16px}#dialog-content>form{min-height:auto}.order-detail-tabs{top:-16px;gap:6px;padding:12px 0}.order-detail-tabs button{padding:10px;min-height:48px;font-size:12px}#dialog-content [role=tabpanel]{padding:14px}#dialog-content .detail-grid{grid-template-columns:1fr}.drawer-order-actions,#dialog-content .dialog-actions{bottom:-16px}.line-item{grid-template-columns:minmax(0,1fr) 65px 40px}.line-item label{min-width:0}.line-item .icon-button{width:40px}
}
@media(prefers-reduced-motion:reduce){#dialog.workspace-drawer[open]{animation:none}}

/* Use the current Fordwell business logo without cropping it. */
.avatar.has-logo{background:transparent;border-radius:6px}.avatar .business-logo{display:block;width:100%;height:100%;object-fit:contain}

/* Build-style loader, using Fulfill's original box and ripple artwork. */
body:has(#auth-shell:not([hidden]) .fulfill-loading)>.topbar,body:has(#auth-shell:not([hidden]) .fulfill-loading)>.skip{display:none}
.auth-shell:has(.fulfill-loading){padding:0;margin:0;min-height:100dvh;background:#faf7f8}
.auth-card:has(.fulfill-loading){max-width:none;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}
.auth-card:has(.fulfill-loading)>.eyebrow{display:none}
.fulfill-loading{min-height:100dvh;padding:max(20px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));display:grid;place-content:center;justify-items:center;gap:12px;text-align:center}
.fulfill-loading-brand{display:flex;align-items:center;gap:15px;color:var(--ink);text-align:left}
.fulfill-loading-brand img{width:84px;height:84px;object-fit:contain}
.fulfill-loading-brand>div{display:grid;line-height:1.03}
.fulfill-loading-brand strong{font-size:clamp(29px,6vw,42px);letter-spacing:-.04em}
.fulfill-loading-word{display:inline-flex;width:max-content;padding-top:5px;color:var(--brand);font-size:clamp(24px,5vw,34px);font-weight:800;letter-spacing:-.025em}
.fulfill-loading-word>span{display:inline-block;animation:fulfill-loading-letter 1.35s ease-in-out infinite}
.fulfill-loading-word>span:nth-child(2){animation-delay:110ms}.fulfill-loading-word>span:nth-child(3){animation-delay:220ms}.fulfill-loading-word>span:nth-child(4){animation-delay:330ms}.fulfill-loading-word>span:nth-child(5){animation-delay:440ms}.fulfill-loading-word>span:nth-child(6){animation-delay:550ms}.fulfill-loading-word>span:nth-child(7){animation-delay:660ms}
.auth-card .fulfill-loading p{margin:0;color:var(--muted);font-size:14px}
@keyframes fulfill-loading-letter{0%,55%,100%{transform:translateY(0);color:#9d2f4a}25%{transform:translateY(-7px);color:#be657c}}
@media(prefers-reduced-motion:reduce){.fulfill-loading-word>span{animation:none}}


/* Inline artwork avoids external SVG image animation stalls. Every shape stays visible. */
.fulfill-loading-mark{width:84px;height:84px;flex:none;color:#9d2f4a;fill:currentColor;overflow:visible}
.fulfill-loading-mark path{transform-box:fill-box;transform-origin:center;opacity:1}
.fulfill-loading-mark .fulfill-box-left{animation:fulfill-box-left 2.3s ease-in-out infinite}
.fulfill-loading-mark .fulfill-box-right{animation:fulfill-box-right 2.3s ease-in-out infinite}
.fulfill-loading-mark .fulfill-box-top{animation:fulfill-box-top 2.3s ease-in-out infinite}
.fulfill-loading-mark .fulfill-ripple-inner{animation:fulfill-ring 2.3s ease-out infinite}
.fulfill-loading-mark .fulfill-ripple-middle{animation:fulfill-ring 2.3s ease-out 160ms infinite}
.fulfill-loading-mark .fulfill-ripple-outer{animation:fulfill-ring 2.3s ease-out 320ms infinite}
@keyframes fulfill-box-left{0%,32%,100%{transform:translateY(0)}8%{transform:translateY(-40px)}20%{transform:translateY(0)}26%{transform:translateY(-5px)}}
@keyframes fulfill-box-right{0%,16%,48%,100%{transform:translateY(0)}24%{transform:translateY(-40px)}36%{transform:translateY(0)}42%{transform:translateY(-5px)}}
@keyframes fulfill-box-top{0%,32%,64%,100%{transform:translateY(0)}40%{transform:translateY(-40px)}52%{transform:translateY(0)}58%{transform:translateY(-5px)}}
@keyframes fulfill-ring{0%,30%,100%{opacity:.65;transform:scale(.96)}55%{opacity:1;transform:scale(1.04)}80%{opacity:.8;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.fulfill-loading-mark path{animation:none!important;transform:none;opacity:1}}
