.q-brief-help{font-size:13px;line-height:1.7;margin:4px 0;color:#704b37}.q-brief-help button{font:inherit;color:#4a2a20;background:transparent;border:0;text-decoration:underline;padding:4px 6px;cursor:pointer;font-weight:800}
.q-unified-header{box-sizing:border-box;position:relative!important;display:flex!important;flex-wrap:wrap;align-items:center;gap:12px!important;padding:12px 24px!important;background:#f1e3b4!important;color:#4a2a20!important;border-bottom:2px solid #8a7264!important;z-index:50}
.q-unified-header a{color:inherit;text-decoration:none}.q-unified-brand{font-size:20px;font-weight:900;display:block!important}.q-unified-brand small{display:block;font-size:12px}.q-unified-tools{margin-left:auto;display:flex;gap:16px;align-items:center;font-size:14px}
.q-unified-menu{position:relative}.q-unified-menu summary{cursor:pointer;font-weight:800;list-style:none;padding:8px 12px;border:2px solid #8a7264;border-radius:16px 12px;background:#fff5d9;color:#4a2a20}
.q-unified-menu nav{display:flex!important;flex-wrap:wrap;gap:4px!important;align-items:center}.q-unified-menu nav a{display:block!important;padding:9px 12px!important;font-size:13px!important;font-weight:700;line-height:1.5!important;color:#4a2a20!important;text-decoration:none;white-space:nowrap;border-radius:14px}
.q-unified-menu nav a:hover,.q-unified-menu nav a:focus-visible{background:#4a2a20!important;color:#fff4d5!important}.q-room-header{flex-wrap:wrap}.q-room-header .top-actions{flex:1;justify-content:flex-end}.q-room-header #identity{display:none}
.q-room-header{height:auto!important;min-height:48px!important}.q-room-header .top-actions{overflow:visible}.q-room-header .q-unified-menu nav button{margin:4px;color:#4a2a20;background:#fff5d9}.q-room-header .q-unified-menu [hidden]{display:none!important}
@media(min-width:801px){.q-unified-menu{width:100%;border-top:1px solid #b8a582}.q-unified-menu summary{display:none}.q-unified-menu:not([open])>nav{display:flex!important}.q-unified-header nav{font-size:13px}.q-nav-links{overflow-x:auto;scrollbar-width:thin}}
@media(max-width:800px){.q-unified-header{padding:8px 12px!important;gap:8px!important}.q-unified-brand{font-size:16px}.q-unified-tools{gap:10px;font-size:12px}.q-unified-menu[open] nav{position:absolute;right:0;top:100%;width:min(300px,calc(100vw - 24px));max-height:65dvh;overflow-y:auto;background:#fff5d9;border:2px solid #8a7264;border-radius:16px;padding:8px;box-shadow:4px 5px 0 #4a2a2033;display:grid!important;z-index:60}.q-room-header>.q-unified-menu{margin-left:auto}.q-room-header .top-actions{gap:6px}.q-room-header .brand small{display:none}}
@media(max-width:800px){.q-room-header{gap:6px;padding:5px 8px!important}.q-room-header .brand{font-size:12px;letter-spacing:0}.q-room-header .brand img{width:23px;height:28px}.q-room-header .top-actions{flex:1;gap:5px}.q-room-header .top-actions button{padding:5px 7px;font-size:11px}.q-room-header .q-unified-menu summary{padding:7px 8px;font-size:12px}.q-room-header .q-language-switch{display:inline-flex;flex-shrink:0}}

/* Keep trackpad overscroll inside the website; vertical scrolling stays native. */
html,body{overscroll-behavior-x:none}

/* Mobile account priority · 2026-10-10 */
@media (max-width:800px) {
  /* Small language pills leave the strongest colour and type for the account. */
  html body .q-language-switch {
    align-self:center;border:1px solid #ad9879;border-radius:10px;
    background:#fff9e9;box-shadow:none;
  }
  html body :is(.q-mobile-nav,.q-room-header) .q-language-switch>button {
    min-width:36px;min-height:32px;padding:4px 6px!important;
    font-size:11px!important;line-height:1.2!important;
  }
  html body .q-language-switch>button+button {border-left:1px solid #ad9879!important}
  html body .q-language-switch>button:disabled {
    background:#e4cf99!important;color:#4a2a20!important;
  }
  html body .q-mobile-nav {
    gap:5px!important;justify-content:flex-start!important;
  }
  html body .q-mobile-nav>[data-session-entry],
  html body .q-room-header #account-entry,
  html body .q-unified-tools>[data-session-entry] {
    display:inline-flex;align-items:center;justify-content:center;
    box-sizing:border-box;flex-shrink:0;min-height:42px;
    padding:7px 12px!important;margin:0;
    font:inherit;font-size:15px!important;font-weight:900!important;
    line-height:1.2!important;white-space:nowrap;text-decoration:none;
    color:#fff8df!important;background:#884527!important;
    border:2px solid #5b301e!important;border-radius:16px 12px 16px 12px;
    box-shadow:0 2px 0 #c4a979;letter-spacing:0;
  }
  html body .q-room-header #account-entry[hidden] {display:none!important}
  html body .q-mobile-nav>[data-session-entry]:focus-visible,
  html body .q-room-header #account-entry:focus-visible,
  html body .q-unified-tools>[data-session-entry]:focus-visible {
    outline:3px solid #b66d29;outline-offset:2px;
  }
  html body .q-mobile-nav>.q-language-switch {margin-left:auto}
  html body .q-mobile-nav>a[data-quail-panel] {font-size:11px!important}
  html body .q-room-header {flex-wrap:nowrap;gap:6px}
  html body .q-room-header .brand {flex-shrink:0}
  html body .q-room-header .top-actions {min-width:0;gap:7px}
  html[lang="ja"] body .q-room-header .brand span {display:none}
  html body .q-unified-header {flex-wrap:nowrap;padding:6px 8px!important;gap:6px!important}
  html body .q-unified-brand {font-size:14px;flex-shrink:0}
  html body .q-unified-brand small {font-size:10px}
  html body .q-unified-tools {gap:6px;font-size:11px}
  html body .q-unified-tools>a:not([data-session-entry]) {
    display:inline-flex;align-items:center;justify-content:center;
    min-height:32px;padding:0 6px;border:1px solid #ad9879;
    border-radius:10px;background:#fff9e9;white-space:nowrap;
  }
  html body .q-unified-header>.q-unified-menu summary {
    padding:7px 6px;font-size:12px;white-space:nowrap;
  }
  /* Keep the home tab easy to find inside an order as well. */
  html body .mobile-work-nav [data-mobile-panel="directory"] {
    flex:1.2;font-size:15px;font-weight:900;
    color:#6a361f;background:#f5dfac;border-color:#986443;
  }
  html body .mobile-work-nav [data-mobile-panel="directory"][aria-pressed="true"] {
    color:#fff8df;background:#884527;border-color:#5b301e;
  }
}
@media (max-width:360px) {
  html body .q-mobile-nav {gap:4px!important}
  html body .q-mobile-nav>a[data-quail-panel="guide"] {display:none!important}
  html body .q-unified-brand {font-size:12px}
  html body .q-room-header .brand span {display:none}
  html[lang="ja"] body .q-room-header {gap:4px}
  html[lang="ja"] body .q-room-header #account-entry {font-size:14px!important;padding-inline:8px!important}
  html[lang="ja"] body .q-room-header .q-unified-menu summary {padding-inline:4px}
  html body .q-unified-tools>[data-session-entry] {padding-inline:9px!important}
}

/* Secondary pages keep the quail palette and provide an obvious way home. */
.q-return-nav{box-sizing:border-box;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:1080px;margin:12px auto;padding:0 16px;position:relative;z-index:30}
.q-return-nav a,.q-return-pick,.q-room-return{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 12px;border:2px solid #6c432d;border-radius:17px 12px 17px 12px;background:#fff5d9;color:#4a2a20;font:inherit;font-size:14px;font-weight:900;text-decoration:none;line-height:1.4;cursor:pointer;overflow-wrap:anywhere}
.q-return-nav a:first-child,.q-room-return{background:#884527;color:#fff8df;box-shadow:0 2px 0 #c4a979}
.q-return-nav a:focus-visible,.q-return-pick:focus-visible,.q-room-return:focus-visible,.q-brand-home:focus-visible{outline:3px solid #b66d29;outline-offset:3px}
.q-room-return{margin:0 0 18px}
.q-return-pick{justify-self:start;letter-spacing:0}
@media(max-width:800px){
 .q-return-nav{gap:6px;padding:0 10px;margin:10px auto}
 .q-return-nav a{padding:8px 5px;font-size:13px}
 html .q-mobile-nav>a.q-brand-home{padding:0!important;flex:0 0 34px;width:34px;min-width:34px;min-height:40px;margin-right:auto}
 .q-mobile-nav>.q-brand-home img{display:block;width:34px;height:27px;object-fit:contain}
 .room-page-heading>button,[data-chat-back],.assistant-contact>a:first-child,.payment-support>a:first-child,[data-coupon-close],#account-back{min-height:44px;font-size:14px!important;font-weight:900!important;border:2px solid #6c432d!important;border-radius:17px 12px!important;background:#884527!important;color:#fff8df!important;padding:9px 12px!important;line-height:1.4;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;max-width:100%;white-space:normal}
 .process-top,dialog.q-stats>header,dialog.q-assistant-replies>.q-assistant-header{position:sticky;top:0;z-index:3;background:#f1e3b4}
 .process-top>button,dialog.q-stats>header button,dialog.q-assistant-replies>.q-assistant-header button{flex-shrink:0;min-height:44px;font-weight:900}
}

.auth-wrap>.q-return-nav{grid-column:1 / -1;width:100%;margin-bottom:0}.checkout>.q-return-nav{padding-inline:0}

/* 2026-10-11: as many equal columns as visible links; a hidden duplicate leaves no gap. */
.q-return-nav{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
.q-return-nav a[hidden]{display:none!important}
