:root {
  --plum: #4e2438;
  --paper: #fffdf9;
  --ink: #30252b;
  --muted: #685e61;
  --line: #dbd4cf;
  --spice: #843748;
  background: var(--paper);
  overflow-x: hidden;
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
}
body { overflow-x: clip; }
.store-wrap { width: min(100%, 1400px); margin: auto; padding-inline: clamp(16px,4.2vw,68px); }
.reviewbar { background: #f1eee9; color: #5a5153; }
.market-mast { background: var(--plum); color: white; }
.top-line { display: flex; align-items: center; gap: clamp(16px,3.5vw,54px); min-height: 83px; }
.brand { display: grid; text-decoration: none; white-space: nowrap; line-height: 1; }
.brand b { font: normal clamp(1.65rem,2.55vw,2.45rem)/1 Georgia,serif; letter-spacing: -.055em; }
.brand span { color: #edd5b4; text-align: left; margin-top: 3px; font-size: 1rem; }
.search { flex: 1; display: flex; gap: 10px; align-items: center; padding: 0 13px; border-radius: 4px; background: #fffdf9; color: var(--plum); }
.search svg { width: 19px;height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; flex: none; }
.search input { background: transparent; color: var(--ink); border: 0; width: 100%; min-width: 0; height: 44px; }
.top-actions { display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.top-actions button { min-height: 42px; padding: 7px 8px; border: 0; color: inherit; font-weight: 600; }
.top-actions b { font-weight: 450; margin-left: 2px; }
#cart-button { background: #f4dbab; color: #38262c; padding-inline: 13px; border-radius: 3px; }
.market-mast :focus-visible { outline-color: #fffdf9; }
.search:focus-within { outline:2px solid #d1b8c6; outline-offset:3px; }
.search input:focus { outline:none; caret-color:var(--plum); }
.search input::selection { background:#ead6e1; color:#30252b; }
@media(forced-colors:active){.search:focus-within{outline-color:Highlight}}
.store-band { background: #f5f0e8; border-bottom: 1px solid var(--line); }
.visit-line, .visit-line > div, .visit-line p { display:flex; align-items:baseline; gap: 12px; }
.visit-line { justify-content: space-between; padding-block: 9px; font-size: .91rem; }
.visit-line a { color: var(--muted); text-underline-offset: 3px; }
.visit-line p { gap: 7px; }
.visit-line p { flex: none; }
.visit-line > div { min-width: 0; }
.visit-line p b, .visit-line time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dept-nav { border-bottom: 1px solid var(--line); }
#filters { display: flex; gap: clamp(12px,2.5vw,36px); overflow-x:auto; overscroll-behavior-inline:contain; scrollbar-width: thin; scrollbar-color: #b99faa transparent; }
#filters button { flex:none; min-height: 49px; padding: 0 8px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: #584d51; font-weight: 550; }
#filters button[aria-selected="true"] { border-color: var(--spice); color: var(--plum); background: transparent; font-weight: 650; }
#filters button:hover { color: var(--plum); background: #f7f0ea; }
#filters button:focus-visible { outline:2px solid var(--plum); outline-offset:-3px; }
.weekly-special { display:grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); background: #f3e5db; margin-block: 22px 25px; min-height: 208px; }
.special-copy { padding: clamp(18px,2.1vw,33px) clamp(20px,3.5vw,56px); align-self:center; }
.special-label { color: #83374a; font-size: .83rem; font-weight: 730; letter-spacing: .1em; text-transform: uppercase; }
.special-copy h1 { margin: 4px 0; font: normal clamp(2.2rem,3.7vw,3.6rem)/1.08 Georgia,serif; letter-spacing: -.055em; color: var(--plum); }
.special-price { display:flex; align-items:baseline; gap:7px; flex-wrap:wrap; }
.special-price strong { font-size:1.72rem; font-weight:700; letter-spacing:-.04em; color:var(--plum); }
.special-price small,.special-price span { color:#604e52; font-size:.92rem; }
.special-price small { margin-inline-start:8px; }
.special-copy button { margin-top: 9px; padding: 8px 14px; color: #fff; background:var(--plum); border:0; font-weight:600; }
.special-image { position:relative; overflow:hidden; background:#eee2d9; }
.special-image img { position:absolute; width:100%; height:100%; object-fit: cover; object-position:50% 50%; }
.shelf-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:18px 0 12px; }
.shelf-label { display:flex; align-items:baseline; gap:12px; min-width:0; overflow-wrap:anywhere; }
.shelf-head h2,.market-dialog h2 { font-weight:650; letter-spacing:-.045em; font-size:clamp(1.5rem,2.1vw,2.25rem); }
.shelf-head p,.shelf-head label,.fine,.saved-row small,.summary-row small { color:var(--muted); font-size:.87rem; }
select { background:#fffefa; border:1px solid #b7aaa8; padding:7px; border-radius:3px; }
#products { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; }
.product {display:flex; flex-direction:column; min-width:0; border-bottom:1px solid #dcd3c9; padding-bottom:4px}
.product h3 {display:flex; flex:1; min-width:0; font-weight:normal}
.product-open {display:flex; flex:1; flex-direction:column; align-items:stretch; min-width:0; text-align:start; border:0; background:transparent; padding:0}
.product-photo {display:block; position:relative; overflow:hidden; border-radius:2px; background:#ece7e1}
.product-photo img {display:block; width:100%; height:auto; aspect-ratio:1.72; object-fit:cover}
.sale-label {position:absolute; left:0; bottom:0; padding:3px 8px; color:#fff; background:var(--plum); font-size:.8rem; font-weight:600}
.product-copy {display:grid; gap:4px; padding:12px 0 5px}
.product-aisle {color:#736256; font-size:.82rem}
.product-name {font:normal clamp(1.24rem,1.8vw,1.62rem)/1.12 Georgia,serif; letter-spacing:-.026em; color:#402c2c}
.product-price {display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 6px; margin-top:auto; color:var(--plum); font-size:1.06rem; font-variant-numeric:tabular-nums}
.product-unit,.former-price,.product-stock {color:var(--muted); font-size:.85rem; font-weight:400}
.product-stock {margin-top:2px}
.product-open:hover .product-name,.list-toggle:hover {text-decoration:underline; text-underline-offset:3px}
.list-toggle {align-self:flex-start; display:inline-flex; align-items:center; gap:5px; min-height:44px; padding:4px 3px 4px 0; border:0; background:transparent; color:var(--plum); font-size:.9rem; font-weight:600}
.list-toggle svg {width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6}
.list-toggle[aria-pressed="true"] {color:#52614b}
.empty { grid-column: 1/-1; border-block: 1px solid var(--line); padding: 24px 0; }
.empty .primary { margin-top: 12px; }
.buy, .stepper { display: flex; align-items: center; gap: 8px; }
.buy { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; margin-block: 12px 8px; }
.add, .primary { border: 1px solid var(--plum); background: var(--plum); color: white; font-weight: 600; padding: 9px 13px; min-height: 40px; }
.stepper { border: 1px solid #a99b97; font-size: .94rem; }
.stepper button { min-width: 36px; min-height: 40px; border: 0; }
.counter-unavailable { font-size: .9rem; color: var(--muted); }
.market-foot {
  margin: 36px 0 0;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.market-foot summary {
  margin: 8px 0;
}
.market-foot li {
  margin: 5px 0;
}
.empty {
  grid-column: 1/-1;
  padding: 24px 0;
}
.empty .primary {
  margin-top: 12px;
}
.market-dialog {
  width: min(480px, 94vw);
  color: var(--ink);
  padding: 21px;
}
.dismiss {
  display: block;
  margin-left: auto;
  padding: 6px 11px;
  margin-bottom: 12px;
}
.market-dialog .eyebrow {
  margin: 5px 0;
}
.market-dialog .detail-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.market-dialog dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.market-dialog dd {
  margin: 0;
  font-weight: 650;
}
.saved-row,
.summary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.saved-row img {
  width: 54px;
  height: 52px;
  object-fit: cover;
}
.saved-row small,
.summary-row small {
  display: block;
}
.saved-row .stepper,
.saved-row .add,
.summary-row > b:last-child,
.summary-row > strong:last-child {
  margin-left: auto;
}
.text-link {
  border: 0;
  text-decoration: underline;
  color: var(--plum);
  font-size: 0.83rem;
  padding: 2px 0;
}
.cart-line label {
  font-size: 0.86rem;
}
.cart-line {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.cart-line .saved-row {
  border: 0;
}
.slot {
  display: grid;
  gap: 5px;
  margin: 12px 0;
  font-size: 0.91rem;
}
.primary:disabled {
  opacity: 0.55;
}
.market-dialog form {
  margin: 0;
}
#storage-warning {
  background: #fff0ce;
  padding: 9px;
}
.pickup-location {
  padding: 11px 14px;
  margin-block: 10px;
  background: #edf1f1;
  border-left: 3px solid #2d5063;
}
.pickup-location p {
  margin: 2px 0;
  font-size: 0.92rem;
}
.list-delivery h3 { font-size: 1.15rem; }
.list-delivery p { color: var(--muted); margin: 4px 0 10px; }
.secondary { padding: 9px 13px; color: var(--plum); min-height: 40px; font-weight: 600; }
.list-delivery { border-block: 1px solid var(--line); padding: 12px 0; margin-block: 12px; }
.market-foot { margin-top: 0; border-top: 0; }
@media(max-width:950px) {
  #products { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
  #filters { gap:20px; }
}
@media(max-width:650px) {
  .top-line { display:grid; grid-template-columns:minmax(0,1fr) auto; padding-block:11px; gap:9px; }
  .brand b { font-size:1.5rem; }
  .brand span { font-size:.84rem; }
  .search { grid-column:1/-1; grid-row:2; }
  .search input { height:39px; }
  .top-actions { gap:3px; font-size:.9rem; }
  .top-actions button { padding-inline:4px; }
  #cart-button { padding-inline:7px; }
  .visit-line { align-items:flex-start; gap:6px; }
  .visit-line > div, .visit-line p { display:grid; gap:1px; line-height:1.4; }
  .visit-line p { text-align:right; }
  .visit-line p span { font-size:.82rem; }
  #filters { gap:8px; scrollbar-width: none; }
  #filters::-webkit-scrollbar { display:none; }
  #filters button { min-height:46px; font-size:.94rem; }
  .weekly-special { min-height:150px; margin-block:14px 18px; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); }
  .special-copy { padding:14px; overflow-wrap:anywhere; }
  .special-copy h1 { font-size:1.75rem; }
  .special-price { gap:3px; }
  .special-price strong { font-size:1.35rem; }
  .special-price small { flex-basis:100%; margin:0; }
  .special-label,.special-price small,.special-price span { font-size:.8rem; }
  #products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 12px; }
  .product-photo img { aspect-ratio: 1.45; }
  .product-copy { padding-top: 9px; }
  .product-price { font-size: 1.12rem; }
  .shelf-label { display:block; }
  .shelf-head select { max-width:108px; }
  .saved-row { flex-wrap:wrap; }
}

.shelf-tools { display:flex; align-items:center; gap:18px; }
#saved-button { display:inline-flex; align-items:center; gap:5px; color:var(--plum); border:0; font-size:.92rem; font-weight:600; min-height:42px; padding:3px 0; }
#saved-button svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.5; }
#saved-button:hover { text-decoration:underline; text-underline-offset:3px; }
.list-item-details { margin-left:auto; }
@media(max-width:650px) {
  .shelf-tools { gap:8px; }
  .shelf-tools label { font-size:0; }
  .shelf-tools select { font-size:.86rem; max-width:92px; }
}
@media(max-width:390px) {
  .shelf-tools { width:100%; justify-content:space-between; column-gap:6px; }
  .shelf-head { flex-wrap:wrap; row-gap:2px; }
}

.weekly-special { margin-top:0; }
#special-choices { grid-column:1/-1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); background:#fff9f4; border-bottom:1px solid var(--line); }
#special-choices button { display:flex; justify-content:space-between; gap:8px; align-items:baseline; padding:12px 16px; min-height:45px; border:0; border-right:1px solid var(--line); border-top:3px solid transparent; border-radius:0; color:var(--ink); text-align:start; }
#special-choices button:last-child { border-right:0; }
#special-choices button[aria-pressed="true"] { background:#f2e4df; border-top-color:var(--spice); color:var(--plum); }
#special-choices strong { font-variant-numeric:tabular-nums; }
@media (max-width:650px) {
  #special-choices button { display:grid; gap:3px; align-content:start; padding:7px 8px; font-size:.86rem; line-height:1.25; }
  #special-choices strong { font-size:.9rem; }
}

#detail.list-dialog {padding:0; width:min(94vw,520px); border:1px solid #bdada0; background:#fffcf6; color:#352b28}
.list-dialog > form {position:absolute; right:12px; top:9px; z-index:1}
.list-dialog .dismiss {min-height:44px; margin:0; padding:4px 10px; border:0; background:transparent; color:var(--plum); text-decoration:underline; text-underline-offset:3px}
.list-mast {padding:22px 24px 17px; border-top:5px solid var(--plum); background:#f6eee3}
.list-mast span {display:block; padding-right:54px; color:#674d45; font-size:.85rem}
.list-mast h2 {font:normal clamp(2rem,5vw,2.65rem)/1.08 Georgia,serif; margin:9px 0 4px; letter-spacing:-.04em; color:var(--plum)}
.list-mast p {margin:0; color:#65554c; font-size:.93rem}
.list-interior {padding:16px 24px 20px}
.list-progress {display:flex; justify-content:space-between; flex-wrap:wrap; gap:4px 12px; font-size:.89rem; color:#695b50}
.list-progress b {color:var(--plum); font-weight:600}
#trip-progress {display:block; appearance:none; width:100%; height:4px; margin:8px 0 18px; border:0; background:#e5dcd1; color:var(--plum)}
#trip-progress::-webkit-progress-bar {background:#e5dcd1}
#trip-progress::-webkit-progress-value {background:var(--plum)}
#trip-progress::-moz-progress-bar {background:var(--plum)}
.list-aisle + .list-aisle {margin-top:14px}
.list-aisle h3 {display:flex; align-items:baseline; justify-content:space-between; gap:8px; padding-bottom:6px; border-bottom:1px solid #bcaa99; color:#463331; font:normal 1.32rem/1.2 Georgia,serif}
.list-aisle h3 small {font:400 .81rem/1.3 system-ui,sans-serif; color:#685a51}
.pick-row {display:flex; align-items:center; gap:5px; min-height:60px; border-bottom:1px solid #e5dcd2}
.pick-check {display:grid; place-items:center start; min-width:36px; min-height:46px; cursor:pointer}
.pick-check input {width:20px; height:20px; accent-color:var(--plum); cursor:pointer}
.pick-product {flex:1; display:flex; align-items:center; gap:10px; padding:4px 0; border:0; background:transparent; text-align:start; min-width:0}
.pick-product img {width:40px; height:43px; object-fit:cover; border-radius:2px}
.pick-product b {font-weight:600}
.pick-product small {display:block; color:var(--muted); font-size:.83rem}
.pick-row:has(input:checked) .pick-product b {color:#71665d; text-decoration:line-through}
.pick-remove {min-height:44px; padding:4px 2px; border:0; background:transparent; font-size:.82rem; color:#66544d; text-decoration:underline; text-underline-offset:3px}
.list-dialog .list-delivery {display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:3px 12px; background:#f6eee3; padding:15px 24px; margin:0; border:0; border-top:1px solid #d4c6b9}
.list-delivery > .primary {grid-column:2; grid-row:1 / 3}
.list-dialog .list-delivery p {font-size:.85rem; margin:0}
.list-dialog #list-status {grid-column:1 / -1}
.list-empty h3,.list-delivery h3 {font:normal 1.3rem/1.2 Georgia,serif; color:var(--plum)}
.list-empty p {margin:8px 0 15px; max-width:36ch}
@media(max-width:400px){
 .list-interior,.list-dialog .list-delivery,.list-mast {padding-inline:16px}
 .pick-check {min-width:28px}
 .pick-product {gap:6px}
}
#mobile-list {display:none;}
@media(min-width:651px){
 .dept-nav {margin-bottom:.8rem;}
}
@media(max-width:650px){
 #mobile-list:not([hidden]) {display:block;position:fixed;z-index:5;left:50%;transform:translateX(-50%);bottom:calc(8px + env(safe-area-inset-bottom));max-width:calc(100% - 24px);white-space:nowrap;min-height:44px;padding:.6rem 1rem;border:1px solid #fff6ed;border-radius:4px;background:var(--plum);color:white;font-weight:650;}
 body:has(#mobile-list:not([hidden])) {padding-bottom:calc(62px + env(safe-area-inset-bottom));}
}

.dept-nav {display:flex;align-items:stretch;gap:6px}
#filters {flex:1;min-width:0}
@media (min-width:651px) and (max-width:950px) {
  .top-line {display:grid;grid-template-columns:1fr auto;gap:9px 16px;padding-block:12px}
  .top-line .search {grid-row:2;grid-column:1/-1}
}
@media(max-width:650px){

  #filters .department-word {display:none}
  .shelf-head {flex-wrap:nowrap}
  .shelf-tools {width:auto}
}




@media(max-width:650px){

  #special-choices button {grid-template-rows:1fr auto;align-content:stretch}
}


/* Keep discovery tools with the product shelf at every viewport. */
.market-mast .top-line {display:flex;justify-content:space-between}
.search-jump {display:inline-flex;align-items:center;gap:5px;text-decoration:none;padding-inline:4px;min-height:44px;color:inherit}
.search-jump svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
.catalog-tools .shelf-head {display:grid;grid-template-columns:auto auto minmax(180px,1fr) auto;gap:16px;margin:18px 0 4px}
.catalog-tools .search {border:1px solid #ad9c9f;border-radius:3px}
.catalog-tools .search:focus-within {outline:2px solid #856276;outline-offset:1px}
.catalog-tools .dept-nav {margin:0 0 12px}
.special-heading {grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;min-height:44px;background:var(--paper);border-bottom:1px solid var(--line)}
.special-heading button {min-height:44px;padding:0 3px;border:0;background:transparent;color:var(--plum);text-decoration:underline;text-underline-offset:3px;font-weight:600;font-size:.92rem}
#offer-dialog {width:min(92vw,420px);max-height:85dvh;overflow:auto;padding:20px 24px 24px;border:1px solid var(--line);border-radius:4px;background:var(--paper);color:var(--ink)}
.subscription-head {display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);color:var(--plum)}
.subscription-head span {font:1.1rem Georgia,serif}
.subscription-head button {border:0;min-height:44px;padding:0;background:none;font-size:.9rem;text-decoration:underline;text-underline-offset:3px}
#offer-title {font:normal 1.85rem/1.12 Georgia,serif;letter-spacing:-.035em;margin:20px 0;color:var(--plum)}
#offer-form {display:grid;gap:15px}
#offer-form fieldset {margin:0;padding:0;border:0;display:flex;gap:20px}
#offer-form legend,.offer-field>span {font-weight:650}
#offer-form fieldset label {display:inline-flex;align-items:center;gap:6px;min-height:44px}
#offer-form input {accent-color:var(--plum)}
.offer-field {display:grid;gap:6px}
.offer-field input {min-height:44px;width:100%;font:inherit;border:1px solid #988890;border-radius:3px;padding:8px}
.offer-consent {display:flex;align-items:start;gap:9px;font-size:.94rem}
.offer-consent input {width:18px;height:18px;flex:none;margin-top:2px}
#offer-demo {color:var(--muted);font-size:.85rem}
#offer-status:empty {display:none}
@media(max-width:650px){
  .top-line .brand b {font-size:clamp(1.1rem,5.6vw,1.5rem)}
  #offer-dialog {position:fixed;inset:auto 0 0;width:100%;max-width:100%;margin:0;border-radius:10px 10px 0 0;padding:12px 20px max(22px,env(safe-area-inset-bottom));}
}

.catalog-tools #saved-button {justify-self:start;min-height:44px;white-space:nowrap;padding:4px 8px}
.catalog-tools #saved-count:not([hidden]) {font-variant-numeric:tabular-nums;font-weight:500}
.shelf-heading-row,.shelf-search-row {display:contents}
@media(max-width:950px){
  .catalog-tools .shelf-head {display:flex;flex-direction:column;align-items:stretch;gap:6px}
  .shelf-heading-row,.shelf-search-row {display:flex;align-items:center;justify-content:space-between;gap:8px}
  .catalog-tools #saved-button {flex:none;padding-inline:0}
  .catalog-tools .search {flex:1;min-width:0}
  .catalog-tools .shelf-tools {flex:none}
}
@media(max-width:650px){
  .catalog-tools .search {padding-inline:8px;gap:6px}
  .catalog-tools .search input,.catalog-tools .shelf-tools select {min-height:44px}
}

.pickup-short {display:none}
.special-actions {display:flex;align-items:center;flex-wrap:wrap;gap:2px 12px;margin-top:6px}
.special-actions button {margin-top:0;min-height:44px}
.special-actions #special-list-action {padding:4px 2px;background:transparent;color:var(--plum);text-decoration:underline;text-underline-offset:3px}
@media(max-width:440px){
  .pickup-long {display:none}
  .pickup-short {display:inline}
  .search-jump {font-size:.89rem}
  .search-jump svg {width:15px;height:15px}
}

.catalog-tools #saved-button {border:0;background:transparent;padding-inline:0}
.catalog-tools .search {height:44px}
.catalog-tools .search input {height:100%;min-height:0}
.catalog-tools .shelf-tools select {height:44px;min-height:44px;align-self:center}
#more-departments {position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:46px;padding:0 6px;color:var(--plum);font-size:.93rem;font-weight:600}
#more-departments::after {content:"";width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:translateY(-2px) rotate(45deg)}
#more-departments select {position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
#more-departments:focus-within {outline:2px solid var(--plum);outline-offset:-3px}
.dept-nav:has(#more-departments:not([hidden])) #filters {justify-content:space-between}
#filters button {position:relative;border-bottom:0}
#filters button[aria-selected=true]::after {content:"";position:absolute;bottom:0;left:8px;right:8px;height:2px;background:var(--spice)}
@media(max-width:650px){
  .catalog-tools .dept-nav {gap:8px}
  #filters {gap:4px}
  #filters button {padding-inline:5px;min-height:46px}
  #filters button[aria-selected=true]::after {left:5px;right:5px}
  /* Keep iOS Safari from zooming the embedded page when a control gets focus. */
  #search, #sort, #department-picker, #offer-contact, #slot {font-size:max(1rem, 16px)}
}

/* Keep the shelf title and list action separate from browsing controls. */
.catalog-tools .shelf-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 24px 0 8px;
}
.shelf-heading-row, .shelf-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.shelf-search-row .search { flex: 1; min-width: 0; }
.catalog-tools #saved-button {
  flex: none;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
@media (max-width: 480px) {
  .shelf-heading-row .shelf-label { display: grid; gap: 2px; }
  .shelf-search-row { flex-wrap: wrap; }
  .shelf-search-row .search { flex: 1 1 12rem; }
  .shelf-search-row .shelf-tools { margin-left: auto; }
}
