/* Shared identity and home link for the customer, staff and owner headers. */
a.brand-home {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  padding: 0;
  color: #242520;
  font: 600 27px/1.2 "Songti SC", STSong, serif;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}
.brand-home i { font-style: normal; }
.brand-home:hover { text-decoration: underline; text-underline-offset: .18em; }
.brand-home:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
@media (max-width: 767px) {
  a.brand-home { font-size: 20px; }
}

button.bb-return{
  display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;
  min-width:44px;min-height:44px;padding:0 4px;margin:0 0 8px;border:0;
  background:transparent;color:#50535a;font:inherit;font-size:14px;cursor:pointer;
}
button.bb-return::before{content:'';width:7px;height:7px;border:solid currentColor;border-width:0 0 1.5px 1.5px;transform:rotate(45deg)}
button.bb-return:hover{text-decoration:underline;text-underline-offset:3px;background:transparent}
button.bb-return:focus-visible{outline:2px solid #2d3137;outline-offset:2px}

.bb-login-destinations{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;border-radius:8px;background:#f1f2ef;margin:0 0 16px}
.bb-login-destinations>*{display:grid;place-items:center;min-height:40px;border-radius:6px;color:#535752;font:500 14px/1.4 -apple-system,"PingFang SC",sans-serif;text-decoration:none}
.bb-login-destinations [aria-current]{background:#fff;color:#242620;box-shadow:0 1px 4px #20251f1f}
.bb-login-destinations a:hover{background:#e4e6e1}
.bb-signin-art{display:none}
@media(min-width:800px){
  .bb-signin-shell,.formal-auth-layout.bb-signin-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,420px);align-items:stretch;width:min(100%,940px);margin:clamp(24px,5vh,62px) auto;overflow:hidden;border:1px solid #dcded8;border-radius:14px;background:#fff}
  .bb-signin-shell>.bb-signin-art{display:block;align-self:center;aspect-ratio:1;background:#eee5d6 url('./assets/homepage-sketch.webp') 1% 1% / 204% 204% no-repeat}
  .bb-signin-shell{background:linear-gradient(to right,#f0e8da 40%,white 40%)}
  .bb-signin-shell>.ops-login,.bb-signin-shell>.formal-auth-card{width:100%;max-width:none;margin:0;border:0;border-radius:0;padding:34px;align-content:center;background:#fff}
}

/* The shop home and the desk share the same surface, action and layout values. */
:root {
  --bb-desk-green: #285b46;
  --bb-desk-ink: #24392e;
  --bb-desk-muted: #58665d;
  --bb-desk-rule: #dbe3db;
  --bb-desk-wash: #f2f5f2;
  --bb-desk-selected: #edf2ec;
  --bb-desk-max: 1500px;
  --bb-desk-gutter: 28px;
}
@media (max-width:1000px) { :root { --bb-desk-gutter: 12px; } }
@media (max-width:390px) { :root { --bb-desk-gutter: 6px; } }

/* Shared, permission-aware desk header on operational and product pages. */
.bb-desk-bar{display:flex;align-items:center;gap:16px;max-width:var(--bb-desk-max);width:100%;margin:auto;padding:0 var(--bb-desk-gutter);min-height:60px;box-sizing:border-box}
.bb-desk-bar[hidden],.bb-desk-bar [hidden]{display:none!important}
.bb-desk-nav,.bb-desk-groups{display:flex;align-items:center;gap:4px;min-width:0}
.bb-desk-nav{margin-right:auto}
.bb-desk-nav details{position:relative;margin:0}
.bb-desk-nav summary,.bb-desk-toggle{list-style:none;cursor:pointer;padding:9px 12px;border:0;background:none;color:#414a43;font:500 14px/20px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;border-radius:5px;white-space:nowrap}
.bb-desk-nav summary::-webkit-details-marker{display:none}
.bb-desk-group>summary::after{content:'⌄';margin-left:6px;font-size:12px}
.bb-desk-group.bb-current>summary,.bb-desk-nav details[open]>summary{color:#254933;background:var(--bb-desk-selected)}
.bb-desk-drop{box-sizing:border-box;position:absolute;top:calc(100% + 4px);left:0;min-width:180px;background:#fff;border:1px solid #d7ddd6;padding:6px;border-radius:7px;box-shadow:0 8px 20px #26382819;z-index:30}
.bb-desk-drop a{display:block;text-decoration:none;color:#26372b;padding:8px 10px;font:400 14px/20px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;border-radius:4px}
.bb-desk-drop a:hover,.bb-desk-drop a:focus-visible,.bb-desk-drop a[aria-current]{background:var(--bb-desk-selected)}
.bb-desk-drop input{box-sizing:border-box;width:100%;font:inherit;padding:6px 8px}
.bb-desk-toggle{display:none}
.bb-desk-bar .bb-desk-icon{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 10px;margin:0;flex:none;box-sizing:border-box;width:auto;height:36px;min-width:68px;min-height:36px;white-space:nowrap;text-decoration:none;font:500 13px/1.2 system-ui,sans-serif;border:1px solid #d9ded8;border-radius:6px;color:#34433a;background:white;cursor:pointer}
.bb-desk-bar .bb-desk-icon:hover{background:#eff3ed}
@media(max-width:1000px){
 .bb-desk-bar{gap:8px}.bb-desk-bar .brand-home{font-size:20px}
 .bb-desk-toggle{display:block;min-height:44px}
 .bb-desk-groups{display:none;position:absolute;top:100%;left:0;width:min(320px,100vw);max-height:calc(100dvh - 60px);overflow:auto;background:white;border:1px solid #d7ddd6;padding:10px;box-sizing:border-box;box-shadow:0 8px 20px #26382819}
 .bb-desk-toggle[aria-expanded=true]+.bb-desk-groups{display:block}
 .bb-desk-group>summary,.bb-desk-finder>summary,.bb-desk-drop a{min-height:44px;box-sizing:border-box}
 .bb-desk-drop{position:static;box-shadow:none;margin:4px 0}
 .bb-desk-bar .bb-desk-icon{min-height:44px;height:44px}
}
@media screen{
 .product-manager-header:has(.bb-desk-bar){padding:0;min-height:60px;z-index:20}
 .bb-desk-bar{position:relative}
 .bb-product-account{max-width:165px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px}
 .bb-desk-drop a:focus-visible,.bb-desk-nav summary:focus-visible,.bb-desk-icon:focus-visible{outline:2px solid #436c50;outline-offset:1px}
}
@media(max-width:650px){
 .bb-desk-bar{gap:4px}.bb-desk-bar .ops-account summary,.bb-product-account{max-width:68px}
 .bb-desk-bar .brand-home{font-size:18px;white-space:nowrap}.bb-desk-bar .ops-account-body{position:fixed;top:60px;right:8px}
}
@media(max-width:390px){.bb-desk-toggle{padding-inline:5px}.bb-desk-bar .ops-account summary,.bb-product-account{max-width:52px}}

.bb-small-role{display:none}
@media(max-width:650px){
 .bb-desk-bar .bb-desk-icon{flex-direction:column;gap:1px;width:48px;min-width:48px;padding:0;font-size:11px}
 .bb-desk-bar .ops-account-name,.bb-product-account{display:none}
 .bb-desk-bar .bb-small-role{display:inline-block;font:500 13px/1.4 system-ui,sans-serif;white-space:nowrap}
 .bb-desk-bar .ops-account summary{max-width:none}
}
