/* Owner-approved menu R5. Scoped to the menu; no global palette migration. */
.page.library-order-page { --menu-deep:#2D125F; --menu-purple:#6C4CF1; --menu-ink:#28252D; --menu-muted:#666; background:#FAF8F5; color:var(--menu-ink); padding:0 16px 104px; }
.library-order-page .safe-top { height:env(safe-area-inset-top, 0px); }
.library-task-nav {height:54px; display:grid; grid-template-columns:44px 1fr 44px; align-items:center; margin:0 -8px 14px;}
.library-task-nav strong {text-align:center; font-size:19px; font-weight:600; overflow-wrap:anywhere;}
.library-task-nav button {width:44px; height:44px; border:0; background:none; color:var(--menu-ink); display:grid; place-items:center;}
.library-task-nav svg {width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.8;}
.library-order-page .library-order-header {min-height:60px; display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0; padding:0;}
.library-order-page .library-order-header h1 {margin:0; font-size:28px; font-weight:600; letter-spacing:-.5px;}
.library-order-page .chef-status-top {display:flex; align-items:center; gap:8px; min-height:48px; padding:5px 10px; border:1px solid #EEE6DF; border-radius:12px; background:#fff; color:var(--menu-ink); box-shadow:none; flex-shrink:0;}
.library-order-page button.chef-status-top::after {content:'⌄'; color:var(--menu-purple); font-size:14px;}
.library-order-page .chef-status-top-mark {width:28px; height:28px; border-radius:50%; display:grid; place-items:center; background:#F2EEFF; color:var(--menu-deep); font-size:13px;}
.library-order-page .chef-status-top-copy {display:flex; flex-direction:column; gap:0; text-align:left;}
.library-order-page .chef-status-top-copy small {color:var(--menu-muted); font-size:12px; line-height:17px;}
.library-order-page .chef-status-top-copy b {font-size:14px; font-weight:500; line-height:20px;}
.library-context-tools {display:grid; grid-template-columns:68px repeat(3,minmax(0,1fr)); height:74px; margin-top:12px; background:#fff; border:1px solid #F0ECE7; border-radius:16px; box-shadow:0 3px 12px #28252d05; overflow:hidden;}
.library-context-tools button {position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; padding:0; min-width:0; color:var(--menu-ink); background:none; border:0; font-size:14px; font-weight:400;}
.library-context-tools img {width:24px; height:24px;}
.library-search-toggle::after {content:''; position:absolute; right:0; top:18px; bottom:18px; width:1px; background:#EEE6DF;}
.library-search-toggle.is-open {background:#F5F1FF;}
.library-search-expanded {display:flex; gap:10px; height:48px; margin-top:12px;}
.library-order-page .library-search-expanded .library-order-search {display:flex; align-items:center; gap:9px; flex:1; min-width:0; min-height:48px; height:48px; margin:0; padding:0 12px; background:#fff; border:1px solid #EEE6DF; border-radius:12px; box-shadow:none;}
.library-search-expanded img {width:18px; height:18px; opacity:.7;}
.library-order-page .library-search-expanded input {padding:0; width:100%; min-width:0; border:0; outline:0; background:none; font-size:15px; color:var(--menu-ink);}
.library-search-expanded input::placeholder {color:var(--menu-muted);}
.library-search-expanded > button {min-width:44px; padding:0; border:0; background:none; color:#4F35C8; font-size:14px;}
.library-order-page .library-category-heading {display:flex; align-items:center; justify-content:space-between; height:54px; margin:12px 0 0; padding:0;}
.library-order-page .library-category-heading b {font-size:13px; font-weight:400; color:var(--menu-muted);}
.library-order-page .library-manage-button {min-height:44px; padding:0 8px; border:0; border-radius:0; color:#4F35C8; background:none; box-shadow:none; font-size:14px; font-weight:400;}
.library-order-page .library-order-layout {display:grid; grid-template-columns:72px minmax(0,1fr); align-items:start; gap:12px; margin:0; padding:0;}
.library-order-page .library-order-sidebar {position:static; display:flex; flex-direction:column; align-items:center; gap:3px; padding:0; background:none; width:auto;}
.library-order-page .library-order-category {width:100%; min-height:66px; padding:6px 0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; color:var(--menu-muted); background:none; border:0; border-radius:14px; touch-action:pan-y;}
.library-order-page .sorter-open [data-library-category-drag] {touch-action:none; outline:1px dashed #BCAEF0;}
.library-order-page .library-order-category b {font-size:12px; font-weight:400; line-height:18px;}
.library-order-page .library-order-category img,.library-order-page .library-sidebar-icon {width:26px; height:26px; border-radius:8px;}
.library-order-page .library-order-category.active {color:var(--menu-purple); background:#F0ECFF; box-shadow:inset 3px 0 var(--menu-purple);}
.library-order-page .library-order-category.active b {font-weight:600;}
.library-order-page .library-order-category-add {align-self:center; min-height:54px; width:54px; margin-top:5px; padding:0; border:1px dashed #BCAEF0; border-radius:14px; background:#FAF8FF; color:var(--menu-purple); font-size:24px;}
.library-reorder-button {min-height:54px; width:100%; margin-top:5px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; padding:0; border:0; background:none; color:var(--menu-muted); font-size:12px;}
.library-reorder-button img {width:20px; height:20px;}
.library-order-page .library-order-list-heading {height:32px; display:flex; align-items:center; justify-content:space-between; margin:0 0 8px; padding:0;}
.library-order-page .library-order-list-heading h2 {margin:0; font-size:20px; line-height:28px; font-weight:600;}
.library-order-page .library-order-list-heading > span {font-size:13px; color:var(--menu-muted);}
.library-order-page .library-order-content {min-width:0; padding:0;}
.library-order-page .library-order-list {display:block; margin:0; padding:0;}
.library-order-page .library-order-card {display:grid; grid-template-columns:42% minmax(0,1fr); min-height:160px; margin:0 0 12px; padding:0; overflow:hidden; border:0; border-radius:17px; background:#fff; box-shadow:0 3px 12px #28252d06;}
.library-order-page .library-order-photo {width:100%; height:100%; min-height:160px; margin:0; padding:0; border:0; border-radius:0; overflow:hidden;}
.library-order-page .library-order-photo img {width:100%; height:100%; position:absolute; inset:0; object-fit:cover;}
.library-order-page .library-order-copy {display:block; min-width:0; padding:12px 10px 10px;}
.library-order-page .library-order-title-row {display:flex; align-items:flex-start; justify-content:space-between; gap:4px;}
.library-order-page .library-order-copy h3 {margin:0; font-size:16px; line-height:23px; font-weight:600; letter-spacing:-.3px; overflow-wrap:anywhere;}
.library-want-count {flex:none; padding-top:3px; color:#B95013; font-size:12px; white-space:nowrap;}
.library-order-page .library-order-card .tag-row {display:flex; flex-wrap:wrap; gap:4px; margin:8px 0 0;}
.library-order-page .library-order-card .tag {padding:1px 5px; border-radius:6px; background:#F1EDFF; color:var(--menu-purple); font-size:12px; line-height:18px; font-weight:400;}
.library-order-page .library-order-source {margin:8px 0; color:var(--menu-muted); font-size:12px; line-height:18px;}
.library-order-page .library-order-actions {display:grid; grid-template-columns:1fr 1fr; gap:6px; margin:0;}
.library-order-page .library-menu-action {min-height:44px; padding:0 3px; border:0; border-radius:10px; font-size:12px; font-weight:600;}
.library-order-page .library-menu-action.want {color:#B95013; background:#FFF0E4;}
.library-order-page .library-menu-action.cook {color:var(--menu-purple); background:#F1EDFF;}
.library-order-page .library-menu-action.active {box-shadow:inset 0 0 0 2px currentColor;}
.library-order-page .library-order-manage-hint {font-size:12px;}
.library-order-page .library-order-card.manage-selected {box-shadow:0 0 0 2px var(--menu-purple);}
.library-order-page .library-secondary-filters button {font-size:12px; min-height:44px;}
.library-order-page .bottom-nav {box-shadow:none; background:#fff;}
.library-order-page .bottom-nav .nav-item {font-size:12px;}
.library-order-page .bottom-nav .nav-item.active {color:var(--menu-purple);}
.library-order-page .bottom-nav .nav-add strong {background:#FF8A34; box-shadow:none;}
@media(max-width:390px) {
 .page.library-order-page {padding-inline:12px;}
 .library-order-page .library-order-header h1 {font-size:26px;}
 .library-order-page .library-order-layout {grid-template-columns:65px minmax(0,1fr); gap:9px;}
 .library-context-tools {grid-template-columns:55px repeat(3,minmax(0,1fr));}
 .library-context-tools button {font-size:13px;}
 .library-order-page .library-order-card {min-height:174px; grid-template-columns:39% minmax(0,1fr);}
 .library-order-page .library-order-copy {padding:9px 8px;}
 .library-order-page .library-order-copy h3 {font-size:15px;}
 .library-order-page .library-order-card .tag-row {gap:3px;}
 .library-order-page .library-order-card .tag {padding:1px 4px;}
}
