/* Shared, scoped layout for the existing global toolbar. */
.top-toolbar.contextual-header{gap:10px;padding:8px 14px;overflow:visible;position:relative;z-index:12;min-width:0}.header-context{display:flex;align-items:center;gap:7px;flex:1;min-width:0;height:100%}.header-title{flex:0 1 auto;min-width:45px;max-width:190px}.header-title h1{font-size:17px;line-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.35px}.header-search{flex:1 1 240px;min-width:100px;max-width:600px}.header-search:empty{flex:1;min-width:0}.header-secondary,.header-primary{display:flex;align-items:center;gap:6px;flex-shrink:0}.header-secondary:empty,.header-primary:empty{display:none}.header-primary>.button,.header-secondary>.button{font-size:12px;white-space:nowrap}.header-secondary select{height:32px;font-size:12px;max-width:150px}.header-system{flex-shrink:0;display:flex;gap:5px;align-items:center}.header-system .top-tools{display:flex;gap:5px}.header-system>.mobile-tools{display:none}.header-context .orders-query{width:100%;min-width:100px;max-width:none}.header-context .orders-query input{height:34px;font-size:12px}.header-more{flex-shrink:0;position:relative}.header-more[hidden]{display:none}.header-more summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:3px;min-height:32px;border:1px solid var(--border);background:var(--raised);border-radius:6px;font-size:12px;padding:5px 7px}.header-more summary::-webkit-details-marker{display:none}.header-more summary svg{width:13px;height:13px}.header-more-menu{position:absolute;right:0;top:calc(100% + 8px);width:250px;max-width:calc(100vw - 20px);max-height:70dvh;overflow:auto;background:var(--surface);border:1px solid var(--border);box-shadow:0 12px 40px #0005;padding:8px;border-radius:8px;display:flex;flex-direction:column;gap:7px;z-index:45}.header-more-menu>.button,.header-more-menu>select{width:100%;justify-content:flex-start;font-size:13px;max-width:none;min-height:36px}.header-more:not([open])>.header-more-menu{display:none}.header-help{color:var(--muted);border:0;background:transparent;min-width:26px;padding:4px}.context-search-field{display:flex;align-items:center;position:relative;min-width:0}.top-toolbar.contextual-header .context-search-field>svg{position:absolute;left:10px;color:var(--muted);width:16px;height:16px;pointer-events:none}.top-toolbar.contextual-header .context-search-field>input{width:100%;height:34px;padding:6px 9px 6px 34px;font-size:12px}.header-search .context-command{margin:0;display:flex;gap:5px}.header-search .context-command input{min-width:0;width:100%;font-size:12px}.header-search .context-command button{font-size:12px;white-space:nowrap}.orders-context-page.page-content{padding-top:4px}.context-order-summary{min-height:0;gap:5px;margin:0;padding:0}.context-order-summary:empty{display:none}.refined-detail .context-order-summary>div:first-child{gap:7px}.context-order-summary>.actions:empty{display:none}.has-context-header .context-search-empty{margin-top:12px}.data-table tr[hidden]{display:none}
@media(max-width:1280px){.top-toolbar.contextual-header{gap:7px;padding-inline:10px}.header-context{gap:5px}.header-title{max-width:155px}.header-system .top-tools{gap:3px}.header-system .toolbar-control{min-width:30px;width:30px;padding:4px}.header-system .region-control{width:43px}.header-system .demo-control{width:40px;font-size:9px}.header-search{flex-basis:170px;min-width:100px}}
@media(max-width:800px){.header-title{max-width:145px}.header-context{gap:5px}.header-system .top-tools>[data-action=demo-menu],.header-system .top-tools>[data-action=ux-period],.header-system .top-tools>[data-action=ux-region],.header-system .top-tools>[data-action=ux-theme],.header-system .top-tools>[data-action=ux-global-more]{display:none}.header-system>.mobile-tools{display:flex;min-width:34px;width:34px;padding:4px;font-size:11px}.header-context .header-primary>.button{padding-inline:8px;min-width:34px;font-size:12px}.header-more summary{font-size:11px;padding:5px}.header-system .toolbar-control{width:30px;min-width:30px}.header-search{min-width:90px;flex-basis:140px}}
@media(max-width:520px){.application-shell.mobile-commerce{grid-template-rows:53px minmax(0,1fr)}.application-shell.mobile-commerce>.top-toolbar.contextual-header{display:flex}.top-toolbar.contextual-header{padding:4px 10px;gap:5px}.header-context{gap:5px}.header-title{max-width:145px;flex:1 1 90px;min-width:45px}.header-title h1{font-size:17px;line-height:22px}.header-search{min-width:0;flex-basis:80px}.header-search:empty{display:none}.header-system{gap:0}.header-system .top-tools>[data-action=command],.header-system .top-tools>[data-action=ux-profile]{display:none}.header-system .top-tools>[data-action=ux-alerts]{display:flex;min-width:32px;min-height:40px}.header-system>.mobile-tools{min-height:40px;min-width:34px}.header-context .header-secondary{gap:4px}.header-primary>.button{min-height:36px}.header-context .header-more summary{min-height:36px;font-size:11px}.header-primary .home-save-controls{display:contents}.header-mobile-orders .header-search{display:none}.header-mobile-orders .header-title{max-width:none}.context-search-field input{font-size:16px;min-width:0}.header-more-menu>.button,.header-more-menu>select{min-height:44px}.header-search .context-command button{font-size:0;min-width:32px}.header-search .context-command button:after{content:'→';font-size:16px}.context-order-summary small{font-size:11px}.has-context-header.home-settings-page{gap:8px}}

@media(max-width:800px){.header-context .header-primary>.button{max-width:150px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:520px){.header-context .header-primary>.button{max-width:110px}}

.header-system .top-tools .region-control{white-space:nowrap;flex-wrap:nowrap;width:45px;min-width:45px;font-size:15px}

/* One mobile settings entry; detailed preferences remain inside mobile tools. */
@media(max-width:800px){.header-system .top-tools>[data-action=ux-interface]{display:none}}
@media(max-width:520px){.header-system>.mobile-tools{width:36px;min-width:36px;height:40px;border:1px solid var(--border);border-radius:6px}.header-system .top-tools>[data-action=ux-alerts]{width:36px;min-width:36px;height:40px;border:1px solid var(--border);border-radius:6px}}
