.sb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sb-gap, 6px);
  width: 100%;
}

@media (min-width: 900px) {
  .sb-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 720px;
  }
}

.sb-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 88px;
  padding: 12px;
  border: none;
  border-radius: 4px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  position: relative;
  overflow: hidden;
}

.sb-tile:hover {
  filter: brightness(1.08);
  transform: scale(1.02);
}

.sb-tile:active {
  transform: scale(0.98);
}

.sb-tile i {
  font-size: 1.25rem;
  margin-bottom: 8px;
  opacity: 0.95;
}

.sb-tile-label {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.sb-1x1 { grid-column: span 1; min-height: 88px; }
.sb-2x1 { grid-column: span 2; min-height: 72px; }
.sb-2x2 { grid-column: span 2; grid-row: span 2; min-height: 160px; }
.sb-3x1 { grid-column: 1 / -1; min-height: 64px; flex-direction: row; align-items: center; gap: 12px; }
.sb-3x1 i { margin-bottom: 0; }

.sb-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--mp-text-muted);
}

.account-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  margin-bottom: 8px;
  border-radius: 6px;
  border: 2px solid var(--mp-border);
  background: var(--mp-surface-2);
  color: var(--mp-text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.account-tile.selected {
  border-color: var(--mp-accent);
  background: rgba(0, 120, 215, 0.15);
}

.account-tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.account-tile-body {
  flex: 1;
  min-width: 0;
}

.account-tile-name {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-tile-meta {
  font-size: 0.75rem;
  color: var(--mp-text-muted);
  margin-top: 2px;
}

.account-tile-saldo {
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.account-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
