/* Account entry only. Routes and access gates are unchanged. */
.market-actions > a.bg-account-entry {
  min-width: 62px;
  min-height: 52px;
  padding: 6px 9px;
  gap: 3px;
  border: 1px solid #174d40;
  border-radius: 9px;
  background: #174d40;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  justify-content: center;
  text-decoration: none;
}
.bg-account-entry > svg { width: 23px; height: 23px; flex: 0 0 auto; }
.market-actions > a.bg-account-entry:hover { background: #103c31; border-color: #103c31; }
.bg-account-entry:focus-visible { outline: 3px solid #b58c34; outline-offset: 3px; }
/* Give search its own row on small desktops rather than squeezing it. */
@media (min-width: 801px) and (max-width: 1020px) {
  .market-header .header-inner { flex-wrap: wrap; }
  .market-header .header-inner > .brand { margin-right: auto; }
  .market-header .header-search { order: 5; flex-basis: 100%; }
}
@media (max-width: 800px) {
  .market-mobile { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; padding-left: 4px; padding-right: 4px; }
  .market-mobile > a, .market-mobile > button { min-width: 44px; }
  .market-mobile > a.bg-account-entry { justify-content: center; gap: 2px; margin: 0 2px; border-radius: 9px; background: #eaf2ed; color: #174d40; font-weight: 700; }
  .market-mobile > a.bg-account-entry:hover { background: #dcebe2; }
}
/* Keep the original 10px labels distinct even on a 320px CSS viewport. */
@media (max-width: 380px) {
  .market-mobile { grid-template-columns: 44px 44px minmax(55px, 1fr) minmax(55px, 1fr) 46px 48px; }
  .market-mobile > a, .market-mobile > button { padding-left: 0; padding-right: 0; }
  .market-mobile span { white-space: nowrap; }
}
