/* The switch between one's own account, the accounts one added and the shops one operates (account-switch.js), at
   the foot of the side navigation, the header's right on phones. */
.account-switch{position:relative;margin-top:auto;padding-top:18px}
.account-switch[hidden]{display:none}
.account-switch-current{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border-radius:14px;text-align:left;border:1px solid transparent}
.account-switch-current:hover{background:#edf1f7;background:light-dark(#edf1f7,#192333)}
.account-switch.acting-shop .account-switch-current{border-color:#f3c26b;border-color:light-dark(#f3c26b,#835c00);background:#fff8ea;background:light-dark(#fff8ea,#281b00)}
.account-switch-avatar{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;overflow:hidden;background:#dfe8f8;background:light-dark(#dfe8f8,#1b2944);color:#3d5170;color:light-dark(#3d5170,#b5ccf1);font-weight:700}
.account-switch-avatar img{width:100%;height:100%;object-fit:cover}
.account-switch-copy{display:flex;flex-direction:column;min-width:0}
.account-switch-copy strong{display:flex;align-items:center;gap:6px;min-width:0;font-size:14px}
.account-switch-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* The main account (account-switch.js label), told from those added. */
.account-switch-main{flex:none;padding:2px 6px;border-radius:20px;font-size:10px;font-weight:700;color:#287de2;color:light-dark(#287de2,#74b0ff);background:#eaf3ff;background:light-dark(#eaf3ff,#122338)}
.account-switch-copy small{font-size:12px;color:#7d8ca3;color:light-dark(#7d8ca3,#9aa1ac);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-switch-menu{position:absolute;left:0;right:0;bottom:calc(100% + 6px);z-index:30;padding:8px;border-radius:16px;background:white;background:light-dark(white,#141a23);border:1px solid #e3e9f2;border:1px solid light-dark(#e3e9f2,#2c3544);box-shadow:0 10px 30px #2a3b5a26;box-shadow:0 10px 30px light-dark(#2a3b5a26,#01020359)}
.account-switch-menu[hidden]{display:none}
.account-switch-title{margin:4px 8px 6px;font-size:12px;font-weight:700;color:#7d8ca3;color:light-dark(#7d8ca3,#9aa1ac)}
.account-switch-item{display:flex;align-items:center;gap:10px;width:100%;padding:8px;border-radius:12px;text-align:left}
.account-switch-item:hover{background:#f0f5fe;background:light-dark(#f0f5fe,#162033)}
.account-switch-item[aria-checked="true"]{background:#eaf2ff;background:light-dark(#eaf2ff,#152239)}
.account-switch-add{display:flex;align-items:center;gap:10px;margin-top:4px;padding:8px;border-top:1px solid #eef1f6;border-top:1px solid light-dark(#eef1f6,#2b313c);border-radius:0 0 12px 12px;font-size:14px;font-weight:600;color:#2162d5;color:light-dark(#2162d5,#90b9ff);text-decoration:none}
.account-switch-add:hover{background:#f0f5fe;background:light-dark(#f0f5fe,#162033)}
.account-switch-add[hidden]{display:none}
.account-switch-plus{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;border:1px dashed #b8cbe8;border:1px dashed light-dark(#b8cbe8,#2c4366);font-size:18px}
.account-switch-status{margin:6px 8px 2px;font-size:12px;color:#b4232a;color:light-dark(#b4232a,#ff9f97)}
.account-switch-status:empty{display:none}
/* The navigation as its icons alone: the menu, wider than it, is fixed where it stands (left and top as in place, then
   raised by its height) so that the navigation, which scrolls, does not cut it at its edge, and the navigation (a layer
   of its own, being sticky) is above the page while it is open. groups.css does the same with a group open, and
   tests/groups.test.mjs keeps the two alike. */
@media(max-width:800px) and (min-width:601px){.account-switch-current .account-switch-copy{display:none}.account-switch-current{justify-content:center;padding:6px}.account-switch-menu{position:fixed;width:240px;left:auto;right:auto;bottom:auto;transform:translateY(calc(-100% - 6px))}.navigation:has(.account-switch-menu:not([hidden])){z-index:40}}
@media(max-width:600px){.account-switch{margin:0 0 0 auto;padding:0}.account-switch-current .account-switch-copy{display:none}.account-switch-current{padding:3px;border-radius:50%}.account-switch-avatar{width:32px;height:32px}.account-switch-menu{position:fixed;left:12px;right:12px;top:58px;bottom:auto}}
.shop-link{display:inline-block;margin-top:8px;font-size:13px;font-weight:600;color:var(--blue,#367bf5);color:var(--blue,light-dark(#367bf5,#7faeff))}
/* The shop mark (backend identity/shops.py), after a shop account's name wherever it is shown, as X's badges are. */
.shop-badge{display:inline-block;flex:none;width:1.05em;height:1.05em;margin-left:.25em;vertical-align:-.15em;background:url("shop-badge.svg") center/contain no-repeat}
.public-profile h2 .shop-badge{width:20px;height:20px;margin-left:6px;vertical-align:-3px}
