/* The shared menu, quick add and messages. Colours come from pages.css. */
header.bar.shell{width:100%;max-width:none;margin:0;padding:8px 16px;background:var(--card,#fffdf8);border-bottom:3px solid var(--edge,#12332c);position:sticky;top:0;z-index:40}
header.bar.shell nav{position:relative;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.shell-tabs{display:flex;gap:4px}
.shell-tab{display:flex;gap:6px;align-items:center;padding:6px 11px;text-decoration:none;color:var(--ink,#12332c);border:2px solid transparent;font-weight:700;font-size:15px}
.shell-tab:hover{border-color:var(--soft,#bfdccb)}
.shell-tab[aria-current=page]{border-color:var(--edge,#12332c);background:var(--sun,#fff3cf)}
header.bar.shell button.shell-quick,header.bar.shell button.shell-more{font:700 14px var(--body,system-ui,sans-serif);padding:7px 12px;margin:0;width:auto;cursor:pointer;border:2px solid var(--edge,#12332c);border-radius:0;background:var(--card,#fffdf8);color:var(--ink,#12332c);box-shadow:3px 3px 0 var(--shadow,#bfe3cc)}
header.bar.shell button.shell-quick{background:var(--action);color:var(--on-action)}
.shell-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:50;min-width:240px;display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:12px;background:var(--card,#fffdf8);border:3px solid var(--edge,#12332c);box-shadow:6px 6px 0 var(--shadow,#bfe3cc)}
.shell-menu[hidden]{display:none}
.shell-menu a{padding:4px 2px}
.shell-menu .shell-dup,.shell-menu [hidden]{display:none!important}
dialog.quick{width:min(560px,calc(100vw - 24px));margin:12vh auto auto;padding:14px;background:var(--card,#fffdf8);color:var(--ink,#12332c);border:3px solid var(--edge,#12332c);box-shadow:8px 8px 0 var(--shadow,#bfe3cc)}
dialog.quick::backdrop{background:rgba(0,0,0,.45)}
.quick-top{display:flex;gap:8px}
.quick-top input{flex:1;min-width:0;font-size:18px;margin:0}
.quick button{font:700 14px var(--body,system-ui,sans-serif);cursor:pointer;padding:7px 12px;margin:0;width:auto;border:2px solid var(--edge,#12332c);border-radius:0;background:var(--card,#fffdf8);color:var(--ink,#12332c)}
.quick-kinds{display:flex;gap:6px;margin-top:10px}
.quick button[aria-pressed=true]{background:var(--sun,#fff3cf)}
.quick-preview p{margin:6px 0}
.quick-found{list-style:none;padding:0;margin:10px 0 0;border-top:2px solid var(--soft,#bfdccb)}
.quick-found a{display:block;padding:7px 4px;color:var(--ink,#12332c);text-decoration:none;border-bottom:1px solid var(--soft,#bfdccb);overflow-wrap:anywhere}
.quick-found a:hover,.quick-found a:focus-visible{background:var(--sun,#fff3cf)}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:24px;z-index:70;display:flex;gap:14px;align-items:center;max-width:calc(100vw - 24px);padding:10px 16px;background:var(--ink,#12332c);color:var(--paper,#f3fbf4);border:2px solid var(--edge,#12332c);box-shadow:5px 5px 0 var(--shadow,#bfe3cc);font-weight:700}
.toast button{font:700 14px var(--body,system-ui,sans-serif);cursor:pointer;padding:5px 12px;margin:0;width:auto;background:var(--card,#fffdf8);color:var(--ink,#12332c);border:2px solid var(--edge,#12332c);border-radius:0}
/* phones: the places move to the bottom, where a thumb reaches */
@media (max-width:760px){
  header.bar.shell{padding:8px 10px}
  .shell-tabs{position:fixed;left:0;right:0;bottom:0;z-index:55;gap:0;justify-content:space-around;background:var(--card,#fffdf8);border-top:3px solid var(--edge,#12332c);padding:4px 2px env(safe-area-inset-bottom)}
  .shell-tab{flex:1;flex-direction:column;gap:0;padding:4px 2px;font-size:12px;min-width:0;min-height:46px;justify-content:center}
  body.has-shell{padding-bottom:70px}
  body.has-shell #postoffice{bottom:72px}
  .toast{bottom:76px}
}
.quick .msg:empty,.quick-found:empty{display:none}
.quick-by{font-weight:700}
.quick-by.basic{background:var(--sun,#fff3cf);border:2px solid var(--edge,#12332c);padding:6px 10px;font-weight:400}
.quick-when{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.quick-when input{width:auto;margin:0;font-size:15px;padding:5px 8px}
.quick button.quick-save{background:var(--action,#c93f1a);color:var(--on-action,#fff)}
dialog.limit h2{margin:0 0 8px;font-size:20px}
.limit-offers{display:grid;gap:8px;margin:10px 0}
.quick button.limit-buy{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;text-align:left;background:var(--sun,#fff3cf)}
.quick button.limit-link{margin-left:8px}
.shell-menu a.shell-small{display:none}
@media (max-width:1420px){.shell-tabs .shell-extra{display:none}.shell-menu a.shell-small{display:block}}

.shell-menu a.shell-mid-link{display:none}
@media (max-width:1700px){.shell-tabs .shell-mid{display:none}.shell-menu a.shell-mid-link{display:block}}
.shell-menu a.shell-phone{display:none}
@media (max-width:760px){.shell-tabs .shell-wide{display:none}.shell-menu a.shell-phone{display:block}}
@media (max-width:760px){.shell-tab{font-size:13px}}
@media (min-width:761px) and (max-width:1180px){header.bar.shell .shell-tab{padding:6px 5px;gap:4px;font-size:14px}.shell-tabs{gap:1px}}
